@Generated public final class CustomClass extends com.google.protobuf.GeneratedMessage 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.v1p1beta1.CustomClass| Modifier and Type | Class and Description |
|---|---|
static class |
CustomClass.Builder
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.
|
static class |
CustomClass.ClassItem
An item of the class.
|
static interface |
CustomClass.ClassItemOrBuilder |
static class |
CustomClass.State
Set of states that define the lifecycle of a CustomClass.
|
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ANNOTATIONS_FIELD_NUMBER |
static int |
CUSTOM_CLASS_ID_FIELD_NUMBER |
static int |
DELETE_TIME_FIELD_NUMBER |
static int |
DISPLAY_NAME_FIELD_NUMBER |
static int |
ETAG_FIELD_NUMBER |
static int |
EXPIRE_TIME_FIELD_NUMBER |
static int |
ITEMS_FIELD_NUMBER |
static int |
KMS_KEY_NAME_FIELD_NUMBER |
static int |
KMS_KEY_VERSION_NAME_FIELD_NUMBER |
static int |
NAME_FIELD_NUMBER |
static int |
RECONCILING_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
static int |
UID_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsAnnotations(String key)
Output only.
|
boolean |
equals(Object obj) |
Map<String,String> |
getAnnotations()
Deprecated.
|
int |
getAnnotationsCount()
Output only.
|
Map<String,String> |
getAnnotationsMap()
Output only.
|
String |
getAnnotationsOrDefault(String key,
String defaultValue)
Output only.
|
String |
getAnnotationsOrThrow(String key)
Output only.
|
String |
getCustomClassId()
If this custom class is a resource, the custom_class_id is the resource id
of the CustomClass.
|
com.google.protobuf.ByteString |
getCustomClassIdBytes()
If this custom class is a resource, the custom_class_id is the resource id
of the CustomClass.
|
static CustomClass |
getDefaultInstance() |
CustomClass |
getDefaultInstanceForType() |
com.google.protobuf.Timestamp |
getDeleteTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getDeleteTimeOrBuilder()
Output only.
|
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getDisplayName()
Output only.
|
com.google.protobuf.ByteString |
getDisplayNameBytes()
Output only.
|
String |
getEtag()
Output only.
|
com.google.protobuf.ByteString |
getEtagBytes()
Output only.
|
com.google.protobuf.Timestamp |
getExpireTime()
Output only.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
Output only.
|
CustomClass.ClassItem |
getItems(int index)
A collection of class items.
|
int |
getItemsCount()
A collection of class items.
|
List<CustomClass.ClassItem> |
getItemsList()
A collection of class items.
|
CustomClass.ClassItemOrBuilder |
getItemsOrBuilder(int index)
A collection of class items.
|
List<? extends CustomClass.ClassItemOrBuilder> |
getItemsOrBuilderList()
A collection of class items.
|
String |
getKmsKeyName()
Output only.
|
com.google.protobuf.ByteString |
getKmsKeyNameBytes()
Output only.
|
String |
getKmsKeyVersionName()
Output only.
|
com.google.protobuf.ByteString |
getKmsKeyVersionNameBytes()
Output only.
|
String |
getName()
The resource name of the custom class.
|
com.google.protobuf.ByteString |
getNameBytes()
The resource name of the custom class.
|
com.google.protobuf.Parser<CustomClass> |
getParserForType() |
boolean |
getReconciling()
Output only.
|
int |
getSerializedSize() |
CustomClass.State |
getState()
Output only.
|
int |
getStateValue()
Output only.
|
String |
getUid()
Output only.
|
com.google.protobuf.ByteString |
getUidBytes()
Output only.
|
boolean |
hasDeleteTime()
Output only.
|
boolean |
hasExpireTime()
Output only.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapFieldReflectionAccessor |
internalGetMapFieldReflection(int number) |
boolean |
isInitialized() |
static CustomClass.Builder |
newBuilder() |
static CustomClass.Builder |
newBuilder(CustomClass prototype) |
CustomClass.Builder |
newBuilderForType() |
protected CustomClass.Builder |
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
static CustomClass |
parseDelimitedFrom(InputStream input) |
static CustomClass |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomClass |
parseFrom(byte[] data) |
static CustomClass |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomClass |
parseFrom(ByteBuffer data) |
static CustomClass |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomClass |
parseFrom(com.google.protobuf.ByteString data) |
static CustomClass |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomClass |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CustomClass |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CustomClass |
parseFrom(InputStream input) |
static CustomClass |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CustomClass> |
parser() |
CustomClass.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashFields, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int NAME_FIELD_NUMBER
public static final int CUSTOM_CLASS_ID_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
public static final int KMS_KEY_NAME_FIELD_NUMBER
public static final int KMS_KEY_VERSION_NAME_FIELD_NUMBER
public static final int UID_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
public static final int DELETE_TIME_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
public static final int ANNOTATIONS_FIELD_NUMBER
public static final int ETAG_FIELD_NUMBER
public static final int RECONCILING_FIELD_NUMBER
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageprotected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessagepublic String getName()
The resource name of the custom class.
string name = 1;getName in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The resource name of the custom class.
string name = 1;getNameBytes in interface CustomClassOrBuilderpublic 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;getCustomClassId in interface CustomClassOrBuilderpublic com.google.protobuf.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;getCustomClassIdBytes in interface CustomClassOrBuilderpublic List<CustomClass.ClassItem> getItemsList()
A collection of class items.
repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;getItemsList in interface CustomClassOrBuilderpublic List<? extends CustomClass.ClassItemOrBuilder> getItemsOrBuilderList()
A collection of class items.
repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;getItemsOrBuilderList in interface CustomClassOrBuilderpublic int getItemsCount()
A collection of class items.
repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;getItemsCount in interface CustomClassOrBuilderpublic CustomClass.ClassItem getItems(int index)
A collection of class items.
repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;getItems in interface CustomClassOrBuilderpublic CustomClass.ClassItemOrBuilder getItemsOrBuilder(int index)
A collection of class items.
repeated .google.cloud.speech.v1p1beta1.CustomClass.ClassItem items = 3;getItemsOrBuilder in interface CustomClassOrBuilderpublic String getKmsKeyName()
Output only. The [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
the content of the ClassItem is encrypted. The expected format is
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
string kms_key_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyName in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getKmsKeyNameBytes()
Output only. The [KMS key
name](https://cloud.google.com/kms/docs/resource-hierarchy#keys) with which
the content of the ClassItem is encrypted. The expected format is
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`.
string kms_key_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyNameBytes in interface CustomClassOrBuilderpublic String getKmsKeyVersionName()
Output only. The [KMS key version
name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
with which content of the ClassItem is encrypted. The expected format is
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
string kms_key_version_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersionName in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getKmsKeyVersionNameBytes()
Output only. The [KMS key version
name](https://cloud.google.com/kms/docs/resource-hierarchy#key_versions)
with which content of the ClassItem is encrypted. The expected format is
`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`.
string kms_key_version_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
getKmsKeyVersionNameBytes in interface CustomClassOrBuilderpublic String getUid()
Output only. System-assigned unique identifier for the CustomClass. This field is not used.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getUid in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getUidBytes()
Output only. System-assigned unique identifier for the CustomClass. This field is not used.
string uid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];getUidBytes in interface CustomClassOrBuilderpublic String getDisplayName()
Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
string display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDisplayName in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getDisplayNameBytes()
Output only. User-settable, human-readable name for the CustomClass. Must be 63 characters or less. This field is not used.
string display_name = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];getDisplayNameBytes in interface CustomClassOrBuilderpublic int getStateValue()
Output only. The CustomClass lifecycle state. This field is not used.
.google.cloud.speech.v1p1beta1.CustomClass.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getStateValue in interface CustomClassOrBuilderpublic CustomClass.State getState()
Output only. The CustomClass lifecycle state. This field is not used.
.google.cloud.speech.v1p1beta1.CustomClass.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getState in interface CustomClassOrBuilderpublic boolean hasDeleteTime()
Output only. The time at which this resource was requested for deletion. This field is not used.
.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasDeleteTime in interface CustomClassOrBuilderpublic com.google.protobuf.Timestamp getDeleteTime()
Output only. The time at which this resource was requested for deletion. This field is not used.
.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTime in interface CustomClassOrBuilderpublic com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder()
Output only. The time at which this resource was requested for deletion. This field is not used.
.google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDeleteTimeOrBuilder in interface CustomClassOrBuilderpublic boolean hasExpireTime()
Output only. The time at which this resource will be purged. This field is not used.
.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasExpireTime in interface CustomClassOrBuilderpublic com.google.protobuf.Timestamp getExpireTime()
Output only. The time at which this resource will be purged. This field is not used.
.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTime in interface CustomClassOrBuilderpublic com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
Output only. The time at which this resource will be purged. This field is not used.
.google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpireTimeOrBuilder in interface CustomClassOrBuilderpublic int getAnnotationsCount()
CustomClassOrBuilderOutput only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsCount in interface CustomClassOrBuilderpublic boolean containsAnnotations(String key)
Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
containsAnnotations in interface CustomClassOrBuilder@Deprecated public Map<String,String> getAnnotations()
getAnnotationsMap() instead.getAnnotations in interface CustomClassOrBuilderpublic Map<String,String> getAnnotationsMap()
Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsMap in interface CustomClassOrBuilderpublic String getAnnotationsOrDefault(String key, String defaultValue)
Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsOrDefault in interface CustomClassOrBuilderpublic String getAnnotationsOrThrow(String key)
Output only. Allows users to store small amounts of arbitrary data. Both the key and the value must be 63 characters or less each. At most 100 annotations. This field is not used.
map<string, string> annotations = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
getAnnotationsOrThrow in interface CustomClassOrBuilderpublic String getEtag()
Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
string etag = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtag in interface CustomClassOrBuilderpublic com.google.protobuf.ByteString getEtagBytes()
Output only. This checksum is computed by the server based on the value of other fields. This may be sent on update, undelete, and delete requests to ensure the client has an up-to-date value before proceeding. This field is not used.
string etag = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];getEtagBytes in interface CustomClassOrBuilderpublic boolean getReconciling()
Output only. Whether or not this CustomClass is in the process of being updated. This field is not used.
bool reconciling = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];getReconciling in interface CustomClassOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessagepublic void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageIOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessagepublic boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static CustomClass parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static CustomClass parseFrom(InputStream input) throws IOException
IOExceptionpublic static CustomClass parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomClass parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static CustomClass parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static CustomClass parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static CustomClass parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic CustomClass.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static CustomClass.Builder newBuilder()
public static CustomClass.Builder newBuilder(CustomClass prototype)
public CustomClass.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected CustomClass.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
newBuilderForType in class com.google.protobuf.AbstractMessagepublic static CustomClass getDefaultInstance()
public static com.google.protobuf.Parser<CustomClass> parser()
public com.google.protobuf.Parser<CustomClass> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessagepublic CustomClass getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2026 Google LLC. All rights reserved.