Class: Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/cx/v3/agent.rb

Overview

The request message for Agents.RestoreAgent.

Defined Under Namespace

Modules: RestoreOption Classes: GitSource

Instance Attribute Summary collapse

Instance Attribute Details

#agent_content::String

Returns Uncompressed raw byte content for agent.

Note: The following fields are mutually exclusive: agent_content, agent_uri, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    Uncompressed raw byte content for agent.

    Note: The following fields are mutually exclusive: agent_content, agent_uri, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'proto_docs/google/cloud/dialogflow/cx/v3/agent.rb', line 453

class RestoreAgentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Settings for restoring from a git branch
  # @!attribute [rw] tracking_branch
  #   @return [::String]
  #     tracking branch for the git pull
  class GitSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restore option.
  module RestoreOption
    # Unspecified. Treated as KEEP.
    RESTORE_OPTION_UNSPECIFIED = 0

    # Always respect the settings from the exported agent file. It may cause
    # a restoration failure if some settings (e.g. model type) are not
    # supported in the target agent.
    KEEP = 1

    # Fallback to default settings if some settings are not supported in the
    # target agent.
    FALLBACK = 2
  end
end

#agent_uri::String

Returns The Google Cloud Storage URI to restore agent 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.

Note: The following fields are mutually exclusive: agent_uri, agent_content, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::String)

    The Google Cloud Storage URI to restore agent 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.

    Note: The following fields are mutually exclusive: agent_uri, agent_content, git_source. If a field in that set is populated, all other fields in the set will automatically be cleared.



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'proto_docs/google/cloud/dialogflow/cx/v3/agent.rb', line 453

class RestoreAgentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Settings for restoring from a git branch
  # @!attribute [rw] tracking_branch
  #   @return [::String]
  #     tracking branch for the git pull
  class GitSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restore option.
  module RestoreOption
    # Unspecified. Treated as KEEP.
    RESTORE_OPTION_UNSPECIFIED = 0

    # Always respect the settings from the exported agent file. It may cause
    # a restoration failure if some settings (e.g. model type) are not
    # supported in the target agent.
    KEEP = 1

    # Fallback to default settings if some settings are not supported in the
    # target agent.
    FALLBACK = 2
  end
end

#git_source::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource

Returns Setting for restoring from a git branch

Note: The following fields are mutually exclusive: git_source, agent_uri, agent_content. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'proto_docs/google/cloud/dialogflow/cx/v3/agent.rb', line 453

class RestoreAgentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Settings for restoring from a git branch
  # @!attribute [rw] tracking_branch
  #   @return [::String]
  #     tracking branch for the git pull
  class GitSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restore option.
  module RestoreOption
    # Unspecified. Treated as KEEP.
    RESTORE_OPTION_UNSPECIFIED = 0

    # Always respect the settings from the exported agent file. It may cause
    # a restoration failure if some settings (e.g. model type) are not
    # supported in the target agent.
    KEEP = 1

    # Fallback to default settings if some settings are not supported in the
    # target agent.
    FALLBACK = 2
  end
end

#name::String

Returns Required. The name of the agent to restore into. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.

Returns:

  • (::String)

    Required. The name of the agent to restore into. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>.



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'proto_docs/google/cloud/dialogflow/cx/v3/agent.rb', line 453

class RestoreAgentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Settings for restoring from a git branch
  # @!attribute [rw] tracking_branch
  #   @return [::String]
  #     tracking branch for the git pull
  class GitSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restore option.
  module RestoreOption
    # Unspecified. Treated as KEEP.
    RESTORE_OPTION_UNSPECIFIED = 0

    # Always respect the settings from the exported agent file. It may cause
    # a restoration failure if some settings (e.g. model type) are not
    # supported in the target agent.
    KEEP = 1

    # Fallback to default settings if some settings are not supported in the
    # target agent.
    FALLBACK = 2
  end
end

#restore_option::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption

Returns Agent restore mode. If not specified, KEEP is assumed.

Returns:



453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
# File 'proto_docs/google/cloud/dialogflow/cx/v3/agent.rb', line 453

class RestoreAgentRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Settings for restoring from a git branch
  # @!attribute [rw] tracking_branch
  #   @return [::String]
  #     tracking branch for the git pull
  class GitSource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Restore option.
  module RestoreOption
    # Unspecified. Treated as KEEP.
    RESTORE_OPTION_UNSPECIFIED = 0

    # Always respect the settings from the exported agent file. It may cause
    # a restoration failure if some settings (e.g. model type) are not
    # supported in the target agent.
    KEEP = 1

    # Fallback to default settings if some settings are not supported in the
    # target agent.
    FALLBACK = 2
  end
end