Class 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.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
    implements CreateTestCaseRequestOrBuilder
     The request message for
     [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase].
     
    Protobuf type google.cloud.dialogflow.cx.v3.CreateTestCaseRequest
    • Method Detail

      • getDescriptor

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

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public CreateTestCaseRequest.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • clearField

        public CreateTestCaseRequest.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • clearOneof

        public CreateTestCaseRequest.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • setRepeatedField

        public CreateTestCaseRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • addRepeatedField

        public CreateTestCaseRequest.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
         
        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/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
         
        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.v3.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.v3.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.v3.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.v3.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.v3.TestCase test_case = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearTestCase

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

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

        public final CreateTestCaseRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>
      • mergeUnknownFields

        public final CreateTestCaseRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateTestCaseRequest.Builder>