Class AsyncModelMetadata.Builder (1.1.14)

publicstaticfinalclass AsyncModelMetadata.BuilderextendsGeneratedMessageV3.Builder<AsyncModelMetadata.Builder>implementsAsyncModelMetadataOrBuilder

The long running operation metadata for async model related methods.

Protobuf type google.cloud.optimization.v1.AsyncModelMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicAsyncModelMetadata.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

build()

publicAsyncModelMetadatabuild()
Returns
Type Description

buildPartial()

publicAsyncModelMetadatabuildPartial()
Returns
Type Description

clear()

publicAsyncModelMetadata.Builderclear()
Returns
Type Description
Overrides

clearCreateTime()

publicAsyncModelMetadata.BuilderclearCreateTime()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description

clearField(Descriptors.FieldDescriptor field)

publicAsyncModelMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
Returns
Type Description
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAsyncModelMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
Returns
Type Description
Overrides

clearState()

publicAsyncModelMetadata.BuilderclearState()

The state of the current operation.

.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

clearStateMessage()

publicAsyncModelMetadata.BuilderclearStateMessage()

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

string state_message = 2;

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

clearUpdateTime()

publicAsyncModelMetadata.BuilderclearUpdateTime()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description

clone()

publicAsyncModelMetadata.Builderclone()
Returns
Type Description
Overrides

getCreateTime()

publicTimestampgetCreateTime()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

publicTimestamp.BuildergetCreateTimeBuilder()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description

getDefaultInstanceForType()

publicAsyncModelMetadatagetDefaultInstanceForType()
Returns
Type Description

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Overrides

getState()

publicAsyncModelMetadata.StategetState()

The state of the current operation.

.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;

Returns
Type Description

getStateMessage()

publicStringgetStateMessage()

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

string state_message = 2;

Returns
Type Description
String

The stateMessage.

getStateMessageBytes()

publicByteStringgetStateMessageBytes()

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

string state_message = 2;

Returns
Type Description
ByteString

The bytes for stateMessage.

getStateValue()

publicintgetStateValue()

The state of the current operation.

.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

publicTimestampgetUpdateTime()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

publicTimestamp.BuildergetUpdateTimeBuilder()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description

hasCreateTime()

publicbooleanhasCreateTime()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
Overrides

mergeCreateTime(Timestamp value)

publicAsyncModelMetadata.BuildermergeCreateTime(Timestampvalue)

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description

mergeFrom(AsyncModelMetadata other)

publicAsyncModelMetadata.BuildermergeFrom(AsyncModelMetadataother)
Parameter
Name Description
Returns
Type Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAsyncModelMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Overrides Exceptions
Type Description

mergeFrom(Message other)

publicAsyncModelMetadata.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAsyncModelMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

mergeUpdateTime(Timestamp value)

publicAsyncModelMetadata.BuildermergeUpdateTime(Timestampvalue)

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description

setCreateTime(Timestamp value)

publicAsyncModelMetadata.BuildersetCreateTime(Timestampvalue)

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
value Timestamp
Returns
Type Description

setCreateTime(Timestamp.Builder builderForValue)

publicAsyncModelMetadata.BuildersetCreateTime(Timestamp.BuilderbuilderForValue)

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description

setField(Descriptors.FieldDescriptor field, Object value)

publicAsyncModelMetadata.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
value Object
Returns
Type Description
Overrides

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

publicAsyncModelMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
index int
value Object
Returns
Type Description
Overrides

setState(AsyncModelMetadata.State value)

publicAsyncModelMetadata.BuildersetState(AsyncModelMetadata.Statevalue)

The state of the current operation.

.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;

Parameter
Name Description
value AsyncModelMetadata.State

The state to set.

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

setStateMessage(String value)

publicAsyncModelMetadata.BuildersetStateMessage(Stringvalue)

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

string state_message = 2;

Parameter
Name Description
value String

The stateMessage to set.

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

setStateMessageBytes(ByteString value)

publicAsyncModelMetadata.BuildersetStateMessageBytes(ByteStringvalue)

A message providing more details about the current state of the operation. For example, the error message if the operation is failed.

string state_message = 2;

Parameter
Name Description
value ByteString

The bytes for stateMessage to set.

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

setStateValue(int value)

publicAsyncModelMetadata.BuildersetStateValue(intvalue)

The state of the current operation.

.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
AsyncModelMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

publicfinalAsyncModelMetadata.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Overrides

setUpdateTime(Timestamp value)

publicAsyncModelMetadata.BuildersetUpdateTime(Timestampvalue)

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description

setUpdateTime(Timestamp.Builder builderForValue)

publicAsyncModelMetadata.BuildersetUpdateTime(Timestamp.BuilderbuilderForValue)

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Parameter
Name Description
builderForValue Builder
Returns
Type Description

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.