Send feedback
Class SpeechAdaptation.AdaptationPhraseSet.Builder (4.8.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.8.0 keyboard_arrow_down
public static final class SpeechAdaptation . AdaptationPhraseSet . Builder extends GeneratedMessageV3 . Builder<SpeechAdaptation . AdaptationPhraseSet . Builder > implements SpeechAdaptation . AdaptationPhraseSetOrBuilder
A biasing phrase set, which can be either a string referencing the name of
an existing phrase set resource, or an inline definition of a phrase set.
Protobuf type google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation . AdaptationPhraseSet . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public SpeechAdaptation . AdaptationPhraseSet build ()
buildPartial()
public SpeechAdaptation . AdaptationPhraseSet buildPartial ()
clear()
public SpeechAdaptation . AdaptationPhraseSet . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation . AdaptationPhraseSet . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearInlinePhraseSet()
public SpeechAdaptation . AdaptationPhraseSet . Builder clearInlinePhraseSet ()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation . AdaptationPhraseSet . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPhraseSet()
public SpeechAdaptation . AdaptationPhraseSet . Builder clearPhraseSet ()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
clearValue()
public SpeechAdaptation . AdaptationPhraseSet . Builder clearValue ()
clone()
public SpeechAdaptation . AdaptationPhraseSet . Builder clone ()
Overrides
getDefaultInstanceForType()
public SpeechAdaptation . AdaptationPhraseSet getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getInlinePhraseSet()
public PhraseSet getInlinePhraseSet ()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns Type Description PhraseSet
The inlinePhraseSet.
getInlinePhraseSetBuilder()
public PhraseSet . Builder getInlinePhraseSetBuilder ()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
getInlinePhraseSetOrBuilder()
public PhraseSetOrBuilder getInlinePhraseSetOrBuilder ()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
getPhraseSet()
public String getPhraseSet ()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns Type Description String
The phraseSet.
getPhraseSetBytes()
public ByteString getPhraseSetBytes ()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns Type Description ByteString
The bytes for phraseSet.
getValueCase()
public SpeechAdaptation . AdaptationPhraseSet . ValueCase getValueCase ()
hasInlinePhraseSet()
public boolean hasInlinePhraseSet ()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns Type Description boolean
Whether the inlinePhraseSet field is set.
hasPhraseSet()
public boolean hasPhraseSet ()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns Type Description boolean
Whether the phraseSet field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
public SpeechAdaptation . AdaptationPhraseSet . Builder mergeFrom ( SpeechAdaptation . AdaptationPhraseSet other )
public SpeechAdaptation . AdaptationPhraseSet . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public SpeechAdaptation . AdaptationPhraseSet . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeInlinePhraseSet(PhraseSet value)
public SpeechAdaptation . AdaptationPhraseSet . Builder mergeInlinePhraseSet ( PhraseSet value )
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation . AdaptationPhraseSet . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation . AdaptationPhraseSet . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setInlinePhraseSet(PhraseSet value)
public SpeechAdaptation . AdaptationPhraseSet . Builder setInlinePhraseSet ( PhraseSet value )
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
setInlinePhraseSet(PhraseSet.Builder builderForValue)
public SpeechAdaptation . AdaptationPhraseSet . Builder setInlinePhraseSet ( PhraseSet . Builder builderForValue )
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
setPhraseSet(String value)
public SpeechAdaptation . AdaptationPhraseSet . Builder setPhraseSet ( String value )
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Parameter Name Description value
String
The phraseSet to set.
setPhraseSetBytes(ByteString value)
public SpeechAdaptation . AdaptationPhraseSet . Builder setPhraseSetBytes ( ByteString value )
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Parameter Name Description value
ByteString
The bytes for phraseSet to set.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation . AdaptationPhraseSet . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation . AdaptationPhraseSet . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]