Class ListTestCasesResponse.Builder (0.12.1)

See more code actions.
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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTestCasesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns 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

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

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

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

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 Overrides

clearField(Descriptors.FieldDescriptor field)

public ListTestCasesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns 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 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

clone()

public ListTestCasesResponse.Builder clone()
Returns 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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTestCasesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns 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

setField(Descriptors.FieldDescriptor field, Object value)

public ListTestCasesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns 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 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

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

setUnknownFields(UnknownFieldSet unknownFields)

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