Documentation ¶
Overview ¶
Package google_cloud_webrisk_v1 is a generated protocol buffer package.
It is generated from these files:
webrisk.proto
It has these top-level messages:
ComputeThreatListDiffRequest ComputeThreatListDiffResponse SearchUrisRequest SearchUrisResponse SearchHashesRequest SearchHashesResponse ThreatEntryAdditions ThreatEntryRemovals RawIndices RawHashes RiceDeltaEncoding
Index ¶
- Variables
- type CompressionType
- type ComputeThreatListDiffRequest
- func (*ComputeThreatListDiffRequest) Descriptor() ([]byte, []int)
- func (m *ComputeThreatListDiffRequest) GetConstraints() *ComputeThreatListDiffRequest_Constraints
- func (m *ComputeThreatListDiffRequest) GetThreatType() ThreatType
- func (m *ComputeThreatListDiffRequest) GetVersionToken() []byte
- func (*ComputeThreatListDiffRequest) ProtoMessage()
- func (m *ComputeThreatListDiffRequest) Reset()
- func (m *ComputeThreatListDiffRequest) String() string
- type ComputeThreatListDiffRequest_Constraints
- func (*ComputeThreatListDiffRequest_Constraints) Descriptor() ([]byte, []int)
- func (m *ComputeThreatListDiffRequest_Constraints) GetMaxDatabaseEntries() int32
- func (m *ComputeThreatListDiffRequest_Constraints) GetMaxDiffEntries() int32
- func (m *ComputeThreatListDiffRequest_Constraints) GetSupportedCompressions() []CompressionType
- func (*ComputeThreatListDiffRequest_Constraints) ProtoMessage()
- func (m *ComputeThreatListDiffRequest_Constraints) Reset()
- func (m *ComputeThreatListDiffRequest_Constraints) String() string
- type ComputeThreatListDiffResponse
- func (*ComputeThreatListDiffResponse) Descriptor() ([]byte, []int)
- func (m *ComputeThreatListDiffResponse) GetAdditions() *ThreatEntryAdditions
- func (m *ComputeThreatListDiffResponse) GetChecksum() *ComputeThreatListDiffResponse_Checksum
- func (m *ComputeThreatListDiffResponse) GetNewVersionToken() []byte
- func (m *ComputeThreatListDiffResponse) GetRecommendedNextDiff() *google_protobuf.Timestamp
- func (m *ComputeThreatListDiffResponse) GetRemovals() *ThreatEntryRemovals
- func (m *ComputeThreatListDiffResponse) GetResponseType() ComputeThreatListDiffResponse_ResponseType
- func (*ComputeThreatListDiffResponse) ProtoMessage()
- func (m *ComputeThreatListDiffResponse) Reset()
- func (m *ComputeThreatListDiffResponse) String() string
- type ComputeThreatListDiffResponse_Checksum
- func (*ComputeThreatListDiffResponse_Checksum) Descriptor() ([]byte, []int)
- func (m *ComputeThreatListDiffResponse_Checksum) GetSha256() []byte
- func (*ComputeThreatListDiffResponse_Checksum) ProtoMessage()
- func (m *ComputeThreatListDiffResponse_Checksum) Reset()
- func (m *ComputeThreatListDiffResponse_Checksum) String() string
- type ComputeThreatListDiffResponse_ResponseType
- type RawHashes
- type RawIndices
- type RiceDeltaEncoding
- func (*RiceDeltaEncoding) Descriptor() ([]byte, []int)
- func (m *RiceDeltaEncoding) GetEncodedData() []byte
- func (m *RiceDeltaEncoding) GetEntryCount() int32
- func (m *RiceDeltaEncoding) GetFirstValue() int64
- func (m *RiceDeltaEncoding) GetRiceParameter() int32
- func (*RiceDeltaEncoding) ProtoMessage()
- func (m *RiceDeltaEncoding) Reset()
- func (m *RiceDeltaEncoding) String() string
- type SearchHashesRequest
- type SearchHashesResponse
- func (*SearchHashesResponse) Descriptor() ([]byte, []int)
- func (m *SearchHashesResponse) GetNegativeExpireTime() *google_protobuf.Timestamp
- func (m *SearchHashesResponse) GetThreats() []*SearchHashesResponse_ThreatHash
- func (*SearchHashesResponse) ProtoMessage()
- func (m *SearchHashesResponse) Reset()
- func (m *SearchHashesResponse) String() string
- type SearchHashesResponse_ThreatHash
- func (*SearchHashesResponse_ThreatHash) Descriptor() ([]byte, []int)
- func (m *SearchHashesResponse_ThreatHash) GetExpireTime() *google_protobuf.Timestamp
- func (m *SearchHashesResponse_ThreatHash) GetHash() []byte
- func (m *SearchHashesResponse_ThreatHash) GetThreatTypes() []ThreatType
- func (*SearchHashesResponse_ThreatHash) ProtoMessage()
- func (m *SearchHashesResponse_ThreatHash) Reset()
- func (m *SearchHashesResponse_ThreatHash) String() string
- type SearchUrisRequest
- type SearchUrisResponse
- type SearchUrisResponse_ThreatUri
- func (*SearchUrisResponse_ThreatUri) Descriptor() ([]byte, []int)
- func (m *SearchUrisResponse_ThreatUri) GetExpireTime() *google_protobuf.Timestamp
- func (m *SearchUrisResponse_ThreatUri) GetThreatTypes() []ThreatType
- func (*SearchUrisResponse_ThreatUri) ProtoMessage()
- func (m *SearchUrisResponse_ThreatUri) Reset()
- func (m *SearchUrisResponse_ThreatUri) String() string
- type ThreatEntryAdditions
- func (*ThreatEntryAdditions) Descriptor() ([]byte, []int)
- func (m *ThreatEntryAdditions) GetRawHashes() []*RawHashes
- func (m *ThreatEntryAdditions) GetRiceHashes() *RiceDeltaEncoding
- func (*ThreatEntryAdditions) ProtoMessage()
- func (m *ThreatEntryAdditions) Reset()
- func (m *ThreatEntryAdditions) String() string
- type ThreatEntryRemovals
- func (*ThreatEntryRemovals) Descriptor() ([]byte, []int)
- func (m *ThreatEntryRemovals) GetRawIndices() *RawIndices
- func (m *ThreatEntryRemovals) GetRiceIndices() *RiceDeltaEncoding
- func (*ThreatEntryRemovals) ProtoMessage()
- func (m *ThreatEntryRemovals) Reset()
- func (m *ThreatEntryRemovals) String() string
- type ThreatType
Constants ¶
This section is empty.
Variables ¶
var CompressionType_name = map[int32]string{
0: "COMPRESSION_TYPE_UNSPECIFIED",
1: "RAW",
2: "RICE",
}
var CompressionType_value = map[string]int32{
"COMPRESSION_TYPE_UNSPECIFIED": 0,
"RAW": 1,
"RICE": 2,
}
var ComputeThreatListDiffResponse_ResponseType_name = map[int32]string{
0: "RESPONSE_TYPE_UNSPECIFIED",
1: "DIFF",
2: "RESET",
}
var ComputeThreatListDiffResponse_ResponseType_value = map[string]int32{
"RESPONSE_TYPE_UNSPECIFIED": 0,
"DIFF": 1,
"RESET": 2,
}
var ThreatType_name = map[int32]string{
0: "THREAT_TYPE_UNSPECIFIED",
1: "MALWARE",
2: "SOCIAL_ENGINEERING",
3: "UNWANTED_SOFTWARE",
}
var ThreatType_value = map[string]int32{
"THREAT_TYPE_UNSPECIFIED": 0,
"MALWARE": 1,
"SOCIAL_ENGINEERING": 2,
"UNWANTED_SOFTWARE": 3,
}
Functions ¶
This section is empty.
Types ¶
type CompressionType ¶
type CompressionType int32
The ways in which threat entry sets can be compressed.
const ( // Unknown. CompressionType_COMPRESSION_TYPE_UNSPECIFIED CompressionType = 0 // Raw, uncompressed data. CompressionType_RAW CompressionType = 1 // Rice-Golomb encoded data. CompressionType_RICE CompressionType = 2 )
func (CompressionType) EnumDescriptor ¶
func (CompressionType) EnumDescriptor() ([]byte, []int)
func (CompressionType) String ¶
func (x CompressionType) String() string
type ComputeThreatListDiffRequest ¶
type ComputeThreatListDiffRequest struct { // Required. The ThreatList to update. ThreatType ThreatType `protobuf:"varint,1,opt,name=threat_type,json=threatType,enum=google.cloud.webrisk.v1.ThreatType" json:"threat_type,omitempty"` // The current version token of the client for the requested list (the // client version that was received from the last successful diff). VersionToken []byte `protobuf:"bytes,2,opt,name=version_token,json=versionToken,proto3" json:"version_token,omitempty"` // The constraints associated with this request. Constraints *ComputeThreatListDiffRequest_Constraints `protobuf:"bytes,3,opt,name=constraints" json:"constraints,omitempty"` }
Describes an API diff request.
func (*ComputeThreatListDiffRequest) Descriptor ¶
func (*ComputeThreatListDiffRequest) Descriptor() ([]byte, []int)
func (*ComputeThreatListDiffRequest) GetConstraints ¶
func (m *ComputeThreatListDiffRequest) GetConstraints() *ComputeThreatListDiffRequest_Constraints
func (*ComputeThreatListDiffRequest) GetThreatType ¶
func (m *ComputeThreatListDiffRequest) GetThreatType() ThreatType
func (*ComputeThreatListDiffRequest) GetVersionToken ¶
func (m *ComputeThreatListDiffRequest) GetVersionToken() []byte
func (*ComputeThreatListDiffRequest) ProtoMessage ¶
func (*ComputeThreatListDiffRequest) ProtoMessage()
func (*ComputeThreatListDiffRequest) Reset ¶
func (m *ComputeThreatListDiffRequest) Reset()
func (*ComputeThreatListDiffRequest) String ¶
func (m *ComputeThreatListDiffRequest) String() string
type ComputeThreatListDiffRequest_Constraints ¶
type ComputeThreatListDiffRequest_Constraints struct { // 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. MaxDiffEntries int32 `protobuf:"varint,1,opt,name=max_diff_entries,json=maxDiffEntries" json:"max_diff_entries,omitempty"` // 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. MaxDatabaseEntries int32 `protobuf:"varint,2,opt,name=max_database_entries,json=maxDatabaseEntries" json:"max_database_entries,omitempty"` // The compression types supported by the client. SupportedCompressions []CompressionType `` /* 170-byte string literal not displayed */ }
The constraints for this diff.
func (*ComputeThreatListDiffRequest_Constraints) Descriptor ¶
func (*ComputeThreatListDiffRequest_Constraints) Descriptor() ([]byte, []int)
func (*ComputeThreatListDiffRequest_Constraints) GetMaxDatabaseEntries ¶
func (m *ComputeThreatListDiffRequest_Constraints) GetMaxDatabaseEntries() int32
func (*ComputeThreatListDiffRequest_Constraints) GetMaxDiffEntries ¶
func (m *ComputeThreatListDiffRequest_Constraints) GetMaxDiffEntries() int32
func (*ComputeThreatListDiffRequest_Constraints) GetSupportedCompressions ¶
func (m *ComputeThreatListDiffRequest_Constraints) GetSupportedCompressions() []CompressionType
func (*ComputeThreatListDiffRequest_Constraints) ProtoMessage ¶
func (*ComputeThreatListDiffRequest_Constraints) ProtoMessage()
func (*ComputeThreatListDiffRequest_Constraints) Reset ¶
func (m *ComputeThreatListDiffRequest_Constraints) Reset()
func (*ComputeThreatListDiffRequest_Constraints) String ¶
func (m *ComputeThreatListDiffRequest_Constraints) String() string
type ComputeThreatListDiffResponse ¶
type ComputeThreatListDiffResponse struct { // The type of response. This may indicate that an action is required by the // client when the response is received. ResponseType ComputeThreatListDiffResponse_ResponseType `` /* 163-byte string literal not displayed */ // A set of entries to add to a local threat type's list. Additions *ThreatEntryAdditions `protobuf:"bytes,5,opt,name=additions" json:"additions,omitempty"` // A set of entries to remove from a local threat type's list. // This field may be empty. Removals *ThreatEntryRemovals `protobuf:"bytes,6,opt,name=removals" json:"removals,omitempty"` // The new opaque client version token. NewVersionToken []byte `protobuf:"bytes,7,opt,name=new_version_token,json=newVersionToken,proto3" json:"new_version_token,omitempty"` // The expected SHA256 hash of the client state; that is, of the sorted list // of all hashes present in the database after applying the provided diff. // If the client state doesn't match the expected state, the client must // disregard this diff and retry later. Checksum *ComputeThreatListDiffResponse_Checksum `protobuf:"bytes,8,opt,name=checksum" json:"checksum,omitempty"` // The soonest the client should wait before issuing any diff // request. Querying sooner is unlikely to produce a meaningful diff. // Waiting longer is acceptable considering the use case. // If this field is not set clients may update as soon as they want. RecommendedNextDiff *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=recommended_next_diff,json=recommendedNextDiff" json:"recommended_next_diff,omitempty"` }
func (*ComputeThreatListDiffResponse) Descriptor ¶
func (*ComputeThreatListDiffResponse) Descriptor() ([]byte, []int)
func (*ComputeThreatListDiffResponse) GetAdditions ¶
func (m *ComputeThreatListDiffResponse) GetAdditions() *ThreatEntryAdditions
func (*ComputeThreatListDiffResponse) GetChecksum ¶
func (m *ComputeThreatListDiffResponse) GetChecksum() *ComputeThreatListDiffResponse_Checksum
func (*ComputeThreatListDiffResponse) GetNewVersionToken ¶
func (m *ComputeThreatListDiffResponse) GetNewVersionToken() []byte
func (*ComputeThreatListDiffResponse) GetRecommendedNextDiff ¶
func (m *ComputeThreatListDiffResponse) GetRecommendedNextDiff() *google_protobuf.Timestamp
func (*ComputeThreatListDiffResponse) GetRemovals ¶
func (m *ComputeThreatListDiffResponse) GetRemovals() *ThreatEntryRemovals
func (*ComputeThreatListDiffResponse) GetResponseType ¶
func (m *ComputeThreatListDiffResponse) GetResponseType() ComputeThreatListDiffResponse_ResponseType
func (*ComputeThreatListDiffResponse) ProtoMessage ¶
func (*ComputeThreatListDiffResponse) ProtoMessage()
func (*ComputeThreatListDiffResponse) Reset ¶
func (m *ComputeThreatListDiffResponse) Reset()
func (*ComputeThreatListDiffResponse) String ¶
func (m *ComputeThreatListDiffResponse) String() string
type ComputeThreatListDiffResponse_Checksum ¶
type ComputeThreatListDiffResponse_Checksum struct { // The SHA256 hash of the client state; that is, of the sorted list of all // hashes present in the database. Sha256 []byte `protobuf:"bytes,1,opt,name=sha256,proto3" json:"sha256,omitempty"` }
The expected state of a client's local database.
func (*ComputeThreatListDiffResponse_Checksum) Descriptor ¶
func (*ComputeThreatListDiffResponse_Checksum) Descriptor() ([]byte, []int)
func (*ComputeThreatListDiffResponse_Checksum) GetSha256 ¶
func (m *ComputeThreatListDiffResponse_Checksum) GetSha256() []byte
func (*ComputeThreatListDiffResponse_Checksum) ProtoMessage ¶
func (*ComputeThreatListDiffResponse_Checksum) ProtoMessage()
func (*ComputeThreatListDiffResponse_Checksum) Reset ¶
func (m *ComputeThreatListDiffResponse_Checksum) Reset()
func (*ComputeThreatListDiffResponse_Checksum) String ¶
func (m *ComputeThreatListDiffResponse_Checksum) String() string
type ComputeThreatListDiffResponse_ResponseType ¶
type ComputeThreatListDiffResponse_ResponseType int32
The type of response sent to the client.
const ( // Unknown. ComputeThreatListDiffResponse_RESPONSE_TYPE_UNSPECIFIED ComputeThreatListDiffResponse_ResponseType = 0 // Partial updates are applied to the client's existing local database. ComputeThreatListDiffResponse_DIFF ComputeThreatListDiffResponse_ResponseType = 1 // Full updates resets the client's entire local database. This means // that either the client had no state, was seriously out-of-date, // or the client is believed to be corrupt. ComputeThreatListDiffResponse_RESET ComputeThreatListDiffResponse_ResponseType = 2 )
func (ComputeThreatListDiffResponse_ResponseType) EnumDescriptor ¶
func (ComputeThreatListDiffResponse_ResponseType) EnumDescriptor() ([]byte, []int)
func (ComputeThreatListDiffResponse_ResponseType) String ¶
func (x ComputeThreatListDiffResponse_ResponseType) String() string
type RawHashes ¶
type RawHashes struct { // The number of bytes for each prefix encoded below. This field can be // anywhere from 4 (shortest prefix) to 32 (full SHA256 hash). PrefixSize int32 `protobuf:"varint,1,opt,name=prefix_size,json=prefixSize" json:"prefix_size,omitempty"` // The hashes, in binary format, concatenated into one long string. Hashes are // sorted in lexicographic order. For JSON API users, hashes are // base64-encoded. RawHashes []byte `protobuf:"bytes,2,opt,name=raw_hashes,json=rawHashes,proto3" json:"raw_hashes,omitempty"` }
The uncompressed threat entries in hash format. Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are lengthened if they collide with the hash of a popular URI.
Used for sending ThreatEntryAdditons to clients that do not support compression, or when sending non-4-byte hashes to clients that do support compression.
func (*RawHashes) Descriptor ¶
func (*RawHashes) GetPrefixSize ¶
func (*RawHashes) GetRawHashes ¶
func (*RawHashes) ProtoMessage ¶
func (*RawHashes) ProtoMessage()
type RawIndices ¶
type RawIndices struct { // The indices to remove from a lexicographically-sorted local list. Indices []int32 `protobuf:"varint,1,rep,packed,name=indices" json:"indices,omitempty"` }
A set of raw indices to remove from a local list.
func (*RawIndices) Descriptor ¶
func (*RawIndices) Descriptor() ([]byte, []int)
func (*RawIndices) GetIndices ¶
func (m *RawIndices) GetIndices() []int32
func (*RawIndices) ProtoMessage ¶
func (*RawIndices) ProtoMessage()
func (*RawIndices) Reset ¶
func (m *RawIndices) Reset()
func (*RawIndices) String ¶
func (m *RawIndices) String() string
type RiceDeltaEncoding ¶
type RiceDeltaEncoding struct { // The offset of the first entry in the encoded data, or, if only a single // integer was encoded, that single integer's value. If the field is empty or // missing, assume zero. FirstValue int64 `protobuf:"varint,1,opt,name=first_value,json=firstValue" json:"first_value,omitempty"` // The Golomb-Rice parameter, which is a number between 2 and 28. This field // is missing (that is, zero) if `num_entries` is zero. RiceParameter int32 `protobuf:"varint,2,opt,name=rice_parameter,json=riceParameter" json:"rice_parameter,omitempty"` // The number of entries that are delta encoded in the encoded data. If only a // single integer was encoded, this will be zero and the single value will be // stored in `first_value`. EntryCount int32 `protobuf:"varint,3,opt,name=entry_count,json=entryCount" json:"entry_count,omitempty"` // The encoded deltas that are encoded using the Golomb-Rice coder. EncodedData []byte `protobuf:"bytes,4,opt,name=encoded_data,json=encodedData,proto3" json:"encoded_data,omitempty"` }
The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.
func (*RiceDeltaEncoding) Descriptor ¶
func (*RiceDeltaEncoding) Descriptor() ([]byte, []int)
func (*RiceDeltaEncoding) GetEncodedData ¶
func (m *RiceDeltaEncoding) GetEncodedData() []byte
func (*RiceDeltaEncoding) GetEntryCount ¶
func (m *RiceDeltaEncoding) GetEntryCount() int32
func (*RiceDeltaEncoding) GetFirstValue ¶
func (m *RiceDeltaEncoding) GetFirstValue() int64
func (*RiceDeltaEncoding) GetRiceParameter ¶
func (m *RiceDeltaEncoding) GetRiceParameter() int32
func (*RiceDeltaEncoding) ProtoMessage ¶
func (*RiceDeltaEncoding) ProtoMessage()
func (*RiceDeltaEncoding) Reset ¶
func (m *RiceDeltaEncoding) Reset()
func (*RiceDeltaEncoding) String ¶
func (m *RiceDeltaEncoding) String() string
type SearchHashesRequest ¶
type SearchHashesRequest struct { // A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 // hash. For JSON requests, this field is base64-encoded. HashPrefix []byte `protobuf:"bytes,1,opt,name=hash_prefix,json=hashPrefix,proto3" json:"hash_prefix,omitempty"` // Required. The ThreatLists to search in. ThreatTypes []ThreatType `` /* 135-byte string literal not displayed */ }
Request to return full hashes matched by the provided hash prefixes.
func (*SearchHashesRequest) Descriptor ¶
func (*SearchHashesRequest) Descriptor() ([]byte, []int)
func (*SearchHashesRequest) GetHashPrefix ¶
func (m *SearchHashesRequest) GetHashPrefix() []byte
func (*SearchHashesRequest) GetThreatTypes ¶
func (m *SearchHashesRequest) GetThreatTypes() []ThreatType
func (*SearchHashesRequest) ProtoMessage ¶
func (*SearchHashesRequest) ProtoMessage()
func (*SearchHashesRequest) Reset ¶
func (m *SearchHashesRequest) Reset()
func (*SearchHashesRequest) String ¶
func (m *SearchHashesRequest) String() string
type SearchHashesResponse ¶
type SearchHashesResponse struct { // The full hashes that matched the requested prefixes. // The hash will be populated in the key. Threats []*SearchHashesResponse_ThreatHash `protobuf:"bytes,1,rep,name=threats" json:"threats,omitempty"` // For requested entities that did not match the threat list, how long to // cache the response until. NegativeExpireTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=negative_expire_time,json=negativeExpireTime" json:"negative_expire_time,omitempty"` }
func (*SearchHashesResponse) Descriptor ¶
func (*SearchHashesResponse) Descriptor() ([]byte, []int)
func (*SearchHashesResponse) GetNegativeExpireTime ¶
func (m *SearchHashesResponse) GetNegativeExpireTime() *google_protobuf.Timestamp
func (*SearchHashesResponse) GetThreats ¶
func (m *SearchHashesResponse) GetThreats() []*SearchHashesResponse_ThreatHash
func (*SearchHashesResponse) ProtoMessage ¶
func (*SearchHashesResponse) ProtoMessage()
func (*SearchHashesResponse) Reset ¶
func (m *SearchHashesResponse) Reset()
func (*SearchHashesResponse) String ¶
func (m *SearchHashesResponse) String() string
type SearchHashesResponse_ThreatHash ¶
type SearchHashesResponse_ThreatHash struct { // The ThreatList this threat belongs to. // This must contain at least one entry. ThreatTypes []ThreatType `` /* 135-byte string literal not displayed */ // A 32 byte SHA256 hash. This field is in binary format. For JSON // requests, hashes are base64-encoded. Hash []byte `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` // The cache lifetime for the returned match. Clients must not cache this // response past this timestamp to avoid false positives. ExpireTime *google_protobuf.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"` }
Contains threat information on a matching hash.
func (*SearchHashesResponse_ThreatHash) Descriptor ¶
func (*SearchHashesResponse_ThreatHash) Descriptor() ([]byte, []int)
func (*SearchHashesResponse_ThreatHash) GetExpireTime ¶
func (m *SearchHashesResponse_ThreatHash) GetExpireTime() *google_protobuf.Timestamp
func (*SearchHashesResponse_ThreatHash) GetHash ¶
func (m *SearchHashesResponse_ThreatHash) GetHash() []byte
func (*SearchHashesResponse_ThreatHash) GetThreatTypes ¶
func (m *SearchHashesResponse_ThreatHash) GetThreatTypes() []ThreatType
func (*SearchHashesResponse_ThreatHash) ProtoMessage ¶
func (*SearchHashesResponse_ThreatHash) ProtoMessage()
func (*SearchHashesResponse_ThreatHash) Reset ¶
func (m *SearchHashesResponse_ThreatHash) Reset()
func (*SearchHashesResponse_ThreatHash) String ¶
func (m *SearchHashesResponse_ThreatHash) String() string
type SearchUrisRequest ¶
type SearchUrisRequest struct { // The URI to be checked for matches. Uri string `protobuf:"bytes,1,opt,name=uri" json:"uri,omitempty"` // Required. The ThreatLists to search in. ThreatTypes []ThreatType `` /* 135-byte string literal not displayed */ }
Request to check URI entries against threatLists.
func (*SearchUrisRequest) Descriptor ¶
func (*SearchUrisRequest) Descriptor() ([]byte, []int)
func (*SearchUrisRequest) GetThreatTypes ¶
func (m *SearchUrisRequest) GetThreatTypes() []ThreatType
func (*SearchUrisRequest) GetUri ¶
func (m *SearchUrisRequest) GetUri() string
func (*SearchUrisRequest) ProtoMessage ¶
func (*SearchUrisRequest) ProtoMessage()
func (*SearchUrisRequest) Reset ¶
func (m *SearchUrisRequest) Reset()
func (*SearchUrisRequest) String ¶
func (m *SearchUrisRequest) String() string
type SearchUrisResponse ¶
type SearchUrisResponse struct { // The threat list matches. This may be empty if the URI is on no list. Threat *SearchUrisResponse_ThreatUri `protobuf:"bytes,1,opt,name=threat" json:"threat,omitempty"` }
func (*SearchUrisResponse) Descriptor ¶
func (*SearchUrisResponse) Descriptor() ([]byte, []int)
func (*SearchUrisResponse) GetThreat ¶
func (m *SearchUrisResponse) GetThreat() *SearchUrisResponse_ThreatUri
func (*SearchUrisResponse) ProtoMessage ¶
func (*SearchUrisResponse) ProtoMessage()
func (*SearchUrisResponse) Reset ¶
func (m *SearchUrisResponse) Reset()
func (*SearchUrisResponse) String ¶
func (m *SearchUrisResponse) String() string
type SearchUrisResponse_ThreatUri ¶
type SearchUrisResponse_ThreatUri struct { // The ThreatList this threat belongs to. ThreatTypes []ThreatType `` /* 135-byte string literal not displayed */ // The cache lifetime for the returned match. Clients must not cache this // response past this timestamp to avoid false positives. ExpireTime *google_protobuf.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime" json:"expire_time,omitempty"` }
Contains threat information on a matching uri.
func (*SearchUrisResponse_ThreatUri) Descriptor ¶
func (*SearchUrisResponse_ThreatUri) Descriptor() ([]byte, []int)
func (*SearchUrisResponse_ThreatUri) GetExpireTime ¶
func (m *SearchUrisResponse_ThreatUri) GetExpireTime() *google_protobuf.Timestamp
func (*SearchUrisResponse_ThreatUri) GetThreatTypes ¶
func (m *SearchUrisResponse_ThreatUri) GetThreatTypes() []ThreatType
func (*SearchUrisResponse_ThreatUri) ProtoMessage ¶
func (*SearchUrisResponse_ThreatUri) ProtoMessage()
func (*SearchUrisResponse_ThreatUri) Reset ¶
func (m *SearchUrisResponse_ThreatUri) Reset()
func (*SearchUrisResponse_ThreatUri) String ¶
func (m *SearchUrisResponse_ThreatUri) String() string
type ThreatEntryAdditions ¶
type ThreatEntryAdditions struct { // The raw SHA256-formatted entries. // Repeated to allow returning sets of hashes with different prefix sizes. RawHashes []*RawHashes `protobuf:"bytes,1,rep,name=raw_hashes,json=rawHashes" json:"raw_hashes,omitempty"` // The encoded 4-byte prefixes of SHA256-formatted entries, using a // Golomb-Rice encoding. The hashes are converted to uint32, sorted in // ascending order, then delta encoded and stored as encoded_data. RiceHashes *RiceDeltaEncoding `protobuf:"bytes,2,opt,name=rice_hashes,json=riceHashes" json:"rice_hashes,omitempty"` }
Contains the set of entries to add to a local database. May contain a combination of compressed and raw data in a single response.
func (*ThreatEntryAdditions) Descriptor ¶
func (*ThreatEntryAdditions) Descriptor() ([]byte, []int)
func (*ThreatEntryAdditions) GetRawHashes ¶
func (m *ThreatEntryAdditions) GetRawHashes() []*RawHashes
func (*ThreatEntryAdditions) GetRiceHashes ¶
func (m *ThreatEntryAdditions) GetRiceHashes() *RiceDeltaEncoding
func (*ThreatEntryAdditions) ProtoMessage ¶
func (*ThreatEntryAdditions) ProtoMessage()
func (*ThreatEntryAdditions) Reset ¶
func (m *ThreatEntryAdditions) Reset()
func (*ThreatEntryAdditions) String ¶
func (m *ThreatEntryAdditions) String() string
type ThreatEntryRemovals ¶
type ThreatEntryRemovals struct { // The raw removal indices for a local list. RawIndices *RawIndices `protobuf:"bytes,1,opt,name=raw_indices,json=rawIndices" json:"raw_indices,omitempty"` // The encoded local, lexicographically-sorted list indices, using a // Golomb-Rice encoding. Used for sending compressed removal indices. The // removal indices (uint32) are sorted in ascending order, then delta encoded // and stored as encoded_data. RiceIndices *RiceDeltaEncoding `protobuf:"bytes,2,opt,name=rice_indices,json=riceIndices" json:"rice_indices,omitempty"` }
Contains the set of entries to remove from a local database.
func (*ThreatEntryRemovals) Descriptor ¶
func (*ThreatEntryRemovals) Descriptor() ([]byte, []int)
func (*ThreatEntryRemovals) GetRawIndices ¶
func (m *ThreatEntryRemovals) GetRawIndices() *RawIndices
func (*ThreatEntryRemovals) GetRiceIndices ¶
func (m *ThreatEntryRemovals) GetRiceIndices() *RiceDeltaEncoding
func (*ThreatEntryRemovals) ProtoMessage ¶
func (*ThreatEntryRemovals) ProtoMessage()
func (*ThreatEntryRemovals) Reset ¶
func (m *ThreatEntryRemovals) Reset()
func (*ThreatEntryRemovals) String ¶
func (m *ThreatEntryRemovals) String() string
type ThreatType ¶
type ThreatType int32
The type of threat. This maps dirrectly to the threat list a threat may belong to.
const ( // Unknown. ThreatType_THREAT_TYPE_UNSPECIFIED ThreatType = 0 // Malware targeting any platform. ThreatType_MALWARE ThreatType = 1 // Social engineering targeting any platform. ThreatType_SOCIAL_ENGINEERING ThreatType = 2 // Unwanted software targeting any platform. ThreatType_UNWANTED_SOFTWARE ThreatType = 3 )
func (ThreatType) EnumDescriptor ¶
func (ThreatType) EnumDescriptor() ([]byte, []int)
func (ThreatType) String ¶
func (x ThreatType) String() string