public static final class ListDocumentsResponse.Builder extends GeneratedMessageV3.Builder<ListDocumentsResponse.Builder> implements ListDocumentsResponseOrBuilder
Protobuf type google.cloud.documentai.v1beta3.ListDocumentsResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
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 |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.documentai.v1beta3.DocumentMetadata>
|
public ListDocumentsResponse.Builder addDocumentMetadata(DocumentMetadata value)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
public ListDocumentsResponse.Builder addDocumentMetadata(DocumentMetadata.Builder builderForValue)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
public ListDocumentsResponse.Builder addDocumentMetadata(int index, DocumentMetadata value)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
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;
public DocumentMetadata.Builder addDocumentMetadataBuilder()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
public DocumentMetadata.Builder addDocumentMetadataBuilder(int index)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ListDocumentsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public ListDocumentsResponse build()
buildPartial()
public ListDocumentsResponse buildPartial()
clear()
public ListDocumentsResponse.Builder clear()
Overrides
public ListDocumentsResponse.Builder clearDocumentMetadata()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
clearField(Descriptors.FieldDescriptor field)
public ListDocumentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
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;
clearOneof(Descriptors.OneofDescriptor oneof)
public ListDocumentsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTotalSize()
public ListDocumentsResponse.Builder clearTotalSize()
Total count of documents queried.
int32 total_size = 3;
clone()
public ListDocumentsResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public ListDocumentsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public DocumentMetadata getDocumentMetadata(int index)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Parameter |
---|
Name | Description |
index | int
|
public DocumentMetadata.Builder getDocumentMetadataBuilder(int index)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<DocumentMetadata.Builder> getDocumentMetadataBuilderList()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
public int getDocumentMetadataCount()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Returns |
---|
Type | Description |
int | |
public List<DocumentMetadata> getDocumentMetadataList()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
public DocumentMetadataOrBuilder getDocumentMetadataOrBuilder(int index)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Parameter |
---|
Name | Description |
index | int
|
public List<? extends DocumentMetadataOrBuilder> getDocumentMetadataOrBuilderList()
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Returns |
---|
Type | Description |
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 |
---|
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.
|
getTotalSize()
public int getTotalSize()
Total count of documents queried.
int32 total_size = 3;
Returns |
---|
Type | Description |
int | The totalSize.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(ListDocumentsResponse other)
public ListDocumentsResponse.Builder mergeFrom(ListDocumentsResponse other)
public ListDocumentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public ListDocumentsResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ListDocumentsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public ListDocumentsResponse.Builder removeDocumentMetadata(int index)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
Parameter |
---|
Name | Description |
index | int
|
public ListDocumentsResponse.Builder setDocumentMetadata(int index, DocumentMetadata value)
Document metadata corresponding to the listed documents.
repeated .google.cloud.documentai.v1beta3.DocumentMetadata document_metadata = 1;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public ListDocumentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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 |
---|
Name | Description |
value | String
The nextPageToken to set.
|
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 |
---|
Name | Description |
value | ByteString
The bytes for nextPageToken to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ListDocumentsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTotalSize(int value)
public ListDocumentsResponse.Builder setTotalSize(int value)
Total count of documents queried.
int32 total_size = 3;
Parameter |
---|
Name | Description |
value | int
The totalSize to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final ListDocumentsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides