Class CommonLongRunningOperationMetadata.Builder (2.36.1)

public static final class CommonLongRunningOperationMetadata.Builder extends GeneratedMessageV3.Builder<CommonLongRunningOperationMetadata.Builder> implements CommonLongRunningOperationMetadataOrBuilder

The message contains metadata that is common to all Storage Control long-running operations, present in its google.longrunning.Operation messages, and accessible via metadata.common_metadata.

Protobuf type google.storage.control.v2.CommonLongRunningOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommonLongRunningOperationMetadata build()
Returns
TypeDescription
CommonLongRunningOperationMetadata

buildPartial()

public CommonLongRunningOperationMetadata buildPartial()
Returns
TypeDescription
CommonLongRunningOperationMetadata

clear()

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

clearCreateTime()

public CommonLongRunningOperationMetadata.Builder clearCreateTime()

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

clearEndTime()

public CommonLongRunningOperationMetadata.Builder clearEndTime()

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgressPercent()

public CommonLongRunningOperationMetadata.Builder clearProgressPercent()

Output only. The estimated progress of the operation in percentage [0, 100]. The value -1 means the progress is unknown.

int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

clearRequestedCancellation()

public CommonLongRunningOperationMetadata.Builder clearRequestedCancellation()

Output only. Identifies whether the user has requested cancellation.

bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

clearType()

public CommonLongRunningOperationMetadata.Builder clearType()

Output only. The type of operation invoked.

string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

clearUpdateTime()

public CommonLongRunningOperationMetadata.Builder clearUpdateTime()

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

clone()

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

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public CommonLongRunningOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
CommonLongRunningOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getProgressPercent()

public int getProgressPercent()

Output only. The estimated progress of the operation in percentage [0, 100]. The value -1 means the progress is unknown.

int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The progressPercent.

getRequestedCancellation()

public boolean getRequestedCancellation()

Output only. Identifies whether the user has requested cancellation.

bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The requestedCancellation.

getType()

public String getType()

Output only. The type of operation invoked.

string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. The type of operation invoked.

string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for type.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasEndTime()

public boolean hasEndTime()

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder mergeCreateTime(Timestamp value)

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

mergeEndTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder mergeEndTime(Timestamp value)

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(CommonLongRunningOperationMetadata other)

public CommonLongRunningOperationMetadata.Builder mergeFrom(CommonLongRunningOperationMetadata other)
Parameter
NameDescription
otherCommonLongRunningOperationMetadata
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder mergeUpdateTime(Timestamp value)

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setCreateTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder setCreateTime(Timestamp value)

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public CommonLongRunningOperationMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time the operation was created.

.google.protobuf.Timestamp create_time = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setEndTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder setEndTime(Timestamp value)

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public CommonLongRunningOperationMetadata.Builder setEndTime(Timestamp.Builder builderForValue)

Output only. The time the operation finished running.

.google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgressPercent(int value)

public CommonLongRunningOperationMetadata.Builder setProgressPercent(int value)

Output only. The estimated progress of the operation in percentage [0, 100]. The value -1 means the progress is unknown.

int32 progress_percent = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueint

The progressPercent to set.

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

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

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

setRequestedCancellation(boolean value)

public CommonLongRunningOperationMetadata.Builder setRequestedCancellation(boolean value)

Output only. Identifies whether the user has requested cancellation.

bool requested_cancellation = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueboolean

The requestedCancellation to set.

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

setType(String value)

public CommonLongRunningOperationMetadata.Builder setType(String value)

Output only. The type of operation invoked.

string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The type to set.

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

setTypeBytes(ByteString value)

public CommonLongRunningOperationMetadata.Builder setTypeBytes(ByteString value)

Output only. The type of operation invoked.

string type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for type to set.

Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public CommonLongRunningOperationMetadata.Builder setUpdateTime(Timestamp value)

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public CommonLongRunningOperationMetadata.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time the operation was last modified.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommonLongRunningOperationMetadata.Builder