- 4.47.0 (latest)
- 4.46.0
- 4.44.0
- 4.43.0
- 4.42.0
- 4.41.0
- 4.40.0
- 4.39.0
- 4.38.0
- 4.37.0
- 4.36.0
- 4.35.0
- 4.34.0
- 4.32.0
- 4.31.0
- 4.30.0
- 4.29.0
- 4.28.0
- 4.27.0
- 4.26.0
- 4.25.0
- 4.24.0
- 4.23.0
- 4.22.0
- 4.19.0
- 4.18.0
- 4.17.0
- 4.16.0
- 4.15.0
- 4.14.0
- 4.13.0
- 4.12.0
- 4.11.0
- 4.10.0
- 4.9.0
- 4.8.0
- 4.7.0
- 4.6.0
- 4.4.0
- 4.3.0
- 4.2.0
- 4.1.0
- 4.0.0
- 3.0.0
- 2.6.1
- 2.5.9
- 2.4.0
- 2.3.0
- 2.2.15
public static final class SpeechAdaptation.Builder extends GeneratedMessageV3.Builder<SpeechAdaptation.Builder> implements SpeechAdaptationOrBuilder
Speech adaptation configuration.
Protobuf type google.cloud.speech.v1p1beta1.SpeechAdaptation
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SpeechAdaptation.BuilderImplements
SpeechAdaptationOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllCustomClasses(Iterable<? extends CustomClass> values)
public SpeechAdaptation.Builder addAllCustomClasses(Iterable<? extends CustomClass> values)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.speech.v1p1beta1.CustomClass> |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addAllPhraseSetReferences(Iterable<String> values)
public SpeechAdaptation.Builder addAllPhraseSetReferences(Iterable<String> values)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The phraseSetReferences to add. |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
This builder for chaining. |
addAllPhraseSets(Iterable<? extends PhraseSet> values)
public SpeechAdaptation.Builder addAllPhraseSets(Iterable<? extends PhraseSet> values)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.speech.v1p1beta1.PhraseSet> |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addCustomClasses(CustomClass value)
public SpeechAdaptation.Builder addCustomClasses(CustomClass value)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
value |
CustomClass |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addCustomClasses(CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder addCustomClasses(CustomClass.Builder builderForValue)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
CustomClass.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addCustomClasses(int index, CustomClass value)
public SpeechAdaptation.Builder addCustomClasses(int index, CustomClass value)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
CustomClass |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addCustomClasses(int index, CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder addCustomClasses(int index, CustomClass.Builder builderForValue)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
CustomClass.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addCustomClassesBuilder()
public CustomClass.Builder addCustomClassesBuilder()
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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
CustomClass.Builder |
addCustomClassesBuilder(int index)
public CustomClass.Builder addCustomClassesBuilder(int index)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CustomClass.Builder |
addPhraseSetReferences(String value)
public SpeechAdaptation.Builder addPhraseSetReferences(String value)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The phraseSetReferences to add. |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
This builder for chaining. |
addPhraseSetReferencesBytes(ByteString value)
public SpeechAdaptation.Builder addPhraseSetReferencesBytes(ByteString value)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the phraseSetReferences to add. |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
This builder for chaining. |
addPhraseSets(PhraseSet value)
public SpeechAdaptation.Builder addPhraseSets(PhraseSet value)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
value |
PhraseSet |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addPhraseSets(PhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder addPhraseSets(PhraseSet.Builder builderForValue)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
builderForValue |
PhraseSet.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addPhraseSets(int index, PhraseSet value)
public SpeechAdaptation.Builder addPhraseSets(int index, PhraseSet value)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
PhraseSet |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addPhraseSets(int index, PhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder addPhraseSets(int index, PhraseSet.Builder builderForValue)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
PhraseSet.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
addPhraseSetsBuilder()
public PhraseSet.Builder addPhraseSetsBuilder()
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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
PhraseSet.Builder |
addPhraseSetsBuilder(int index)
public PhraseSet.Builder addPhraseSetsBuilder(int index)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PhraseSet.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
build()
public SpeechAdaptation build()
Returns | |
---|---|
Type | Description |
SpeechAdaptation |
buildPartial()
public SpeechAdaptation buildPartial()
Returns | |
---|---|
Type | Description |
SpeechAdaptation |
clear()
public SpeechAdaptation.Builder clear()
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clearAbnfGrammar()
public SpeechAdaptation.Builder clearAbnfGrammar()
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clearCustomClasses()
public SpeechAdaptation.Builder clearCustomClasses()
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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clearPhraseSetReferences()
public SpeechAdaptation.Builder clearPhraseSetReferences()
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
This builder for chaining. |
clearPhraseSets()
public SpeechAdaptation.Builder clearPhraseSets()
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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
clone()
public SpeechAdaptation.Builder clone()
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
getAbnfGrammar()
public SpeechAdaptation.ABNFGrammar 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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.ABNFGrammar |
The abnfGrammar. |
getAbnfGrammarBuilder()
public SpeechAdaptation.ABNFGrammar.Builder getAbnfGrammarBuilder()
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.ABNFGrammar.Builder |
getAbnfGrammarOrBuilder()
public SpeechAdaptation.ABNFGrammarOrBuilder 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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Returns | |
---|---|
Type | Description |
SpeechAdaptation.ABNFGrammarOrBuilder |
getCustomClasses(int index)
public CustomClass getCustomClasses(int index)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CustomClass |
getCustomClassesBuilder(int index)
public CustomClass.Builder getCustomClassesBuilder(int index)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CustomClass.Builder |
getCustomClassesBuilderList()
public List<CustomClass.Builder> getCustomClassesBuilderList()
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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
int |
getCustomClassesList()
public List<CustomClass> 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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
List<CustomClass> |
getCustomClassesOrBuilder(int index)
public CustomClassOrBuilder getCustomClassesOrBuilder(int index)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
CustomClassOrBuilder |
getCustomClassesOrBuilderList()
public List<? extends CustomClassOrBuilder> 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.v1p1beta1.CustomClass custom_classes = 3;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder> |
getDefaultInstanceForType()
public SpeechAdaptation getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
SpeechAdaptation |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPhraseSetReferences(int index)
public String getPhraseSetReferences(int index)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The phraseSetReferences at the given index. |
getPhraseSetReferencesBytes(int index)
public ByteString getPhraseSetReferencesBytes(int index)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the phraseSetReferences at the given index. |
getPhraseSetReferencesCount()
public int getPhraseSetReferencesCount()
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
int |
The count of phraseSetReferences. |
getPhraseSetReferencesList()
public ProtocolStringList getPhraseSetReferencesList()
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the phraseSetReferences. |
getPhraseSets(int index)
public PhraseSet getPhraseSets(int index)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PhraseSet |
getPhraseSetsBuilder(int index)
public PhraseSet.Builder getPhraseSetsBuilder(int index)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PhraseSet.Builder |
getPhraseSetsBuilderList()
public List<PhraseSet.Builder> getPhraseSetsBuilderList()
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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
List<Builder> |
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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
int |
getPhraseSetsList()
public List<PhraseSet> 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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
List<PhraseSet> |
getPhraseSetsOrBuilder(int index)
public PhraseSetOrBuilder getPhraseSetsOrBuilder(int index)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
PhraseSetOrBuilder |
getPhraseSetsOrBuilderList()
public List<? extends PhraseSetOrBuilder> 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.v1p1beta1.PhraseSet phrase_sets = 1;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder> |
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the abnfGrammar field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeAbnfGrammar(SpeechAdaptation.ABNFGrammar value)
public SpeechAdaptation.Builder mergeAbnfGrammar(SpeechAdaptation.ABNFGrammar value)
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Parameter | |
---|---|
Name | Description |
value |
SpeechAdaptation.ABNFGrammar |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
mergeFrom(SpeechAdaptation other)
public SpeechAdaptation.Builder mergeFrom(SpeechAdaptation other)
Parameter | |
---|---|
Name | Description |
other |
SpeechAdaptation |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechAdaptation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public SpeechAdaptation.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
removeCustomClasses(int index)
public SpeechAdaptation.Builder removeCustomClasses(int index)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
removePhraseSets(int index)
public SpeechAdaptation.Builder removePhraseSets(int index)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setAbnfGrammar(SpeechAdaptation.ABNFGrammar value)
public SpeechAdaptation.Builder setAbnfGrammar(SpeechAdaptation.ABNFGrammar value)
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Parameter | |
---|---|
Name | Description |
value |
SpeechAdaptation.ABNFGrammar |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setAbnfGrammar(SpeechAdaptation.ABNFGrammar.Builder builderForValue)
public SpeechAdaptation.Builder setAbnfGrammar(SpeechAdaptation.ABNFGrammar.Builder builderForValue)
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.v1p1beta1.SpeechAdaptation.ABNFGrammar abnf_grammar = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
SpeechAdaptation.ABNFGrammar.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setCustomClasses(int index, CustomClass value)
public SpeechAdaptation.Builder setCustomClasses(int index, CustomClass value)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
CustomClass |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setCustomClasses(int index, CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder setCustomClasses(int index, CustomClass.Builder builderForValue)
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.v1p1beta1.CustomClass custom_classes = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
CustomClass.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setPhraseSetReferences(int index, String value)
public SpeechAdaptation.Builder setPhraseSetReferences(int index, String value)
A collection of phrase set resource names to use.
repeated string phrase_set_references = 2 [(.google.api.resource_reference) = { ... }
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The phraseSetReferences to set. |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
This builder for chaining. |
setPhraseSets(int index, PhraseSet value)
public SpeechAdaptation.Builder setPhraseSets(int index, PhraseSet value)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
PhraseSet |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setPhraseSets(int index, PhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder setPhraseSets(int index, PhraseSet.Builder builderForValue)
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.v1p1beta1.PhraseSet phrase_sets = 1;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
PhraseSet.Builder |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
SpeechAdaptation.Builder |