Class SearchProductsResponse.Builder (0.46.0)

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
Type Description
Descriptor

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
Type Description
SearchProductsResponse.Builder

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
Name Description
value Product
Returns
Type Description
SearchProductsResponse.Builder

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
Name Description
builderForValue Product.Builder
Returns
Type Description
SearchProductsResponse.Builder

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
Name Description
index int
value Product
Returns
Type Description
SearchProductsResponse.Builder

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
Name Description
index int
builderForValue Product.Builder
Returns
Type Description
SearchProductsResponse.Builder

addProductsBuilder()

public Product.Builder addProductsBuilder()

The Product resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;

Returns
Type Description
Product.Builder

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
Name Description
index int
Returns
Type Description
Product.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchProductsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchProductsResponse.Builder
Overrides

build()

public SearchProductsResponse build()
Returns
Type Description
SearchProductsResponse

buildPartial()

public SearchProductsResponse buildPartial()
Returns
Type Description
SearchProductsResponse

clear()

public SearchProductsResponse.Builder clear()
Returns
Type Description
SearchProductsResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchProductsResponse.Builder
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
Type Description
SearchProductsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchProductsResponse.Builder
Overrides

clearProducts()

public SearchProductsResponse.Builder clearProducts()

The Product resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;

Returns
Type Description
SearchProductsResponse.Builder

clone()

public SearchProductsResponse.Builder clone()
Returns
Type Description
SearchProductsResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchProductsResponse getDefaultInstanceForType()
Returns
Type Description
SearchProductsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Name Description
index int
Returns
Type Description
Product

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
Name Description
index int
Returns
Type Description
Product.Builder

getProductsBuilderList()

public List<Product.Builder> getProductsBuilderList()

The Product resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;

Returns
Type Description
List<Builder>

getProductsCount()

public int getProductsCount()

The Product resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;

Returns
Type Description
int

getProductsList()

public List<Product> getProductsList()

The Product resources computed from the resource context.

repeated .google.cloud.privatecatalog.v1beta1.Product products = 1;

Returns
Type Description
List<Product>

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
Name Description
index int
Returns
Type Description
ProductOrBuilder

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SearchProductsResponse other)

public SearchProductsResponse.Builder mergeFrom(SearchProductsResponse other)
Parameter
Name Description
other SearchProductsResponse
Returns
Type Description
SearchProductsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchProductsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchProductsResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchProductsResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchProductsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchProductsResponse.Builder
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
Name Description
index int
Returns
Type Description
SearchProductsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchProductsResponse.Builder
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
Type Description
SearchProductsResponse.Builder

This builder for chaining.

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
Type Description
SearchProductsResponse.Builder

This builder for chaining.

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
Name Description
index int
value Product
Returns
Type Description
SearchProductsResponse.Builder

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
Name Description
index int
builderForValue Product.Builder
Returns
Type Description
SearchProductsResponse.Builder

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

public SearchProductsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchProductsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchProductsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchProductsResponse.Builder
Overrides