public static final class CustomClass.Builder extends GeneratedMessageV3.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
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllItems(Iterable<? extends CustomClass.ClassItem> values)
public CustomClass.Builder addAllItems(Iterable<? extends CustomClass.ClassItem> values)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1.CustomClass.ClassItem>
|
Returns
addItems(CustomClass.ClassItem value)
public CustomClass.Builder addItems(CustomClass.ClassItem value)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
addItems(CustomClass.ClassItem.Builder builderForValue)
public CustomClass.Builder addItems(CustomClass.ClassItem.Builder builderForValue)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
addItems(int index, CustomClass.ClassItem value)
public CustomClass.Builder addItems(int index, CustomClass.ClassItem value)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameters
Returns
addItems(int index, CustomClass.ClassItem.Builder builderForValue)
public CustomClass.Builder addItems(int index, CustomClass.ClassItem.Builder builderForValue)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameters
Returns
addItemsBuilder()
public CustomClass.ClassItem.Builder addItemsBuilder()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
addItemsBuilder(int index)
public CustomClass.ClassItem.Builder addItemsBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CustomClass build()
Returns
buildPartial()
public CustomClass buildPartial()
Returns
clear()
public CustomClass.Builder clear()
Returns
Overrides
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
clearField(Descriptors.FieldDescriptor field)
public CustomClass.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearItems()
public CustomClass.Builder clearItems()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
clearName()
public CustomClass.Builder clearName()
The resource name of the custom class.
string name = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomClass.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public CustomClass.Builder clone()
Returns
Overrides
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;
Returns
Type | Description |
String | The customClassId.
|
getCustomClassIdBytes()
public 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;
Returns
Type | Description |
ByteString | The bytes for customClassId.
|
getDefaultInstanceForType()
public CustomClass getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getItems(int index)
public CustomClass.ClassItem getItems(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
getItemsBuilder(int index)
public CustomClass.ClassItem.Builder getItemsBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
getItemsBuilderList()
public List<CustomClass.ClassItem.Builder> getItemsBuilderList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
getItemsCount()
public int getItemsCount()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
getItemsList()
public List<CustomClass.ClassItem> getItemsList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
getItemsOrBuilder(int index)
public CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
getItemsOrBuilderList()
public List<? extends CustomClass.ClassItemOrBuilder> getItemsOrBuilderList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Returns
Type | Description |
List<? extends com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> | |
getName()
The resource name of the custom class.
string name = 1;
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
The resource name of the custom class.
string name = 1;
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CustomClass other)
public CustomClass.Builder mergeFrom(CustomClass other)
Parameter
Returns
public CustomClass.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CustomClass.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeItems(int index)
public CustomClass.Builder removeItems(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameter
Returns
setCustomClassId(String value)
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;
Parameter
Name | Description |
value | String
The customClassId to set.
|
Returns
setCustomClassIdBytes(ByteString value)
public CustomClass.Builder setCustomClassIdBytes(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;
Parameter
Name | Description |
value | ByteString
The bytes for customClassId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setItems(int index, CustomClass.ClassItem value)
public CustomClass.Builder setItems(int index, CustomClass.ClassItem value)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameters
Returns
setItems(int index, CustomClass.ClassItem.Builder builderForValue)
public CustomClass.Builder setItems(int index, CustomClass.ClassItem.Builder builderForValue)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Parameters
Returns
setName(String value)
public CustomClass.Builder setName(String value)
The resource name of the custom class.
string name = 1;
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public CustomClass.Builder setNameBytes(ByteString value)
The resource name of the custom class.
string name = 1;
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomClass.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides