Class AdaptiveMtDataset.Builder

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

public static final class AdaptiveMtDataset.Builder extends com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtDataset.Builder> implements AdaptiveMtDatasetOrBuilder
 An Adaptive MT Dataset.
 
Protobuf type google.cloud.translation.v3.AdaptiveMtDataset
  • 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<AdaptiveMtDataset.Builder>
    • clear

      public AdaptiveMtDataset.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<AdaptiveMtDataset.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<AdaptiveMtDataset.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public AdaptiveMtDataset.Builder mergeFrom(AdaptiveMtDataset other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<AdaptiveMtDataset.Builder>
    • mergeFrom

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

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

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

      public AdaptiveMtDataset.Builder setName(String value)
       Required. The resource name of the dataset, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
       
      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 AdaptiveMtDataset.Builder clearName()
       Required. The resource name of the dataset, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public AdaptiveMtDataset.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The resource name of the dataset, in form of
       `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset_id}`
       
      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.
    • getDisplayName

      public String getDisplayName()
       The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Specified by:
      getDisplayName in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Specified by:
      getDisplayNameBytes in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AdaptiveMtDataset.Builder setDisplayName(String value)
       The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public AdaptiveMtDataset.Builder clearDisplayName()
       The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AdaptiveMtDataset.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       The name of the dataset to show in the interface. The name can be
       up to 32 characters long and can consist only of ASCII Latin letters A-Z
       and a-z, underscores (_), and ASCII digits 0-9.
       
      string display_name = 2;
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getSourceLanguageCode

      public String getSourceLanguageCode()
       The BCP-47 language code of the source language.
       
      string source_language_code = 3;
      Specified by:
      getSourceLanguageCode in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The sourceLanguageCode.
    • getSourceLanguageCodeBytes

      public com.google.protobuf.ByteString getSourceLanguageCodeBytes()
       The BCP-47 language code of the source language.
       
      string source_language_code = 3;
      Specified by:
      getSourceLanguageCodeBytes in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The bytes for sourceLanguageCode.
    • setSourceLanguageCode

      public AdaptiveMtDataset.Builder setSourceLanguageCode(String value)
       The BCP-47 language code of the source language.
       
      string source_language_code = 3;
      Parameters:
      value - The sourceLanguageCode to set.
      Returns:
      This builder for chaining.
    • clearSourceLanguageCode

      public AdaptiveMtDataset.Builder clearSourceLanguageCode()
       The BCP-47 language code of the source language.
       
      string source_language_code = 3;
      Returns:
      This builder for chaining.
    • setSourceLanguageCodeBytes

      public AdaptiveMtDataset.Builder setSourceLanguageCodeBytes(com.google.protobuf.ByteString value)
       The BCP-47 language code of the source language.
       
      string source_language_code = 3;
      Parameters:
      value - The bytes for sourceLanguageCode to set.
      Returns:
      This builder for chaining.
    • getTargetLanguageCode

      public String getTargetLanguageCode()
       The BCP-47 language code of the target language.
       
      string target_language_code = 4;
      Specified by:
      getTargetLanguageCode in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The targetLanguageCode.
    • getTargetLanguageCodeBytes

      public com.google.protobuf.ByteString getTargetLanguageCodeBytes()
       The BCP-47 language code of the target language.
       
      string target_language_code = 4;
      Specified by:
      getTargetLanguageCodeBytes in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The bytes for targetLanguageCode.
    • setTargetLanguageCode

      public AdaptiveMtDataset.Builder setTargetLanguageCode(String value)
       The BCP-47 language code of the target language.
       
      string target_language_code = 4;
      Parameters:
      value - The targetLanguageCode to set.
      Returns:
      This builder for chaining.
    • clearTargetLanguageCode

      public AdaptiveMtDataset.Builder clearTargetLanguageCode()
       The BCP-47 language code of the target language.
       
      string target_language_code = 4;
      Returns:
      This builder for chaining.
    • setTargetLanguageCodeBytes

      public AdaptiveMtDataset.Builder setTargetLanguageCodeBytes(com.google.protobuf.ByteString value)
       The BCP-47 language code of the target language.
       
      string target_language_code = 4;
      Parameters:
      value - The bytes for targetLanguageCode to set.
      Returns:
      This builder for chaining.
    • getExampleCount

      public int getExampleCount()
       The number of examples in the dataset.
       
      int32 example_count = 5;
      Specified by:
      getExampleCount in interface AdaptiveMtDatasetOrBuilder
      Returns:
      The exampleCount.
    • setExampleCount

      public AdaptiveMtDataset.Builder setExampleCount(int value)
       The number of examples in the dataset.
       
      int32 example_count = 5;
      Parameters:
      value - The exampleCount to set.
      Returns:
      This builder for chaining.
    • clearExampleCount

      public AdaptiveMtDataset.Builder clearExampleCount()
       The number of examples in the dataset.
       
      int32 example_count = 5;
      Returns:
      This builder for chaining.
    • hasCreateTime

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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