Class OperationMetadata.Builder (3.7.0)

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

The metadata associated with a long running operation resource.

Protobuf type google.api.servicemanagement.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 = 1;

Parameter
NameDescription
valuesIterable<String>

The resourceNames to add.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

addAllSteps(Iterable<? extends OperationMetadata.Step> values)

public OperationMetadata.Builder addAllSteps(Iterable<? extends OperationMetadata.Step> values)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.api.servicemanagement.v1.OperationMetadata.Step>
Returns
TypeDescription
OperationMetadata.Builder

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 = 1;

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 = 1;

Parameter
NameDescription
valueByteString

The bytes of the resourceNames to add.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

addSteps(OperationMetadata.Step value)

public OperationMetadata.Builder addSteps(OperationMetadata.Step value)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
valueOperationMetadata.Step
Returns
TypeDescription
OperationMetadata.Builder

addSteps(OperationMetadata.Step.Builder builderForValue)

public OperationMetadata.Builder addSteps(OperationMetadata.Step.Builder builderForValue)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
builderForValueOperationMetadata.Step.Builder
Returns
TypeDescription
OperationMetadata.Builder

addSteps(int index, OperationMetadata.Step value)

public OperationMetadata.Builder addSteps(int index, OperationMetadata.Step value)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameters
NameDescription
indexint
valueOperationMetadata.Step
Returns
TypeDescription
OperationMetadata.Builder

addSteps(int index, OperationMetadata.Step.Builder builderForValue)

public OperationMetadata.Builder addSteps(int index, OperationMetadata.Step.Builder builderForValue)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameters
NameDescription
indexint
builderForValueOperationMetadata.Step.Builder
Returns
TypeDescription
OperationMetadata.Builder

addStepsBuilder()

public OperationMetadata.Step.Builder addStepsBuilder()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
OperationMetadata.Step.Builder

addStepsBuilder(int index)

public OperationMetadata.Step.Builder addStepsBuilder(int index)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationMetadata.Step.Builder

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

clearProgressPercentage()

public OperationMetadata.Builder clearProgressPercentage()

Percentage of completion of this operation, ranging from 0 to 100.

int32 progress_percentage = 3;

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

clearResourceNames()

public OperationMetadata.Builder clearResourceNames()

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

repeated string resource_names = 1;

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

clearStartTime()

public OperationMetadata.Builder clearStartTime()

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
OperationMetadata.Builder

clearSteps()

public OperationMetadata.Builder clearSteps()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
OperationMetadata.Builder

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

getProgressPercentage()

public int getProgressPercentage()

Percentage of completion of this operation, ranging from 0 to 100.

int32 progress_percentage = 3;

Returns
TypeDescription
int

The progressPercentage.

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 = 1;

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 = 1;

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 = 1;

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 = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the resourceNames.

getStartTime()

public Timestamp getStartTime()

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getSteps(int index)

public OperationMetadata.Step getSteps(int index)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationMetadata.Step

getStepsBuilder(int index)

public OperationMetadata.Step.Builder getStepsBuilder(int index)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationMetadata.Step.Builder

getStepsBuilderList()

public List<OperationMetadata.Step.Builder> getStepsBuilderList()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
List<Builder>

getStepsCount()

public int getStepsCount()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
int

getStepsList()

public List<OperationMetadata.Step> getStepsList()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
List<Step>

getStepsOrBuilder(int index)

public OperationMetadata.StepOrBuilder getStepsOrBuilder(int index)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationMetadata.StepOrBuilder

getStepsOrBuilderList()

public List<? extends OperationMetadata.StepOrBuilder> getStepsOrBuilderList()

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Returns
TypeDescription
List<? extends com.google.api.servicemanagement.v1.OperationMetadata.StepOrBuilder>

hasStartTime()

public boolean hasStartTime()

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Returns
TypeDescription
boolean

Whether the startTime field is set.

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

mergeStartTime(Timestamp value)

public OperationMetadata.Builder mergeStartTime(Timestamp value)

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeSteps(int index)

public OperationMetadata.Builder removeSteps(int index)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
OperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgressPercentage(int value)

public OperationMetadata.Builder setProgressPercentage(int value)

Percentage of completion of this operation, ranging from 0 to 100.

int32 progress_percentage = 3;

Parameter
NameDescription
valueint

The progressPercentage to set.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

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 = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The resourceNames to set.

Returns
TypeDescription
OperationMetadata.Builder

This builder for chaining.

setStartTime(Timestamp value)

public OperationMetadata.Builder setStartTime(Timestamp value)

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
OperationMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public OperationMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

The start time of the operation.

.google.protobuf.Timestamp start_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
OperationMetadata.Builder

setSteps(int index, OperationMetadata.Step value)

public OperationMetadata.Builder setSteps(int index, OperationMetadata.Step value)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameters
NameDescription
indexint
valueOperationMetadata.Step
Returns
TypeDescription
OperationMetadata.Builder

setSteps(int index, OperationMetadata.Step.Builder builderForValue)

public OperationMetadata.Builder setSteps(int index, OperationMetadata.Step.Builder builderForValue)

Detailed status information for each step. The order is undetermined.

repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;

Parameters
NameDescription
indexint
builderForValueOperationMetadata.Step.Builder
Returns
TypeDescription
OperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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