Class ListContextsResponse.Builder (4.6.0)

public static final class ListContextsResponse.Builder extends GeneratedMessageV3.Builder<ListContextsResponse.Builder> implements ListContextsResponseOrBuilder

The response message for Contexts.ListContexts.

Protobuf type google.cloud.dialogflow.v2.ListContextsResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllContexts(Iterable<? extends Context> values)

public ListContextsResponse.Builder addAllContexts(Iterable<? extends Context> values)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.v2.Context>
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(Context value)

public ListContextsResponse.Builder addContexts(Context value)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(Context.Builder builderForValue)

public ListContextsResponse.Builder addContexts(Context.Builder builderForValue)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(int index, Context value)

public ListContextsResponse.Builder addContexts(int index, Context value)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameters
NameDescription
indexint
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

addContexts(int index, Context.Builder builderForValue)

public ListContextsResponse.Builder addContexts(int index, Context.Builder builderForValue)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameters
NameDescription
indexint
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

addContextsBuilder()

public Context.Builder addContextsBuilder()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
Context.Builder

addContextsBuilder(int index)

public Context.Builder addContextsBuilder(int index)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListContextsResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

build()

public ListContextsResponse build()
Returns
TypeDescription
ListContextsResponse

buildPartial()

public ListContextsResponse buildPartial()
Returns
TypeDescription
ListContextsResponse

clear()

public ListContextsResponse.Builder clear()
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clearContexts()

public ListContextsResponse.Builder clearContexts()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
ListContextsResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ListContextsResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clearNextPageToken()

public ListContextsResponse.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
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListContextsResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

clone()

public ListContextsResponse.Builder clone()
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

getContexts(int index)

public Context getContexts(int index)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context

getContextsBuilder(int index)

public Context.Builder getContextsBuilder(int index)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Context.Builder

getContextsBuilderList()

public List<Context.Builder> getContextsBuilderList()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
List<Builder>

getContextsCount()

public int getContextsCount()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
int

getContextsList()

public List<Context> getContextsList()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
List<Context>

getContextsOrBuilder(int index)

public ContextOrBuilder getContextsOrBuilder(int index)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ContextOrBuilder

getContextsOrBuilderList()

public List<? extends ContextOrBuilder> getContextsOrBuilderList()

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.v2.ContextOrBuilder>

getDefaultInstanceForType()

public ListContextsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListContextsResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for nextPageToken.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListContextsResponse other)

public ListContextsResponse.Builder mergeFrom(ListContextsResponse other)
Parameter
NameDescription
otherListContextsResponse
Returns
TypeDescription
ListContextsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ListContextsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ListContextsResponse.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ListContextsResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListContextsResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

removeContexts(int index)

public ListContextsResponse.Builder removeContexts(int index)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListContextsResponse.Builder

setContexts(int index, Context value)

public ListContextsResponse.Builder setContexts(int index, Context value)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameters
NameDescription
indexint
valueContext
Returns
TypeDescription
ListContextsResponse.Builder

setContexts(int index, Context.Builder builderForValue)

public ListContextsResponse.Builder setContexts(int index, Context.Builder builderForValue)

The list of contexts. There will be a maximum number of items returned based on the page_size field in the request.

repeated .google.cloud.dialogflow.v2.Context contexts = 1;

Parameters
NameDescription
indexint
builderForValueContext.Builder
Returns
TypeDescription
ListContextsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListContextsResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

setNextPageToken(String value)

public ListContextsResponse.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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListContextsResponse.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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
ListContextsResponse.Builder

This builder for chaining.

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

public ListContextsResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ListContextsResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ListContextsResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ListContextsResponse.Builder
Overrides