Class ExportIntentsRequest.Builder

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

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

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

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

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

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

      public ExportIntentsRequest.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<ExportIntentsRequest.Builder>
      Throws:
      IOException
    • getDestinationCase

      public ExportIntentsRequest.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface ExportIntentsRequestOrBuilder
    • clearDestination

      public ExportIntentsRequest.Builder clearDestination()
    • getParent

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

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

      public ExportIntentsRequest.Builder setParent(String value)
       Required. The name of the parent agent to export intents.
       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 ExportIntentsRequest.Builder clearParent()
       Required. The name of the parent agent to export intents.
       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 ExportIntentsRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The name of the parent agent to export intents.
       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.
    • getIntentsList

      public com.google.protobuf.ProtocolStringList getIntentsList()
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntentsList in interface ExportIntentsRequestOrBuilder
      Returns:
      A list containing the intents.
    • getIntentsCount

      public int getIntentsCount()
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntentsCount in interface ExportIntentsRequestOrBuilder
      Returns:
      The count of intents.
    • getIntents

      public String getIntents(int index)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntents in interface ExportIntentsRequestOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The intents at the given index.
    • getIntentsBytes

      public com.google.protobuf.ByteString getIntentsBytes(int index)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getIntentsBytes in interface ExportIntentsRequestOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the intents at the given index.
    • setIntents

      public ExportIntentsRequest.Builder setIntents(int index, String value)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      index - The index to set the value at.
      value - The intents to set.
      Returns:
      This builder for chaining.
    • addIntents

      public ExportIntentsRequest.Builder addIntents(String value)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The intents to add.
      Returns:
      This builder for chaining.
    • addAllIntents

      public ExportIntentsRequest.Builder addAllIntents(Iterable<String> values)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      values - The intents to add.
      Returns:
      This builder for chaining.
    • clearIntents

      public ExportIntentsRequest.Builder clearIntents()
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • addIntentsBytes

      public ExportIntentsRequest.Builder addIntentsBytes(com.google.protobuf.ByteString value)
       Required. The name of the intents to export.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
       
      repeated string intents = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes of the intents to add.
      Returns:
      This builder for chaining.
    • hasIntentsUri

      public boolean hasIntentsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIntentsUri in interface ExportIntentsRequestOrBuilder
      Returns:
      Whether the intentsUri field is set.
    • getIntentsUri

      public String getIntentsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentsUri in interface ExportIntentsRequestOrBuilder
      Returns:
      The intentsUri.
    • getIntentsUriBytes

      public com.google.protobuf.ByteString getIntentsUriBytes()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentsUriBytes in interface ExportIntentsRequestOrBuilder
      Returns:
      The bytes for intentsUri.
    • setIntentsUri

      public ExportIntentsRequest.Builder setIntentsUri(String value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The intentsUri to set.
      Returns:
      This builder for chaining.
    • clearIntentsUri

      public ExportIntentsRequest.Builder clearIntentsUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setIntentsUriBytes

      public ExportIntentsRequest.Builder setIntentsUriBytes(com.google.protobuf.ByteString value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the
       intents to. The format of this URI must be
       `gs://<bucket-name>/<object-name>`.
      
       Dialogflow performs a write operation for the Cloud Storage object
       on the caller's behalf, so your request authentication must
       have write 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 = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for intentsUri to set.
      Returns:
      This builder for chaining.
    • hasIntentsContentInline

      public boolean hasIntentsContentInline()
       Optional. The option to return the serialized intents inline.
       
      bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasIntentsContentInline in interface ExportIntentsRequestOrBuilder
      Returns:
      Whether the intentsContentInline field is set.
    • getIntentsContentInline

      public boolean getIntentsContentInline()
       Optional. The option to return the serialized intents inline.
       
      bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIntentsContentInline in interface ExportIntentsRequestOrBuilder
      Returns:
      The intentsContentInline.
    • setIntentsContentInline

      public ExportIntentsRequest.Builder setIntentsContentInline(boolean value)
       Optional. The option to return the serialized intents inline.
       
      bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The intentsContentInline to set.
      Returns:
      This builder for chaining.
    • clearIntentsContentInline

      public ExportIntentsRequest.Builder clearIntentsContentInline()
       Optional. The option to return the serialized intents inline.
       
      bool intents_content_inline = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getDataFormatValue

      public int getDataFormatValue()
       Optional. The data format of the exported intents. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormatValue in interface ExportIntentsRequestOrBuilder
      Returns:
      The enum numeric value on the wire for dataFormat.
    • setDataFormatValue

      public ExportIntentsRequest.Builder setDataFormatValue(int value)
       Optional. The data format of the exported intents. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for dataFormat to set.
      Returns:
      This builder for chaining.
    • getDataFormat

      public ExportIntentsRequest.DataFormat getDataFormat()
       Optional. The data format of the exported intents. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormat in interface ExportIntentsRequestOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

       Optional. The data format of the exported intents. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataFormat to set.
      Returns:
      This builder for chaining.
    • clearDataFormat

      public ExportIntentsRequest.Builder clearDataFormat()
       Optional. The data format of the exported intents. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportIntentsRequest.DataFormat data_format = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.