Class UpdatePhraseSetRequest.Builder

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

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

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

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

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

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

      public UpdatePhraseSetRequest.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<UpdatePhraseSetRequest.Builder>
      Throws:
      IOException
    • hasPhraseSet

      public boolean hasPhraseSet()
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPhraseSet in interface UpdatePhraseSetRequestOrBuilder
      Returns:
      Whether the phraseSet field is set.
    • getPhraseSet

      public PhraseSet getPhraseSet()
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSet in interface UpdatePhraseSetRequestOrBuilder
      Returns:
      The phraseSet.
    • setPhraseSet

      public UpdatePhraseSetRequest.Builder setPhraseSet(PhraseSet value)
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
    • setPhraseSet

      public UpdatePhraseSetRequest.Builder setPhraseSet(PhraseSet.Builder builderForValue)
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergePhraseSet

      public UpdatePhraseSetRequest.Builder mergePhraseSet(PhraseSet value)
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearPhraseSet

      public UpdatePhraseSetRequest.Builder clearPhraseSet()
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseSetBuilder

      public PhraseSet.Builder getPhraseSetBuilder()
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
    • getPhraseSetOrBuilder

      public PhraseSetOrBuilder getPhraseSetOrBuilder()
       Required. The PhraseSet to update.
      
       The PhraseSet's `name` field is used to identify the PhraseSet to update.
       Format: `projects/{project}/locations/{location}/phraseSets/{phrase_set}`.
       
      .google.cloud.speech.v2.PhraseSet phrase_set = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhraseSetOrBuilder in interface UpdatePhraseSetRequestOrBuilder
    • hasUpdateMask

      public boolean hasUpdateMask()
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      hasUpdateMask in interface UpdatePhraseSetRequestOrBuilder
      Returns:
      Whether the updateMask field is set.
    • getUpdateMask

      public com.google.protobuf.FieldMask getUpdateMask()
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMask in interface UpdatePhraseSetRequestOrBuilder
      Returns:
      The updateMask.
    • setUpdateMask

      public UpdatePhraseSetRequest.Builder setUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
    • setUpdateMask

      public UpdatePhraseSetRequest.Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue)
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
    • mergeUpdateMask

      public UpdatePhraseSetRequest.Builder mergeUpdateMask(com.google.protobuf.FieldMask value)
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
    • clearUpdateMask

      public UpdatePhraseSetRequest.Builder clearUpdateMask()
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskBuilder

      public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder()
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
    • getUpdateMaskOrBuilder

      public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder()
       The list of fields to update. If empty, all non-default valued fields are
       considered for update. Use `*` to update the entire PhraseSet resource.
       
      .google.protobuf.FieldMask update_mask = 2;
      Specified by:
      getUpdateMaskOrBuilder in interface UpdatePhraseSetRequestOrBuilder
    • getValidateOnly

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

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

      public UpdatePhraseSetRequest.Builder clearValidateOnly()
       If set, validate the request and preview the updated PhraseSet, but do not
       actually update it.
       
      bool validate_only = 4;
      Returns:
      This builder for chaining.