Class ListDocumentsResponse.Builder (2.31.0)

public static final class ListDocumentsResponse.Builder extends GeneratedMessageV3.Builder<ListDocumentsResponse.Builder> implements ListDocumentsResponseOrBuilder

Protobuf type google.cloud.documentai.v1beta3.ListDocumentsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDocumentMetadata(Iterable<? extends DocumentMetadata> values)

public ListDocumentsResponse.Builder addAllDocumentMetadata(Iterable<? extends DocumentMetadata> values)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.documentai.v1beta3.DocumentMetadata>
Returns
TypeDescription
ListDocumentsResponse.Builder

addDocumentMetadata(DocumentMetadata value)

public ListDocumentsResponse.Builder addDocumentMetadata(DocumentMetadata value)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
valueDocumentMetadata
Returns
TypeDescription
ListDocumentsResponse.Builder

addDocumentMetadata(DocumentMetadata.Builder builderForValue)

public ListDocumentsResponse.Builder addDocumentMetadata(DocumentMetadata.Builder builderForValue)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
builderForValueDocumentMetadata.Builder
Returns
TypeDescription
ListDocumentsResponse.Builder

addDocumentMetadata(int index, DocumentMetadata value)

public ListDocumentsResponse.Builder addDocumentMetadata(int index, DocumentMetadata value)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameters
NameDescription
indexint
valueDocumentMetadata
Returns
TypeDescription
ListDocumentsResponse.Builder

addDocumentMetadata(int index, DocumentMetadata.Builder builderForValue)

public ListDocumentsResponse.Builder addDocumentMetadata(int index, DocumentMetadata.Builder builderForValue)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameters
NameDescription
indexint
builderForValueDocumentMetadata.Builder
Returns
TypeDescription
ListDocumentsResponse.Builder

addDocumentMetadataBuilder()

public DocumentMetadata.Builder addDocumentMetadataBuilder()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
DocumentMetadata.Builder

addDocumentMetadataBuilder(int index)

public DocumentMetadata.Builder addDocumentMetadataBuilder(int index)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDocumentsResponse build()
Returns
TypeDescription
ListDocumentsResponse

buildPartial()

public ListDocumentsResponse buildPartial()
Returns
TypeDescription
ListDocumentsResponse

clear()

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

clearDocumentMetadata()

public ListDocumentsResponse.Builder clearDocumentMetadata()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
ListDocumentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDocumentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListDocumentsResponse.Builder
Overrides

clearNextPageToken()

public ListDocumentsResponse.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
TypeDescription
ListDocumentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTotalSize()

public ListDocumentsResponse.Builder clearTotalSize()

Total count of documents queried.

int32 total_size = 3;

Returns
TypeDescription
ListDocumentsResponse.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ListDocumentsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListDocumentsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDocumentMetadata(int index)

public DocumentMetadata getDocumentMetadata(int index)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentMetadata

getDocumentMetadataBuilder(int index)

public DocumentMetadata.Builder getDocumentMetadataBuilder(int index)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentMetadata.Builder

getDocumentMetadataBuilderList()

public List<DocumentMetadata.Builder> getDocumentMetadataBuilderList()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
List<Builder>

getDocumentMetadataCount()

public int getDocumentMetadataCount()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
int

getDocumentMetadataList()

public List<DocumentMetadata> getDocumentMetadataList()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
List<DocumentMetadata>

getDocumentMetadataOrBuilder(int index)

public DocumentMetadataOrBuilder getDocumentMetadataOrBuilder(int index)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
DocumentMetadataOrBuilder

getDocumentMetadataOrBuilderList()

public List<? extends DocumentMetadataOrBuilder> getDocumentMetadataOrBuilderList()

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Returns
TypeDescription
List<? extends com.google.cloud.documentai.v1beta3.DocumentMetadataOrBuilder>

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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

getTotalSize()

public int getTotalSize()

Total count of documents queried.

int32 total_size = 3;

Returns
TypeDescription
int

The totalSize.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListDocumentsResponse other)

public ListDocumentsResponse.Builder mergeFrom(ListDocumentsResponse other)
Parameter
NameDescription
otherListDocumentsResponse
Returns
TypeDescription
ListDocumentsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListDocumentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListDocumentsResponse.Builder
Overrides

removeDocumentMetadata(int index)

public ListDocumentsResponse.Builder removeDocumentMetadata(int index)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListDocumentsResponse.Builder

setDocumentMetadata(int index, DocumentMetadata value)

public ListDocumentsResponse.Builder setDocumentMetadata(int index, DocumentMetadata value)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameters
NameDescription
indexint
valueDocumentMetadata
Returns
TypeDescription
ListDocumentsResponse.Builder

setDocumentMetadata(int index, DocumentMetadata.Builder builderForValue)

public ListDocumentsResponse.Builder setDocumentMetadata(int index, DocumentMetadata.Builder builderForValue)

Document metadata corresponding to the listed documents.

repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;

Parameters
NameDescription
indexint
builderForValueDocumentMetadata.Builder
Returns
TypeDescription
ListDocumentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListDocumentsResponse.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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListDocumentsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListDocumentsResponse.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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListDocumentsResponse.Builder

This builder for chaining.

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

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

setTotalSize(int value)

public ListDocumentsResponse.Builder setTotalSize(int value)

Total count of documents queried.

int32 total_size = 3;

Parameter
NameDescription
valueint

The totalSize to set.

Returns
TypeDescription
ListDocumentsResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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