Class ListAnnotationsResponse.Builder (0.2.0)

public static final class ListAnnotationsResponse.Builder extends GeneratedMessageV3.Builder<ListAnnotationsResponse.Builder> implements ListAnnotationsResponseOrBuilder

Request message for ListAnnotations API.

Protobuf type google.cloud.visionai.v1.ListAnnotationsResponse

Static Methods

getDescriptor()

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

Methods

addAllAnnotations(Iterable<? extends Annotation> values)

public ListAnnotationsResponse.Builder addAllAnnotations(Iterable<? extends Annotation> values)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

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

addAnnotations(Annotation value)

public ListAnnotationsResponse.Builder addAnnotations(Annotation value)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
value Annotation
Returns
Type Description
ListAnnotationsResponse.Builder

addAnnotations(Annotation.Builder builderForValue)

public ListAnnotationsResponse.Builder addAnnotations(Annotation.Builder builderForValue)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
builderForValue Annotation.Builder
Returns
Type Description
ListAnnotationsResponse.Builder

addAnnotations(int index, Annotation value)

public ListAnnotationsResponse.Builder addAnnotations(int index, Annotation value)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameters
Name Description
index int
value Annotation
Returns
Type Description
ListAnnotationsResponse.Builder

addAnnotations(int index, Annotation.Builder builderForValue)

public ListAnnotationsResponse.Builder addAnnotations(int index, Annotation.Builder builderForValue)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
ListAnnotationsResponse.Builder

addAnnotationsBuilder()

public Annotation.Builder addAnnotationsBuilder()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Returns
Type Description
Annotation.Builder

addAnnotationsBuilder(int index)

public Annotation.Builder addAnnotationsBuilder(int index)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
Annotation.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListAnnotationsResponse build()
Returns
Type Description
ListAnnotationsResponse

buildPartial()

public ListAnnotationsResponse buildPartial()
Returns
Type Description
ListAnnotationsResponse

clear()

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

clearAnnotations()

public ListAnnotationsResponse.Builder clearAnnotations()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Returns
Type Description
ListAnnotationsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListAnnotationsResponse.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
ListAnnotationsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAnnotations(int index)

public Annotation getAnnotations(int index)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
Annotation

getAnnotationsBuilder(int index)

public Annotation.Builder getAnnotationsBuilder(int index)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
Annotation.Builder

getAnnotationsBuilderList()

public List<Annotation.Builder> getAnnotationsBuilderList()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Returns
Type Description
List<Builder>

getAnnotationsCount()

public int getAnnotationsCount()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Returns
Type Description
int

getAnnotationsList()

public List<Annotation> getAnnotationsList()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Returns
Type Description
List<Annotation>

getAnnotationsOrBuilder(int index)

public AnnotationOrBuilder getAnnotationsOrBuilder(int index)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
AnnotationOrBuilder

getAnnotationsOrBuilderList()

public List<? extends AnnotationOrBuilder> getAnnotationsOrBuilderList()

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

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

getDefaultInstanceForType()

public ListAnnotationsResponse getDefaultInstanceForType()
Returns
Type Description
ListAnnotationsResponse

getDescriptorForType()

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

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(ListAnnotationsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeAnnotations(int index)

public ListAnnotationsResponse.Builder removeAnnotations(int index)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameter
Name Description
index int
Returns
Type Description
ListAnnotationsResponse.Builder

setAnnotations(int index, Annotation value)

public ListAnnotationsResponse.Builder setAnnotations(int index, Annotation value)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameters
Name Description
index int
value Annotation
Returns
Type Description
ListAnnotationsResponse.Builder

setAnnotations(int index, Annotation.Builder builderForValue)

public ListAnnotationsResponse.Builder setAnnotations(int index, Annotation.Builder builderForValue)

The annotations from the specified asset.

repeated .google.cloud.visionai.v1.Annotation annotations = 1;

Parameters
Name Description
index int
builderForValue Annotation.Builder
Returns
Type Description
ListAnnotationsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListAnnotationsResponse.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
ListAnnotationsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListAnnotationsResponse.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
ListAnnotationsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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