Package com.google.cloud.optimization.v1
Class AsyncModelMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
- com.google.cloud.optimization.v1.AsyncModelMetadata.Builder
-
- All Implemented Interfaces:
AsyncModelMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AsyncModelMetadata
public static final class AsyncModelMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder> implements AsyncModelMetadataOrBuilder
The long running operation metadata for async model related methods.
Protobuf typegoogle.cloud.optimization.v1.AsyncModelMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncModelMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AsyncModelMetadatabuild()AsyncModelMetadatabuildPartial()AsyncModelMetadata.Builderclear()AsyncModelMetadata.BuilderclearCreateTime()The creation time of the operation.AsyncModelMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)AsyncModelMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)AsyncModelMetadata.BuilderclearState()The state of the current operation.AsyncModelMetadata.BuilderclearStateMessage()A message providing more details about the current state of the operation.AsyncModelMetadata.BuilderclearUpdateTime()The last update time of the operation.AsyncModelMetadata.Builderclone()com.google.protobuf.TimestampgetCreateTime()The creation time of the operation.com.google.protobuf.Timestamp.BuildergetCreateTimeBuilder()The creation time of the operation.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The creation time of the operation.AsyncModelMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()AsyncModelMetadata.StategetState()The state of the current operation.StringgetStateMessage()A message providing more details about the current state of the operation.com.google.protobuf.ByteStringgetStateMessageBytes()A message providing more details about the current state of the operation.intgetStateValue()The state of the current operation.com.google.protobuf.TimestampgetUpdateTime()The last update time of the operation.com.google.protobuf.Timestamp.BuildergetUpdateTimeBuilder()The last update time of the operation.com.google.protobuf.TimestampOrBuildergetUpdateTimeOrBuilder()The last update time of the operation.booleanhasCreateTime()The creation time of the operation.booleanhasUpdateTime()The last update time of the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()AsyncModelMetadata.BuildermergeCreateTime(com.google.protobuf.Timestamp value)The creation time of the operation.AsyncModelMetadata.BuildermergeFrom(AsyncModelMetadata other)AsyncModelMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)AsyncModelMetadata.BuildermergeFrom(com.google.protobuf.Message other)AsyncModelMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AsyncModelMetadata.BuildermergeUpdateTime(com.google.protobuf.Timestamp value)The last update time of the operation.AsyncModelMetadata.BuildersetCreateTime(com.google.protobuf.Timestamp value)The creation time of the operation.AsyncModelMetadata.BuildersetCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)The creation time of the operation.AsyncModelMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)AsyncModelMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)AsyncModelMetadata.BuildersetState(AsyncModelMetadata.State value)The state of the current operation.AsyncModelMetadata.BuildersetStateMessage(String value)A message providing more details about the current state of the operation.AsyncModelMetadata.BuildersetStateMessageBytes(com.google.protobuf.ByteString value)A message providing more details about the current state of the operation.AsyncModelMetadata.BuildersetStateValue(int value)The state of the current operation.AsyncModelMetadata.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)AsyncModelMetadata.BuildersetUpdateTime(com.google.protobuf.Timestamp value)The last update time of the operation.AsyncModelMetadata.BuildersetUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)The last update time of the operation.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
clear
public AsyncModelMetadata.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.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.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
getDefaultInstanceForType
public AsyncModelMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public AsyncModelMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public AsyncModelMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public AsyncModelMetadata.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
setField
public AsyncModelMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
clearField
public AsyncModelMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
clearOneof
public AsyncModelMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
setRepeatedField
public AsyncModelMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
addRepeatedField
public AsyncModelMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
mergeFrom
public AsyncModelMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AsyncModelMetadata.Builder>
-
mergeFrom
public AsyncModelMetadata.Builder mergeFrom(AsyncModelMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
mergeFrom
public AsyncModelMetadata.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<AsyncModelMetadata.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()
The state of the current operation.
.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;- Specified by:
getStateValuein interfaceAsyncModelMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public AsyncModelMetadata.Builder setStateValue(int value)
The state of the current operation.
.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public AsyncModelMetadata.State getState()
The state of the current operation.
.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;- Specified by:
getStatein interfaceAsyncModelMetadataOrBuilder- Returns:
- The state.
-
setState
public AsyncModelMetadata.Builder setState(AsyncModelMetadata.State value)
The state of the current operation.
.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
public AsyncModelMetadata.Builder clearState()
The state of the current operation.
.google.cloud.optimization.v1.AsyncModelMetadata.State state = 1;- Returns:
- This builder for chaining.
-
getStateMessage
public String getStateMessage()
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;- Specified by:
getStateMessagein interfaceAsyncModelMetadataOrBuilder- Returns:
- The stateMessage.
-
getStateMessageBytes
public com.google.protobuf.ByteString getStateMessageBytes()
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;- Specified by:
getStateMessageBytesin interfaceAsyncModelMetadataOrBuilder- Returns:
- The bytes for stateMessage.
-
setStateMessage
public AsyncModelMetadata.Builder setStateMessage(String value)
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;- Parameters:
value- The stateMessage to set.- Returns:
- This builder for chaining.
-
clearStateMessage
public AsyncModelMetadata.Builder clearStateMessage()
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:
- This builder for chaining.
-
setStateMessageBytes
public AsyncModelMetadata.Builder setStateMessageBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for stateMessage to set.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
hasCreateTimein interfaceAsyncModelMetadataOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimein interfaceAsyncModelMetadataOrBuilder- Returns:
- The createTime.
-
setCreateTime
public AsyncModelMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;
-
setCreateTime
public AsyncModelMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;
-
mergeCreateTime
public AsyncModelMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;
-
clearCreateTime
public AsyncModelMetadata.Builder clearCreateTime()
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
The creation time of the operation.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimeOrBuilderin interfaceAsyncModelMetadataOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
hasUpdateTimein interfaceAsyncModelMetadataOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimein interfaceAsyncModelMetadataOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
public AsyncModelMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp value)
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;
-
setUpdateTime
public AsyncModelMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;
-
mergeUpdateTime
public AsyncModelMetadata.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;
-
clearUpdateTime
public AsyncModelMetadata.Builder clearUpdateTime()
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
The last update time of the operation.
.google.protobuf.Timestamp update_time = 4;- Specified by:
getUpdateTimeOrBuilderin interfaceAsyncModelMetadataOrBuilder
-
setUnknownFields
public final AsyncModelMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
mergeUnknownFields
public final AsyncModelMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<AsyncModelMetadata.Builder>
-
-