Class SpeechAdaptation.Builder (4.40.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
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
Overrides

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
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
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
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechAdaptation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
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
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
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
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
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
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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SpeechAdaptation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SpeechAdaptation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
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
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
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpeechAdaptation.Builder
Overrides