public static final class ListProductsResponse.Builder extends GeneratedMessageV3.Builder<ListProductsResponse.Builder> implements ListProductsResponseOrBuilder
Response message for ListProducts.
Protobuf type google.cloud.channel.v1.ListProductsResponse
Methods
addAllProducts(Iterable<? extends Product> values)
public ListProductsResponse.Builder addAllProducts(Iterable<? extends Product> values)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.channel.v1.Product>
|
Returns
addProducts(Product value)
public ListProductsResponse.Builder addProducts(Product value)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
addProducts(Product.Builder builderForValue)
public ListProductsResponse.Builder addProducts(Product.Builder builderForValue)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
addProducts(int index, Product value)
public ListProductsResponse.Builder addProducts(int index, Product value)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameters
Returns
addProducts(int index, Product.Builder builderForValue)
public ListProductsResponse.Builder addProducts(int index, Product.Builder builderForValue)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameters
Returns
addProductsBuilder()
public Product.Builder addProductsBuilder()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
addProductsBuilder(int index)
public Product.Builder addProductsBuilder(int index)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListProductsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ListProductsResponse build()
Returns
buildPartial()
public ListProductsResponse buildPartial()
Returns
clear()
public ListProductsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ListProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public ListProductsResponse.Builder clearNextPageToken()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public ListProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProducts()
public ListProductsResponse.Builder clearProducts()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
clone()
public ListProductsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ListProductsResponse getDefaultInstanceForType()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A token to retrieve the next page of results.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getProducts(int index)
public Product getProducts(int index)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
getProductsBuilder(int index)
public Product.Builder getProductsBuilder(int index)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
getProductsBuilderList()
public List<Product.Builder> getProductsBuilderList()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
getProductsCount()
public int getProductsCount()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
getProductsList()
public List<Product> getProductsList()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
getProductsOrBuilder(int index)
public ProductOrBuilder getProductsOrBuilder(int index)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
getProductsOrBuilderList()
public List<? extends ProductOrBuilder> getProductsOrBuilderList()
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Returns
Type | Description |
List<? extends com.google.cloud.channel.v1.ProductOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(ListProductsResponse other)
public ListProductsResponse.Builder mergeFrom(ListProductsResponse other)
Parameter
Returns
public ListProductsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ListProductsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeProducts(int index)
public ListProductsResponse.Builder removeProducts(int index)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ListProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public ListProductsResponse.Builder setNextPageToken(String value)
A token to retrieve the next page of results.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public ListProductsResponse.Builder setNextPageTokenBytes(ByteString value)
A token to retrieve the next page of results.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setProducts(int index, Product value)
public ListProductsResponse.Builder setProducts(int index, Product value)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameters
Returns
setProducts(int index, Product.Builder builderForValue)
public ListProductsResponse.Builder setProducts(int index, Product.Builder builderForValue)
List of Products requested.
repeated .google.cloud.channel.v1.Product products = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListProductsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final ListProductsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides