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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
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>
|
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;
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;
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;
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;
addItemsBuilder()
public CustomClass.ClassItem.Builder addItemsBuilder()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
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 |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CustomClass build()
buildPartial()
public CustomClass buildPartial()
clear()
public CustomClass.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public CustomClass.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearItems()
public CustomClass.Builder clearItems()
A collection of class items.
repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;
clearName()
public CustomClass.Builder clearName()
The resource name of the custom class.
string name = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomClass.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public CustomClass.Builder clone()
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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 |
---|
Name | Description |
index | int
|
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 |
---|
Name | Description |
index | int
|
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;
Returns |
---|
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;
Parameter |
---|
Name | Description |
index | int
|
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 |
---|
Type | Description |
ByteString | The bytes for name.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CustomClass other)
public CustomClass.Builder mergeFrom(CustomClass other)
public CustomClass.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CustomClass.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
index | int
|
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CustomClass.Builder setField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomClass.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomClass.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides