Package com.google.cloud.speech.v1
Class SpeechAdaptation
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.speech.v1.SpeechAdaptation
- All Implemented Interfaces:
SpeechAdaptationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class SpeechAdaptation
extends com.google.protobuf.GeneratedMessage
implements SpeechAdaptationOrBuilder
Speech adaptation configuration.Protobuf type
google.cloud.speech.v1.SpeechAdaptation- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typegoogle.cloud.speech.v1.SpeechAdaptation.ABNFGrammarstatic interfacestatic final classSpeech adaptation configuration.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
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 extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAugmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules.Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules.getCustomClasses(int index) A collection of custom classes.intA collection of custom classes.A collection of custom classes.getCustomClassesOrBuilder(int index) A collection of custom classes.List<? extends CustomClassOrBuilder>A collection of custom classes.static SpeechAdaptationstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Parser<SpeechAdaptation>getPhraseSetReferences(int index) A collection of phrase set resource names to use.com.google.protobuf.ByteStringgetPhraseSetReferencesBytes(int index) A collection of phrase set resource names to use.intA collection of phrase set resource names to use.com.google.protobuf.ProtocolStringListA collection of phrase set resource names to use.getPhraseSets(int index) A collection of phrase sets.intA collection of phrase sets.A collection of phrase sets.getPhraseSetsOrBuilder(int index) A collection of phrase sets.List<? extends PhraseSetOrBuilder>A collection of phrase sets.intbooleanAugmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic SpeechAdaptation.Builderstatic SpeechAdaptation.BuildernewBuilder(SpeechAdaptation prototype) protected SpeechAdaptation.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static SpeechAdaptationparseDelimitedFrom(InputStream input) static SpeechAdaptationparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechAdaptationparseFrom(byte[] data) static SpeechAdaptationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechAdaptationparseFrom(com.google.protobuf.ByteString data) static SpeechAdaptationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechAdaptationparseFrom(com.google.protobuf.CodedInputStream input) static SpeechAdaptationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechAdaptationparseFrom(InputStream input) static SpeechAdaptationparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static SpeechAdaptationparseFrom(ByteBuffer data) static SpeechAdaptationparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<SpeechAdaptation>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
PHRASE_SETS_FIELD_NUMBER
public static final int PHRASE_SETS_FIELD_NUMBER- See Also:
-
PHRASE_SET_REFERENCES_FIELD_NUMBER
public static final int PHRASE_SET_REFERENCES_FIELD_NUMBER- See Also:
-
CUSTOM_CLASSES_FIELD_NUMBER
public static final int CUSTOM_CLASSES_FIELD_NUMBER- See Also:
-
ABNF_GRAMMAR_FIELD_NUMBER
public static final int ABNF_GRAMMAR_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPhraseSetsList
A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class.
repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;- Specified by:
getPhraseSetsListin interfaceSpeechAdaptationOrBuilder
-
getPhraseSetsOrBuilderList
A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class.
repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;- Specified by:
getPhraseSetsOrBuilderListin interfaceSpeechAdaptationOrBuilder
-
getPhraseSetsCount
public int getPhraseSetsCount()A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class.
repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;- Specified by:
getPhraseSetsCountin interfaceSpeechAdaptationOrBuilder
-
getPhraseSets
A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class.
repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;- Specified by:
getPhraseSetsin interfaceSpeechAdaptationOrBuilder
-
getPhraseSetsOrBuilder
A collection of phrase sets. To specify the hints inline, leave the phrase set's `name` blank and fill in the rest of its fields. Any phrase set can use any custom class.
repeated .google.cloud.speech.v1.PhraseSet phrase_sets = 1;- Specified by:
getPhraseSetsOrBuilderin interfaceSpeechAdaptationOrBuilder
-
getPhraseSetReferencesList
public com.google.protobuf.ProtocolStringList getPhraseSetReferencesList()A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetReferencesListin interfaceSpeechAdaptationOrBuilder- Returns:
- A list containing the phraseSetReferences.
-
getPhraseSetReferencesCount
public int getPhraseSetReferencesCount()A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetReferencesCountin interfaceSpeechAdaptationOrBuilder- Returns:
- The count of phraseSetReferences.
-
getPhraseSetReferences
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetReferencesin interfaceSpeechAdaptationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The phraseSetReferences at the given index.
-
getPhraseSetReferencesBytes
public com.google.protobuf.ByteString getPhraseSetReferencesBytes(int index) A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getPhraseSetReferencesBytesin interfaceSpeechAdaptationOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the phraseSetReferences at the given index.
-
getCustomClassesList
A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.
repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;- Specified by:
getCustomClassesListin interfaceSpeechAdaptationOrBuilder
-
getCustomClassesOrBuilderList
A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.
repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;- Specified by:
getCustomClassesOrBuilderListin interfaceSpeechAdaptationOrBuilder
-
getCustomClassesCount
public int getCustomClassesCount()A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.
repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;- Specified by:
getCustomClassesCountin interfaceSpeechAdaptationOrBuilder
-
getCustomClasses
A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.
repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;- Specified by:
getCustomClassesin interfaceSpeechAdaptationOrBuilder
-
getCustomClassesOrBuilder
A collection of custom classes. To specify the classes inline, leave the class' `name` blank and fill in the rest of its fields, giving it a unique `custom_class_id`. Refer to the inline defined class in phrase hints by its `custom_class_id`.
repeated .google.cloud.speech.v1.CustomClass custom_classes = 3;- Specified by:
getCustomClassesOrBuilderin interfaceSpeechAdaptationOrBuilder
-
hasAbnfGrammar
public boolean hasAbnfGrammar()Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar
.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;- Specified by:
hasAbnfGrammarin interfaceSpeechAdaptationOrBuilder- Returns:
- Whether the abnfGrammar field is set.
-
getAbnfGrammar
Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar
.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;- Specified by:
getAbnfGrammarin interfaceSpeechAdaptationOrBuilder- Returns:
- The abnfGrammar.
-
getAbnfGrammarOrBuilder
Augmented Backus-Naur form (ABNF) is a standardized grammar notation comprised by a set of derivation rules. See specifications: https://www.w3.org/TR/speech-grammar
.google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;- Specified by:
getAbnfGrammarOrBuilderin interfaceSpeechAdaptationOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static SpeechAdaptation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechAdaptation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechAdaptation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechAdaptation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechAdaptation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static SpeechAdaptation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static SpeechAdaptation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static SpeechAdaptation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static SpeechAdaptation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static SpeechAdaptation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected SpeechAdaptation.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-