Class ImportIntentsRequest.Builder

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

public static final class ImportIntentsRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ImportIntentsRequest.Builder> implements ImportIntentsRequestOrBuilder
 The request message for
 [Intents.ImportIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ImportIntents].
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest
  • 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<ImportIntentsRequest.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<ImportIntentsRequest.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<ImportIntentsRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public ImportIntentsRequest.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<ImportIntentsRequest.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<ImportIntentsRequest.Builder>
    • mergeFrom

      public ImportIntentsRequest.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<ImportIntentsRequest.Builder>
      Throws:
      IOException
    • getIntentsCase

      public ImportIntentsRequest.IntentsCase getIntentsCase()
      Specified by:
      getIntentsCase in interface ImportIntentsRequestOrBuilder
    • clearIntents

      public ImportIntentsRequest.Builder clearIntents()
    • getParent

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

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

      public ImportIntentsRequest.Builder setParent(String value)
       Required. The agent to import the intents into.
       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 ImportIntentsRequest.Builder clearParent()
       Required. The agent to import the intents into.
       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 ImportIntentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The agent to import the intents into.
       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.
    • hasIntentsUri

      public boolean hasIntentsUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Specified by:
      hasIntentsUri in interface ImportIntentsRequestOrBuilder
      Returns:
      Whether the intentsUri field is set.
    • getIntentsUri

      public String getIntentsUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Specified by:
      getIntentsUri in interface ImportIntentsRequestOrBuilder
      Returns:
      The intentsUri.
    • getIntentsUriBytes

      public com.google.protobuf.ByteString getIntentsUriBytes()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Specified by:
      getIntentsUriBytes in interface ImportIntentsRequestOrBuilder
      Returns:
      The bytes for intentsUri.
    • setIntentsUri

      public ImportIntentsRequest.Builder setIntentsUri(String value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Parameters:
      value - The intentsUri to set.
      Returns:
      This builder for chaining.
    • clearIntentsUri

      public ImportIntentsRequest.Builder clearIntentsUri()
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Returns:
      This builder for chaining.
    • setIntentsUriBytes

      public ImportIntentsRequest.Builder setIntentsUriBytes(com.google.protobuf.ByteString value)
       The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
       to import intents 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 intents_uri = 2;
      Parameters:
      value - The bytes for intentsUri to set.
      Returns:
      This builder for chaining.
    • hasIntentsContent

      public boolean hasIntentsContent()
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
      Specified by:
      hasIntentsContent in interface ImportIntentsRequestOrBuilder
      Returns:
      Whether the intentsContent field is set.
    • getIntentsContent

      public InlineSource getIntentsContent()
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
      Specified by:
      getIntentsContent in interface ImportIntentsRequestOrBuilder
      Returns:
      The intentsContent.
    • setIntentsContent

      public ImportIntentsRequest.Builder setIntentsContent(InlineSource value)
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
    • setIntentsContent

      public ImportIntentsRequest.Builder setIntentsContent(InlineSource.Builder builderForValue)
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
    • mergeIntentsContent

      public ImportIntentsRequest.Builder mergeIntentsContent(InlineSource value)
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
    • clearIntentsContent

      public ImportIntentsRequest.Builder clearIntentsContent()
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
    • getIntentsContentBuilder

      public InlineSource.Builder getIntentsContentBuilder()
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
    • getIntentsContentOrBuilder

      public InlineSourceOrBuilder getIntentsContentOrBuilder()
       Uncompressed byte content of intents.
       
      .google.cloud.dialogflow.cx.v3beta1.InlineSource intents_content = 3;
      Specified by:
      getIntentsContentOrBuilder in interface ImportIntentsRequestOrBuilder
    • getMergeOptionValue

      public int getMergeOptionValue()
       Merge option for importing intents. If not specified, `REJECT` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
      Specified by:
      getMergeOptionValue in interface ImportIntentsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for mergeOption.
    • setMergeOptionValue

      public ImportIntentsRequest.Builder setMergeOptionValue(int value)
       Merge option for importing intents. If not specified, `REJECT` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
      Parameters:
      value - The enum numeric value on the wire for mergeOption to set.
      Returns:
      This builder for chaining.
    • getMergeOption

      public ImportIntentsRequest.MergeOption getMergeOption()
       Merge option for importing intents. If not specified, `REJECT` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
      Specified by:
      getMergeOption in interface ImportIntentsRequestOrBuilder
      Returns:
      The mergeOption.
    • setMergeOption

       Merge option for importing intents. If not specified, `REJECT` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
      Parameters:
      value - The mergeOption to set.
      Returns:
      This builder for chaining.
    • clearMergeOption

      public ImportIntentsRequest.Builder clearMergeOption()
       Merge option for importing intents. If not specified, `REJECT` is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ImportIntentsRequest.MergeOption merge_option = 4;
      Returns:
      This builder for chaining.