Class AsyncModelMetadata.Builder (1.72.0)

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.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

publicAsyncModelMetadatabuild()
Returns
Type Description
AsyncModelMetadata

buildPartial()

publicAsyncModelMetadatabuildPartial()
Returns
Type Description
AsyncModelMetadata

clear()

publicAsyncModelMetadata.Builderclear()
Returns
Type Description
AsyncModelMetadata.Builder
Overrides

clearCreateTime()

publicAsyncModelMetadata.BuilderclearCreateTime()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
AsyncModelMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

publicAsyncModelMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AsyncModelMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

publicAsyncModelMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AsyncModelMetadata.Builder
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
AsyncModelMetadata.Builder

clone()

publicAsyncModelMetadata.Builderclone()
Returns
Type Description
AsyncModelMetadata.Builder
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
Builder

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

The creation time of the operation.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicAsyncModelMetadatagetDefaultInstanceForType()
Returns
Type Description
AsyncModelMetadata

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getState()

publicAsyncModelMetadata.StategetState()

The state of the current operation.

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

Returns
Type Description
AsyncModelMetadata.State

The state.

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
Builder

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

The last update time of the operation.

.google.protobuf.Timestamp update_time = 4;

Returns
Type Description
TimestampOrBuilder

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
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
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
AsyncModelMetadata.Builder

mergeFrom(AsyncModelMetadata other)

publicAsyncModelMetadata.BuildermergeFrom(AsyncModelMetadataother)
Parameter
Name Description
other AsyncModelMetadata
Returns
Type Description
AsyncModelMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicAsyncModelMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AsyncModelMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

publicfinalAsyncModelMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AsyncModelMetadata.Builder
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
AsyncModelMetadata.Builder

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
AsyncModelMetadata.Builder

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
AsyncModelMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

publicAsyncModelMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AsyncModelMetadata.Builder
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
AsyncModelMetadata.Builder
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
AsyncModelMetadata.Builder

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
AsyncModelMetadata.Builder

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.