Class RunTestCaseRequest.Builder (0.14.1)

public static final class RunTestCaseRequest.Builder extends GeneratedMessageV3.Builder<RunTestCaseRequest.Builder> implements RunTestCaseRequestOrBuilder

The request message for TestCases.RunTestCase.

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

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RunTestCaseRequest build()
Returns
TypeDescription
RunTestCaseRequest

buildPartial()

public RunTestCaseRequest buildPartial()
Returns
TypeDescription
RunTestCaseRequest

clear()

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

clearEnvironment()

public RunTestCaseRequest.Builder clearEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public RunTestCaseRequest.Builder clearName()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RunTestCaseRequest getDefaultInstanceForType()
Returns
TypeDescription
RunTestCaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnvironment()

public String getEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The environment.

getEnvironmentBytes()

public ByteString getEnvironmentBytes()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for environment.

getName()

public String getName()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(RunTestCaseRequest other)

public RunTestCaseRequest.Builder mergeFrom(RunTestCaseRequest other)
Parameter
NameDescription
otherRunTestCaseRequest
Returns
TypeDescription
RunTestCaseRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnvironment(String value)

public RunTestCaseRequest.Builder setEnvironment(String value)

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The environment to set.

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

setEnvironmentBytes(ByteString value)

public RunTestCaseRequest.Builder setEnvironmentBytes(ByteString value)

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>.

string environment = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for environment to set.

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public RunTestCaseRequest.Builder setName(String value)

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RunTestCaseRequest.Builder setNameBytes(ByteString value)

Required. Format of test case name to run: projects/<Project ID>/locations/ <Location ID>/agents/<AgentID>/testCases/<TestCase ID>.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
RunTestCaseRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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