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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateGlossaryMetadata.Builder>
    • getDefaultInstanceForType

      public CreateGlossaryMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateGlossaryMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateGlossaryMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateGlossaryMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateGlossaryMetadata.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateGlossaryMetadata.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the glossary that is being created.
       
      string name = 1;
      Specified by:
      getName in interface CreateGlossaryMetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the glossary that is being created.
       
      string name = 1;
      Specified by:
      getNameBytes in interface CreateGlossaryMetadataOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CreateGlossaryMetadata.Builder setName(String value)
       The name of the glossary that is being created.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CreateGlossaryMetadata.Builder clearName()
       The name of the glossary that is being created.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public CreateGlossaryMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
       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:
      getStateValue in interface CreateGlossaryMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public CreateGlossaryMetadata.Builder setStateValue(int value)
       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

      public CreateGlossaryMetadata.State getState()
       The current state of the glossary creation operation.
       
      .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2;
      Specified by:
      getState in interface CreateGlossaryMetadataOrBuilder
      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

      public CreateGlossaryMetadata.Builder 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:
      hasSubmitTime in interface CreateGlossaryMetadataOrBuilder
      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:
      getSubmitTime in interface CreateGlossaryMetadataOrBuilder
      Returns:
      The submitTime.
    • setSubmitTime

      public CreateGlossaryMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp value)
       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

      public CreateGlossaryMetadata.Builder mergeSubmitTime(com.google.protobuf.Timestamp value)
       The time when the operation was submitted to the server.
       
      .google.protobuf.Timestamp submit_time = 3;
    • clearSubmitTime

      public CreateGlossaryMetadata.Builder 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:
      getSubmitTimeOrBuilder in interface CreateGlossaryMetadataOrBuilder