Class ListKnowledgeBasesResponse.Builder (4.26.0)

public static final class ListKnowledgeBasesResponse.Builder extends GeneratedMessageV3.Builder<ListKnowledgeBasesResponse.Builder> implements ListKnowledgeBasesResponseOrBuilder

Response message for KnowledgeBases.ListKnowledgeBases.

Protobuf type google.cloud.dialogflow.v2beta1.ListKnowledgeBasesResponse

Static Methods

getDescriptor()

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

Methods

addAllKnowledgeBases(Iterable<? extends KnowledgeBase> values)

public ListKnowledgeBasesResponse.Builder addAllKnowledgeBases(Iterable<? extends KnowledgeBase> values)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeBase>
Returns
Type Description
ListKnowledgeBasesResponse.Builder

addKnowledgeBases(KnowledgeBase value)

public ListKnowledgeBasesResponse.Builder addKnowledgeBases(KnowledgeBase value)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
value KnowledgeBase
Returns
Type Description
ListKnowledgeBasesResponse.Builder

addKnowledgeBases(KnowledgeBase.Builder builderForValue)

public ListKnowledgeBasesResponse.Builder addKnowledgeBases(KnowledgeBase.Builder builderForValue)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
builderForValue KnowledgeBase.Builder
Returns
Type Description
ListKnowledgeBasesResponse.Builder

addKnowledgeBases(int index, KnowledgeBase value)

public ListKnowledgeBasesResponse.Builder addKnowledgeBases(int index, KnowledgeBase value)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameters
Name Description
index int
value KnowledgeBase
Returns
Type Description
ListKnowledgeBasesResponse.Builder

addKnowledgeBases(int index, KnowledgeBase.Builder builderForValue)

public ListKnowledgeBasesResponse.Builder addKnowledgeBases(int index, KnowledgeBase.Builder builderForValue)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameters
Name Description
index int
builderForValue KnowledgeBase.Builder
Returns
Type Description
ListKnowledgeBasesResponse.Builder

addKnowledgeBasesBuilder()

public KnowledgeBase.Builder addKnowledgeBasesBuilder()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
KnowledgeBase.Builder

addKnowledgeBasesBuilder(int index)

public KnowledgeBase.Builder addKnowledgeBasesBuilder(int index)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeBase.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ListKnowledgeBasesResponse build()
Returns
Type Description
ListKnowledgeBasesResponse

buildPartial()

public ListKnowledgeBasesResponse buildPartial()
Returns
Type Description
ListKnowledgeBasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ListKnowledgeBasesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ListKnowledgeBasesResponse.Builder
Overrides

clearKnowledgeBases()

public ListKnowledgeBasesResponse.Builder clearKnowledgeBases()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
ListKnowledgeBasesResponse.Builder

clearNextPageToken()

public ListKnowledgeBasesResponse.Builder clearNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
ListKnowledgeBasesResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ListKnowledgeBasesResponse getDefaultInstanceForType()
Returns
Type Description
ListKnowledgeBasesResponse

getDescriptorForType()

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

getKnowledgeBases(int index)

public KnowledgeBase getKnowledgeBases(int index)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeBase

getKnowledgeBasesBuilder(int index)

public KnowledgeBase.Builder getKnowledgeBasesBuilder(int index)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeBase.Builder

getKnowledgeBasesBuilderList()

public List<KnowledgeBase.Builder> getKnowledgeBasesBuilderList()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
List<Builder>

getKnowledgeBasesCount()

public int getKnowledgeBasesCount()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
int

getKnowledgeBasesList()

public List<KnowledgeBase> getKnowledgeBasesList()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
List<KnowledgeBase>

getKnowledgeBasesOrBuilder(int index)

public KnowledgeBaseOrBuilder getKnowledgeBasesOrBuilder(int index)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
index int
Returns
Type Description
KnowledgeBaseOrBuilder

getKnowledgeBasesOrBuilderList()

public List<? extends KnowledgeBaseOrBuilder> getKnowledgeBasesOrBuilderList()

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.v2beta1.KnowledgeBaseOrBuilder>

getNextPageToken()

public String getNextPageToken()

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Returns
Type Description
String

The nextPageToken.

getNextPageTokenBytes()

public ByteString getNextPageTokenBytes()

Token to retrieve the next page of results, or empty if there are no more results in the list.

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(ListKnowledgeBasesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeKnowledgeBases(int index)

public ListKnowledgeBasesResponse.Builder removeKnowledgeBases(int index)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameter
Name Description
index int
Returns
Type Description
ListKnowledgeBasesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setKnowledgeBases(int index, KnowledgeBase value)

public ListKnowledgeBasesResponse.Builder setKnowledgeBases(int index, KnowledgeBase value)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameters
Name Description
index int
value KnowledgeBase
Returns
Type Description
ListKnowledgeBasesResponse.Builder

setKnowledgeBases(int index, KnowledgeBase.Builder builderForValue)

public ListKnowledgeBasesResponse.Builder setKnowledgeBases(int index, KnowledgeBase.Builder builderForValue)

The list of knowledge bases.

repeated .google.cloud.dialogflow.v2beta1.KnowledgeBase knowledge_bases = 1;

Parameters
Name Description
index int
builderForValue KnowledgeBase.Builder
Returns
Type Description
ListKnowledgeBasesResponse.Builder

setNextPageToken(String value)

public ListKnowledgeBasesResponse.Builder setNextPageToken(String value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value String

The nextPageToken to set.

Returns
Type Description
ListKnowledgeBasesResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListKnowledgeBasesResponse.Builder setNextPageTokenBytes(ByteString value)

Token to retrieve the next page of results, or empty if there are no more results in the list.

string next_page_token = 2;

Parameter
Name Description
value ByteString

The bytes for nextPageToken to set.

Returns
Type Description
ListKnowledgeBasesResponse.Builder

This builder for chaining.

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

public ListKnowledgeBasesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ListKnowledgeBasesResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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