Class ListRecommendersRequest.Builder (2.56.0)

public static final class ListRecommendersRequest.Builder extends GeneratedMessageV3.Builder<ListRecommendersRequest.Builder> implements ListRecommendersRequestOrBuilder

Request for the ListRecommender method.

Protobuf type google.cloud.recommender.v1beta1.ListRecommendersRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListRecommendersRequest build()
Returns
Type Description
ListRecommendersRequest

buildPartial()

public ListRecommendersRequest buildPartial()
Returns
Type Description
ListRecommendersRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListRecommendersRequest.Builder clearPageSize()

The number of RecommenderTypes to return per page. The service may return fewer than this value.

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

Returns
Type Description
ListRecommendersRequest.Builder

This builder for chaining.

clearPageToken()

public ListRecommendersRequest.Builder clearPageToken()

A page token, received from a previous ListRecommenders call. Provide this to retrieve the subsequent page.

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

Returns
Type Description
ListRecommendersRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRecommendersRequest getDefaultInstanceForType()
Returns
Type Description
ListRecommendersRequest

getDescriptorForType()

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

getPageSize()

public int getPageSize()

The number of RecommenderTypes to return per page. The service may return fewer than this value.

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

Returns
Type Description
int

The pageSize.

getPageToken()

public String getPageToken()

A page token, received from a previous ListRecommenders call. Provide this to retrieve the subsequent page.

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

Returns
Type Description
String

The pageToken.

getPageTokenBytes()

public ByteString getPageTokenBytes()

A page token, received from a previous ListRecommenders call. Provide this to retrieve the subsequent page.

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

Returns
Type Description
ByteString

The bytes for pageToken.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListRecommendersRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setPageSize(int value)

public ListRecommendersRequest.Builder setPageSize(int value)

The number of RecommenderTypes to return per page. The service may return fewer than this value.

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

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListRecommendersRequest.Builder

This builder for chaining.

setPageToken(String value)

public ListRecommendersRequest.Builder setPageToken(String value)

A page token, received from a previous ListRecommenders call. Provide this to retrieve the subsequent page.

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

Parameter
Name Description
value String

The pageToken to set.

Returns
Type Description
ListRecommendersRequest.Builder

This builder for chaining.

setPageTokenBytes(ByteString value)

public ListRecommendersRequest.Builder setPageTokenBytes(ByteString value)

A page token, received from a previous ListRecommenders call. Provide this to retrieve the subsequent page.

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

Parameter
Name Description
value ByteString

The bytes for pageToken to set.

Returns
Type Description
ListRecommendersRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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