Class RunTestCaseRequest.Builder (0.94.0)

public static final class RunTestCaseRequest.Builder extends GeneratedMessage.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
Type Description
Descriptor

Methods

build()

public RunTestCaseRequest build()
Returns
Type Description
RunTestCaseRequest

buildPartial()

public RunTestCaseRequest buildPartial()
Returns
Type Description
RunTestCaseRequest

clear()

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

clearEnvironment()

public RunTestCaseRequest.Builder clearEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

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

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

clearName()

public RunTestCaseRequest.Builder clearName()

Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.

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

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public RunTestCaseRequest getDefaultInstanceForType()
Returns
Type Description
RunTestCaseRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEnvironment()

public String getEnvironment()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

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

Returns
Type Description
String

The environment.

getEnvironmentBytes()

public ByteString getEnvironmentBytes()

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

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

Returns
Type Description
ByteString

The bytes for environment.

getName()

public String getName()

Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.

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

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RunTestCaseRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnvironment(String value)

public RunTestCaseRequest.Builder setEnvironment(String value)

Optional. Environment name. If not set, draft environment is assumed. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

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

Parameter
Name Description
value String

The environment to set.

Returns
Type Description
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/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>.

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

Parameter
Name Description
value ByteString

The bytes for environment to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

setName(String value)

public RunTestCaseRequest.Builder setName(String value)

Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RunTestCaseRequest.Builder setNameBytes(ByteString value)

Required. Format of test case name to run: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>.

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RunTestCaseRequest.Builder

This builder for chaining.