Send feedback
Class ListDocumentsResponse.Builder (0.18.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.18.0 keyboard_arrow_down
public static final class ListDocumentsResponse . Builder extends GeneratedMessageV3 . Builder<ListDocumentsResponse . Builder > implements ListDocumentsResponseOrBuilder
Response message for
DocumentService.ListDocuments
method.
Protobuf type google.cloud.discoveryengine.v1beta.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
addAllDocuments(Iterable<? extends Document> values)
public ListDocumentsResponse . Builder addAllDocuments ( Iterable <? extends Document > values )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Parameter Name Description values
Iterable <? extends com.google.cloud.discoveryengine.v1beta.Document >
addDocuments(Document value)
public ListDocumentsResponse . Builder addDocuments ( Document value )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
addDocuments(Document.Builder builderForValue)
public ListDocumentsResponse . Builder addDocuments ( Document . Builder builderForValue )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
addDocuments(int index, Document value)
public ListDocumentsResponse . Builder addDocuments ( int index , Document value )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
addDocuments(int index, Document.Builder builderForValue)
public ListDocumentsResponse . Builder addDocuments ( int index , Document . Builder builderForValue )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
addDocumentsBuilder()
public Document . Builder addDocumentsBuilder ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
addDocumentsBuilder(int index)
public Document . Builder addDocumentsBuilder ( int index )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 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
clearDocuments()
public ListDocumentsResponse . Builder clearDocuments ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
clearField(Descriptors.FieldDescriptor field)
public ListDocumentsResponse . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearNextPageToken()
public ListDocumentsResponse . Builder clearNextPageToken ()
A token that can be sent as
ListDocumentsRequest.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
clone()
public ListDocumentsResponse . Builder clone ()
Overrides
getDefaultInstanceForType()
public ListDocumentsResponse getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getDocuments(int index)
public Document getDocuments ( int index )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Parameter Name Description index
int
getDocumentsBuilder(int index)
public Document . Builder getDocumentsBuilder ( int index )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Parameter Name Description index
int
getDocumentsBuilderList()
public List<Document . Builder > getDocumentsBuilderList ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
getDocumentsCount()
public int getDocumentsCount ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Returns Type Description int
getDocumentsList()
public List<Document> getDocumentsList ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
getDocumentsOrBuilder(int index)
public DocumentOrBuilder getDocumentsOrBuilder ( int index )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Parameter Name Description index
int
getDocumentsOrBuilderList()
public List <? extends DocumentOrBuilder > getDocumentsOrBuilderList ()
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Returns Type Description List <? extends com.google.cloud.discoveryengine.v1beta.DocumentOrBuilder >
getNextPageToken()
public String getNextPageToken ()
A token that can be sent as
ListDocumentsRequest.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 that can be sent as
ListDocumentsRequest.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 ()
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
removeDocuments(int index)
public ListDocumentsResponse . Builder removeDocuments ( int index )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
Parameter Name Description index
int
setDocuments(int index, Document value)
public ListDocumentsResponse . Builder setDocuments ( int index , Document value )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;
setDocuments(int index, Document.Builder builderForValue)
public ListDocumentsResponse . Builder setDocuments ( int index , Document . Builder builderForValue )
The Document s.
repeated .google.cloud.discoveryengine.v1beta.Document documents = 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 that can be sent as
ListDocumentsRequest.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 that can be sent as
ListDocumentsRequest.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
setUnknownFields(UnknownFieldSet unknownFields)
public final ListDocumentsResponse . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]