Class TestCaseResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
com.google.cloud.dialogflow.cx.v3beta1.TestCaseResult.Builder
- All Implemented Interfaces:
TestCaseResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- TestCaseResult
public static final class TestCaseResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
implements TestCaseResultOrBuilder
Represents a result from running a test case in an agent environment.Protobuf type
google.cloud.dialogflow.cx.v3beta1.TestCaseResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllConversationTurns(Iterable<? extends ConversationTurn> values) The conversation turns uttered during the test case replay in chronological order.addConversationTurns(int index, ConversationTurn value) The conversation turns uttered during the test case replay in chronological order.addConversationTurns(int index, ConversationTurn.Builder builderForValue) The conversation turns uttered during the test case replay in chronological order.The conversation turns uttered during the test case replay in chronological order.addConversationTurns(ConversationTurn.Builder builderForValue) The conversation turns uttered during the test case replay in chronological order.The conversation turns uttered during the test case replay in chronological order.addConversationTurnsBuilder(int index) The conversation turns uttered during the test case replay in chronological order.build()clear()The conversation turns uttered during the test case replay in chronological order.Environment where the test was run.The resource name for the test case result.Whether the test case passed in the agent environment.The time that the test was run.getConversationTurns(int index) The conversation turns uttered during the test case replay in chronological order.getConversationTurnsBuilder(int index) The conversation turns uttered during the test case replay in chronological order.The conversation turns uttered during the test case replay in chronological order.intThe conversation turns uttered during the test case replay in chronological order.The conversation turns uttered during the test case replay in chronological order.getConversationTurnsOrBuilder(int index) The conversation turns uttered during the test case replay in chronological order.List<? extends ConversationTurnOrBuilder>The conversation turns uttered during the test case replay in chronological order.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorEnvironment where the test was run.com.google.protobuf.ByteStringEnvironment where the test was run.getName()The resource name for the test case result.com.google.protobuf.ByteStringThe resource name for the test case result.Whether the test case passed in the agent environment.intWhether the test case passed in the agent environment.com.google.protobuf.TimestampThe time that the test was run.com.google.protobuf.Timestamp.BuilderThe time that the test was run.com.google.protobuf.TimestampOrBuilderThe time that the test was run.booleanThe time that the test was run.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(TestCaseResult other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeTestTime(com.google.protobuf.Timestamp value) The time that the test was run.removeConversationTurns(int index) The conversation turns uttered during the test case replay in chronological order.setConversationTurns(int index, ConversationTurn value) The conversation turns uttered during the test case replay in chronological order.setConversationTurns(int index, ConversationTurn.Builder builderForValue) The conversation turns uttered during the test case replay in chronological order.setEnvironment(String value) Environment where the test was run.setEnvironmentBytes(com.google.protobuf.ByteString value) Environment where the test was run.The resource name for the test case result.setNameBytes(com.google.protobuf.ByteString value) The resource name for the test case result.setTestResult(TestResult value) Whether the test case passed in the agent environment.setTestResultValue(int value) Whether the test case passed in the agent environment.setTestTime(com.google.protobuf.Timestamp value) The time that the test was run.setTestTime(com.google.protobuf.Timestamp.Builder builderForValue) The time that the test was run.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TestCaseResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<TestCaseResult.Builder>
-
mergeFrom
public TestCaseResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TestCaseResult.Builder>- Throws:
IOException
-
getName
The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
string name = 1;- Specified by:
getNamein interfaceTestCaseResultOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
string name = 1;- Specified by:
getNameBytesin interfaceTestCaseResultOrBuilder- Returns:
- The bytes for name.
-
setName
The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
The resource name for the test case result. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/testCases/<TestCaseID>/results/<TestCaseResultID>`.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getEnvironment
Environment where the test was run. If not set, it indicates the draft environment.
string environment = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getEnvironmentin interfaceTestCaseResultOrBuilder- Returns:
- The environment.
-
getEnvironmentBytes
public com.google.protobuf.ByteString getEnvironmentBytes()Environment where the test was run. If not set, it indicates the draft environment.
string environment = 2 [(.google.api.resource_reference) = { ... }- Specified by:
getEnvironmentBytesin interfaceTestCaseResultOrBuilder- Returns:
- The bytes for environment.
-
setEnvironment
Environment where the test was run. If not set, it indicates the draft environment.
string environment = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The environment to set.- Returns:
- This builder for chaining.
-
clearEnvironment
Environment where the test was run. If not set, it indicates the draft environment.
string environment = 2 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setEnvironmentBytes
Environment where the test was run. If not set, it indicates the draft environment.
string environment = 2 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for environment to set.- Returns:
- This builder for chaining.
-
getConversationTurnsList
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;- Specified by:
getConversationTurnsListin interfaceTestCaseResultOrBuilder
-
getConversationTurnsCount
public int getConversationTurnsCount()The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;- Specified by:
getConversationTurnsCountin interfaceTestCaseResultOrBuilder
-
getConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;- Specified by:
getConversationTurnsin interfaceTestCaseResultOrBuilder
-
setConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
setConversationTurns
public TestCaseResult.Builder setConversationTurns(int index, ConversationTurn.Builder builderForValue) The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addConversationTurns
public TestCaseResult.Builder addConversationTurns(int index, ConversationTurn.Builder builderForValue) The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addAllConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
clearConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
removeConversationTurns
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
getConversationTurnsBuilder
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
getConversationTurnsOrBuilder
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;- Specified by:
getConversationTurnsOrBuilderin interfaceTestCaseResultOrBuilder
-
getConversationTurnsOrBuilderList
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3;- Specified by:
getConversationTurnsOrBuilderListin interfaceTestCaseResultOrBuilder
-
addConversationTurnsBuilder
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
addConversationTurnsBuilder
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
getConversationTurnsBuilderList
The conversation turns uttered during the test case replay in chronological order.
repeated .google.cloud.dialogflow.cx.v3beta1.ConversationTurn conversation_turns = 3; -
getTestResultValue
public int getTestResultValue()Whether the test case passed in the agent environment.
.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;- Specified by:
getTestResultValuein interfaceTestCaseResultOrBuilder- Returns:
- The enum numeric value on the wire for testResult.
-
setTestResultValue
Whether the test case passed in the agent environment.
.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;- Parameters:
value- The enum numeric value on the wire for testResult to set.- Returns:
- This builder for chaining.
-
getTestResult
Whether the test case passed in the agent environment.
.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;- Specified by:
getTestResultin interfaceTestCaseResultOrBuilder- Returns:
- The testResult.
-
setTestResult
Whether the test case passed in the agent environment.
.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;- Parameters:
value- The testResult to set.- Returns:
- This builder for chaining.
-
clearTestResult
Whether the test case passed in the agent environment.
.google.cloud.dialogflow.cx.v3beta1.TestResult test_result = 4;- Returns:
- This builder for chaining.
-
hasTestTime
public boolean hasTestTime()The time that the test was run.
.google.protobuf.Timestamp test_time = 5;- Specified by:
hasTestTimein interfaceTestCaseResultOrBuilder- Returns:
- Whether the testTime field is set.
-
getTestTime
public com.google.protobuf.Timestamp getTestTime()The time that the test was run.
.google.protobuf.Timestamp test_time = 5;- Specified by:
getTestTimein interfaceTestCaseResultOrBuilder- Returns:
- The testTime.
-
setTestTime
The time that the test was run.
.google.protobuf.Timestamp test_time = 5; -
setTestTime
The time that the test was run.
.google.protobuf.Timestamp test_time = 5; -
mergeTestTime
The time that the test was run.
.google.protobuf.Timestamp test_time = 5; -
clearTestTime
The time that the test was run.
.google.protobuf.Timestamp test_time = 5; -
getTestTimeBuilder
public com.google.protobuf.Timestamp.Builder getTestTimeBuilder()The time that the test was run.
.google.protobuf.Timestamp test_time = 5; -
getTestTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getTestTimeOrBuilder()The time that the test was run.
.google.protobuf.Timestamp test_time = 5;- Specified by:
getTestTimeOrBuilderin interfaceTestCaseResultOrBuilder
-