Class ImportTestCasesRequest.Builder

  • All Implemented Interfaces:
    ImportTestCasesRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ImportTestCasesRequest

    public static final class ImportTestCasesRequest.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ImportTestCasesRequest.Builder>
    implements ImportTestCasesRequestOrBuilder
     The request message for
     [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3.TestCases.ImportTestCases].
     
    Protobuf type google.cloud.dialogflow.cx.v3.ImportTestCasesRequest
    • 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<ImportTestCasesRequest.Builder>
      • clear

        public ImportTestCasesRequest.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<ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • clearField

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • clearOneof

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • setRepeatedField

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • addRepeatedField

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • isInitialized

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

        public ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The agent to import test cases to.
         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 ImportTestCasesRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The agent to import test cases to.
         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 ImportTestCasesRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public ImportTestCasesRequest.Builder setParent​(String value)
         Required. The agent to import test cases to.
         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 ImportTestCasesRequest.Builder clearParent()
         Required. The agent to import test cases to.
         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 ImportTestCasesRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The agent to import test cases to.
         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.
      • hasGcsUri

        public boolean hasGcsUri()
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Specified by:
        hasGcsUri in interface ImportTestCasesRequestOrBuilder
        Returns:
        Whether the gcsUri field is set.
      • getGcsUri

        public String getGcsUri()
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Specified by:
        getGcsUri in interface ImportTestCasesRequestOrBuilder
        Returns:
        The gcsUri.
      • getGcsUriBytes

        public com.google.protobuf.ByteString getGcsUriBytes()
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Specified by:
        getGcsUriBytes in interface ImportTestCasesRequestOrBuilder
        Returns:
        The bytes for gcsUri.
      • setGcsUri

        public ImportTestCasesRequest.Builder setGcsUri​(String value)
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Parameters:
        value - The gcsUri to set.
        Returns:
        This builder for chaining.
      • clearGcsUri

        public ImportTestCasesRequest.Builder clearGcsUri()
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Returns:
        This builder for chaining.
      • setGcsUriBytes

        public ImportTestCasesRequest.Builder setGcsUriBytes​(com.google.protobuf.ByteString value)
         The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
         to import test cases from. The format of this URI must be
         `gs://<bucket-name>/<object-name>`.
        
         Dialogflow performs a read operation for the Cloud Storage object
         on the caller's behalf, so your request authentication must
         have read permissions for the object. For more information, see
         [Dialogflow access
         control](https://cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
         
        string gcs_uri = 2;
        Parameters:
        value - The bytes for gcsUri to set.
        Returns:
        This builder for chaining.
      • hasContent

        public boolean hasContent()
         Uncompressed raw byte content for test cases.
         
        bytes content = 3;
        Specified by:
        hasContent in interface ImportTestCasesRequestOrBuilder
        Returns:
        Whether the content field is set.
      • getContent

        public com.google.protobuf.ByteString getContent()
         Uncompressed raw byte content for test cases.
         
        bytes content = 3;
        Specified by:
        getContent in interface ImportTestCasesRequestOrBuilder
        Returns:
        The content.
      • setContent

        public ImportTestCasesRequest.Builder setContent​(com.google.protobuf.ByteString value)
         Uncompressed raw byte content for test cases.
         
        bytes content = 3;
        Parameters:
        value - The content to set.
        Returns:
        This builder for chaining.
      • clearContent

        public ImportTestCasesRequest.Builder clearContent()
         Uncompressed raw byte content for test cases.
         
        bytes content = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>
      • mergeUnknownFields

        public final ImportTestCasesRequest.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<ImportTestCasesRequest.Builder>