Class CustomClass.Builder

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

public static final class CustomClass.Builder extends com.google.protobuf.GeneratedMessage.Builder<CustomClass.Builder> implements CustomClassOrBuilder
 A set of words or phrases that represents a common concept likely to appear
 in your audio, for example a list of passenger ship names. CustomClass items
 can be substituted into placeholders that you set in PhraseSet phrases.
 
Protobuf type google.cloud.speech.v1.CustomClass
  • 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<CustomClass.Builder>
    • clear

      public CustomClass.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<CustomClass.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<CustomClass.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CustomClass.Builder mergeFrom(CustomClass other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CustomClass.Builder>
    • mergeFrom

      public CustomClass.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<CustomClass.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The resource name of the custom class.
       
      string name = 1;
      Specified by:
      getName in interface CustomClassOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The resource name of the custom class.
       
      string name = 1;
      Specified by:
      getNameBytes in interface CustomClassOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CustomClass.Builder setName(String value)
       The resource name of the custom class.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CustomClass.Builder clearName()
       The resource name of the custom class.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public CustomClass.Builder setNameBytes(com.google.protobuf.ByteString value)
       The resource name of the custom class.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getCustomClassId

      public String getCustomClassId()
       If this custom class is a resource, the custom_class_id is the resource id
       of the CustomClass. Case sensitive.
       
      string custom_class_id = 2;
      Specified by:
      getCustomClassId in interface CustomClassOrBuilder
      Returns:
      The customClassId.
    • getCustomClassIdBytes

      public com.google.protobuf.ByteString getCustomClassIdBytes()
       If this custom class is a resource, the custom_class_id is the resource id
       of the CustomClass. Case sensitive.
       
      string custom_class_id = 2;
      Specified by:
      getCustomClassIdBytes in interface CustomClassOrBuilder
      Returns:
      The bytes for customClassId.
    • setCustomClassId

      public CustomClass.Builder setCustomClassId(String value)
       If this custom class is a resource, the custom_class_id is the resource id
       of the CustomClass. Case sensitive.
       
      string custom_class_id = 2;
      Parameters:
      value - The customClassId to set.
      Returns:
      This builder for chaining.
    • clearCustomClassId

      public CustomClass.Builder clearCustomClassId()
       If this custom class is a resource, the custom_class_id is the resource id
       of the CustomClass. Case sensitive.
       
      string custom_class_id = 2;
      Returns:
      This builder for chaining.
    • setCustomClassIdBytes

      public CustomClass.Builder setCustomClassIdBytes(com.google.protobuf.ByteString value)
       If this custom class is a resource, the custom_class_id is the resource id
       of the CustomClass. Case sensitive.
       
      string custom_class_id = 2;
      Parameters:
      value - The bytes for customClassId to set.
      Returns:
      This builder for chaining.
    • getItemsList

      public List<CustomClass.ClassItem> getItemsList()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
      Specified by:
      getItemsList in interface CustomClassOrBuilder
    • getItemsCount

      public int getItemsCount()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
      Specified by:
      getItemsCount in interface CustomClassOrBuilder
    • getItems

      public CustomClass.ClassItem getItems(int index)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
      Specified by:
      getItems in interface CustomClassOrBuilder
    • setItems

      public CustomClass.Builder setItems(int index, CustomClass.ClassItem value)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • setItems

      public CustomClass.Builder setItems(int index, CustomClass.ClassItem.Builder builderForValue)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addItems

      public CustomClass.Builder addItems(CustomClass.ClassItem value)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addItems

      public CustomClass.Builder addItems(int index, CustomClass.ClassItem value)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addItems

      public CustomClass.Builder addItems(CustomClass.ClassItem.Builder builderForValue)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addItems

      public CustomClass.Builder addItems(int index, CustomClass.ClassItem.Builder builderForValue)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addAllItems

      public CustomClass.Builder addAllItems(Iterable<? extends CustomClass.ClassItem> values)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • clearItems

      public CustomClass.Builder clearItems()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • removeItems

      public CustomClass.Builder removeItems(int index)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • getItemsBuilder

      public CustomClass.ClassItem.Builder getItemsBuilder(int index)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • getItemsOrBuilder

      public CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
      Specified by:
      getItemsOrBuilder in interface CustomClassOrBuilder
    • getItemsOrBuilderList

      public List<? extends CustomClass.ClassItemOrBuilder> getItemsOrBuilderList()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
      Specified by:
      getItemsOrBuilderList in interface CustomClassOrBuilder
    • addItemsBuilder

      public CustomClass.ClassItem.Builder addItemsBuilder()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • addItemsBuilder

      public CustomClass.ClassItem.Builder addItemsBuilder(int index)
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
    • getItemsBuilderList

      public List<CustomClass.ClassItem.Builder> getItemsBuilderList()
       A collection of class items.
       
      repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;