Class ListModelsResponse.Builder (2.53.0)

public static final class ListModelsResponse.Builder extends GeneratedMessageV3.Builder<ListModelsResponse.Builder> implements ListModelsResponseOrBuilder

Response message for ListModels.

Protobuf type google.cloud.translation.v3.ListModelsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllModels(Iterable<? extends Model> values)

public ListModelsResponse.Builder addAllModels(Iterable<? extends Model> values)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.translate.v3.Model>
Returns
Type Description
ListModelsResponse.Builder

addModels(Model value)

public ListModelsResponse.Builder addModels(Model value)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
value Model
Returns
Type Description
ListModelsResponse.Builder

addModels(Model.Builder builderForValue)

public ListModelsResponse.Builder addModels(Model.Builder builderForValue)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
builderForValue Model.Builder
Returns
Type Description
ListModelsResponse.Builder

addModels(int index, Model value)

public ListModelsResponse.Builder addModels(int index, Model value)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameters
Name Description
index int
value Model
Returns
Type Description
ListModelsResponse.Builder

addModels(int index, Model.Builder builderForValue)

public ListModelsResponse.Builder addModels(int index, Model.Builder builderForValue)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameters
Name Description
index int
builderForValue Model.Builder
Returns
Type Description
ListModelsResponse.Builder

addModelsBuilder()

public Model.Builder addModelsBuilder()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
Model.Builder

addModelsBuilder(int index)

public Model.Builder addModelsBuilder(int index)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
index int
Returns
Type Description
Model.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListModelsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListModelsResponse.Builder
Overrides

build()

public ListModelsResponse build()
Returns
Type Description
ListModelsResponse

buildPartial()

public ListModelsResponse buildPartial()
Returns
Type Description
ListModelsResponse

clear()

public ListModelsResponse.Builder clear()
Returns
Type Description
ListModelsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ListModelsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListModelsResponse.Builder
Overrides

clearModels()

public ListModelsResponse.Builder clearModels()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
ListModelsResponse.Builder

clearNextPageToken()

public ListModelsResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

string next_page_token = 2;

Returns
Type Description
ListModelsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListModelsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ListModelsResponse.Builder
Overrides

clone()

public ListModelsResponse.Builder clone()
Returns
Type Description
ListModelsResponse.Builder
Overrides

getDefaultInstanceForType()

public ListModelsResponse getDefaultInstanceForType()
Returns
Type Description
ListModelsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getModels(int index)

public Model getModels(int index)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
index int
Returns
Type Description
Model

getModelsBuilder(int index)

public Model.Builder getModelsBuilder(int index)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
index int
Returns
Type Description
Model.Builder

getModelsBuilderList()

public List<Model.Builder> getModelsBuilderList()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
List<Builder>

getModelsCount()

public int getModelsCount()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
int

getModelsList()

public List<Model> getModelsList()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
List<Model>

getModelsOrBuilder(int index)

public ModelOrBuilder getModelsOrBuilder(int index)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
index int
Returns
Type Description
ModelOrBuilder

getModelsOrBuilderList()

public List<? extends ModelOrBuilder> getModelsOrBuilderList()

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Returns
Type Description
List<? extends com.google.cloud.translate.v3.ModelOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListModelsResponse other)

public ListModelsResponse.Builder mergeFrom(ListModelsResponse other)
Parameter
Name Description
other ListModelsResponse
Returns
Type Description
ListModelsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListModelsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ListModelsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListModelsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ListModelsResponse.Builder
Overrides

removeModels(int index)

public ListModelsResponse.Builder removeModels(int index)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameter
Name Description
index int
Returns
Type Description
ListModelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListModelsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListModelsResponse.Builder
Overrides

setModels(int index, Model value)

public ListModelsResponse.Builder setModels(int index, Model value)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameters
Name Description
index int
value Model
Returns
Type Description
ListModelsResponse.Builder

setModels(int index, Model.Builder builderForValue)

public ListModelsResponse.Builder setModels(int index, Model.Builder builderForValue)

The models read.

repeated .google.cloud.translation.v3.Model models = 1;

Parameters
Name Description
index int
builderForValue Model.Builder
Returns
Type Description
ListModelsResponse.Builder

setNextPageToken(String value)

public ListModelsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListModelsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListModelsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListModelsResponse.Builder

This builder for chaining.

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

public ListModelsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListModelsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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