Class ViewCollectionItemsResponse.Builder (0.11.0)

public static final class ViewCollectionItemsResponse.Builder extends GeneratedMessageV3.Builder<ViewCollectionItemsResponse.Builder> implements ViewCollectionItemsResponseOrBuilder

Response message for ViewCollectionItems.

Protobuf type google.cloud.visionai.v1.ViewCollectionItemsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllItems(Iterable<? extends CollectionItem> values)

public ViewCollectionItemsResponse.Builder addAllItems(Iterable<? extends CollectionItem> values)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.visionai.v1.CollectionItem>
Returns
Type Description
ViewCollectionItemsResponse.Builder

addItems(CollectionItem value)

public ViewCollectionItemsResponse.Builder addItems(CollectionItem value)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
value CollectionItem
Returns
Type Description
ViewCollectionItemsResponse.Builder

addItems(CollectionItem.Builder builderForValue)

public ViewCollectionItemsResponse.Builder addItems(CollectionItem.Builder builderForValue)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
builderForValue CollectionItem.Builder
Returns
Type Description
ViewCollectionItemsResponse.Builder

addItems(int index, CollectionItem value)

public ViewCollectionItemsResponse.Builder addItems(int index, CollectionItem value)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameters
Name Description
index int
value CollectionItem
Returns
Type Description
ViewCollectionItemsResponse.Builder

addItems(int index, CollectionItem.Builder builderForValue)

public ViewCollectionItemsResponse.Builder addItems(int index, CollectionItem.Builder builderForValue)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameters
Name Description
index int
builderForValue CollectionItem.Builder
Returns
Type Description
ViewCollectionItemsResponse.Builder

addItemsBuilder()

public CollectionItem.Builder addItemsBuilder()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
CollectionItem.Builder

addItemsBuilder(int index)

public CollectionItem.Builder addItemsBuilder(int index)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionItem.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ViewCollectionItemsResponse build()
Returns
Type Description
ViewCollectionItemsResponse

buildPartial()

public ViewCollectionItemsResponse buildPartial()
Returns
Type Description
ViewCollectionItemsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ViewCollectionItemsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ViewCollectionItemsResponse.Builder
Overrides

clearItems()

public ViewCollectionItemsResponse.Builder clearItems()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
ViewCollectionItemsResponse.Builder

clearNextPageToken()

public ViewCollectionItemsResponse.Builder clearNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ViewCollectionItemsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ViewCollectionItemsResponse getDefaultInstanceForType()
Returns
Type Description
ViewCollectionItemsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getItems(int index)

public CollectionItem getItems(int index)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionItem

getItemsBuilder(int index)

public CollectionItem.Builder getItemsBuilder(int index)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionItem.Builder

getItemsBuilderList()

public List<CollectionItem.Builder> getItemsBuilderList()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
List<Builder>

getItemsCount()

public int getItemsCount()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
int

getItemsList()

public List<CollectionItem> getItemsList()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
List<CollectionItem>

getItemsOrBuilder(int index)

public CollectionItemOrBuilder getItemsOrBuilder(int index)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
CollectionItemOrBuilder

getItemsOrBuilderList()

public List<? extends CollectionItemOrBuilder> getItemsOrBuilderList()

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Returns
Type Description
List<? extends com.google.cloud.visionai.v1.CollectionItemOrBuilder>

getNextPageToken()

public String getNextPageToken()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ViewCollectionItemsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ViewCollectionItemsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ViewCollectionItemsResponse.Builder
Overrides

removeItems(int index)

public ViewCollectionItemsResponse.Builder removeItems(int index)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameter
Name Description
index int
Returns
Type Description
ViewCollectionItemsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setItems(int index, CollectionItem value)

public ViewCollectionItemsResponse.Builder setItems(int index, CollectionItem value)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameters
Name Description
index int
value CollectionItem
Returns
Type Description
ViewCollectionItemsResponse.Builder

setItems(int index, CollectionItem.Builder builderForValue)

public ViewCollectionItemsResponse.Builder setItems(int index, CollectionItem.Builder builderForValue)

The items from the specified collection.

repeated .google.cloud.visionai.v1.CollectionItem items = 1;

Parameters
Name Description
index int
builderForValue CollectionItem.Builder
Returns
Type Description
ViewCollectionItemsResponse.Builder

setNextPageToken(String value)

public ViewCollectionItemsResponse.Builder setNextPageToken(String value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ViewCollectionItemsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ViewCollectionItemsResponse.Builder setNextPageTokenBytes(ByteString value)

A token, which can be sent as page_token to retrieve the next page. If this field is omitted, there are no subsequent pages.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ViewCollectionItemsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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