Class SpeechAdaptation.ABNFGrammar.Builder (4.6.0)

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

Protobuf type google.cloud.speech.v1p1beta1.SpeechAdaptation.ABNFGrammar

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAbnfStrings(String value)

public SpeechAdaptation.ABNFGrammar.Builder addAbnfStrings(String value)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameter
NameDescription
valueString

The abnfStrings to add.

Returns
TypeDescription
SpeechAdaptation.ABNFGrammar.Builder

This builder for chaining.

addAbnfStringsBytes(ByteString value)

public SpeechAdaptation.ABNFGrammar.Builder addAbnfStringsBytes(ByteString value)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameter
NameDescription
valueByteString

The bytes of the abnfStrings to add.

Returns
TypeDescription
SpeechAdaptation.ABNFGrammar.Builder

This builder for chaining.

addAllAbnfStrings(Iterable<String> values)

public SpeechAdaptation.ABNFGrammar.Builder addAllAbnfStrings(Iterable<String> values)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameter
NameDescription
valuesIterable<String>

The abnfStrings to add.

Returns
TypeDescription
SpeechAdaptation.ABNFGrammar.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SpeechAdaptation.ABNFGrammar build()
Returns
TypeDescription
SpeechAdaptation.ABNFGrammar

buildPartial()

public SpeechAdaptation.ABNFGrammar buildPartial()
Returns
TypeDescription
SpeechAdaptation.ABNFGrammar

clear()

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

clearAbnfStrings()

public SpeechAdaptation.ABNFGrammar.Builder clearAbnfStrings()

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Returns
TypeDescription
SpeechAdaptation.ABNFGrammar.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAbnfStrings(int index)

public String getAbnfStrings(int index)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The abnfStrings at the given index.

getAbnfStringsBytes(int index)

public ByteString getAbnfStringsBytes(int index)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the abnfStrings at the given index.

getAbnfStringsCount()

public int getAbnfStringsCount()

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Returns
TypeDescription
int

The count of abnfStrings.

getAbnfStringsList()

public ProtocolStringList getAbnfStringsList()

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the abnfStrings.

getDefaultInstanceForType()

public SpeechAdaptation.ABNFGrammar getDefaultInstanceForType()
Returns
TypeDescription
SpeechAdaptation.ABNFGrammar

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SpeechAdaptation.ABNFGrammar other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAbnfStrings(int index, String value)

public SpeechAdaptation.ABNFGrammar.Builder setAbnfStrings(int index, String value)

All declarations and rules of an ABNF grammar broken up into multiple strings that will end up concatenated.

repeated string abnf_strings = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The abnfStrings to set.

Returns
TypeDescription
SpeechAdaptation.ABNFGrammar.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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