Package com.google.cloud.translate.v3
Class CreateGlossaryMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
com.google.cloud.translate.v3.CreateGlossaryMetadata.Builder
- All Implemented Interfaces:
CreateGlossaryMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CreateGlossaryMetadata
public static final class CreateGlossaryMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
implements CreateGlossaryMetadataOrBuilder
Stored in the [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] field returned by CreateGlossary.Protobuf type
google.cloud.translation.v3.CreateGlossaryMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The name of the glossary that is being created.The current state of the glossary creation operation.The time when the operation was submitted to the server.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()The name of the glossary that is being created.com.google.protobuf.ByteStringThe name of the glossary that is being created.getState()The current state of the glossary creation operation.intThe current state of the glossary creation operation.com.google.protobuf.TimestampThe time when the operation was submitted to the server.com.google.protobuf.Timestamp.BuilderThe time when the operation was submitted to the server.com.google.protobuf.TimestampOrBuilderThe time when the operation was submitted to the server.booleanThe time when the operation was submitted to the server.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CreateGlossaryMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeSubmitTime(com.google.protobuf.Timestamp value) The time when the operation was submitted to the server.The name of the glossary that is being created.setNameBytes(com.google.protobuf.ByteString value) The name of the glossary that is being created.The current state of the glossary creation operation.setStateValue(int value) The current state of the glossary creation operation.setSubmitTime(com.google.protobuf.Timestamp value) The time when the operation was submitted to the server.setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the operation was submitted to the server.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<CreateGlossaryMetadata.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<CreateGlossaryMetadata.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<CreateGlossaryMetadata.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<CreateGlossaryMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
-
mergeFrom
public CreateGlossaryMetadata.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<CreateGlossaryMetadata.Builder>- Throws:
IOException
-
getName
The name of the glossary that is being created.
string name = 1;- Specified by:
getNamein interfaceCreateGlossaryMetadataOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The name of the glossary that is being created.
string name = 1;- Specified by:
getNameBytesin interfaceCreateGlossaryMetadataOrBuilder- Returns:
- The bytes for name.
-
setName
The name of the glossary that is being created.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The name of the glossary that is being created.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The name of the glossary that is being created.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getStateValue
public int getStateValue()The current state of the glossary creation operation.
.google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;- Specified by:
getStateValuein interfaceCreateGlossaryMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The current state of the glossary creation operation.
.google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The current state of the glossary creation operation.
.google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;- Specified by:
getStatein interfaceCreateGlossaryMetadataOrBuilder- Returns:
- The state.
-
setState
The current state of the glossary creation operation.
.google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The current state of the glossary creation operation.
.google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;- Returns:
- This builder for chaining.
-
hasSubmitTime
public boolean hasSubmitTime()The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3;- Specified by:
hasSubmitTimein interfaceCreateGlossaryMetadataOrBuilder- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
public com.google.protobuf.Timestamp getSubmitTime()The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3;- Specified by:
getSubmitTimein interfaceCreateGlossaryMetadataOrBuilder- Returns:
- The submitTime.
-
setSubmitTime
The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3; -
setSubmitTime
public CreateGlossaryMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue) The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3; -
mergeSubmitTime
The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3; -
clearSubmitTime
The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3; -
getSubmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3; -
getSubmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()The time when the operation was submitted to the server.
.google.protobuf.Timestamp submit_time = 3;- Specified by:
getSubmitTimeOrBuilderin interfaceCreateGlossaryMetadataOrBuilder
-