Class CommonLongRunningOperationMetadata.Builder (2.39.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommonLongRunningOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommonLongRunningOperationMetadata.Builder
Overrides

build()

public CommonLongRunningOperationMetadata build()
Returns
Type Description
CommonLongRunningOperationMetadata

buildPartial()

public CommonLongRunningOperationMetadata buildPartial()
Returns
Type Description
CommonLongRunningOperationMetadata

clear()

public CommonLongRunningOperationMetadata.Builder clear()
Returns
Type Description
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
Type Description
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
Type Description
CommonLongRunningOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public CommonLongRunningOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommonLongRunningOperationMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonLongRunningOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
CommonLongRunningOperationMetadata.Builder

clone()

public CommonLongRunningOperationMetadata.Builder clone()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public CommonLongRunningOperationMetadata getDefaultInstanceForType()
Returns
Type Description
CommonLongRunningOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

The requestedCancellation.

getType()

public String getType()

Output only. The type of operation invoked.

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

Returns
Type Description
String

The type.

getTypeBytes()

public ByteString getTypeBytes()

Output only. The type of operation invoked.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
CommonLongRunningOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommonLongRunningOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommonLongRunningOperationMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CommonLongRunningOperationMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CommonLongRunningOperationMetadata.Builder
Overrides

mergeFrom(CommonLongRunningOperationMetadata other)

public CommonLongRunningOperationMetadata.Builder mergeFrom(CommonLongRunningOperationMetadata other)
Parameter
Name Description
other CommonLongRunningOperationMetadata
Returns
Type Description
CommonLongRunningOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommonLongRunningOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CommonLongRunningOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommonLongRunningOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value int

The progressPercent to set.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
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
Name Description
value boolean

The requestedCancellation to set.

Returns
Type Description
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
Name Description
value String

The type to set.

Returns
Type Description
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
Name Description
value ByteString

The bytes for type to set.

Returns
Type Description
CommonLongRunningOperationMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CommonLongRunningOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
CommonLongRunningOperationMetadata.Builder