Class ListPhraseSetResponse.Builder (2.5.2)

public static final class ListPhraseSetResponse.Builder extends GeneratedMessageV3.Builder<ListPhraseSetResponse.Builder> implements ListPhraseSetResponseOrBuilder

Message returned to the client by the ListPhraseSet method.

Protobuf type google.cloud.speech.v1p1beta1.ListPhraseSetResponse

Static Methods

getDescriptor()

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

Methods

addAllPhraseSets(Iterable<? extends PhraseSet> values)

public ListPhraseSetResponse.Builder addAllPhraseSets(Iterable<? extends PhraseSet> values)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1p1beta1.PhraseSet>
Returns
TypeDescription
ListPhraseSetResponse.Builder

addPhraseSets(PhraseSet value)

public ListPhraseSetResponse.Builder addPhraseSets(PhraseSet value)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
valuePhraseSet
Returns
TypeDescription
ListPhraseSetResponse.Builder

addPhraseSets(PhraseSet.Builder builderForValue)

public ListPhraseSetResponse.Builder addPhraseSets(PhraseSet.Builder builderForValue)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetResponse.Builder

addPhraseSets(int index, PhraseSet value)

public ListPhraseSetResponse.Builder addPhraseSets(int index, PhraseSet value)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameters
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
ListPhraseSetResponse.Builder

addPhraseSets(int index, PhraseSet.Builder builderForValue)

public ListPhraseSetResponse.Builder addPhraseSets(int index, PhraseSet.Builder builderForValue)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameters
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetResponse.Builder

addPhraseSetsBuilder()

public PhraseSet.Builder addPhraseSetsBuilder()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
PhraseSet.Builder

addPhraseSetsBuilder(int index)

public PhraseSet.Builder addPhraseSetsBuilder(int index)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPhraseSetResponse build()
Returns
TypeDescription
ListPhraseSetResponse

buildPartial()

public ListPhraseSetResponse buildPartial()
Returns
TypeDescription
ListPhraseSetResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPhraseSetResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListPhraseSetResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhraseSets()

public ListPhraseSetResponse.Builder clearPhraseSets()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
ListPhraseSetResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPhraseSetResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPhraseSetResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getPhraseSets(int index)

public PhraseSet getPhraseSets(int index)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet

getPhraseSetsBuilder(int index)

public PhraseSet.Builder getPhraseSetsBuilder(int index)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet.Builder

getPhraseSetsBuilderList()

public List<PhraseSet.Builder> getPhraseSetsBuilderList()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
List<Builder>

getPhraseSetsCount()

public int getPhraseSetsCount()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
int

getPhraseSetsList()

public List<PhraseSet> getPhraseSetsList()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
List<PhraseSet>

getPhraseSetsOrBuilder(int index)

public PhraseSetOrBuilder getPhraseSetsOrBuilder(int index)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSetOrBuilder

getPhraseSetsOrBuilderList()

public List<? extends PhraseSetOrBuilder> getPhraseSetsOrBuilderList()

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1p1beta1.PhraseSetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPhraseSetResponse other)

public ListPhraseSetResponse.Builder mergeFrom(ListPhraseSetResponse other)
Parameter
NameDescription
otherListPhraseSetResponse
Returns
TypeDescription
ListPhraseSetResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePhraseSets(int index)

public ListPhraseSetResponse.Builder removePhraseSets(int index)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListPhraseSetResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPhraseSetResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListPhraseSetResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPhraseSetResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListPhraseSetResponse.Builder

This builder for chaining.

setPhraseSets(int index, PhraseSet value)

public ListPhraseSetResponse.Builder setPhraseSets(int index, PhraseSet value)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameters
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
ListPhraseSetResponse.Builder

setPhraseSets(int index, PhraseSet.Builder builderForValue)

public ListPhraseSetResponse.Builder setPhraseSets(int index, PhraseSet.Builder builderForValue)

The phrase set.

repeated .google.cloud.speech.v1p1beta1.PhraseSet phrase_sets = 1;

Parameters
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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