Class CreatePhraseSetRequest.Builder

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

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

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

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

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

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

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

      public String getParent()
       Required. The parent resource where this phrase set will be created.
       Format:
      
       `projects/{project}/locations/{location}`
      
       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 CreatePhraseSetRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource where this phrase set will be created.
       Format:
      
       `projects/{project}/locations/{location}`
      
       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 CreatePhraseSetRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreatePhraseSetRequest.Builder setParent(String value)
       Required. The parent resource where this phrase set will be created.
       Format:
      
       `projects/{project}/locations/{location}`
      
       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 CreatePhraseSetRequest.Builder clearParent()
       Required. The parent resource where this phrase set will be created.
       Format:
      
       `projects/{project}/locations/{location}`
      
       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 CreatePhraseSetRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource where this phrase set will be created.
       Format:
      
       `projects/{project}/locations/{location}`
      
       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.
    • getPhraseSetId

      public String getPhraseSetId()
       Required. The ID to use for the phrase set, which will become the final
       component of the phrase set's 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 phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSetId in interface CreatePhraseSetRequestOrBuilder
      Returns:
      The phraseSetId.
    • getPhraseSetIdBytes

      public com.google.protobuf.ByteString getPhraseSetIdBytes()
       Required. The ID to use for the phrase set, which will become the final
       component of the phrase set's 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 phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSetIdBytes in interface CreatePhraseSetRequestOrBuilder
      Returns:
      The bytes for phraseSetId.
    • setPhraseSetId

      public CreatePhraseSetRequest.Builder setPhraseSetId(String value)
       Required. The ID to use for the phrase set, which will become the final
       component of the phrase set's 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 phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The phraseSetId to set.
      Returns:
      This builder for chaining.
    • clearPhraseSetId

      public CreatePhraseSetRequest.Builder clearPhraseSetId()
       Required. The ID to use for the phrase set, which will become the final
       component of the phrase set's 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 phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setPhraseSetIdBytes

      public CreatePhraseSetRequest.Builder setPhraseSetIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the phrase set, which will become the final
       component of the phrase set's 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 phrase_set_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for phraseSetId to set.
      Returns:
      This builder for chaining.
    • hasPhraseSet

      public boolean hasPhraseSet()
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPhraseSet in interface CreatePhraseSetRequestOrBuilder
      Returns:
      Whether the phraseSet field is set.
    • getPhraseSet

      public PhraseSet getPhraseSet()
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSet in interface CreatePhraseSetRequestOrBuilder
      Returns:
      The phraseSet.
    • setPhraseSet

      public CreatePhraseSetRequest.Builder setPhraseSet(PhraseSet value)
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
    • setPhraseSet

      public CreatePhraseSetRequest.Builder setPhraseSet(PhraseSet.Builder builderForValue)
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergePhraseSet

      public CreatePhraseSetRequest.Builder mergePhraseSet(PhraseSet value)
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearPhraseSet

      public CreatePhraseSetRequest.Builder clearPhraseSet()
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseSetBuilder

      public PhraseSet.Builder getPhraseSetBuilder()
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseSetOrBuilder

      public PhraseSetOrBuilder getPhraseSetOrBuilder()
       Required. The phrase set to create.
       
      .google.cloud.speech.v1.PhraseSet phrase_set = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSetOrBuilder in interface CreatePhraseSetRequestOrBuilder