Class SpeechAdaptation.Builder (4.8.0)

public static final class SpeechAdaptation.Builder extends GeneratedMessageV3.Builder<SpeechAdaptation.Builder> implements SpeechAdaptationOrBuilder

Speech adaptation configuration.

Protobuf type google.cloud.speech.v1p1beta1.SpeechAdaptation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1p1beta1.CustomClass>
Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The phraseSetReferences to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1p1beta1.PhraseSet>
Returns
TypeDescription
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
NameDescription
valueCustomClass
Returns
TypeDescription
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
NameDescription
builderForValueCustomClass.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomClass
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomClass.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueString

The phraseSetReferences to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the phraseSetReferences to add.

Returns
TypeDescription
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
NameDescription
valuePhraseSet
Returns
TypeDescription
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
NameDescription
builderForValuePhraseSet.Builder
Returns
TypeDescription
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
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
PhraseSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

build()

public SpeechAdaptation build()
Returns
TypeDescription
SpeechAdaptation

buildPartial()

public SpeechAdaptation buildPartial()
Returns
TypeDescription
SpeechAdaptation

clear()

public SpeechAdaptation.Builder clear()
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

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
TypeDescription
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
TypeDescription
SpeechAdaptation.Builder

clearField(Descriptors.FieldDescriptor field)

public SpeechAdaptation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechAdaptation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

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
TypeDescription
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
TypeDescription
SpeechAdaptation.Builder

clone()

public SpeechAdaptation.Builder clone()
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.speech.v1p1beta1.CustomClassOrBuilder>

getDefaultInstanceForType()

public SpeechAdaptation getDefaultInstanceForType()
Returns
TypeDescription
SpeechAdaptation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
NameDescription
indexint

The index of the element to return.

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

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the abnfGrammar field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

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
NameDescription
valueSpeechAdaptation.ABNFGrammar
Returns
TypeDescription
SpeechAdaptation.Builder

mergeFrom(SpeechAdaptation other)

public SpeechAdaptation.Builder mergeFrom(SpeechAdaptation other)
Parameter
NameDescription
otherSpeechAdaptation
Returns
TypeDescription
SpeechAdaptation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpeechAdaptation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SpeechAdaptation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueSpeechAdaptation.ABNFGrammar
Returns
TypeDescription
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
NameDescription
builderForValueSpeechAdaptation.ABNFGrammar.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCustomClass
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCustomClass.Builder
Returns
TypeDescription
SpeechAdaptation.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

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
NameDescription
indexint

The index to set the value at.

valueString

The phraseSetReferences to set.

Returns
TypeDescription
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
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
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
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
SpeechAdaptation.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SpeechAdaptation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpeechAdaptation.Builder
Overrides