Class ListTestCasesResponse.Builder (0.13.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3.TestCase>
Returns
TypeDescription
ListTestCasesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ListTestCasesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTestCase
Returns
TypeDescription
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
NameDescription
builderForValueTestCase.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueTestCase
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTestCase.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
TestCase.Builder

build()

public ListTestCasesResponse build()
Returns
TypeDescription
ListTestCasesResponse

buildPartial()

public ListTestCasesResponse buildPartial()
Returns
TypeDescription
ListTestCasesResponse

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ListTestCasesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ListTestCasesResponse.Builder

clone()

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

getDefaultInstanceForType()

public ListTestCasesResponse getDefaultInstanceForType()
Returns
TypeDescription
ListTestCasesResponse

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.

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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.TestCaseOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ListTestCasesResponse other)

public ListTestCasesResponse.Builder mergeFrom(ListTestCasesResponse other)
Parameter
NameDescription
otherListTestCasesResponse
Returns
TypeDescription
ListTestCasesResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ListTestCasesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ListTestCasesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ListTestCasesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The nextPageToken to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for nextPageToken to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueTestCase
Returns
TypeDescription
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
NameDescription
indexint
builderForValueTestCase.Builder
Returns
TypeDescription
ListTestCasesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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