Class FetchModelsResponse.Builder (0.1.0)

public static final class FetchModelsResponse.Builder extends GeneratedMessageV3.Builder<FetchModelsResponse.Builder> implements FetchModelsResponseOrBuilder

Response message for GkeInferenceQuickstart.FetchModels.

Protobuf type google.cloud.gkerecommender.v1.FetchModelsResponse

Static Methods

getDescriptor()

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

Methods

addAllModels(Iterable<String> values)

public FetchModelsResponse.Builder addAllModels(Iterable<String> values)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<String>

The models to add.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

addModels(String value)

public FetchModelsResponse.Builder addModels(String value)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The models to add.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

addModelsBytes(ByteString value)

public FetchModelsResponse.Builder addModelsBytes(ByteString value)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes of the models to add.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchModelsResponse build()
Returns
Type Description
FetchModelsResponse

buildPartial()

public FetchModelsResponse buildPartial()
Returns
Type Description
FetchModelsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearModels()

public FetchModelsResponse.Builder clearModels()

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

clearNextPageToken()

public FetchModelsResponse.Builder clearNextPageToken()

Output only. A token which may be sent as page_token in a subsequent FetchModelsResponse call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public FetchModelsResponse getDefaultInstanceForType()
Returns
Type Description
FetchModelsResponse

getDescriptorForType()

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

getModels(int index)

public String getModels(int index)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The models at the given index.

getModelsBytes(int index)

public ByteString getModelsBytes(int index)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the models at the given index.

getModelsCount()

public int getModelsCount()

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The count of models.

getModelsList()

public ProtocolStringList getModelsList()

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ProtocolStringList

A list containing the models.

getNextPageToken()

public String getNextPageToken()

Output only. A token which may be sent as page_token in a subsequent FetchModelsResponse call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Output only. A token which may be sent as page_token in a subsequent FetchModelsResponse call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

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(FetchModelsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setModels(int index, String value)

public FetchModelsResponse.Builder setModels(int index, String value)

Output only. List of available models. Open-source models follow the Huggingface Hub owner/model_name format.

repeated string models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int

The index to set the value at.

value String

The models to set.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

setNextPageToken(String value)

public FetchModelsResponse.Builder setNextPageToken(String value)

Output only. A token which may be sent as page_token in a subsequent FetchModelsResponse call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public FetchModelsResponse.Builder setNextPageTokenBytes(ByteString value)

Output only. A token which may be sent as page_token in a subsequent FetchModelsResponse call to retrieve the next page of results. If this field is omitted or empty, then there are no more results to return.

string next_page_token = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
FetchModelsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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