Package com.google.cloud.translate.v3
Class ImportDataMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportDataMetadata.Builder>
com.google.cloud.translate.v3.ImportDataMetadata.Builder
- All Implemented Interfaces:
ImportDataMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ImportDataMetadata
public static final class ImportDataMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ImportDataMetadata.Builder>
implements ImportDataMetadataOrBuilder
Metadata of import data operation.Protobuf type
google.cloud.translation.v3.ImportDataMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The creation time of the operation.Only populated when operation doesn't succeed.The current state of the operation.The last update time of the operation.com.google.protobuf.TimestampThe creation time of the operation.com.google.protobuf.Timestamp.BuilderThe creation time of the operation.com.google.protobuf.TimestampOrBuilderThe creation time of the operation.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetError()Only populated when operation doesn't succeed.Only populated when operation doesn't succeed.Only populated when operation doesn't succeed.getState()The current state of the operation.intThe current state of the operation.com.google.protobuf.TimestampThe last update time of the operation.com.google.protobuf.Timestamp.BuilderThe last update time of the operation.com.google.protobuf.TimestampOrBuilderThe last update time of the operation.booleanThe creation time of the operation.booleanhasError()Only populated when operation doesn't succeed.booleanThe last update time of the operation.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The creation time of the operation.mergeError(Status value) Only populated when operation doesn't succeed.mergeFrom(ImportDataMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUpdateTime(com.google.protobuf.Timestamp value) The last update time of the operation.setCreateTime(com.google.protobuf.Timestamp value) The creation time of the operation.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation time of the operation.Only populated when operation doesn't succeed.setError(Status.Builder builderForValue) Only populated when operation doesn't succeed.setState(OperationState value) The current state of the operation.setStateValue(int value) The current state of the operation.setUpdateTime(com.google.protobuf.Timestamp value) The last update time of the operation.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The last update time of the operation.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ImportDataMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataMetadata.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.GeneratedMessage.Builder<ImportDataMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ImportDataMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ImportDataMetadata.Builder>
-
mergeFrom
public ImportDataMetadata.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<ImportDataMetadata.Builder>- Throws:
IOException
-
getStateValue
public int getStateValue()The current state of the operation.
.google.cloud.translation.v3.OperationState state = 1;- Specified by:
getStateValuein interfaceImportDataMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The current state of the operation.
.google.cloud.translation.v3.OperationState state = 1;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The current state of the operation.
.google.cloud.translation.v3.OperationState state = 1;- Specified by:
getStatein interfaceImportDataMetadataOrBuilder- Returns:
- The state.
-
setState
The current state of the operation.
.google.cloud.translation.v3.OperationState state = 1;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The current state of the operation.
.google.cloud.translation.v3.OperationState state = 1;- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The creation time of the operation.
.google.protobuf.Timestamp create_time = 2;- Specified by:
hasCreateTimein interfaceImportDataMetadataOrBuilder- 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 = 2;- Specified by:
getCreateTimein interfaceImportDataMetadataOrBuilder- Returns:
- The createTime.
-
setCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 2; -
setCreateTime
public ImportDataMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The creation time of the operation.
.google.protobuf.Timestamp create_time = 2; -
mergeCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 2; -
clearCreateTime
The creation time of the operation.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The creation time of the operation.
.google.protobuf.Timestamp create_time = 2; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The creation time of the operation.
.google.protobuf.Timestamp create_time = 2;- Specified by:
getCreateTimeOrBuilderin interfaceImportDataMetadataOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()The last update time of the operation.
.google.protobuf.Timestamp update_time = 3;- Specified by:
hasUpdateTimein interfaceImportDataMetadataOrBuilder- 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 = 3;- Specified by:
getUpdateTimein interfaceImportDataMetadataOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 3; -
setUpdateTime
public ImportDataMetadata.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) The last update time of the operation.
.google.protobuf.Timestamp update_time = 3; -
mergeUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 3; -
clearUpdateTime
The last update time of the operation.
.google.protobuf.Timestamp update_time = 3; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()The last update time of the operation.
.google.protobuf.Timestamp update_time = 3; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()The last update time of the operation.
.google.protobuf.Timestamp update_time = 3;- Specified by:
getUpdateTimeOrBuilderin interfaceImportDataMetadataOrBuilder
-
hasError
public boolean hasError()Only populated when operation doesn't succeed.
.google.rpc.Status error = 4;- Specified by:
hasErrorin interfaceImportDataMetadataOrBuilder- Returns:
- Whether the error field is set.
-
getError
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4;- Specified by:
getErrorin interfaceImportDataMetadataOrBuilder- Returns:
- The error.
-
setError
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4; -
setError
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4; -
mergeError
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4; -
clearError
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4; -
getErrorBuilder
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4; -
getErrorOrBuilder
Only populated when operation doesn't succeed.
.google.rpc.Status error = 4;- Specified by:
getErrorOrBuilderin interfaceImportDataMetadataOrBuilder
-