Class RecognitionOutputConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RecognitionOutputConfig.Builder>
com.google.cloud.speech.v2.RecognitionOutputConfig.Builder
All Implemented Interfaces:
RecognitionOutputConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RecognitionOutputConfig

public static final class RecognitionOutputConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<RecognitionOutputConfig.Builder> implements RecognitionOutputConfigOrBuilder
 Configuration options for the output(s) of recognition.
 
Protobuf type google.cloud.speech.v2.RecognitionOutputConfig
  • 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<RecognitionOutputConfig.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<RecognitionOutputConfig.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<RecognitionOutputConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public RecognitionOutputConfig.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<RecognitionOutputConfig.Builder>
      Throws:
      IOException
    • getOutputCase

      public RecognitionOutputConfig.OutputCase getOutputCase()
      Specified by:
      getOutputCase in interface RecognitionOutputConfigOrBuilder
    • clearOutput

      public RecognitionOutputConfig.Builder clearOutput()
    • hasGcsOutputConfig

      public boolean hasGcsOutputConfig()
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
      Specified by:
      hasGcsOutputConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      Whether the gcsOutputConfig field is set.
    • getGcsOutputConfig

      public GcsOutputConfig getGcsOutputConfig()
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
      Specified by:
      getGcsOutputConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      The gcsOutputConfig.
    • setGcsOutputConfig

      public RecognitionOutputConfig.Builder setGcsOutputConfig(GcsOutputConfig value)
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
    • setGcsOutputConfig

      public RecognitionOutputConfig.Builder setGcsOutputConfig(GcsOutputConfig.Builder builderForValue)
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
    • mergeGcsOutputConfig

      public RecognitionOutputConfig.Builder mergeGcsOutputConfig(GcsOutputConfig value)
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
    • clearGcsOutputConfig

      public RecognitionOutputConfig.Builder clearGcsOutputConfig()
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
    • getGcsOutputConfigBuilder

      public GcsOutputConfig.Builder getGcsOutputConfigBuilder()
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
    • getGcsOutputConfigOrBuilder

      public GcsOutputConfigOrBuilder getGcsOutputConfigOrBuilder()
       If this message is populated, recognition results are written to the
       provided Google Cloud Storage URI.
       
      .google.cloud.speech.v2.GcsOutputConfig gcs_output_config = 1;
      Specified by:
      getGcsOutputConfigOrBuilder in interface RecognitionOutputConfigOrBuilder
    • hasInlineResponseConfig

      public boolean hasInlineResponseConfig()
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
      Specified by:
      hasInlineResponseConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      Whether the inlineResponseConfig field is set.
    • getInlineResponseConfig

      public InlineOutputConfig getInlineResponseConfig()
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
      Specified by:
      getInlineResponseConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      The inlineResponseConfig.
    • setInlineResponseConfig

      public RecognitionOutputConfig.Builder setInlineResponseConfig(InlineOutputConfig value)
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
    • setInlineResponseConfig

      public RecognitionOutputConfig.Builder setInlineResponseConfig(InlineOutputConfig.Builder builderForValue)
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
    • mergeInlineResponseConfig

      public RecognitionOutputConfig.Builder mergeInlineResponseConfig(InlineOutputConfig value)
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
    • clearInlineResponseConfig

      public RecognitionOutputConfig.Builder clearInlineResponseConfig()
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
    • getInlineResponseConfigBuilder

      public InlineOutputConfig.Builder getInlineResponseConfigBuilder()
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
    • getInlineResponseConfigOrBuilder

      public InlineOutputConfigOrBuilder getInlineResponseConfigOrBuilder()
       If this message is populated, recognition results are provided in the
       [BatchRecognizeResponse][google.cloud.speech.v2.BatchRecognizeResponse]
       message of the Operation when completed. This is only supported when
       calling [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize]
       with just one audio file.
       
      .google.cloud.speech.v2.InlineOutputConfig inline_response_config = 2;
      Specified by:
      getInlineResponseConfigOrBuilder in interface RecognitionOutputConfigOrBuilder
    • hasOutputFormatConfig

      public boolean hasOutputFormatConfig()
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOutputFormatConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      Whether the outputFormatConfig field is set.
    • getOutputFormatConfig

      public OutputFormatConfig getOutputFormatConfig()
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFormatConfig in interface RecognitionOutputConfigOrBuilder
      Returns:
      The outputFormatConfig.
    • setOutputFormatConfig

      public RecognitionOutputConfig.Builder setOutputFormatConfig(OutputFormatConfig value)
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • setOutputFormatConfig

      public RecognitionOutputConfig.Builder setOutputFormatConfig(OutputFormatConfig.Builder builderForValue)
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOutputFormatConfig

      public RecognitionOutputConfig.Builder mergeOutputFormatConfig(OutputFormatConfig value)
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • clearOutputFormatConfig

      public RecognitionOutputConfig.Builder clearOutputFormatConfig()
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getOutputFormatConfigBuilder

      public OutputFormatConfig.Builder getOutputFormatConfigBuilder()
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getOutputFormatConfigOrBuilder

      public OutputFormatConfigOrBuilder getOutputFormatConfigOrBuilder()
       Optional. Configuration for the format of the results stored to `output`.
       If unspecified transcripts will be written in the `NATIVE` format only.
       
      .google.cloud.speech.v2.OutputFormatConfig output_format_config = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputFormatConfigOrBuilder in interface RecognitionOutputConfigOrBuilder