Class FetchModelsRequest.Builder (0.1.0)

public static final class FetchModelsRequest.Builder extends GeneratedMessageV3.Builder<FetchModelsRequest.Builder> implements FetchModelsRequestOrBuilder

Request message for GkeInferenceQuickstart.FetchModels.

Protobuf type google.cloud.gkerecommender.v1.FetchModelsRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public FetchModelsRequest build()
Returns
Type Description
FetchModelsRequest

buildPartial()

public FetchModelsRequest buildPartial()
Returns
Type Description
FetchModelsRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public FetchModelsRequest.Builder clearPageSize()

Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchModelsRequest.Builder

This builder for chaining.

clearPageToken()

public FetchModelsRequest.Builder clearPageToken()

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FetchModelsRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public FetchModelsRequest getDefaultInstanceForType()
Returns
Type Description
FetchModelsRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for pageToken.

hasPageSize()

public boolean hasPageSize()

Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pageSize field is set.

hasPageToken()

public boolean hasPageToken()

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the pageToken field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(FetchModelsRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public FetchModelsRequest.Builder setPageSize(int value)

Optional. The target number of results to return in a single response. If not specified, a default value will be chosen by the service. Note that the response may include a partial list and a caller should only rely on the response's next_page_token to determine if there are more instances left to be queried.

optional int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
FetchModelsRequest.Builder

This builder for chaining.

setPageToken(String value)

public FetchModelsRequest.Builder setPageToken(String value)

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
FetchModelsRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public FetchModelsRequest.Builder setPageTokenBytes(ByteString value)

Optional. The value of next_page_token received from a previous FetchModelsRequest call. Provide this to retrieve the subsequent page in a multi-page list of results. When paginating, all other parameters provided to FetchModelsRequest must match the call that provided the page token.

optional string page_token = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
FetchModelsRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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