Class BatchGetDocumentsResponse.Builder (0.1.0)
public static final class BatchGetDocumentsResponse.Builder extends GeneratedMessage.Builder<BatchGetDocumentsResponse.Builder> implements BatchGetDocumentsResponseOrBuilder
Response message for
DeveloperKnowledge.BatchGetDocuments.
Protobuf type google.developers.knowledge.v1.BatchGetDocumentsResponse
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllDocuments(Iterable<? extends Document> values)
public BatchGetDocumentsResponse.Builder addAllDocuments(Iterable<? extends Document> values)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.developers.knowledge.v1.Document>
|
addDocuments(Document value)
public BatchGetDocumentsResponse.Builder addDocuments(Document value)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
value |
Document
|
addDocuments(Document.Builder builderForValue)
public BatchGetDocumentsResponse.Builder addDocuments(Document.Builder builderForValue)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
addDocuments(int index, Document value)
public BatchGetDocumentsResponse.Builder addDocuments(int index, Document value)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
addDocuments(int index, Document.Builder builderForValue)
public BatchGetDocumentsResponse.Builder addDocuments(int index, Document.Builder builderForValue)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
addDocumentsBuilder()
public Document.Builder addDocumentsBuilder()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
addDocumentsBuilder(int index)
public Document.Builder addDocumentsBuilder(int index)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public BatchGetDocumentsResponse build()
buildPartial()
public BatchGetDocumentsResponse buildPartial()
clear()
public BatchGetDocumentsResponse.Builder clear()
Overrides
clearDocuments()
public BatchGetDocumentsResponse.Builder clearDocuments()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
getDefaultInstanceForType()
public BatchGetDocumentsResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getDocuments(int index)
public Document getDocuments(int index)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
index |
int
|
getDocumentsBuilder(int index)
public Document.Builder getDocumentsBuilder(int index)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
index |
int
|
getDocumentsBuilderList()
public List<Document.Builder> getDocumentsBuilderList()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
getDocumentsCount()
public int getDocumentsCount()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Returns |
| Type |
Description |
int |
|
getDocumentsList()
public List<Document> getDocumentsList()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
getDocumentsOrBuilder(int index)
public DocumentOrBuilder getDocumentsOrBuilder(int index)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
index |
int
|
getDocumentsOrBuilderList()
public List<? extends DocumentOrBuilder> getDocumentsOrBuilderList()
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Returns |
| Type |
Description |
List<? extends com.google.developers.knowledge.v1.DocumentOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(BatchGetDocumentsResponse other)
public BatchGetDocumentsResponse.Builder mergeFrom(BatchGetDocumentsResponse other)
public BatchGetDocumentsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public BatchGetDocumentsResponse.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
removeDocuments(int index)
public BatchGetDocumentsResponse.Builder removeDocuments(int index)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
| Parameter |
| Name |
Description |
index |
int
|
setDocuments(int index, Document value)
public BatchGetDocumentsResponse.Builder setDocuments(int index, Document value)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
setDocuments(int index, Document.Builder builderForValue)
public BatchGetDocumentsResponse.Builder setDocuments(int index, Document.Builder builderForValue)
Contains the documents requested.
repeated .google.developers.knowledge.v1.Document documents = 1;
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 2026-06-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-19 UTC."],[],[]]