Class ExportAgentRequest.Builder

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

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

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

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

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

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

      public ExportAgentRequest.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<ExportAgentRequest.Builder>
      Throws:
      IOException
    • getName

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

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

      public ExportAgentRequest.Builder setName(String value)
       Required. The name of the agent to export.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ExportAgentRequest.Builder clearName()
       Required. The name of the agent to export.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExportAgentRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the agent to export.
       Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>`.
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getAgentUri

      public String getAgentUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       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 agent_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentUri in interface ExportAgentRequestOrBuilder
      Returns:
      The agentUri.
    • getAgentUriBytes

      public com.google.protobuf.ByteString getAgentUriBytes()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       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 agent_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAgentUriBytes in interface ExportAgentRequestOrBuilder
      Returns:
      The bytes for agentUri.
    • setAgentUri

      public ExportAgentRequest.Builder setAgentUri(String value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       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 agent_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The agentUri to set.
      Returns:
      This builder for chaining.
    • clearAgentUri

      public ExportAgentRequest.Builder clearAgentUri()
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       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 agent_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAgentUriBytes

      public ExportAgentRequest.Builder setAgentUriBytes(com.google.protobuf.ByteString value)
       Optional. The [Google Cloud
       Storage](https://cloud.google.com/storage/docs/) URI to export the agent
       to. The format of this URI must be `gs://<bucket-name>/<object-name>`. If
       left unspecified, the serialized agent is returned inline.
      
       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 agent_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for agentUri to set.
      Returns:
      This builder for chaining.
    • getDataFormatValue

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

      public ExportAgentRequest.Builder setDataFormatValue(int value)
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat data_format = 3 [(.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 ExportAgentRequest.DataFormat getDataFormat()
       Optional. The data format of the exported agent. If not specified, `BLOB`
       is assumed.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.DataFormat data_format = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataFormat in interface ExportAgentRequestOrBuilder
      Returns:
      The dataFormat.
    • setDataFormat

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

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

      public String getEnvironment()
       Optional. Environment name. If not set, draft environment is assumed.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
       
      string environment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEnvironment in interface ExportAgentRequestOrBuilder
      Returns:
      The environment.
    • getEnvironmentBytes

      public com.google.protobuf.ByteString getEnvironmentBytes()
       Optional. Environment name. If not set, draft environment is assumed.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
       
      string environment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getEnvironmentBytes in interface ExportAgentRequestOrBuilder
      Returns:
      The bytes for environment.
    • setEnvironment

      public ExportAgentRequest.Builder setEnvironment(String value)
       Optional. Environment name. If not set, draft environment is assumed.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
       
      string environment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The environment to set.
      Returns:
      This builder for chaining.
    • clearEnvironment

      public ExportAgentRequest.Builder clearEnvironment()
       Optional. Environment name. If not set, draft environment is assumed.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
       
      string environment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setEnvironmentBytes

      public ExportAgentRequest.Builder setEnvironmentBytes(com.google.protobuf.ByteString value)
       Optional. Environment name. If not set, draft environment is assumed.
       Format:
       `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>`.
       
      string environment = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for environment to set.
      Returns:
      This builder for chaining.
    • hasGitDestination

      public boolean hasGitDestination()
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasGitDestination in interface ExportAgentRequestOrBuilder
      Returns:
      Whether the gitDestination field is set.
    • getGitDestination

      public ExportAgentRequest.GitDestination getGitDestination()
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGitDestination in interface ExportAgentRequestOrBuilder
      Returns:
      The gitDestination.
    • setGitDestination

       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
    • setGitDestination

      public ExportAgentRequest.Builder setGitDestination(ExportAgentRequest.GitDestination.Builder builderForValue)
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
    • mergeGitDestination

       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
    • clearGitDestination

      public ExportAgentRequest.Builder clearGitDestination()
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGitDestinationBuilder

      public ExportAgentRequest.GitDestination.Builder getGitDestinationBuilder()
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
    • getGitDestinationOrBuilder

      public ExportAgentRequest.GitDestinationOrBuilder getGitDestinationOrBuilder()
       Optional. The Git branch to export the agent to.
       
      .google.cloud.dialogflow.cx.v3beta1.ExportAgentRequest.GitDestination git_destination = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getGitDestinationOrBuilder in interface ExportAgentRequestOrBuilder
    • getIncludeBigqueryExportSettings

      public boolean getIncludeBigqueryExportSettings()
       Optional. Whether to include BigQuery Export setting.
       
      bool include_bigquery_export_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getIncludeBigqueryExportSettings in interface ExportAgentRequestOrBuilder
      Returns:
      The includeBigqueryExportSettings.
    • setIncludeBigqueryExportSettings

      public ExportAgentRequest.Builder setIncludeBigqueryExportSettings(boolean value)
       Optional. Whether to include BigQuery Export setting.
       
      bool include_bigquery_export_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The includeBigqueryExportSettings to set.
      Returns:
      This builder for chaining.
    • clearIncludeBigqueryExportSettings

      public ExportAgentRequest.Builder clearIncludeBigqueryExportSettings()
       Optional. Whether to include BigQuery Export setting.
       
      bool include_bigquery_export_settings = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.