Class ListRecommendersRequest.Builder (2.29.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListRecommendersRequest build()
Returns
TypeDescription
ListRecommendersRequest

buildPartial()

public ListRecommendersRequest buildPartial()
Returns
TypeDescription
ListRecommendersRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public ListRecommendersRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ListRecommendersRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListRecommendersRequest getDefaultInstanceForType()
Returns
TypeDescription
ListRecommendersRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for pageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListRecommendersRequest other)

public ListRecommendersRequest.Builder mergeFrom(ListRecommendersRequest other)
Parameter
NameDescription
otherListRecommendersRequest
Returns
TypeDescription
ListRecommendersRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public ListRecommendersRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueint

The pageSize to set.

Returns
TypeDescription
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
NameDescription
valueString

The pageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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