Class ImportAdaptiveMtFileRequest.Builder

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

public static final class ImportAdaptiveMtFileRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportAdaptiveMtFileRequest.Builder> implements ImportAdaptiveMtFileRequestOrBuilder
 The request for importing an AdaptiveMt file along with its sentences.
 
Protobuf type google.cloud.translation.v3.ImportAdaptiveMtFileRequest
  • 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<ImportAdaptiveMtFileRequest.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<ImportAdaptiveMtFileRequest.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<ImportAdaptiveMtFileRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public ImportAdaptiveMtFileRequest.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<ImportAdaptiveMtFileRequest.Builder>
      Throws:
      IOException
    • getSourceCase

      Specified by:
      getSourceCase in interface ImportAdaptiveMtFileRequestOrBuilder
    • clearSource

    • getParent

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

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

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

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

      public ImportAdaptiveMtFileRequest.Builder setParentBytes(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}`
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasFileInputSource

      public boolean hasFileInputSource()
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
      Specified by:
      hasFileInputSource in interface ImportAdaptiveMtFileRequestOrBuilder
      Returns:
      Whether the fileInputSource field is set.
    • getFileInputSource

      public FileInputSource getFileInputSource()
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
      Specified by:
      getFileInputSource in interface ImportAdaptiveMtFileRequestOrBuilder
      Returns:
      The fileInputSource.
    • setFileInputSource

      public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource value)
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
    • setFileInputSource

      public ImportAdaptiveMtFileRequest.Builder setFileInputSource(FileInputSource.Builder builderForValue)
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
    • mergeFileInputSource

      public ImportAdaptiveMtFileRequest.Builder mergeFileInputSource(FileInputSource value)
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
    • clearFileInputSource

      public ImportAdaptiveMtFileRequest.Builder clearFileInputSource()
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
    • getFileInputSourceBuilder

      public FileInputSource.Builder getFileInputSourceBuilder()
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
    • getFileInputSourceOrBuilder

      public FileInputSourceOrBuilder getFileInputSourceOrBuilder()
       Inline file source.
       
      .google.cloud.translation.v3.FileInputSource file_input_source = 2;
      Specified by:
      getFileInputSourceOrBuilder in interface ImportAdaptiveMtFileRequestOrBuilder
    • hasGcsInputSource

      public boolean hasGcsInputSource()
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
      Specified by:
      hasGcsInputSource in interface ImportAdaptiveMtFileRequestOrBuilder
      Returns:
      Whether the gcsInputSource field is set.
    • getGcsInputSource

      public GcsInputSource getGcsInputSource()
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
      Specified by:
      getGcsInputSource in interface ImportAdaptiveMtFileRequestOrBuilder
      Returns:
      The gcsInputSource.
    • setGcsInputSource

      public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource value)
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
    • setGcsInputSource

      public ImportAdaptiveMtFileRequest.Builder setGcsInputSource(GcsInputSource.Builder builderForValue)
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
    • mergeGcsInputSource

      public ImportAdaptiveMtFileRequest.Builder mergeGcsInputSource(GcsInputSource value)
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
    • clearGcsInputSource

      public ImportAdaptiveMtFileRequest.Builder clearGcsInputSource()
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
    • getGcsInputSourceBuilder

      public GcsInputSource.Builder getGcsInputSourceBuilder()
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
    • getGcsInputSourceOrBuilder

      public GcsInputSourceOrBuilder getGcsInputSourceOrBuilder()
       Google Cloud Storage file source.
       
      .google.cloud.translation.v3.GcsInputSource gcs_input_source = 3;
      Specified by:
      getGcsInputSourceOrBuilder in interface ImportAdaptiveMtFileRequestOrBuilder