Class ListCatalogItemsResponse.Builder (0.10.4)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.recommendationengine.v1beta1.CatalogItem>
Returns
TypeDescription
ListCatalogItemsResponse.Builder

addCatalogItems(CatalogItem value)

public ListCatalogItemsResponse.Builder addCatalogItems(CatalogItem value)

The catalog items.

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

Parameter
NameDescription
valueCatalogItem
Returns
TypeDescription
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
NameDescription
builderForValueCatalogItem.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueCatalogItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCatalogItem.Builder
Returns
TypeDescription
ListCatalogItemsResponse.Builder

addCatalogItemsBuilder()

public CatalogItem.Builder addCatalogItemsBuilder()

The catalog items.

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

Returns
TypeDescription
CatalogItem.Builder

addCatalogItemsBuilder(int index)

public CatalogItem.Builder addCatalogItemsBuilder(int index)

The catalog items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CatalogItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCatalogItemsResponse build()
Returns
TypeDescription
ListCatalogItemsResponse

buildPartial()

public ListCatalogItemsResponse buildPartial()
Returns
TypeDescription
ListCatalogItemsResponse

clear()

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

clearCatalogItems()

public ListCatalogItemsResponse.Builder clearCatalogItems()

The catalog items.

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

Returns
TypeDescription
ListCatalogItemsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListCatalogItemsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ListCatalogItemsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListCatalogItemsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListCatalogItemsResponse.Builder
Overrides

clone()

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

getCatalogItems(int index)

public CatalogItem getCatalogItems(int index)

The catalog items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CatalogItem

getCatalogItemsBuilder(int index)

public CatalogItem.Builder getCatalogItemsBuilder(int index)

The catalog items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CatalogItem.Builder

getCatalogItemsBuilderList()

public List<CatalogItem.Builder> getCatalogItemsBuilderList()

The catalog items.

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

Returns
TypeDescription
List<Builder>

getCatalogItemsCount()

public int getCatalogItemsCount()

The catalog items.

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

Returns
TypeDescription
int

getCatalogItemsList()

public List<CatalogItem> getCatalogItemsList()

The catalog items.

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

Returns
TypeDescription
List<CatalogItem>

getCatalogItemsOrBuilder(int index)

public CatalogItemOrBuilder getCatalogItemsOrBuilder(int index)

The catalog items.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
CatalogItemOrBuilder

getCatalogItemsOrBuilderList()

public List<? extends CatalogItemOrBuilder> getCatalogItemsOrBuilderList()

The catalog items.

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

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

getDefaultInstanceForType()

public ListCatalogItemsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCatalogItemsResponse

getDescriptorForType()

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

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListCatalogItemsResponse other)

public ListCatalogItemsResponse.Builder mergeFrom(ListCatalogItemsResponse other)
Parameter
NameDescription
otherListCatalogItemsResponse
Returns
TypeDescription
ListCatalogItemsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListCatalogItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueCatalogItem
Returns
TypeDescription
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
NameDescription
indexint
builderForValueCatalogItem.Builder
Returns
TypeDescription
ListCatalogItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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