Class ListDocumentsResponse.Builder (0.41.0)

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

Static Methods

getDescriptor()

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

Methods

addAllDocuments(Iterable<? extends Document> values)

public ListDocumentsResponse.Builder addAllDocuments(Iterable<? extends Document> values)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.discoveryengine.v1beta.Document>
Returns
Type Description
ListDocumentsResponse.Builder

addDocuments(Document value)

public ListDocumentsResponse.Builder addDocuments(Document value)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
value Document
Returns
Type Description
ListDocumentsResponse.Builder

addDocuments(Document.Builder builderForValue)

public ListDocumentsResponse.Builder addDocuments(Document.Builder builderForValue)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
builderForValue Document.Builder
Returns
Type Description
ListDocumentsResponse.Builder

addDocuments(int index, Document value)

public ListDocumentsResponse.Builder addDocuments(int index, Document value)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameters
Name Description
index int
value Document
Returns
Type Description
ListDocumentsResponse.Builder

addDocuments(int index, Document.Builder builderForValue)

public ListDocumentsResponse.Builder addDocuments(int index, Document.Builder builderForValue)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameters
Name Description
index int
builderForValue Document.Builder
Returns
Type Description
ListDocumentsResponse.Builder

addDocumentsBuilder()

public Document.Builder addDocumentsBuilder()

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Returns
Type Description
Document.Builder

addDocumentsBuilder(int index)

public Document.Builder addDocumentsBuilder(int index)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
index int
Returns
Type Description
Document.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListDocumentsResponse build()
Returns
Type Description
ListDocumentsResponse

buildPartial()

public ListDocumentsResponse buildPartial()
Returns
Type Description
ListDocumentsResponse

clear()

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

clearDocuments()

public ListDocumentsResponse.Builder clearDocuments()

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Returns
Type Description
ListDocumentsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListDocumentsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListDocumentsResponse.Builder
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;

Returns
Type Description
ListDocumentsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListDocumentsResponse getDefaultInstanceForType()
Returns
Type Description
ListDocumentsResponse

getDescriptorForType()

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

getDocuments(int index)

public Document getDocuments(int index)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
index int
Returns
Type Description
Document

getDocumentsBuilder(int index)

public Document.Builder getDocumentsBuilder(int index)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
index int
Returns
Type Description
Document.Builder

getDocumentsBuilderList()

public List<Document.Builder> getDocumentsBuilderList()

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Returns
Type Description
List<Builder>

getDocumentsCount()

public int getDocumentsCount()

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Returns
Type Description
int

getDocumentsList()

public List<Document> getDocumentsList()

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Returns
Type Description
List<Document>

getDocumentsOrBuilder(int index)

public DocumentOrBuilder getDocumentsOrBuilder(int index)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
index int
Returns
Type Description
DocumentOrBuilder

getDocumentsOrBuilderList()

public List<? extends DocumentOrBuilder> getDocumentsOrBuilderList()

The Documents.

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListDocumentsResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeDocuments(int index)

public ListDocumentsResponse.Builder removeDocuments(int index)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameter
Name Description
index int
Returns
Type Description
ListDocumentsResponse.Builder

setDocuments(int index, Document value)

public ListDocumentsResponse.Builder setDocuments(int index, Document value)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameters
Name Description
index int
value Document
Returns
Type Description
ListDocumentsResponse.Builder

setDocuments(int index, Document.Builder builderForValue)

public ListDocumentsResponse.Builder setDocuments(int index, Document.Builder builderForValue)

The Documents.

repeated .google.cloud.discoveryengine.v1beta.Document documents = 1;

Parameters
Name Description
index int
builderForValue Document.Builder
Returns
Type Description
ListDocumentsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListDocumentsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ListDocumentsResponse.Builder
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.

Returns
Type Description
ListDocumentsResponse.Builder

This builder for chaining.

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.

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListDocumentsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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