Class CreateRecognizerRequest.Builder

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

public static final class CreateRecognizerRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateRecognizerRequest.Builder> implements CreateRecognizerRequestOrBuilder
 Request message for the
 [CreateRecognizer][google.cloud.speech.v2.Speech.CreateRecognizer] method.
 
Protobuf type google.cloud.speech.v2.CreateRecognizerRequest
  • 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<CreateRecognizerRequest.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<CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateRecognizerRequest.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<CreateRecognizerRequest.Builder>
      Throws:
      IOException
    • hasRecognizer

      public boolean hasRecognizer()
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasRecognizer in interface CreateRecognizerRequestOrBuilder
      Returns:
      Whether the recognizer field is set.
    • getRecognizer

      public Recognizer getRecognizer()
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecognizer in interface CreateRecognizerRequestOrBuilder
      Returns:
      The recognizer.
    • setRecognizer

      public CreateRecognizerRequest.Builder setRecognizer(Recognizer value)
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
    • setRecognizer

      public CreateRecognizerRequest.Builder setRecognizer(Recognizer.Builder builderForValue)
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeRecognizer

      public CreateRecognizerRequest.Builder mergeRecognizer(Recognizer value)
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearRecognizer

      public CreateRecognizerRequest.Builder clearRecognizer()
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRecognizerBuilder

      public Recognizer.Builder getRecognizerBuilder()
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
    • getRecognizerOrBuilder

      public RecognizerOrBuilder getRecognizerOrBuilder()
       Required. The Recognizer to create.
       
      .google.cloud.speech.v2.Recognizer recognizer = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getRecognizerOrBuilder in interface CreateRecognizerRequestOrBuilder
    • getValidateOnly

      public boolean getValidateOnly()
       If set, validate the request and preview the Recognizer, but do not
       actually create it.
       
      bool validate_only = 2;
      Specified by:
      getValidateOnly in interface CreateRecognizerRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public CreateRecognizerRequest.Builder setValidateOnly(boolean value)
       If set, validate the request and preview the Recognizer, but do not
       actually create it.
       
      bool validate_only = 2;
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public CreateRecognizerRequest.Builder clearValidateOnly()
       If set, validate the request and preview the Recognizer, but do not
       actually create it.
       
      bool validate_only = 2;
      Returns:
      This builder for chaining.
    • getRecognizerId

      public String getRecognizerId()
       The ID to use for the Recognizer, which will become the final component of
       the Recognizer's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string recognizer_id = 3;
      Specified by:
      getRecognizerId in interface CreateRecognizerRequestOrBuilder
      Returns:
      The recognizerId.
    • getRecognizerIdBytes

      public com.google.protobuf.ByteString getRecognizerIdBytes()
       The ID to use for the Recognizer, which will become the final component of
       the Recognizer's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string recognizer_id = 3;
      Specified by:
      getRecognizerIdBytes in interface CreateRecognizerRequestOrBuilder
      Returns:
      The bytes for recognizerId.
    • setRecognizerId

      public CreateRecognizerRequest.Builder setRecognizerId(String value)
       The ID to use for the Recognizer, which will become the final component of
       the Recognizer's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string recognizer_id = 3;
      Parameters:
      value - The recognizerId to set.
      Returns:
      This builder for chaining.
    • clearRecognizerId

      public CreateRecognizerRequest.Builder clearRecognizerId()
       The ID to use for the Recognizer, which will become the final component of
       the Recognizer's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string recognizer_id = 3;
      Returns:
      This builder for chaining.
    • setRecognizerIdBytes

      public CreateRecognizerRequest.Builder setRecognizerIdBytes(com.google.protobuf.ByteString value)
       The ID to use for the Recognizer, which will become the final component of
       the Recognizer's resource name.
      
       This value should be 4-63 characters, and valid characters
       are /[a-z][0-9]-/.
       
      string recognizer_id = 3;
      Parameters:
      value - The bytes for recognizerId to set.
      Returns:
      This builder for chaining.
    • getParent

      public String getParent()
       Required. The project and location where this Recognizer will be created.
       The expected format is `projects/{project}/locations/{location}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateRecognizerRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project and location where this Recognizer will be created.
       The expected format is `projects/{project}/locations/{location}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateRecognizerRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateRecognizerRequest.Builder setParent(String value)
       Required. The project and location where this Recognizer will be created.
       The expected format is `projects/{project}/locations/{location}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateRecognizerRequest.Builder clearParent()
       Required. The project and location where this Recognizer will be created.
       The expected format is `projects/{project}/locations/{location}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateRecognizerRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location where this Recognizer will be created.
       The expected format is `projects/{project}/locations/{location}`.
       
      string parent = 4 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.