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.v2.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
 Request message for the
 [CreatePhraseSet][google.cloud.speech.v2.Speech.CreatePhraseSet] method.
 
Protobuf type google.cloud.speech.v2.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
    • hasPhraseSet

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

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

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

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

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

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

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

      public PhraseSetOrBuilder getPhraseSetOrBuilder()
       Required. The PhraseSet to create.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSetOrBuilder in interface CreatePhraseSetRequestOrBuilder
    • getValidateOnly

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

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

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

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

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

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

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

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

      public String getParent()
       Required. The project and location where this PhraseSet 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 CreatePhraseSetRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The project and location where this PhraseSet 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 CreatePhraseSetRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreatePhraseSetRequest.Builder setParent(String value)
       Required. The project and location where this PhraseSet 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 CreatePhraseSetRequest.Builder clearParent()
       Required. The project and location where this PhraseSet 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 CreatePhraseSetRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The project and location where this PhraseSet 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.