Class ListCatalogsResponse.Builder (2.43.0)

public static final class ListCatalogsResponse.Builder extends GeneratedMessageV3.Builder<ListCatalogsResponse.Builder> implements ListCatalogsResponseOrBuilder

Response for CatalogService.ListCatalogs method.

Protobuf type google.cloud.retail.v2beta.ListCatalogsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllCatalogs(Iterable<? extends Catalog> values)

public ListCatalogsResponse.Builder addAllCatalogs(Iterable<? extends Catalog> values)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.retail.v2beta.Catalog>
Returns
TypeDescription
ListCatalogsResponse.Builder

addCatalogs(Catalog value)

public ListCatalogsResponse.Builder addCatalogs(Catalog value)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
valueCatalog
Returns
TypeDescription
ListCatalogsResponse.Builder

addCatalogs(Catalog.Builder builderForValue)

public ListCatalogsResponse.Builder addCatalogs(Catalog.Builder builderForValue)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
builderForValueCatalog.Builder
Returns
TypeDescription
ListCatalogsResponse.Builder

addCatalogs(int index, Catalog value)

public ListCatalogsResponse.Builder addCatalogs(int index, Catalog value)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameters
NameDescription
indexint
valueCatalog
Returns
TypeDescription
ListCatalogsResponse.Builder

addCatalogs(int index, Catalog.Builder builderForValue)

public ListCatalogsResponse.Builder addCatalogs(int index, Catalog.Builder builderForValue)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameters
NameDescription
indexint
builderForValueCatalog.Builder
Returns
TypeDescription
ListCatalogsResponse.Builder

addCatalogsBuilder()

public Catalog.Builder addCatalogsBuilder()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
Catalog.Builder

addCatalogsBuilder(int index)

public Catalog.Builder addCatalogsBuilder(int index)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Catalog.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListCatalogsResponse build()
Returns
TypeDescription
ListCatalogsResponse

buildPartial()

public ListCatalogsResponse buildPartial()
Returns
TypeDescription
ListCatalogsResponse

clear()

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

clearCatalogs()

public ListCatalogsResponse.Builder clearCatalogs()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
ListCatalogsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListCatalogsResponse.Builder clearNextPageToken()

A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
ListCatalogsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getCatalogs(int index)

public Catalog getCatalogs(int index)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Catalog

getCatalogsBuilder(int index)

public Catalog.Builder getCatalogsBuilder(int index)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Catalog.Builder

getCatalogsBuilderList()

public List<Catalog.Builder> getCatalogsBuilderList()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
List<Builder>

getCatalogsCount()

public int getCatalogsCount()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
int

getCatalogsList()

public List<Catalog> getCatalogsList()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
List<Catalog>

getCatalogsOrBuilder(int index)

public CatalogOrBuilder getCatalogsOrBuilder(int index)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
CatalogOrBuilder

getCatalogsOrBuilderList()

public List<? extends CatalogOrBuilder> getCatalogsOrBuilderList()

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Returns
TypeDescription
List<? extends com.google.cloud.retail.v2beta.CatalogOrBuilder>

getDefaultInstanceForType()

public ListCatalogsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListCatalogsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

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

public ListCatalogsResponse.Builder mergeFrom(ListCatalogsResponse other)
Parameter
NameDescription
otherListCatalogsResponse
Returns
TypeDescription
ListCatalogsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCatalogs(int index)

public ListCatalogsResponse.Builder removeCatalogs(int index)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListCatalogsResponse.Builder

setCatalogs(int index, Catalog value)

public ListCatalogsResponse.Builder setCatalogs(int index, Catalog value)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameters
NameDescription
indexint
valueCatalog
Returns
TypeDescription
ListCatalogsResponse.Builder

setCatalogs(int index, Catalog.Builder builderForValue)

public ListCatalogsResponse.Builder setCatalogs(int index, Catalog.Builder builderForValue)

All the customer's Catalogs.

repeated .google.cloud.retail.v2beta.Catalog catalogs = 1;

Parameters
NameDescription
indexint
builderForValueCatalog.Builder
Returns
TypeDescription
ListCatalogsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListCatalogsResponse.Builder setNextPageToken(String value)

A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListCatalogsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListCatalogsResponse.Builder setNextPageTokenBytes(ByteString value)

A token that can be sent as ListCatalogsRequest.page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListCatalogsResponse.Builder

This builder for chaining.

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

public ListCatalogsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListCatalogsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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