Class CustomClass.Builder (4.42.0)

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
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;

Parameter
Name Description
values Iterable<? extends com.google.cloud.speech.v1.CustomClass.ClassItem>
Returns
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;

Parameter
Name Description
value CustomClass.ClassItem
Returns
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;

Parameter
Name Description
builderForValue CustomClass.ClassItem.Builder
Returns
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;

Parameters
Name Description
index int
value CustomClass.ClassItem
Returns
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;

Parameters
Name Description
index int
builderForValue CustomClass.ClassItem.Builder
Returns
Type Description
CustomClass.Builder

addItemsBuilder()

public CustomClass.ClassItem.Builder addItemsBuilder()

A collection of class items.

repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;

Returns
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;

Parameter
Name Description
index int
Returns
Type Description
CustomClass.ClassItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomClass.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomClass.Builder
Overrides

build()

public CustomClass build()
Returns
Type Description
CustomClass

buildPartial()

public CustomClass buildPartial()
Returns
Type Description
CustomClass

clear()

public CustomClass.Builder clear()
Returns
Type Description
CustomClass.Builder
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
Type Description
CustomClass.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public CustomClass.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomClass.Builder
Overrides

clearItems()

public CustomClass.Builder clearItems()

A collection of class items.

repeated .google.cloud.speech.v1.CustomClass.ClassItem items = 3;

Returns
Type Description
CustomClass.Builder

clearName()

public CustomClass.Builder clearName()

The resource name of the custom class.

string name = 1;

Returns
Type Description
CustomClass.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomClass.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomClass.Builder
Overrides

clone()

public CustomClass.Builder clone()
Returns
Type Description
CustomClass.Builder
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
Type Description
CustomClass

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Returns
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;

Parameter
Name Description
index int
Returns
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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<ClassItem>

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
Returns
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;

Returns
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;

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomClass other)

public CustomClass.Builder mergeFrom(CustomClass other)
Parameter
Name Description
other CustomClass
Returns
Type Description
CustomClass.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomClass.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomClass.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomClass.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomClass.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomClass.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomClass.Builder
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
Returns
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;

Parameter
Name Description
value String

The customClassId to set.

Returns
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;

Parameter
Name Description
value ByteString

The bytes for customClassId to set.

Returns
Type Description
CustomClass.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CustomClass.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomClass.Builder
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
Name Description
index int
value CustomClass.ClassItem
Returns
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;

Parameters
Name Description
index int
builderForValue CustomClass.ClassItem.Builder
Returns
Type Description
CustomClass.Builder

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
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;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
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)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomClass.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomClass.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomClass.Builder
Overrides