Class SearchProductsResponse.Builder (0.17.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.privatecatalog.v1beta1.Product>
Returns
TypeDescription
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
NameDescription
valueProduct
Returns
TypeDescription
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
NameDescription
builderForValueProduct.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueProduct
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProduct.Builder
Returns
TypeDescription
SearchProductsResponse.Builder

addProductsBuilder()

public Product.Builder addProductsBuilder()

The Product resources computed from the resource context.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
Product.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SearchProductsResponse build()
Returns
TypeDescription
SearchProductsResponse

buildPartial()

public SearchProductsResponse buildPartial()
Returns
TypeDescription
SearchProductsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public SearchProductsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchProductsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchProductsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchProductsResponse.Builder

clone()

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

getDefaultInstanceForType()

public SearchProductsResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchProductsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<Builder>

getProductsCount()

public int getProductsCount()

The Product resources computed from the resource context.

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

Returns
TypeDescription
int

getProductsList()

public List<Product> getProductsList()

The Product resources computed from the resource context.

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

Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ProductOrBuilder

getProductsOrBuilderList()

public List<? extends ProductOrBuilder> getProductsOrBuilderList()

The Product resources computed from the resource context.

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

Returns
TypeDescription
List<? extends com.google.cloud.privatecatalog.v1beta1.ProductOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SearchProductsResponse other)

public SearchProductsResponse.Builder mergeFrom(SearchProductsResponse other)
Parameter
NameDescription
otherSearchProductsResponse
Returns
TypeDescription
SearchProductsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchProductsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchProductsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchProductsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
indexint
valueProduct
Returns
TypeDescription
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
NameDescription
indexint
builderForValueProduct.Builder
Returns
TypeDescription
SearchProductsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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