Class OperationMetadata.Builder (2.33.0)

public static final class OperationMetadata.Builder extends GeneratedMessageV3.Builder<OperationMetadata.Builder> implements OperationMetadataOrBuilder

The operation metadata returned for the batchend services operation.

Protobuf type google.api.serviceusage.v1.OperationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllResourceNames(Iterable<String> values)

public OperationMetadata.Builder addAllResourceNames(Iterable<String> values)

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

repeated string resource_names = 2;

Parameter
NameDescription
valuesIterable<String>

The resourceNames to add.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OperationMetadata.Builder
Overrides

addResourceNames(String value)

public OperationMetadata.Builder addResourceNames(String value)

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

repeated string resource_names = 2;

Parameter
NameDescription
valueString

The resourceNames to add.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

addResourceNamesBytes(ByteString value)

public OperationMetadata.Builder addResourceNamesBytes(ByteString value)

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

repeated string resource_names = 2;

Parameter
NameDescription
valueByteString

The bytes of the resourceNames to add.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

build()

public OperationMetadata build()
Returns
TypeDescription
OperationMetadata

buildPartial()

public OperationMetadata buildPartial()
Returns
TypeDescription
OperationMetadata

clear()

public OperationMetadata.Builder clear()
Returns
TypeDescription
OperationMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public OperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
OperationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public OperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
OperationMetadata.Builder
Overrides

clearResourceNames()

public OperationMetadata.Builder clearResourceNames()

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

repeated string resource_names = 2;

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

clone()

public OperationMetadata.Builder clone()
Returns
TypeDescription
OperationMetadata.Builder
Overrides

getDefaultInstanceForType()

public OperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
OperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getResourceNames(int index)

public String getResourceNames(int index)

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

repeated string resource_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The resourceNames at the given index.

getResourceNamesBytes(int index)

public ByteString getResourceNamesBytes(int index)

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

repeated string resource_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the resourceNames at the given index.

getResourceNamesCount()

public int getResourceNamesCount()

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

repeated string resource_names = 2;

Returns
TypeDescription
int

The count of resourceNames.

getResourceNamesList()

public ProtocolStringList getResourceNamesList()

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

repeated string resource_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the resourceNames.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(OperationMetadata other)

public OperationMetadata.Builder mergeFrom(OperationMetadata other)
Parameter
NameDescription
otherOperationMetadata
Returns
TypeDescription
OperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
OperationMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public OperationMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
OperationMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OperationMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public OperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
OperationMetadata.Builder
Overrides

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

public OperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
OperationMetadata.Builder
Overrides

setResourceNames(int index, String value)

public OperationMetadata.Builder setResourceNames(int index, String value)

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

repeated string resource_names = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resourceNames to set.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final OperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
OperationMetadata.Builder
Overrides