public static final class ListContextsResponse.Builder extends GeneratedMessage.Builder<ListContextsResponse.Builder> implements ListContextsResponseOrBuilderThe response message for Contexts.ListContexts.
Protobuf type google.cloud.dialogflow.v2.ListContextsResponse
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ListContextsResponse.BuilderImplements
ListContextsResponseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2.Context> |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
Context |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
builderForValue |
Context.Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
value |
Context |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Context.Builder |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Context.Builder |
|
build()
public ListContextsResponse build()| Returns | |
|---|---|
| Type | Description |
ListContextsResponse |
|
buildPartial()
public ListContextsResponse buildPartial()| Returns | |
|---|---|
| Type | Description |
ListContextsResponse |
|
clear()
public ListContextsResponse.Builder clear()| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
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 | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
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 | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
This builder for chaining. |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.dialogflow.v2.ContextOrBuilder> |
|
getDefaultInstanceForType()
public ListContextsResponse getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ListContextsResponse |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ListContextsResponse other)
public ListContextsResponse.Builder mergeFrom(ListContextsResponse other)| Parameter | |
|---|---|
| Name | Description |
other |
ListContextsResponse |
| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ListContextsResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ListContextsResponse.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
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 | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
value |
Context |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Context.Builder |
| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
|
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 | |
|---|---|
| Name | Description |
value |
StringThe nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for nextPageToken to set. |
| Returns | |
|---|---|
| Type | Description |
ListContextsResponse.Builder |
This builder for chaining. |