Class ListPhraseSetsResponse.Builder (4.13.0)

public static final class ListPhraseSetsResponse.Builder extends GeneratedMessageV3.Builder<ListPhraseSetsResponse.Builder> implements ListPhraseSetsResponseOrBuilder

Response message for the ListPhraseSets method.

Protobuf type google.cloud.speech.v2.ListPhraseSetsResponse

Static Methods

getDescriptor()

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

Methods

addAllPhraseSets(Iterable<? extends PhraseSet> values)

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

The list of requested PhraseSets.

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

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

addPhraseSets(PhraseSet value)

public ListPhraseSetsResponse.Builder addPhraseSets(PhraseSet value)

The list of requested PhraseSets.

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

Parameter
NameDescription
valuePhraseSet
Returns
TypeDescription
ListPhraseSetsResponse.Builder

addPhraseSets(PhraseSet.Builder builderForValue)

public ListPhraseSetsResponse.Builder addPhraseSets(PhraseSet.Builder builderForValue)

The list of requested PhraseSets.

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

Parameter
NameDescription
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetsResponse.Builder

addPhraseSets(int index, PhraseSet value)

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

The list of requested PhraseSets.

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

Parameters
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
ListPhraseSetsResponse.Builder

addPhraseSets(int index, PhraseSet.Builder builderForValue)

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

The list of requested PhraseSets.

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

Parameters
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetsResponse.Builder

addPhraseSetsBuilder()

public PhraseSet.Builder addPhraseSetsBuilder()

The list of requested PhraseSets.

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

Returns
TypeDescription
PhraseSet.Builder

addPhraseSetsBuilder(int index)

public PhraseSet.Builder addPhraseSetsBuilder(int index)

The list of requested PhraseSets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListPhraseSetsResponse build()
Returns
TypeDescription
ListPhraseSetsResponse

buildPartial()

public ListPhraseSetsResponse buildPartial()
Returns
TypeDescription
ListPhraseSetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListPhraseSetsResponse.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. This token expires after 72 hours.

string next_page_token = 2;

Returns
TypeDescription
ListPhraseSetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPhraseSets()

public ListPhraseSetsResponse.Builder clearPhraseSets()

The list of requested PhraseSets.

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

Returns
TypeDescription
ListPhraseSetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListPhraseSetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListPhraseSetsResponse

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. This token expires after 72 hours.

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. This token expires after 72 hours.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getPhraseSets(int index)

public PhraseSet getPhraseSets(int index)

The list of requested PhraseSets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet

getPhraseSetsBuilder(int index)

public PhraseSet.Builder getPhraseSetsBuilder(int index)

The list of requested PhraseSets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSet.Builder

getPhraseSetsBuilderList()

public List<PhraseSet.Builder> getPhraseSetsBuilderList()

The list of requested PhraseSets.

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

Returns
TypeDescription
List<Builder>

getPhraseSetsCount()

public int getPhraseSetsCount()

The list of requested PhraseSets.

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

Returns
TypeDescription
int

getPhraseSetsList()

public List<PhraseSet> getPhraseSetsList()

The list of requested PhraseSets.

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

Returns
TypeDescription
List<PhraseSet>

getPhraseSetsOrBuilder(int index)

public PhraseSetOrBuilder getPhraseSetsOrBuilder(int index)

The list of requested PhraseSets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
PhraseSetOrBuilder

getPhraseSetsOrBuilderList()

public List<? extends PhraseSetOrBuilder> getPhraseSetsOrBuilderList()

The list of requested PhraseSets.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListPhraseSetsResponse other)

public ListPhraseSetsResponse.Builder mergeFrom(ListPhraseSetsResponse other)
Parameter
NameDescription
otherListPhraseSetsResponse
Returns
TypeDescription
ListPhraseSetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removePhraseSets(int index)

public ListPhraseSetsResponse.Builder removePhraseSets(int index)

The list of requested PhraseSets.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ListPhraseSetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListPhraseSetsResponse.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. This token expires after 72 hours.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListPhraseSetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListPhraseSetsResponse.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. This token expires after 72 hours.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListPhraseSetsResponse.Builder

This builder for chaining.

setPhraseSets(int index, PhraseSet value)

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

The list of requested PhraseSets.

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

Parameters
NameDescription
indexint
valuePhraseSet
Returns
TypeDescription
ListPhraseSetsResponse.Builder

setPhraseSets(int index, PhraseSet.Builder builderForValue)

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

The list of requested PhraseSets.

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

Parameters
NameDescription
indexint
builderForValuePhraseSet.Builder
Returns
TypeDescription
ListPhraseSetsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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