Class OperationMetadata.Builder (2.57.0)

publicstaticfinalclass OperationMetadata.BuilderextendsGeneratedMessageV3.Builder<OperationMetadata.Builder>implementsOperationMetadataOrBuilder

The operation metadata returned for the batchend services operation.

Protobuf type google.api.serviceusage.v1.OperationMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addAllResourceNames(Iterable<String> values)

publicOperationMetadata.BuilderaddAllResourceNames(Iterable<String>values)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameter
Name Description
values Iterable<String>

The resourceNames to add.

Returns
Type Description
OperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicOperationMetadata.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationMetadata.Builder
Overrides

addResourceNames(String value)

publicOperationMetadata.BuilderaddResourceNames(Stringvalue)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameter
Name Description
value String

The resourceNames to add.

Returns
Type Description
OperationMetadata.Builder

This builder for chaining.

addResourceNamesBytes(ByteString value)

publicOperationMetadata.BuilderaddResourceNamesBytes(ByteStringvalue)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameter
Name Description
value ByteString

The bytes of the resourceNames to add.

Returns
Type Description
OperationMetadata.Builder

This builder for chaining.

build()

publicOperationMetadatabuild()
Returns
Type Description
OperationMetadata

buildPartial()

publicOperationMetadatabuildPartial()
Returns
Type Description
OperationMetadata

clear()

publicOperationMetadata.Builderclear()
Returns
Type Description
OperationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

publicOperationMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OperationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicOperationMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OperationMetadata.Builder
Overrides

clearResourceNames()

publicOperationMetadata.BuilderclearResourceNames()

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Returns
Type Description
OperationMetadata.Builder

This builder for chaining.

clone()

publicOperationMetadata.Builderclone()
Returns
Type Description
OperationMetadata.Builder
Overrides

getDefaultInstanceForType()

publicOperationMetadatagetDefaultInstanceForType()
Returns
Type Description
OperationMetadata

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getResourceNames(int index)

publicStringgetResourceNames(intindex)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The resourceNames at the given index.

getResourceNamesBytes(int index)

publicByteStringgetResourceNamesBytes(intindex)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the resourceNames at the given index.

getResourceNamesCount()

publicintgetResourceNamesCount()

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Returns
Type Description
int

The count of resourceNames.

getResourceNamesList()

publicProtocolStringListgetResourceNamesList()

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Returns
Type Description
ProtocolStringList

A list containing the resourceNames.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OperationMetadata other)

publicOperationMetadata.BuildermergeFrom(OperationMetadataother)
Parameter
Name Description
other OperationMetadata
Returns
Type Description
OperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicOperationMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OperationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicOperationMetadata.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
OperationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalOperationMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

publicOperationMetadata.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OperationMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

publicOperationMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OperationMetadata.Builder
Overrides

setResourceNames(int index, String value)

publicOperationMetadata.BuildersetResourceNames(intindex,Stringvalue)

The full name of the resources that this operation is directly associated with.

repeated string resource_names = 2;

Parameters
Name Description
index int

The index to set the value at.

value String

The resourceNames to set.

Returns
Type Description
OperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalOperationMetadata.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OperationMetadata.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.