Class ListCatalogItemsResponse.Builder (0.49.0)

public static final class ListCatalogItemsResponse.Builder extends GeneratedMessageV3.Builder<ListCatalogItemsResponse.Builder> implements ListCatalogItemsResponseOrBuilder

Response message for ListCatalogItems method.

Protobuf type google.cloud.recommendationengine.v1beta1.ListCatalogItemsResponse

Static Methods

getDescriptor()

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

Methods

addAllCatalogItems(Iterable<? extends CatalogItem> values)

public ListCatalogItemsResponse.Builder addAllCatalogItems(Iterable<? extends CatalogItem> values)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItem>
Returns
Type Description
ListCatalogItemsResponse.Builder

addCatalogItems(CatalogItem value)

public ListCatalogItemsResponse.Builder addCatalogItems(CatalogItem value)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
value CatalogItem
Returns
Type Description
ListCatalogItemsResponse.Builder

addCatalogItems(CatalogItem.Builder builderForValue)

public ListCatalogItemsResponse.Builder addCatalogItems(CatalogItem.Builder builderForValue)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
builderForValue CatalogItem.Builder
Returns
Type Description
ListCatalogItemsResponse.Builder

addCatalogItems(int index, CatalogItem value)

public ListCatalogItemsResponse.Builder addCatalogItems(int index, CatalogItem value)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameters
Name Description
index int
value CatalogItem
Returns
Type Description
ListCatalogItemsResponse.Builder

addCatalogItems(int index, CatalogItem.Builder builderForValue)

public ListCatalogItemsResponse.Builder addCatalogItems(int index, CatalogItem.Builder builderForValue)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameters
Name Description
index int
builderForValue CatalogItem.Builder
Returns
Type Description
ListCatalogItemsResponse.Builder

addCatalogItemsBuilder()

public CatalogItem.Builder addCatalogItemsBuilder()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
CatalogItem.Builder

addCatalogItemsBuilder(int index)

public CatalogItem.Builder addCatalogItemsBuilder(int index)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
index int
Returns
Type Description
CatalogItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCatalogItemsResponse build()
Returns
Type Description
ListCatalogItemsResponse

buildPartial()

public ListCatalogItemsResponse buildPartial()
Returns
Type Description
ListCatalogItemsResponse

clear()

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

clearCatalogItems()

public ListCatalogItemsResponse.Builder clearCatalogItems()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
ListCatalogItemsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCatalogItemsResponse.Builder clearNextPageToken()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListCatalogItemRequest.page_token.

string next_page_token = 2;

Returns
Type Description
ListCatalogItemsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCatalogItems(int index)

public CatalogItem getCatalogItems(int index)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
index int
Returns
Type Description
CatalogItem

getCatalogItemsBuilder(int index)

public CatalogItem.Builder getCatalogItemsBuilder(int index)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
index int
Returns
Type Description
CatalogItem.Builder

getCatalogItemsBuilderList()

public List<CatalogItem.Builder> getCatalogItemsBuilderList()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
List<Builder>

getCatalogItemsCount()

public int getCatalogItemsCount()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
int

getCatalogItemsList()

public List<CatalogItem> getCatalogItemsList()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
List<CatalogItem>

getCatalogItemsOrBuilder(int index)

public CatalogItemOrBuilder getCatalogItemsOrBuilder(int index)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
index int
Returns
Type Description
CatalogItemOrBuilder

getCatalogItemsOrBuilderList()

public List<? extends CatalogItemOrBuilder> getCatalogItemsOrBuilderList()

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Returns
Type Description
List<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItemOrBuilder>

getDefaultInstanceForType()

public ListCatalogItemsResponse getDefaultInstanceForType()
Returns
Type Description
ListCatalogItemsResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListCatalogItemRequest.page_token.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

If empty, the list is complete. If nonempty, the token to pass to the next request's ListCatalogItemRequest.page_token.

string next_page_token = 2;

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCatalogItems(int index)

public ListCatalogItemsResponse.Builder removeCatalogItems(int index)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameter
Name Description
index int
Returns
Type Description
ListCatalogItemsResponse.Builder

setCatalogItems(int index, CatalogItem value)

public ListCatalogItemsResponse.Builder setCatalogItems(int index, CatalogItem value)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameters
Name Description
index int
value CatalogItem
Returns
Type Description
ListCatalogItemsResponse.Builder

setCatalogItems(int index, CatalogItem.Builder builderForValue)

public ListCatalogItemsResponse.Builder setCatalogItems(int index, CatalogItem.Builder builderForValue)

The catalog items.

repeated .google.cloud.recommendationengine.v1beta1.CatalogItem catalog_items = 1;

Parameters
Name Description
index int
builderForValue CatalogItem.Builder
Returns
Type Description
ListCatalogItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCatalogItemsResponse.Builder setNextPageToken(String value)

If empty, the list is complete. If nonempty, the token to pass to the next request's ListCatalogItemRequest.page_token.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListCatalogItemsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCatalogItemsResponse.Builder setNextPageTokenBytes(ByteString value)

If empty, the list is complete. If nonempty, the token to pass to the next request's ListCatalogItemRequest.page_token.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListCatalogItemsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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