Class: Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/webrisk/v1/webrisk.rb

Overview

Describes an API diff request.

Defined Under Namespace

Classes: Constraints

Instance Attribute Summary collapse

Instance Attribute Details

#constraints::Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest::Constraints

Returns Required. The constraints associated with this request.

Returns:



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 40

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

  # The constraints for this diff.
  # @!attribute [rw] max_diff_entries
  #   @return [::Integer]
  #     The maximum size in number of entries. The diff will not contain more
  #     entries than this value.  This should be a power of 2 between 2**10 and
  #     2**20.  If zero, no diff size limit is set.
  # @!attribute [rw] max_database_entries
  #   @return [::Integer]
  #     Sets the maximum number of entries that the client is willing to have
  #     in the local database. This should be a power of 2 between 2**10 and
  #     2**20. If zero, no database size limit is set.
  # @!attribute [rw] supported_compressions
  #   @return [::Array<::Google::Cloud::WebRisk::V1::CompressionType>]
  #     The compression types supported by the client.
  class Constraints
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#threat_type::Google::Cloud::WebRisk::V1::ThreatType

Returns Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

Returns:

  • (::Google::Cloud::WebRisk::V1::ThreatType)

    Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 40

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

  # The constraints for this diff.
  # @!attribute [rw] max_diff_entries
  #   @return [::Integer]
  #     The maximum size in number of entries. The diff will not contain more
  #     entries than this value.  This should be a power of 2 between 2**10 and
  #     2**20.  If zero, no diff size limit is set.
  # @!attribute [rw] max_database_entries
  #   @return [::Integer]
  #     Sets the maximum number of entries that the client is willing to have
  #     in the local database. This should be a power of 2 between 2**10 and
  #     2**20. If zero, no database size limit is set.
  # @!attribute [rw] supported_compressions
  #   @return [::Array<::Google::Cloud::WebRisk::V1::CompressionType>]
  #     The compression types supported by the client.
  class Constraints
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#version_token::String

Returns The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

Returns:

  • (::String)

    The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'proto_docs/google/cloud/webrisk/v1/webrisk.rb', line 40

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

  # The constraints for this diff.
  # @!attribute [rw] max_diff_entries
  #   @return [::Integer]
  #     The maximum size in number of entries. The diff will not contain more
  #     entries than this value.  This should be a power of 2 between 2**10 and
  #     2**20.  If zero, no diff size limit is set.
  # @!attribute [rw] max_database_entries
  #   @return [::Integer]
  #     Sets the maximum number of entries that the client is willing to have
  #     in the local database. This should be a power of 2 between 2**10 and
  #     2**20. If zero, no database size limit is set.
  # @!attribute [rw] supported_compressions
  #   @return [::Array<::Google::Cloud::WebRisk::V1::CompressionType>]
  #     The compression types supported by the client.
  class Constraints
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end