Class AdaptiveMtSentence.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtSentence.Builder>
com.google.cloud.translate.v3.AdaptiveMtSentence.Builder
All Implemented Interfaces:
AdaptiveMtSentenceOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AdaptiveMtSentence

public static final class AdaptiveMtSentence.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtSentence.Builder> implements AdaptiveMtSentenceOrBuilder
 An AdaptiveMt sentence entry.
 
Protobuf type google.cloud.translation.v3.AdaptiveMtSentence
  • 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<AdaptiveMtSentence.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<AdaptiveMtSentence.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<AdaptiveMtSentence.Builder>
    • getDefaultInstanceForType

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

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

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

      public AdaptiveMtSentence.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<AdaptiveMtSentence.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<AdaptiveMtSentence.Builder>
    • mergeFrom

      public AdaptiveMtSentence.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<AdaptiveMtSentence.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The resource name of the file, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The resource name of the file, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AdaptiveMtSentence.Builder setName(String value)
       Required. The resource name of the file, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AdaptiveMtSentence.Builder clearName()
       Required. The resource name of the file, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public AdaptiveMtSentence.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the file, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}/adaptiveMtFiles/{file}/adaptiveMtSentences/{sentence}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSourceSentence

      public String getSourceSentence()
       Required. The source sentence.
       
      string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceSentence in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The sourceSentence.
    • getSourceSentenceBytes

      public com.google.protobuf.ByteString getSourceSentenceBytes()
       Required. The source sentence.
       
      string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSourceSentenceBytes in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The bytes for sourceSentence.
    • setSourceSentence

      public AdaptiveMtSentence.Builder setSourceSentence(String value)
       Required. The source sentence.
       
      string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sourceSentence to set.
      Returns:
      This builder for chaining.
    • clearSourceSentence

      public AdaptiveMtSentence.Builder clearSourceSentence()
       Required. The source sentence.
       
      string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSourceSentenceBytes

      public AdaptiveMtSentence.Builder setSourceSentenceBytes(com.google.protobuf.ByteString value)
       Required. The source sentence.
       
      string source_sentence = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sourceSentence to set.
      Returns:
      This builder for chaining.
    • getTargetSentence

      public String getTargetSentence()
       Required. The target sentence.
       
      string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetSentence in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The targetSentence.
    • getTargetSentenceBytes

      public com.google.protobuf.ByteString getTargetSentenceBytes()
       Required. The target sentence.
       
      string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTargetSentenceBytes in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The bytes for targetSentence.
    • setTargetSentence

      public AdaptiveMtSentence.Builder setTargetSentence(String value)
       Required. The target sentence.
       
      string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The targetSentence to set.
      Returns:
      This builder for chaining.
    • clearTargetSentence

      public AdaptiveMtSentence.Builder clearTargetSentence()
       Required. The target sentence.
       
      string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTargetSentenceBytes

      public AdaptiveMtSentence.Builder setTargetSentenceBytes(com.google.protobuf.ByteString value)
       Required. The target sentence.
       
      string target_sentence = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for targetSentence to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AdaptiveMtSentenceOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public AdaptiveMtSentence.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public AdaptiveMtSentence.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public AdaptiveMtSentence.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public AdaptiveMtSentence.Builder clearCreateTime()
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this sentence was created.
       
      .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AdaptiveMtSentenceOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AdaptiveMtSentenceOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AdaptiveMtSentenceOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AdaptiveMtSentence.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AdaptiveMtSentence.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AdaptiveMtSentence.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AdaptiveMtSentence.Builder clearUpdateTime()
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when this sentence was last updated.
       
      .google.protobuf.Timestamp update_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AdaptiveMtSentenceOrBuilder