Class CreateCustomClassRequest.Builder

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

public static final class CreateCustomClassRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateCustomClassRequest.Builder> implements CreateCustomClassRequestOrBuilder
 Message sent by the client for the `CreateCustomClass` method.
 
Protobuf type google.cloud.speech.v1.CreateCustomClassRequest
  • 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<CreateCustomClassRequest.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<CreateCustomClassRequest.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<CreateCustomClassRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateCustomClassRequest.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<CreateCustomClassRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource where this custom class will be created.
       Format:
      
       `projects/{project}/locations/{location}/customClasses`
      
       Speech-to-Text supports three locations: `global`, `us` (US North America),
       and `eu` (Europe). If you are calling the `speech.googleapis.com`
       endpoint, use the `global` location. To specify a region, use a
       [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
       with matching `us` or `eu` location value.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateCustomClassRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this custom class will be created.
       Format:
      
       `projects/{project}/locations/{location}/customClasses`
      
       Speech-to-Text supports three locations: `global`, `us` (US North America),
       and `eu` (Europe). If you are calling the `speech.googleapis.com`
       endpoint, use the `global` location. To specify a region, use a
       [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
       with matching `us` or `eu` location value.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateCustomClassRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateCustomClassRequest.Builder setParent(String value)
       Required. The parent resource where this custom class will be created.
       Format:
      
       `projects/{project}/locations/{location}/customClasses`
      
       Speech-to-Text supports three locations: `global`, `us` (US North America),
       and `eu` (Europe). If you are calling the `speech.googleapis.com`
       endpoint, use the `global` location. To specify a region, use a
       [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
       with matching `us` or `eu` location value.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateCustomClassRequest.Builder clearParent()
       Required. The parent resource where this custom class will be created.
       Format:
      
       `projects/{project}/locations/{location}/customClasses`
      
       Speech-to-Text supports three locations: `global`, `us` (US North America),
       and `eu` (Europe). If you are calling the `speech.googleapis.com`
       endpoint, use the `global` location. To specify a region, use a
       [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
       with matching `us` or `eu` location value.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateCustomClassRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this custom class will be created.
       Format:
      
       `projects/{project}/locations/{location}/customClasses`
      
       Speech-to-Text supports three locations: `global`, `us` (US North America),
       and `eu` (Europe). If you are calling the `speech.googleapis.com`
       endpoint, use the `global` location. To specify a region, use a
       [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
       with matching `us` or `eu` location value.
       
      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.
    • getCustomClassId

      public String getCustomClassId()
       Required. The ID to use for the custom class, which will become the final
       component of the custom class' resource name.
      
       This value should restrict to letters, numbers, and hyphens, with the first
       character a letter, the last a letter or a number, and be 4-63 characters.
       
      string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomClassId in interface CreateCustomClassRequestOrBuilder
      Returns:
      The customClassId.
    • getCustomClassIdBytes

      public com.google.protobuf.ByteString getCustomClassIdBytes()
       Required. The ID to use for the custom class, which will become the final
       component of the custom class' resource name.
      
       This value should restrict to letters, numbers, and hyphens, with the first
       character a letter, the last a letter or a number, and be 4-63 characters.
       
      string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomClassIdBytes in interface CreateCustomClassRequestOrBuilder
      Returns:
      The bytes for customClassId.
    • setCustomClassId

      public CreateCustomClassRequest.Builder setCustomClassId(String value)
       Required. The ID to use for the custom class, which will become the final
       component of the custom class' resource name.
      
       This value should restrict to letters, numbers, and hyphens, with the first
       character a letter, the last a letter or a number, and be 4-63 characters.
       
      string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The customClassId to set.
      Returns:
      This builder for chaining.
    • clearCustomClassId

      public CreateCustomClassRequest.Builder clearCustomClassId()
       Required. The ID to use for the custom class, which will become the final
       component of the custom class' resource name.
      
       This value should restrict to letters, numbers, and hyphens, with the first
       character a letter, the last a letter or a number, and be 4-63 characters.
       
      string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setCustomClassIdBytes

      public CreateCustomClassRequest.Builder setCustomClassIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the custom class, which will become the final
       component of the custom class' resource name.
      
       This value should restrict to letters, numbers, and hyphens, with the first
       character a letter, the last a letter or a number, and be 4-63 characters.
       
      string custom_class_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for customClassId to set.
      Returns:
      This builder for chaining.
    • hasCustomClass

      public boolean hasCustomClass()
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCustomClass in interface CreateCustomClassRequestOrBuilder
      Returns:
      Whether the customClass field is set.
    • getCustomClass

      public CustomClass getCustomClass()
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomClass in interface CreateCustomClassRequestOrBuilder
      Returns:
      The customClass.
    • setCustomClass

      public CreateCustomClassRequest.Builder setCustomClass(CustomClass value)
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
    • setCustomClass

      public CreateCustomClassRequest.Builder setCustomClass(CustomClass.Builder builderForValue)
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeCustomClass

      public CreateCustomClassRequest.Builder mergeCustomClass(CustomClass value)
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearCustomClass

      public CreateCustomClassRequest.Builder clearCustomClass()
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCustomClassBuilder

      public CustomClass.Builder getCustomClassBuilder()
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
    • getCustomClassOrBuilder

      public CustomClassOrBuilder getCustomClassOrBuilder()
       Required. The custom class to create.
       
      .google.cloud.speech.v1.CustomClass custom_class = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCustomClassOrBuilder in interface CreateCustomClassRequestOrBuilder