Class ImportTestCasesRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ImportTestCasesRequest.Builder>
com.google.cloud.dialogflow.cx.v3beta1.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.GeneratedMessage.Builder<ImportTestCasesRequest.Builder> implements ImportTestCasesRequestOrBuilder
 The request message for
 [TestCases.ImportTestCases][google.cloud.dialogflow.cx.v3beta1.TestCases.ImportTestCases].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ImportTestCasesRequest
  • 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<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

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

      public ImportTestCasesRequest.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface ImportTestCasesRequestOrBuilder
    • clearSource

      public ImportTestCasesRequest.Builder clearSource()
    • getParent

      public String getParent()
       Required. The agent to import test cases to.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      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/<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 ImportTestCasesRequest.Builder clearParent()
       Required. The agent to import test cases to.
       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 ImportTestCasesRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to import test cases to.
       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.
    • 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.