Class ListProductSetsResponse.Builder (3.37.0)

public static final class ListProductSetsResponse.Builder extends GeneratedMessageV3.Builder<ListProductSetsResponse.Builder> implements ListProductSetsResponseOrBuilder

Response message for the ListProductSets method.

Protobuf type google.cloud.vision.v1p3beta1.ListProductSetsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllProductSets(Iterable<? extends ProductSet> values)

public ListProductSetsResponse.Builder addAllProductSets(Iterable<? extends ProductSet> values)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1p3beta1.ProductSet>
Returns
TypeDescription
ListProductSetsResponse.Builder

addProductSets(ProductSet value)

public ListProductSetsResponse.Builder addProductSets(ProductSet value)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
valueProductSet
Returns
TypeDescription
ListProductSetsResponse.Builder

addProductSets(ProductSet.Builder builderForValue)

public ListProductSetsResponse.Builder addProductSets(ProductSet.Builder builderForValue)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
builderForValueProductSet.Builder
Returns
TypeDescription
ListProductSetsResponse.Builder

addProductSets(int index, ProductSet value)

public ListProductSetsResponse.Builder addProductSets(int index, ProductSet value)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameters
NameDescription
indexint
valueProductSet
Returns
TypeDescription
ListProductSetsResponse.Builder

addProductSets(int index, ProductSet.Builder builderForValue)

public ListProductSetsResponse.Builder addProductSets(int index, ProductSet.Builder builderForValue)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameters
NameDescription
indexint
builderForValueProductSet.Builder
Returns
TypeDescription
ListProductSetsResponse.Builder

addProductSetsBuilder()

public ProductSet.Builder addProductSetsBuilder()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
ProductSet.Builder

addProductSetsBuilder(int index)

public ProductSet.Builder addProductSetsBuilder(int index)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSet.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListProductSetsResponse build()
Returns
TypeDescription
ListProductSetsResponse

buildPartial()

public ListProductSetsResponse buildPartial()
Returns
TypeDescription
ListProductSetsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListProductSetsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListProductSetsResponse.Builder
Overrides

clearNextPageToken()

public ListProductSetsResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ListProductSetsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListProductSetsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListProductSetsResponse.Builder
Overrides

clearProductSets()

public ListProductSetsResponse.Builder clearProductSets()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
ListProductSetsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListProductSetsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListProductSetsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
TypeDescription
ByteString

The bytes for nextPageToken.

getProductSets(int index)

public ProductSet getProductSets(int index)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSet

getProductSetsBuilder(int index)

public ProductSet.Builder getProductSetsBuilder(int index)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSet.Builder

getProductSetsBuilderList()

public List<ProductSet.Builder> getProductSetsBuilderList()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
List<Builder>

getProductSetsCount()

public int getProductSetsCount()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
int

getProductSetsList()

public List<ProductSet> getProductSetsList()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
List<ProductSet>

getProductSetsOrBuilder(int index)

public ProductSetOrBuilder getProductSetsOrBuilder(int index)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ProductSetOrBuilder

getProductSetsOrBuilderList()

public List<? extends ProductSetOrBuilder> getProductSetsOrBuilderList()

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Returns
TypeDescription
List<? extends com.google.cloud.vision.v1p3beta1.ProductSetOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListProductSetsResponse other)

public ListProductSetsResponse.Builder mergeFrom(ListProductSetsResponse other)
Parameter
NameDescription
otherListProductSetsResponse
Returns
TypeDescription
ListProductSetsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListProductSetsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListProductSetsResponse.Builder
Overrides

removeProductSets(int index)

public ListProductSetsResponse.Builder removeProductSets(int index)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListProductSetsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListProductSetsResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListProductSetsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListProductSetsResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListProductSetsResponse.Builder

This builder for chaining.

setProductSets(int index, ProductSet value)

public ListProductSetsResponse.Builder setProductSets(int index, ProductSet value)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameters
NameDescription
indexint
valueProductSet
Returns
TypeDescription
ListProductSetsResponse.Builder

setProductSets(int index, ProductSet.Builder builderForValue)

public ListProductSetsResponse.Builder setProductSets(int index, ProductSet.Builder builderForValue)

List of ProductSets.

repeated .google.cloud.vision.v1p3beta1.ProductSet product_sets = 1;

Parameters
NameDescription
indexint
builderForValueProductSet.Builder
Returns
TypeDescription
ListProductSetsResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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