- 4.51.0 (latest)
- 4.50.0
- 4.49.0
- 4.48.0
- 4.47.0
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CustomClass.BuilderImplements
CustomClassOrBuilderInherited Members
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
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;
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v1.CustomClass.ClassItem> |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
value | CustomClass.ClassItem |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
builderForValue | CustomClass.ClassItem.Builder |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
index | int |
value | CustomClass.ClassItem |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
index | int |
builderForValue | CustomClass.ClassItem.Builder |
Type | Description |
CustomClass.Builder |
addItemsBuilder()
public CustomClass.ClassItem.Builder addItemsBuilder()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Type | Description |
CustomClass.ClassItem.Builder |
addItemsBuilder(int index)
public CustomClass.ClassItem.Builder addItemsBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Name | Description |
index | int |
Type | Description |
CustomClass.ClassItem.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomClass.Builder |
build()
public CustomClass build()
Type | Description |
CustomClass |
buildPartial()
public CustomClass buildPartial()
Type | Description |
CustomClass |
clear()
public CustomClass.Builder clear()
Type | Description |
CustomClass.Builder |
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;
Type | Description |
CustomClass.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CustomClass.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CustomClass.Builder |
clearItems()
public CustomClass.Builder clearItems()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Type | Description |
CustomClass.Builder |
clearName()
public CustomClass.Builder clearName()
The resource name of the custom class.
string name = 1;
Type | Description |
CustomClass.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomClass.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CustomClass.Builder |
clone()
public CustomClass.Builder clone()
Type | Description |
CustomClass.Builder |
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;
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;
Type | Description |
ByteString | The bytes for customClassId. |
getDefaultInstanceForType()
public CustomClass getDefaultInstanceForType()
Type | Description |
CustomClass |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getItems(int index)
public CustomClass.ClassItem getItems(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Name | Description |
index | int |
Type | Description |
CustomClass.ClassItem |
getItemsBuilder(int index)
public CustomClass.ClassItem.Builder getItemsBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Name | Description |
index | int |
Type | Description |
CustomClass.ClassItem.Builder |
getItemsBuilderList()
public List<CustomClass.ClassItem.Builder> getItemsBuilderList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
getItemsCount()
public int getItemsCount()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Type | Description |
int |
getItemsList()
public List<CustomClass.ClassItem> getItemsList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
getItemsOrBuilder(int index)
public CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Name | Description |
index | int |
Type | Description |
CustomClass.ClassItemOrBuilder |
getItemsOrBuilderList()
public List<? extends CustomClass.ClassItemOrBuilder> getItemsOrBuilderList()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Type | Description |
List<? extends com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder> |
getName()
public String getName()
The resource name of the custom class.
string name = 1;
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The resource name of the custom class.
string name = 1;
Type | Description |
ByteString | The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CustomClass other)
public CustomClass.Builder mergeFrom(CustomClass other)
Name | Description |
other | CustomClass |
Type | Description |
CustomClass.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomClass.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CustomClass.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CustomClass.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CustomClass.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomClass.Builder |
removeItems(int index)
public CustomClass.Builder removeItems(int index)
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
Name | Description |
index | int |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
value | String The customClassId to set. |
Type | Description |
CustomClass.Builder | This builder for chaining. |
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;
Name | Description |
value | ByteString The bytes for customClassId to set. |
Type | Description |
CustomClass.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
index | int |
value | CustomClass.ClassItem |
Type | Description |
CustomClass.Builder |
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;
Name | Description |
index | int |
builderForValue | CustomClass.ClassItem.Builder |
Type | Description |
CustomClass.Builder |
setName(String value)
public CustomClass.Builder setName(String value)
The resource name of the custom class.
string name = 1;
Name | Description |
value | String The name to set. |
Type | Description |
CustomClass.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public CustomClass.Builder setNameBytes(ByteString value)
The resource name of the custom class.
string name = 1;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
CustomClass.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomClass.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CustomClass.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CustomClass.Builder |