Class ListModelsResponse.Builder (3.18.0)

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

Response message for ModelService.ListModels

Protobuf type google.cloud.aiplatform.v1beta1.ListModelsResponse

Static Methods

getDescriptor()

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

Methods

addAllModels(Iterable<? extends Model> values)

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

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.Model>
Returns
TypeDescription
ListModelsResponse.Builder

addModels(Model value)

public ListModelsResponse.Builder addModels(Model value)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
valueModel
Returns
TypeDescription
ListModelsResponse.Builder

addModels(Model.Builder builderForValue)

public ListModelsResponse.Builder addModels(Model.Builder builderForValue)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
builderForValueModel.Builder
Returns
TypeDescription
ListModelsResponse.Builder

addModels(int index, Model value)

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

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameters
NameDescription
indexint
valueModel
Returns
TypeDescription
ListModelsResponse.Builder

addModels(int index, Model.Builder builderForValue)

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

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameters
NameDescription
indexint
builderForValueModel.Builder
Returns
TypeDescription
ListModelsResponse.Builder

addModelsBuilder()

public Model.Builder addModelsBuilder()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
Model.Builder

addModelsBuilder(int index)

public Model.Builder addModelsBuilder(int index)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Model.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListModelsResponse build()
Returns
TypeDescription
ListModelsResponse

buildPartial()

public ListModelsResponse buildPartial()
Returns
TypeDescription
ListModelsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModels()

public ListModelsResponse.Builder clearModels()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
ListModelsResponse.Builder

clearNextPageToken()

public ListModelsResponse.Builder clearNextPageToken()

A token to retrieve next page of results. Pass to ListModelsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
ListModelsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListModelsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListModelsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getModels(int index)

public Model getModels(int index)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Model

getModelsBuilder(int index)

public Model.Builder getModelsBuilder(int index)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Model.Builder

getModelsBuilderList()

public List<Model.Builder> getModelsBuilderList()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
List<Builder>

getModelsCount()

public int getModelsCount()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
int

getModelsList()

public List<Model> getModelsList()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
List<Model>

getModelsOrBuilder(int index)

public ModelOrBuilder getModelsOrBuilder(int index)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ModelOrBuilder

getModelsOrBuilderList()

public List<? extends ModelOrBuilder> getModelsOrBuilderList()

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.ModelOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token to retrieve next page of results. Pass to ListModelsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token to retrieve next page of results. Pass to ListModelsRequest.page_token to obtain that page.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListModelsResponse other)

public ListModelsResponse.Builder mergeFrom(ListModelsResponse other)
Parameter
NameDescription
otherListModelsResponse
Returns
TypeDescription
ListModelsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeModels(int index)

public ListModelsResponse.Builder removeModels(int index)

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListModelsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setModels(int index, Model value)

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

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameters
NameDescription
indexint
valueModel
Returns
TypeDescription
ListModelsResponse.Builder

setModels(int index, Model.Builder builderForValue)

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

List of Models in the requested page.

repeated .google.cloud.aiplatform.v1beta1.Model models = 1;

Parameters
NameDescription
indexint
builderForValueModel.Builder
Returns
TypeDescription
ListModelsResponse.Builder

setNextPageToken(String value)

public ListModelsResponse.Builder setNextPageToken(String value)

A token to retrieve next page of results. Pass to ListModelsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListModelsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListModelsResponse.Builder setNextPageTokenBytes(ByteString value)

A token to retrieve next page of results. Pass to ListModelsRequest.page_token to obtain that page.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListModelsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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