Class CustomClass (4.0.0)

public final class CustomClass extends GeneratedMessageV3 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 Fields

CUSTOM_CLASS_ID_FIELD_NUMBER

public static final int CUSTOM_CLASS_ID_FIELD_NUMBER
Field Value
TypeDescription
int

ITEMS_FIELD_NUMBER

public static final int ITEMS_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomClass getDefaultInstance()
Returns
TypeDescription
CustomClass

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CustomClass.Builder newBuilder()
Returns
TypeDescription
CustomClass.Builder

newBuilder(CustomClass prototype)

public static CustomClass.Builder newBuilder(CustomClass prototype)
Parameter
NameDescription
prototypeCustomClass
Returns
TypeDescription
CustomClass.Builder

parseDelimitedFrom(InputStream input)

public static CustomClass parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomClass parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomClass parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomClass parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomClass parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomClass parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomClass parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomClass
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomClass> parser()
Returns
TypeDescription
Parser<CustomClass>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
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
TypeDescription
ByteString

The bytes for customClassId.

getDefaultInstanceForType()

public CustomClass getDefaultInstanceForType()
Returns
TypeDescription
CustomClass

getItems(int index)

public CustomClass.ClassItem getItems(int index)

A collection of class items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CustomClass.ClassItem

getItemsCount()

public int getItemsCount()

A collection of class items.

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

Returns
TypeDescription
int

getItemsList()

public List<CustomClass.ClassItem> getItemsList()

A collection of class items.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CustomClass.ClassItemOrBuilder

getItemsOrBuilderList()

public List<? extends CustomClass.ClassItemOrBuilder> getItemsOrBuilderList()

A collection of class items.

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

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1.CustomClass.ClassItemOrBuilder>

getName()

public String getName()

The resource name of the custom class.

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The resource name of the custom class.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<CustomClass> getParserForType()
Returns
TypeDescription
Parser<CustomClass>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomClass.Builder newBuilderForType()
Returns
TypeDescription
CustomClass.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomClass.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomClass.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomClass.Builder toBuilder()
Returns
TypeDescription
CustomClass.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException