public static final class ListProductsResponse.Builder extends GeneratedMessageV3.Builder<ListProductsResponse.Builder> implements ListProductsResponseOrBuilder
Response message for
ProductService.ListProducts
method.
Protobuf type google.cloud.retail.v2.ListProductsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllProducts(Iterable<? extends Product> values)
public ListProductsResponse.Builder addAllProducts(Iterable<? extends Product> values)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.retail.v2.Product>
|
addProducts(Product value)
public ListProductsResponse.Builder addProducts(Product value)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
value | Product
|
addProducts(Product.Builder builderForValue)
public ListProductsResponse.Builder addProducts(Product.Builder builderForValue)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
addProducts(int index, Product value)
public ListProductsResponse.Builder addProducts(int index, Product value)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
addProducts(int index, Product.Builder builderForValue)
public ListProductsResponse.Builder addProducts(int index, Product.Builder builderForValue)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
addProductsBuilder()
public Product.Builder addProductsBuilder()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
addProductsBuilder(int index)
public Product.Builder addProductsBuilder(int index)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListProductsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListProductsResponse build()
buildPartial()
public ListProductsResponse buildPartial()
clear()
public ListProductsResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNextPageToken()
public ListProductsResponse.Builder clearNextPageToken()
A token that can be sent as
ListProductsRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearProducts()
public ListProductsResponse.Builder clearProducts()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
clone()
public ListProductsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListProductsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNextPageToken()
public String getNextPageToken()
A token that can be sent as
ListProductsRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
Returns |
---|
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token that can be sent as
ListProductsRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
Returns |
---|
Type | Description |
ByteString | The bytes for nextPageToken.
|
getProducts(int index)
public Product getProducts(int index)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
index | int
|
getProductsBuilder(int index)
public Product.Builder getProductsBuilder(int index)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
index | int
|
getProductsBuilderList()
public List<Product.Builder> getProductsBuilderList()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
getProductsCount()
public int getProductsCount()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Returns |
---|
Type | Description |
int | |
getProductsList()
public List<Product> getProductsList()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
getProductsOrBuilder(int index)
public ProductOrBuilder getProductsOrBuilder(int index)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
index | int
|
getProductsOrBuilderList()
public List<? extends ProductOrBuilder> getProductsOrBuilderList()
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2.ProductOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListProductsResponse other)
public ListProductsResponse.Builder mergeFrom(ListProductsResponse other)
public ListProductsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListProductsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeProducts(int index)
public ListProductsResponse.Builder removeProducts(int index)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public ListProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNextPageToken(String value)
public ListProductsResponse.Builder setNextPageToken(String value)
A token that can be sent as
ListProductsRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | String
The nextPageToken to set.
|
setNextPageTokenBytes(ByteString value)
public ListProductsResponse.Builder setNextPageTokenBytes(ByteString value)
A token that can be sent as
ListProductsRequest.page_token
to retrieve the next page. If this field is omitted, there are no
subsequent pages.
string next_page_token = 2;
Parameter |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
setProducts(int index, Product value)
public ListProductsResponse.Builder setProducts(int index, Product value)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
setProducts(int index, Product.Builder builderForValue)
public ListProductsResponse.Builder setProducts(int index, Product.Builder builderForValue)
The Products.
repeated .google.cloud.retail.v2.Product products = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListProductsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListProductsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides