Class LongRunningRecognizeRequest.Builder

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

public static final class LongRunningRecognizeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<LongRunningRecognizeRequest.Builder> implements LongRunningRecognizeRequestOrBuilder
 The top-level message sent by the client for the `LongRunningRecognize`
 method.
 
Protobuf type google.cloud.speech.v1.LongRunningRecognizeRequest
  • 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<LongRunningRecognizeRequest.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<LongRunningRecognizeRequest.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<LongRunningRecognizeRequest.Builder>
    • getDefaultInstanceForType

      public LongRunningRecognizeRequest 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 LongRunningRecognizeRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public LongRunningRecognizeRequest.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<LongRunningRecognizeRequest.Builder>
      Throws:
      IOException
    • hasConfig

      public boolean hasConfig()
       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConfig in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      Whether the config field is set.
    • getConfig

      public RecognitionConfig getConfig()
       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfig in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      The config.
    • setConfig

       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • setConfig

       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeConfig

       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearConfig

       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • getConfigBuilder

      public RecognitionConfig.Builder getConfigBuilder()
       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
    • getConfigOrBuilder

      public RecognitionConfigOrBuilder getConfigOrBuilder()
       Required. Provides information to the recognizer that specifies how to
       process the request.
       
      .google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConfigOrBuilder in interface LongRunningRecognizeRequestOrBuilder
    • hasAudio

      public boolean hasAudio()
       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasAudio in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      Whether the audio field is set.
    • getAudio

      public RecognitionAudio getAudio()
       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudio in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      The audio.
    • setAudio

       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
    • setAudio

       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeAudio

       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearAudio

       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAudioBuilder

      public RecognitionAudio.Builder getAudioBuilder()
       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
    • getAudioOrBuilder

      public RecognitionAudioOrBuilder getAudioOrBuilder()
       Required. The audio data to be recognized.
       
      .google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAudioOrBuilder in interface LongRunningRecognizeRequestOrBuilder
    • hasOutputConfig

      public boolean hasOutputConfig()
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasOutputConfig in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      Whether the outputConfig field is set.
    • getOutputConfig

      public TranscriptOutputConfig getOutputConfig()
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputConfig in interface LongRunningRecognizeRequestOrBuilder
      Returns:
      The outputConfig.
    • setOutputConfig

       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setOutputConfig

      public LongRunningRecognizeRequest.Builder setOutputConfig(TranscriptOutputConfig.Builder builderForValue)
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeOutputConfig

       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearOutputConfig

      public LongRunningRecognizeRequest.Builder clearOutputConfig()
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getOutputConfigBuilder

      public TranscriptOutputConfig.Builder getOutputConfigBuilder()
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getOutputConfigOrBuilder

      public TranscriptOutputConfigOrBuilder getOutputConfigOrBuilder()
       Optional. Specifies an optional destination for the recognition results.
       
      .google.cloud.speech.v1.TranscriptOutputConfig output_config = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getOutputConfigOrBuilder in interface LongRunningRecognizeRequestOrBuilder