Class ListVersionsResponse.Builder (4.6.0)

public static final class ListVersionsResponse.Builder extends GeneratedMessageV3.Builder<ListVersionsResponse.Builder> implements ListVersionsResponseOrBuilder

The response message for Versions.ListVersions.

Protobuf type google.cloud.dialogflow.v2.ListVersionsResponse

Static Methods

getDescriptor()

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

Methods

addAllVersions(Iterable<? extends Version> values)

public ListVersionsResponse.Builder addAllVersions(Iterable<? extends Version> values)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVersions(Version value)

public ListVersionsResponse.Builder addVersions(Version value)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
valueVersion
Returns
TypeDescription
ListVersionsResponse.Builder

addVersions(Version.Builder builderForValue)

public ListVersionsResponse.Builder addVersions(Version.Builder builderForValue)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
builderForValueVersion.Builder
Returns
TypeDescription
ListVersionsResponse.Builder

addVersions(int index, Version value)

public ListVersionsResponse.Builder addVersions(int index, Version value)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameters
NameDescription
indexint
valueVersion
Returns
TypeDescription
ListVersionsResponse.Builder

addVersions(int index, Version.Builder builderForValue)

public ListVersionsResponse.Builder addVersions(int index, Version.Builder builderForValue)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameters
NameDescription
indexint
builderForValueVersion.Builder
Returns
TypeDescription
ListVersionsResponse.Builder

addVersionsBuilder()

public Version.Builder addVersionsBuilder()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Returns
TypeDescription
Version.Builder

addVersionsBuilder(int index)

public Version.Builder addVersionsBuilder(int index)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Version.Builder

build()

public ListVersionsResponse build()
Returns
TypeDescription
ListVersionsResponse

buildPartial()

public ListVersionsResponse buildPartial()
Returns
TypeDescription
ListVersionsResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

public ListVersionsResponse.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
ListVersionsResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearVersions()

public ListVersionsResponse.Builder clearVersions()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Returns
TypeDescription
ListVersionsResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListVersionsResponse getDefaultInstanceForType()
Returns
TypeDescription
ListVersionsResponse

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.

getVersions(int index)

public Version getVersions(int index)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Version

getVersionsBuilder(int index)

public Version.Builder getVersionsBuilder(int index)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
Version.Builder

getVersionsBuilderList()

public List<Version.Builder> getVersionsBuilderList()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Returns
TypeDescription
List<Builder>

getVersionsCount()

public int getVersionsCount()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Returns
TypeDescription
int

getVersionsList()

public List<Version> getVersionsList()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Returns
TypeDescription
List<Version>

getVersionsOrBuilder(int index)

public VersionOrBuilder getVersionsOrBuilder(int index)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
VersionOrBuilder

getVersionsOrBuilderList()

public List<? extends VersionOrBuilder> getVersionsOrBuilderList()

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

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

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListVersionsResponse other)

public ListVersionsResponse.Builder mergeFrom(ListVersionsResponse other)
Parameter
NameDescription
otherListVersionsResponse
Returns
TypeDescription
ListVersionsResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeVersions(int index)

public ListVersionsResponse.Builder removeVersions(int index)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ListVersionsResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

public ListVersionsResponse.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
ListVersionsResponse.Builder

This builder for chaining.

setNextPageTokenBytes(ByteString value)

public ListVersionsResponse.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
ListVersionsResponse.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersions(int index, Version value)

public ListVersionsResponse.Builder setVersions(int index, Version value)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameters
NameDescription
indexint
valueVersion
Returns
TypeDescription
ListVersionsResponse.Builder

setVersions(int index, Version.Builder builderForValue)

public ListVersionsResponse.Builder setVersions(int index, Version.Builder builderForValue)

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

repeated .google.cloud.dialogflow.v2.Version versions = 1;

Parameters
NameDescription
indexint
builderForValueVersion.Builder
Returns
TypeDescription
ListVersionsResponse.Builder