Class ListTestCasesResponse.Builder (0.54.0)

public static final class ListTestCasesResponse.Builder extends GeneratedMessageV3.Builder<ListTestCasesResponse.Builder> implements ListTestCasesResponseOrBuilder

The response message for TestCases.ListTestCases.

Protobuf type google.cloud.dialogflow.cx.v3.ListTestCasesResponse

Static Methods

getDescriptor()

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

Methods

addAllTestCases(Iterable<? extends TestCase> values)

public ListTestCasesResponse.Builder addAllTestCases(Iterable<? extends TestCase> values)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.dialogflow.cx.v3.TestCase>
Returns
Type Description
ListTestCasesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addTestCases(TestCase value)

public ListTestCasesResponse.Builder addTestCases(TestCase value)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
value TestCase
Returns
Type Description
ListTestCasesResponse.Builder

addTestCases(TestCase.Builder builderForValue)

public ListTestCasesResponse.Builder addTestCases(TestCase.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
builderForValue TestCase.Builder
Returns
Type Description
ListTestCasesResponse.Builder

addTestCases(int index, TestCase value)

public ListTestCasesResponse.Builder addTestCases(int index, TestCase value)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameters
Name Description
index int
value TestCase
Returns
Type Description
ListTestCasesResponse.Builder

addTestCases(int index, TestCase.Builder builderForValue)

public ListTestCasesResponse.Builder addTestCases(int index, TestCase.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameters
Name Description
index int
builderForValue TestCase.Builder
Returns
Type Description
ListTestCasesResponse.Builder

addTestCasesBuilder()

public TestCase.Builder addTestCasesBuilder()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
TestCase.Builder

addTestCasesBuilder(int index)

public TestCase.Builder addTestCasesBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
index int
Returns
Type Description
TestCase.Builder

build()

public ListTestCasesResponse build()
Returns
Type Description
ListTestCasesResponse

buildPartial()

public ListTestCasesResponse buildPartial()
Returns
Type Description
ListTestCasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearNextPageToken()

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearTestCases()

public ListTestCasesResponse.Builder clearTestCases()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
ListTestCasesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListTestCasesResponse getDefaultInstanceForType()
Returns
Type Description
ListTestCasesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
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.

getTestCases(int index)

public TestCase getTestCases(int index)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
index int
Returns
Type Description
TestCase

getTestCasesBuilder(int index)

public TestCase.Builder getTestCasesBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
index int
Returns
Type Description
TestCase.Builder

getTestCasesBuilderList()

public List<TestCase.Builder> getTestCasesBuilderList()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
List<Builder>

getTestCasesCount()

public int getTestCasesCount()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
int

getTestCasesList()

public List<TestCase> getTestCasesList()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
List<TestCase>

getTestCasesOrBuilder(int index)

public TestCaseOrBuilder getTestCasesOrBuilder(int index)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
index int
Returns
Type Description
TestCaseOrBuilder

getTestCasesOrBuilderList()

public List<? extends TestCaseOrBuilder> getTestCasesOrBuilderList()

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Returns
Type Description
List<? extends com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ListTestCasesResponse other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeTestCases(int index)

public ListTestCasesResponse.Builder removeTestCases(int index)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameter
Name Description
index int
Returns
Type Description
ListTestCasesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setNextPageToken(String value)

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

This builder for chaining.

setNextPageTokenBytes(ByteString value)

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

This builder for chaining.

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

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

setTestCases(int index, TestCase value)

public ListTestCasesResponse.Builder setTestCases(int index, TestCase value)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameters
Name Description
index int
value TestCase
Returns
Type Description
ListTestCasesResponse.Builder

setTestCases(int index, TestCase.Builder builderForValue)

public ListTestCasesResponse.Builder setTestCases(int index, TestCase.Builder builderForValue)

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

repeated .google.cloud.dialogflow.cx.v3.TestCase test_cases = 1;

Parameters
Name Description
index int
builderForValue TestCase.Builder
Returns
Type Description
ListTestCasesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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