public static final class SearchProductsResponse.Builder extends GeneratedMessageV3.Builder<SearchProductsResponse.Builder> implements SearchProductsResponseOrBuilder
Response message for PrivateCatalog.SearchProducts.
Protobuf type google.cloud.privatecatalog.v1beta1.SearchProductsResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllProducts(Iterable<? extends Product> values)
public SearchProductsResponse.Builder addAllProducts(Iterable<? extends Product> values)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.privatecatalog.v1beta1.Product>
|
Returns
addProducts(Product value)
public SearchProductsResponse.Builder addProducts(Product value)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
addProducts(Product.Builder builderForValue)
public SearchProductsResponse.Builder addProducts(Product.Builder builderForValue)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
addProducts(int index, Product value)
public SearchProductsResponse.Builder addProducts(int index, Product value)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameters
Returns
addProducts(int index, Product.Builder builderForValue)
public SearchProductsResponse.Builder addProducts(int index, Product.Builder builderForValue)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameters
Returns
addProductsBuilder()
public Product.Builder addProductsBuilder()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
addProductsBuilder(int index)
public Product.Builder addProductsBuilder(int index)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchProductsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchProductsResponse build()
Returns
buildPartial()
public SearchProductsResponse buildPartial()
Returns
clear()
public SearchProductsResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearNextPageToken()
public SearchProductsResponse.Builder clearNextPageToken()
A pagination token returned from a previous call to SearchProducts that
indicates from where listing should continue.
string next_page_token = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProducts()
public SearchProductsResponse.Builder clearProducts()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
clone()
public SearchProductsResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchProductsResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getNextPageToken()
public String getNextPageToken()
A pagination token returned from a previous call to SearchProducts that
indicates from where listing should continue.
string next_page_token = 2;
Returns
Type | Description |
String | The nextPageToken.
|
getNextPageTokenBytes()
public ByteString getNextPageTokenBytes()
A pagination token returned from a previous call to SearchProducts that
indicates from where listing should continue.
string next_page_token = 2;
Returns
Type | Description |
ByteString | The bytes for nextPageToken.
|
getProducts(int index)
public Product getProducts(int index)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
getProductsBuilder(int index)
public Product.Builder getProductsBuilder(int index)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
getProductsBuilderList()
public List<Product.Builder> getProductsBuilderList()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
getProductsCount()
public int getProductsCount()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
getProductsList()
public List<Product> getProductsList()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
getProductsOrBuilder(int index)
public ProductOrBuilder getProductsOrBuilder(int index)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
getProductsOrBuilderList()
public List<? extends ProductOrBuilder> getProductsOrBuilderList()
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Returns
Type | Description |
List<? extends com.google.cloud.privatecatalog.v1beta1.ProductOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchProductsResponse other)
public SearchProductsResponse.Builder mergeFrom(SearchProductsResponse other)
Parameter
Returns
public SearchProductsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchProductsResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeProducts(int index)
public SearchProductsResponse.Builder removeProducts(int index)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setNextPageToken(String value)
public SearchProductsResponse.Builder setNextPageToken(String value)
A pagination token returned from a previous call to SearchProducts that
indicates from where listing should continue.
string next_page_token = 2;
Parameter
Name | Description |
value | String
The nextPageToken to set.
|
Returns
setNextPageTokenBytes(ByteString value)
public SearchProductsResponse.Builder setNextPageTokenBytes(ByteString value)
A pagination token returned from a previous call to SearchProducts that
indicates from where listing should continue.
string next_page_token = 2;
Parameter
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
Returns
setProducts(int index, Product value)
public SearchProductsResponse.Builder setProducts(int index, Product value)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameters
Returns
setProducts(int index, Product.Builder builderForValue)
public SearchProductsResponse.Builder setProducts(int index, Product.Builder builderForValue)
The Product
resources computed from the resource context.
repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchProductsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchProductsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides