Class CreateTestCaseRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest.Builder
All Implemented Interfaces:
CreateTestCaseRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateTestCaseRequest

public static final class CreateTestCaseRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder> implements CreateTestCaseRequestOrBuilder
 The request message for
 [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3beta1.TestCases.CreateTestCase].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.CreateTestCaseRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder>
    • getDefaultInstanceForType

      public CreateTestCaseRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CreateTestCaseRequest build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateTestCaseRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateTestCaseRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTestCaseRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateTestCaseRequest.Builder>
    • mergeFrom

      public CreateTestCaseRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateTestCaseRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The agent to create the test case for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateTestCaseRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The agent to create the test case for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateTestCaseRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateTestCaseRequest.Builder setParent(String value)
       Required. The agent to create the test case for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateTestCaseRequest.Builder clearParent()
       Required. The agent to create the test case for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateTestCaseRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to create the test case for.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasTestCase

      public boolean hasTestCase()
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasTestCase in interface CreateTestCaseRequestOrBuilder
      Returns:
      Whether the testCase field is set.
    • getTestCase

      public TestCase getTestCase()
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTestCase in interface CreateTestCaseRequestOrBuilder
      Returns:
      The testCase.
    • setTestCase

      public CreateTestCaseRequest.Builder setTestCase(TestCase value)
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
    • setTestCase

      public CreateTestCaseRequest.Builder setTestCase(TestCase.Builder builderForValue)
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeTestCase

      public CreateTestCaseRequest.Builder mergeTestCase(TestCase value)
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearTestCase

      public CreateTestCaseRequest.Builder clearTestCase()
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTestCaseBuilder

      public TestCase.Builder getTestCaseBuilder()
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
    • getTestCaseOrBuilder

      public TestCaseOrBuilder getTestCaseOrBuilder()
       Required. The test case to create.
       
      .google.cloud.dialogflow.cx.v3beta1.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTestCaseOrBuilder in interface CreateTestCaseRequestOrBuilder