Class OperationMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
com.google.api.servicemanagement.v1.OperationMetadata.Builder
- All Implemented Interfaces:
OperationMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OperationMetadata
public static final class OperationMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
implements OperationMetadataOrBuilder
The metadata associated with a long running operation resource.Protobuf type
google.api.servicemanagement.v1.OperationMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddAllResourceNames(Iterable<String> values) The full name of the resources that this operation is directly associated with.addAllSteps(Iterable<? extends OperationMetadata.Step> values) Detailed status information for each step.addResourceNames(String value) The full name of the resources that this operation is directly associated with.addResourceNamesBytes(com.google.protobuf.ByteString value) The full name of the resources that this operation is directly associated with.addSteps(int index, OperationMetadata.Step value) Detailed status information for each step.addSteps(int index, OperationMetadata.Step.Builder builderForValue) Detailed status information for each step.addSteps(OperationMetadata.Step value) Detailed status information for each step.addSteps(OperationMetadata.Step.Builder builderForValue) Detailed status information for each step.Detailed status information for each step.addStepsBuilder(int index) Detailed status information for each step.build()clear()Percentage of completion of this operation, ranging from 0 to 100.The full name of the resources that this operation is directly associated with.The start time of the operation.Detailed status information for each step.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintPercentage of completion of this operation, ranging from 0 to 100.getResourceNames(int index) The full name of the resources that this operation is directly associated with.com.google.protobuf.ByteStringgetResourceNamesBytes(int index) The full name of the resources that this operation is directly associated with.intThe full name of the resources that this operation is directly associated with.com.google.protobuf.ProtocolStringListThe full name of the resources that this operation is directly associated with.com.google.protobuf.TimestampThe start time of the operation.com.google.protobuf.Timestamp.BuilderThe start time of the operation.com.google.protobuf.TimestampOrBuilderThe start time of the operation.getSteps(int index) Detailed status information for each step.getStepsBuilder(int index) Detailed status information for each step.Detailed status information for each step.intDetailed status information for each step.Detailed status information for each step.getStepsOrBuilder(int index) Detailed status information for each step.List<? extends OperationMetadata.StepOrBuilder>Detailed status information for each step.booleanThe start time of the operation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(OperationMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) The start time of the operation.removeSteps(int index) Detailed status information for each step.setProgressPercentage(int value) Percentage of completion of this operation, ranging from 0 to 100.setResourceNames(int index, String value) The full name of the resources that this operation is directly associated with.setStartTime(com.google.protobuf.Timestamp value) The start time of the operation.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The start time of the operation.setSteps(int index, OperationMetadata.Step value) Detailed status information for each step.setSteps(int index, OperationMetadata.Step.Builder builderForValue) Detailed status information for each step.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperationMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OperationMetadata.Builder>
-
mergeFrom
public OperationMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<OperationMetadata.Builder>- Throws:
IOException
-
getResourceNamesList
public com.google.protobuf.ProtocolStringList getResourceNamesList()The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Specified by:
getResourceNamesListin interfaceOperationMetadataOrBuilder- Returns:
- A list containing the resourceNames.
-
getResourceNamesCount
public int getResourceNamesCount()The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Specified by:
getResourceNamesCountin interfaceOperationMetadataOrBuilder- Returns:
- The count of resourceNames.
-
getResourceNames
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Specified by:
getResourceNamesin interfaceOperationMetadataOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The resourceNames at the given index.
-
getResourceNamesBytes
public com.google.protobuf.ByteString getResourceNamesBytes(int index) The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Specified by:
getResourceNamesBytesin interfaceOperationMetadataOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the resourceNames at the given index.
-
setResourceNames
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Parameters:
index- The index to set the value at.value- The resourceNames to set.- Returns:
- This builder for chaining.
-
addResourceNames
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Parameters:
value- The resourceNames to add.- Returns:
- This builder for chaining.
-
addAllResourceNames
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Parameters:
values- The resourceNames to add.- Returns:
- This builder for chaining.
-
clearResourceNames
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Returns:
- This builder for chaining.
-
addResourceNamesBytes
The full name of the resources that this operation is directly associated with.
repeated string resource_names = 1;- Parameters:
value- The bytes of the resourceNames to add.- Returns:
- This builder for chaining.
-
getStepsList
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;- Specified by:
getStepsListin interfaceOperationMetadataOrBuilder
-
getStepsCount
public int getStepsCount()Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;- Specified by:
getStepsCountin interfaceOperationMetadataOrBuilder
-
getSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;- Specified by:
getStepsin interfaceOperationMetadataOrBuilder
-
setSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
setSteps
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; -
addSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
addSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
addSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
addSteps
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; -
addAllSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
clearSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
removeSteps
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
getStepsBuilder
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
getStepsOrBuilder
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;- Specified by:
getStepsOrBuilderin interfaceOperationMetadataOrBuilder
-
getStepsOrBuilderList
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2;- Specified by:
getStepsOrBuilderListin interfaceOperationMetadataOrBuilder
-
addStepsBuilder
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
addStepsBuilder
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
getStepsBuilderList
Detailed status information for each step. The order is undetermined.
repeated .google.api.servicemanagement.v1.OperationMetadata.Step steps = 2; -
getProgressPercentage
public int getProgressPercentage()Percentage of completion of this operation, ranging from 0 to 100.
int32 progress_percentage = 3;- Specified by:
getProgressPercentagein interfaceOperationMetadataOrBuilder- Returns:
- The progressPercentage.
-
setProgressPercentage
Percentage of completion of this operation, ranging from 0 to 100.
int32 progress_percentage = 3;- Parameters:
value- The progressPercentage to set.- Returns:
- This builder for chaining.
-
clearProgressPercentage
Percentage of completion of this operation, ranging from 0 to 100.
int32 progress_percentage = 3;- Returns:
- This builder for chaining.
-
hasStartTime
public boolean hasStartTime()The start time of the operation.
.google.protobuf.Timestamp start_time = 4;- Specified by:
hasStartTimein interfaceOperationMetadataOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()The start time of the operation.
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimein interfaceOperationMetadataOrBuilder- Returns:
- The startTime.
-
setStartTime
The start time of the operation.
.google.protobuf.Timestamp start_time = 4; -
setStartTime
public OperationMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The start time of the operation.
.google.protobuf.Timestamp start_time = 4; -
mergeStartTime
The start time of the operation.
.google.protobuf.Timestamp start_time = 4; -
clearStartTime
The start time of the operation.
.google.protobuf.Timestamp start_time = 4; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()The start time of the operation.
.google.protobuf.Timestamp start_time = 4; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()The start time of the operation.
.google.protobuf.Timestamp start_time = 4;- Specified by:
getStartTimeOrBuilderin interfaceOperationMetadataOrBuilder
-