Class ListReferenceImagesResponse.Builder (3.7.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.vision.v1.ReferenceImage>
Returns
TypeDescription
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
NameDescription
valueReferenceImage
Returns
TypeDescription
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
NameDescription
builderForValueReferenceImage.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueReferenceImage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReferenceImage.Builder
Returns
TypeDescription
ListReferenceImagesResponse.Builder

addReferenceImagesBuilder()

public ReferenceImage.Builder addReferenceImagesBuilder()

The list of reference images.

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListReferenceImagesResponse build()
Returns
TypeDescription
ListReferenceImagesResponse

buildPartial()

public ListReferenceImagesResponse buildPartial()
Returns
TypeDescription
ListReferenceImagesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPageSize()

public ListReferenceImagesResponse.Builder clearPageSize()

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

int32 page_size = 2;

Returns
TypeDescription
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
TypeDescription
ListReferenceImagesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListReferenceImagesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListReferenceImagesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNextPageToken()

public String getNextPageToken()

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

string next_page_token = 3;

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

getReferenceImagesBuilderList()

public List<ReferenceImage.Builder> getReferenceImagesBuilderList()

The list of reference images.

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

Returns
TypeDescription
List<Builder>

getReferenceImagesCount()

public int getReferenceImagesCount()

The list of reference images.

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

Returns
TypeDescription
int

getReferenceImagesList()

public List<ReferenceImage> getReferenceImagesList()

The list of reference images.

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

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

getReferenceImagesOrBuilderList()

public List<? extends ReferenceImageOrBuilder> getReferenceImagesOrBuilderList()

The list of reference images.

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

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListReferenceImagesResponse other)

public ListReferenceImagesResponse.Builder mergeFrom(ListReferenceImagesResponse other)
Parameter
NameDescription
otherListReferenceImagesResponse
Returns
TypeDescription
ListReferenceImagesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The nextPageToken to set.

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

The bytes for nextPageToken to set.

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

The pageSize to set.

Returns
TypeDescription
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
NameDescription
indexint
valueReferenceImage
Returns
TypeDescription
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
NameDescription
indexint
builderForValueReferenceImage.Builder
Returns
TypeDescription
ListReferenceImagesResponse.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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