Class ListReferenceImagesResponse.Builder (3.41.0)

public static final class ListReferenceImagesResponse.Builder extends GeneratedMessageV3.Builder<ListReferenceImagesResponse.Builder> implements ListReferenceImagesResponseOrBuilder

Response message for the ListReferenceImages method.

Protobuf type google.cloud.vision.v1.ListReferenceImagesResponse

Static Methods

getDescriptor()

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

Methods

addAllReferenceImages(Iterable<? extends ReferenceImage> values)

public ListReferenceImagesResponse.Builder addAllReferenceImages(Iterable<? extends ReferenceImage> values)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.vision.v1.ReferenceImage>
Returns
Type Description
ListReferenceImagesResponse.Builder

addReferenceImages(ReferenceImage value)

public ListReferenceImagesResponse.Builder addReferenceImages(ReferenceImage value)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
value ReferenceImage
Returns
Type Description
ListReferenceImagesResponse.Builder

addReferenceImages(ReferenceImage.Builder builderForValue)

public ListReferenceImagesResponse.Builder addReferenceImages(ReferenceImage.Builder builderForValue)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
builderForValue ReferenceImage.Builder
Returns
Type Description
ListReferenceImagesResponse.Builder

addReferenceImages(int index, ReferenceImage value)

public ListReferenceImagesResponse.Builder addReferenceImages(int index, ReferenceImage value)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameters
Name Description
index int
value ReferenceImage
Returns
Type Description
ListReferenceImagesResponse.Builder

addReferenceImages(int index, ReferenceImage.Builder builderForValue)

public ListReferenceImagesResponse.Builder addReferenceImages(int index, ReferenceImage.Builder builderForValue)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameters
Name Description
index int
builderForValue ReferenceImage.Builder
Returns
Type Description
ListReferenceImagesResponse.Builder

addReferenceImagesBuilder()

public ReferenceImage.Builder addReferenceImagesBuilder()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
ReferenceImage.Builder

addReferenceImagesBuilder(int index)

public ReferenceImage.Builder addReferenceImagesBuilder(int index)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
index int
Returns
Type Description
ReferenceImage.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListReferenceImagesResponse build()
Returns
Type Description
ListReferenceImagesResponse

buildPartial()

public ListReferenceImagesResponse buildPartial()
Returns
Type Description
ListReferenceImagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListReferenceImagesResponse.Builder clearNextPageToken()

The next_page_token returned from a previous List request, if any.

string next_page_token = 3;

Returns
Type Description
ListReferenceImagesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListReferenceImagesResponse.Builder clearPageSize()

The maximum number of items to return. Default 10, maximum 100.

int32 page_size = 2;

Returns
Type Description
ListReferenceImagesResponse.Builder

This builder for chaining.

clearReferenceImages()

public ListReferenceImagesResponse.Builder clearReferenceImages()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
ListReferenceImagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListReferenceImagesResponse getDefaultInstanceForType()
Returns
Type Description
ListReferenceImagesResponse

getDescriptorForType()

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

getNextPageToken()

public String getNextPageToken()

The next_page_token returned from a previous List request, if any.

string next_page_token = 3;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

The next_page_token returned from a previous List request, if any.

string next_page_token = 3;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getPageSize()

public int getPageSize()

The maximum number of items to return. Default 10, maximum 100.

int32 page_size = 2;

Returns
Type Description
int

The pageSize.

getReferenceImages(int index)

public ReferenceImage getReferenceImages(int index)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
index int
Returns
Type Description
ReferenceImage

getReferenceImagesBuilder(int index)

public ReferenceImage.Builder getReferenceImagesBuilder(int index)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
index int
Returns
Type Description
ReferenceImage.Builder

getReferenceImagesBuilderList()

public List<ReferenceImage.Builder> getReferenceImagesBuilderList()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
List<Builder>

getReferenceImagesCount()

public int getReferenceImagesCount()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
int

getReferenceImagesList()

public List<ReferenceImage> getReferenceImagesList()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
List<ReferenceImage>

getReferenceImagesOrBuilder(int index)

public ReferenceImageOrBuilder getReferenceImagesOrBuilder(int index)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
index int
Returns
Type Description
ReferenceImageOrBuilder

getReferenceImagesOrBuilderList()

public List<? extends ReferenceImageOrBuilder> getReferenceImagesOrBuilderList()

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Returns
Type Description
List<? extends com.google.cloud.vision.v1.ReferenceImageOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListReferenceImagesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeReferenceImages(int index)

public ListReferenceImagesResponse.Builder removeReferenceImages(int index)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameter
Name Description
index int
Returns
Type Description
ListReferenceImagesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListReferenceImagesResponse.Builder setNextPageToken(String value)

The next_page_token returned from a previous List request, if any.

string next_page_token = 3;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListReferenceImagesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListReferenceImagesResponse.Builder setNextPageTokenBytes(ByteString value)

The next_page_token returned from a previous List request, if any.

string next_page_token = 3;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListReferenceImagesResponse.Builder

This builder for chaining.

setPageSize(int value)

public ListReferenceImagesResponse.Builder setPageSize(int value)

The maximum number of items to return. Default 10, maximum 100.

int32 page_size = 2;

Parameter
Name Description
value int

The pageSize to set.

Returns
Type Description
ListReferenceImagesResponse.Builder

This builder for chaining.

setReferenceImages(int index, ReferenceImage value)

public ListReferenceImagesResponse.Builder setReferenceImages(int index, ReferenceImage value)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameters
Name Description
index int
value ReferenceImage
Returns
Type Description
ListReferenceImagesResponse.Builder

setReferenceImages(int index, ReferenceImage.Builder builderForValue)

public ListReferenceImagesResponse.Builder setReferenceImages(int index, ReferenceImage.Builder builderForValue)

The list of reference images.

repeated .google.cloud.vision.v1.ReferenceImage reference_images = 1;

Parameters
Name Description
index int
builderForValue ReferenceImage.Builder
Returns
Type Description
ListReferenceImagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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