Class ListDraftsResponse.Builder (0.9.0)

public static final class ListDraftsResponse.Builder extends GeneratedMessageV3.Builder<ListDraftsResponse.Builder> implements ListDraftsResponseOrBuilder

Message for response to listing Drafts.

Protobuf type google.cloud.visionai.v1.ListDraftsResponse

Static Methods

getDescriptor()

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

Methods

addAllDrafts(Iterable<? extends Draft> values)

public ListDraftsResponse.Builder addAllDrafts(Iterable<? extends Draft> values)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

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

addAllUnreachable(Iterable<String> values)

public ListDraftsResponse.Builder addAllUnreachable(Iterable<String> values)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
values Iterable<String>

The unreachable to add.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

addDrafts(Draft value)

public ListDraftsResponse.Builder addDrafts(Draft value)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
value Draft
Returns
Type Description
ListDraftsResponse.Builder

addDrafts(Draft.Builder builderForValue)

public ListDraftsResponse.Builder addDrafts(Draft.Builder builderForValue)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
builderForValue Draft.Builder
Returns
Type Description
ListDraftsResponse.Builder

addDrafts(int index, Draft value)

public ListDraftsResponse.Builder addDrafts(int index, Draft value)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameters
Name Description
index int
value Draft
Returns
Type Description
ListDraftsResponse.Builder

addDrafts(int index, Draft.Builder builderForValue)

public ListDraftsResponse.Builder addDrafts(int index, Draft.Builder builderForValue)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameters
Name Description
index int
builderForValue Draft.Builder
Returns
Type Description
ListDraftsResponse.Builder

addDraftsBuilder()

public Draft.Builder addDraftsBuilder()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Returns
Type Description
Draft.Builder

addDraftsBuilder(int index)

public Draft.Builder addDraftsBuilder(int index)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
index int
Returns
Type Description
Draft.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUnreachable(String value)

public ListDraftsResponse.Builder addUnreachable(String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value String

The unreachable to add.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

addUnreachableBytes(ByteString value)

public ListDraftsResponse.Builder addUnreachableBytes(ByteString value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
value ByteString

The bytes of the unreachable to add.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

build()

public ListDraftsResponse build()
Returns
Type Description
ListDraftsResponse

buildPartial()

public ListDraftsResponse buildPartial()
Returns
Type Description
ListDraftsResponse

clear()

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

clearDrafts()

public ListDraftsResponse.Builder clearDrafts()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Returns
Type Description
ListDraftsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListDraftsResponse.Builder clearNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUnreachable()

public ListDraftsResponse.Builder clearUnreachable()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDraftsResponse getDefaultInstanceForType()
Returns
Type Description
ListDraftsResponse

getDescriptorForType()

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

getDrafts(int index)

public Draft getDrafts(int index)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
index int
Returns
Type Description
Draft

getDraftsBuilder(int index)

public Draft.Builder getDraftsBuilder(int index)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
index int
Returns
Type Description
Draft.Builder

getDraftsBuilderList()

public List<Draft.Builder> getDraftsBuilderList()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Returns
Type Description
List<Builder>

getDraftsCount()

public int getDraftsCount()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Returns
Type Description
int

getDraftsList()

public List<Draft> getDraftsList()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Returns
Type Description
List<Draft>

getDraftsOrBuilder(int index)

public DraftOrBuilder getDraftsOrBuilder(int index)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
index int
Returns
Type Description
DraftOrBuilder

getDraftsOrBuilderList()

public List<? extends DraftOrBuilder> getDraftsOrBuilderList()

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

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

getNextPageToken()

public String getNextPageToken()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

A token identifying a page of results the server should return.

string next_page_token = 2;

Returns
Type Description
ByteString

The bytes for nextPageToken.

getUnreachable(int index)

public String getUnreachable(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The unreachable at the given index.

getUnreachableBytes(int index)

public ByteString getUnreachableBytes(int index)

Locations that could not be reached.

repeated string unreachable = 3;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the unreachable at the given index.

getUnreachableCount()

public int getUnreachableCount()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
int

The count of unreachable.

getUnreachableList()

public ProtocolStringList getUnreachableList()

Locations that could not be reached.

repeated string unreachable = 3;

Returns
Type Description
ProtocolStringList

A list containing the unreachable.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDraftsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDrafts(int index)

public ListDraftsResponse.Builder removeDrafts(int index)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDraftsResponse.Builder

setDrafts(int index, Draft value)

public ListDraftsResponse.Builder setDrafts(int index, Draft value)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameters
Name Description
index int
value Draft
Returns
Type Description
ListDraftsResponse.Builder

setDrafts(int index, Draft.Builder builderForValue)

public ListDraftsResponse.Builder setDrafts(int index, Draft.Builder builderForValue)

The list of Draft.

repeated .google.cloud.visionai.v1.Draft drafts = 1;

Parameters
Name Description
index int
builderForValue Draft.Builder
Returns
Type Description
ListDraftsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDraftsResponse.Builder setNextPageToken(String value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDraftsResponse.Builder setNextPageTokenBytes(ByteString value)

A token identifying a page of results the server should return.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUnreachable(int index, String value)

public ListDraftsResponse.Builder setUnreachable(int index, String value)

Locations that could not be reached.

repeated string unreachable = 3;

Parameters
Name Description
index int

The index to set the value at.

value String

The unreachable to set.

Returns
Type Description
ListDraftsResponse.Builder

This builder for chaining.