Documentation
¶
Index ¶
- Variables
- func RegisterWebRiskServiceV1Beta1Server(s *grpc.Server, srv WebRiskServiceV1Beta1Server)
- 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
- func (m *ComputeThreatListDiffRequest) XXX_DiscardUnknown()
- func (m *ComputeThreatListDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeThreatListDiffRequest) XXX_Merge(src proto.Message)
- func (m *ComputeThreatListDiffRequest) XXX_Size() int
- func (m *ComputeThreatListDiffRequest) XXX_Unmarshal(b []byte) error
- 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
- func (m *ComputeThreatListDiffRequest_Constraints) XXX_DiscardUnknown()
- func (m *ComputeThreatListDiffRequest_Constraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeThreatListDiffRequest_Constraints) XXX_Merge(src proto.Message)
- func (m *ComputeThreatListDiffRequest_Constraints) XXX_Size() int
- func (m *ComputeThreatListDiffRequest_Constraints) XXX_Unmarshal(b []byte) error
- 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() *timestamp.Timestamp
- func (m *ComputeThreatListDiffResponse) GetRemovals() *ThreatEntryRemovals
- func (m *ComputeThreatListDiffResponse) GetResponseType() ComputeThreatListDiffResponse_ResponseType
- func (*ComputeThreatListDiffResponse) ProtoMessage()
- func (m *ComputeThreatListDiffResponse) Reset()
- func (m *ComputeThreatListDiffResponse) String() string
- func (m *ComputeThreatListDiffResponse) XXX_DiscardUnknown()
- func (m *ComputeThreatListDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeThreatListDiffResponse) XXX_Merge(src proto.Message)
- func (m *ComputeThreatListDiffResponse) XXX_Size() int
- func (m *ComputeThreatListDiffResponse) XXX_Unmarshal(b []byte) error
- 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
- func (m *ComputeThreatListDiffResponse_Checksum) XXX_DiscardUnknown()
- func (m *ComputeThreatListDiffResponse_Checksum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ComputeThreatListDiffResponse_Checksum) XXX_Merge(src proto.Message)
- func (m *ComputeThreatListDiffResponse_Checksum) XXX_Size() int
- func (m *ComputeThreatListDiffResponse_Checksum) XXX_Unmarshal(b []byte) error
- type ComputeThreatListDiffResponse_ResponseType
- type RawHashes
- func (*RawHashes) Descriptor() ([]byte, []int)
- func (m *RawHashes) GetPrefixSize() int32
- func (m *RawHashes) GetRawHashes() []byte
- func (*RawHashes) ProtoMessage()
- func (m *RawHashes) Reset()
- func (m *RawHashes) String() string
- func (m *RawHashes) XXX_DiscardUnknown()
- func (m *RawHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawHashes) XXX_Merge(src proto.Message)
- func (m *RawHashes) XXX_Size() int
- func (m *RawHashes) XXX_Unmarshal(b []byte) error
- type RawIndices
- func (*RawIndices) Descriptor() ([]byte, []int)
- func (m *RawIndices) GetIndices() []int32
- func (*RawIndices) ProtoMessage()
- func (m *RawIndices) Reset()
- func (m *RawIndices) String() string
- func (m *RawIndices) XXX_DiscardUnknown()
- func (m *RawIndices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RawIndices) XXX_Merge(src proto.Message)
- func (m *RawIndices) XXX_Size() int
- func (m *RawIndices) XXX_Unmarshal(b []byte) error
- 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
- func (m *RiceDeltaEncoding) XXX_DiscardUnknown()
- func (m *RiceDeltaEncoding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RiceDeltaEncoding) XXX_Merge(src proto.Message)
- func (m *RiceDeltaEncoding) XXX_Size() int
- func (m *RiceDeltaEncoding) XXX_Unmarshal(b []byte) error
- type SearchHashesRequest
- func (*SearchHashesRequest) Descriptor() ([]byte, []int)
- func (m *SearchHashesRequest) GetHashPrefix() []byte
- func (m *SearchHashesRequest) GetThreatTypes() []ThreatType
- func (*SearchHashesRequest) ProtoMessage()
- func (m *SearchHashesRequest) Reset()
- func (m *SearchHashesRequest) String() string
- func (m *SearchHashesRequest) XXX_DiscardUnknown()
- func (m *SearchHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchHashesRequest) XXX_Merge(src proto.Message)
- func (m *SearchHashesRequest) XXX_Size() int
- func (m *SearchHashesRequest) XXX_Unmarshal(b []byte) error
- type SearchHashesResponse
- func (*SearchHashesResponse) Descriptor() ([]byte, []int)
- func (m *SearchHashesResponse) GetNegativeExpireTime() *timestamp.Timestamp
- func (m *SearchHashesResponse) GetThreats() []*SearchHashesResponse_ThreatHash
- func (*SearchHashesResponse) ProtoMessage()
- func (m *SearchHashesResponse) Reset()
- func (m *SearchHashesResponse) String() string
- func (m *SearchHashesResponse) XXX_DiscardUnknown()
- func (m *SearchHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchHashesResponse) XXX_Merge(src proto.Message)
- func (m *SearchHashesResponse) XXX_Size() int
- func (m *SearchHashesResponse) XXX_Unmarshal(b []byte) error
- type SearchHashesResponse_ThreatHash
- func (*SearchHashesResponse_ThreatHash) Descriptor() ([]byte, []int)
- func (m *SearchHashesResponse_ThreatHash) GetExpireTime() *timestamp.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
- func (m *SearchHashesResponse_ThreatHash) XXX_DiscardUnknown()
- func (m *SearchHashesResponse_ThreatHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchHashesResponse_ThreatHash) XXX_Merge(src proto.Message)
- func (m *SearchHashesResponse_ThreatHash) XXX_Size() int
- func (m *SearchHashesResponse_ThreatHash) XXX_Unmarshal(b []byte) error
- type SearchUrisRequest
- func (*SearchUrisRequest) Descriptor() ([]byte, []int)
- func (m *SearchUrisRequest) GetThreatTypes() []ThreatType
- func (m *SearchUrisRequest) GetUri() string
- func (*SearchUrisRequest) ProtoMessage()
- func (m *SearchUrisRequest) Reset()
- func (m *SearchUrisRequest) String() string
- func (m *SearchUrisRequest) XXX_DiscardUnknown()
- func (m *SearchUrisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchUrisRequest) XXX_Merge(src proto.Message)
- func (m *SearchUrisRequest) XXX_Size() int
- func (m *SearchUrisRequest) XXX_Unmarshal(b []byte) error
- type SearchUrisResponse
- func (*SearchUrisResponse) Descriptor() ([]byte, []int)
- func (m *SearchUrisResponse) GetThreat() *SearchUrisResponse_ThreatUri
- func (*SearchUrisResponse) ProtoMessage()
- func (m *SearchUrisResponse) Reset()
- func (m *SearchUrisResponse) String() string
- func (m *SearchUrisResponse) XXX_DiscardUnknown()
- func (m *SearchUrisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchUrisResponse) XXX_Merge(src proto.Message)
- func (m *SearchUrisResponse) XXX_Size() int
- func (m *SearchUrisResponse) XXX_Unmarshal(b []byte) error
- type SearchUrisResponse_ThreatUri
- func (*SearchUrisResponse_ThreatUri) Descriptor() ([]byte, []int)
- func (m *SearchUrisResponse_ThreatUri) GetExpireTime() *timestamp.Timestamp
- func (m *SearchUrisResponse_ThreatUri) GetThreatTypes() []ThreatType
- func (*SearchUrisResponse_ThreatUri) ProtoMessage()
- func (m *SearchUrisResponse_ThreatUri) Reset()
- func (m *SearchUrisResponse_ThreatUri) String() string
- func (m *SearchUrisResponse_ThreatUri) XXX_DiscardUnknown()
- func (m *SearchUrisResponse_ThreatUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SearchUrisResponse_ThreatUri) XXX_Merge(src proto.Message)
- func (m *SearchUrisResponse_ThreatUri) XXX_Size() int
- func (m *SearchUrisResponse_ThreatUri) XXX_Unmarshal(b []byte) error
- 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
- func (m *ThreatEntryAdditions) XXX_DiscardUnknown()
- func (m *ThreatEntryAdditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThreatEntryAdditions) XXX_Merge(src proto.Message)
- func (m *ThreatEntryAdditions) XXX_Size() int
- func (m *ThreatEntryAdditions) XXX_Unmarshal(b []byte) error
- 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
- func (m *ThreatEntryRemovals) XXX_DiscardUnknown()
- func (m *ThreatEntryRemovals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ThreatEntryRemovals) XXX_Merge(src proto.Message)
- func (m *ThreatEntryRemovals) XXX_Size() int
- func (m *ThreatEntryRemovals) XXX_Unmarshal(b []byte) error
- type ThreatType
- type UnimplementedWebRiskServiceV1Beta1Server
- func (*UnimplementedWebRiskServiceV1Beta1Server) ComputeThreatListDiff(ctx context.Context, req *ComputeThreatListDiffRequest) (*ComputeThreatListDiffResponse, error)
- func (*UnimplementedWebRiskServiceV1Beta1Server) SearchHashes(ctx context.Context, req *SearchHashesRequest) (*SearchHashesResponse, error)
- func (*UnimplementedWebRiskServiceV1Beta1Server) SearchUris(ctx context.Context, req *SearchUrisRequest) (*SearchUrisResponse, error)
- type WebRiskServiceV1Beta1Client
- type WebRiskServiceV1Beta1Server
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 ¶
func RegisterWebRiskServiceV1Beta1Server ¶
func RegisterWebRiskServiceV1Beta1Server(s *grpc.Server, srv WebRiskServiceV1Beta1Server)
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 { // The ThreatList to update. ThreatType ThreatType `` /* 137-byte string literal not displayed */ // 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"` // Required. The constraints associated with this request. Constraints *ComputeThreatListDiffRequest_Constraints `protobuf:"bytes,3,opt,name=constraints,proto3" json:"constraints,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*ComputeThreatListDiffRequest) XXX_DiscardUnknown ¶
func (m *ComputeThreatListDiffRequest) XXX_DiscardUnknown()
func (*ComputeThreatListDiffRequest) XXX_Marshal ¶
func (m *ComputeThreatListDiffRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeThreatListDiffRequest) XXX_Merge ¶
func (m *ComputeThreatListDiffRequest) XXX_Merge(src proto.Message)
func (*ComputeThreatListDiffRequest) XXX_Size ¶
func (m *ComputeThreatListDiffRequest) XXX_Size() int
func (*ComputeThreatListDiffRequest) XXX_Unmarshal ¶
func (m *ComputeThreatListDiffRequest) XXX_Unmarshal(b []byte) error
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,proto3" 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,proto3" json:"max_database_entries,omitempty"` // The compression types supported by the client. SupportedCompressions []CompressionType `` /* 182-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*ComputeThreatListDiffRequest_Constraints) XXX_DiscardUnknown ¶
func (m *ComputeThreatListDiffRequest_Constraints) XXX_DiscardUnknown()
func (*ComputeThreatListDiffRequest_Constraints) XXX_Marshal ¶
func (m *ComputeThreatListDiffRequest_Constraints) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeThreatListDiffRequest_Constraints) XXX_Merge ¶
func (m *ComputeThreatListDiffRequest_Constraints) XXX_Merge(src proto.Message)
func (*ComputeThreatListDiffRequest_Constraints) XXX_Size ¶
func (m *ComputeThreatListDiffRequest_Constraints) XXX_Size() int
func (*ComputeThreatListDiffRequest_Constraints) XXX_Unmarshal ¶
func (m *ComputeThreatListDiffRequest_Constraints) XXX_Unmarshal(b []byte) error
type ComputeThreatListDiffResponse ¶
type ComputeThreatListDiffResponse struct { // The type of response. This may indicate that an action must be taken by the // client when the response is received. ResponseType ComputeThreatListDiffResponse_ResponseType `` /* 175-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,proto3" 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,proto3" 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,proto3" 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 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=recommended_next_diff,json=recommendedNextDiff,proto3" json:"recommended_next_diff,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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() *timestamp.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
func (*ComputeThreatListDiffResponse) XXX_DiscardUnknown ¶
func (m *ComputeThreatListDiffResponse) XXX_DiscardUnknown()
func (*ComputeThreatListDiffResponse) XXX_Marshal ¶
func (m *ComputeThreatListDiffResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeThreatListDiffResponse) XXX_Merge ¶
func (m *ComputeThreatListDiffResponse) XXX_Merge(src proto.Message)
func (*ComputeThreatListDiffResponse) XXX_Size ¶
func (m *ComputeThreatListDiffResponse) XXX_Size() int
func (*ComputeThreatListDiffResponse) XXX_Unmarshal ¶
func (m *ComputeThreatListDiffResponse) XXX_Unmarshal(b []byte) error
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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*ComputeThreatListDiffResponse_Checksum) XXX_DiscardUnknown ¶
func (m *ComputeThreatListDiffResponse_Checksum) XXX_DiscardUnknown()
func (*ComputeThreatListDiffResponse_Checksum) XXX_Marshal ¶
func (m *ComputeThreatListDiffResponse_Checksum) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ComputeThreatListDiffResponse_Checksum) XXX_Merge ¶
func (m *ComputeThreatListDiffResponse_Checksum) XXX_Merge(src proto.Message)
func (*ComputeThreatListDiffResponse_Checksum) XXX_Size ¶
func (m *ComputeThreatListDiffResponse_Checksum) XXX_Size() int
func (*ComputeThreatListDiffResponse_Checksum) XXX_Unmarshal ¶
func (m *ComputeThreatListDiffResponse_Checksum) XXX_Unmarshal(b []byte) error
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,proto3" 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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()
func (*RawHashes) XXX_DiscardUnknown ¶
func (m *RawHashes) XXX_DiscardUnknown()
func (*RawHashes) XXX_Marshal ¶
func (*RawHashes) XXX_Unmarshal ¶
type RawIndices ¶
type RawIndices struct { // The indices to remove from a lexicographically-sorted local list. Indices []int32 `protobuf:"varint,1,rep,packed,name=indices,proto3" json:"indices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*RawIndices) XXX_DiscardUnknown ¶
func (m *RawIndices) XXX_DiscardUnknown()
func (*RawIndices) XXX_Marshal ¶
func (m *RawIndices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RawIndices) XXX_Merge ¶
func (m *RawIndices) XXX_Merge(src proto.Message)
func (*RawIndices) XXX_Size ¶
func (m *RawIndices) XXX_Size() int
func (*RawIndices) XXX_Unmarshal ¶
func (m *RawIndices) XXX_Unmarshal(b []byte) error
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,proto3" 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,proto3" 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,proto3" 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"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*RiceDeltaEncoding) XXX_DiscardUnknown ¶
func (m *RiceDeltaEncoding) XXX_DiscardUnknown()
func (*RiceDeltaEncoding) XXX_Marshal ¶
func (m *RiceDeltaEncoding) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RiceDeltaEncoding) XXX_Merge ¶
func (m *RiceDeltaEncoding) XXX_Merge(src proto.Message)
func (*RiceDeltaEncoding) XXX_Size ¶
func (m *RiceDeltaEncoding) XXX_Size() int
func (*RiceDeltaEncoding) XXX_Unmarshal ¶
func (m *RiceDeltaEncoding) XXX_Unmarshal(b []byte) error
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 `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*SearchHashesRequest) XXX_DiscardUnknown ¶
func (m *SearchHashesRequest) XXX_DiscardUnknown()
func (*SearchHashesRequest) XXX_Marshal ¶
func (m *SearchHashesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchHashesRequest) XXX_Merge ¶
func (m *SearchHashesRequest) XXX_Merge(src proto.Message)
func (*SearchHashesRequest) XXX_Size ¶
func (m *SearchHashesRequest) XXX_Size() int
func (*SearchHashesRequest) XXX_Unmarshal ¶
func (m *SearchHashesRequest) XXX_Unmarshal(b []byte) error
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,proto3" json:"threats,omitempty"` // For requested entities that did not match the threat list, how long to // cache the response until. NegativeExpireTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=negative_expire_time,json=negativeExpireTime,proto3" json:"negative_expire_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SearchHashesResponse) Descriptor ¶
func (*SearchHashesResponse) Descriptor() ([]byte, []int)
func (*SearchHashesResponse) GetNegativeExpireTime ¶
func (m *SearchHashesResponse) GetNegativeExpireTime() *timestamp.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
func (*SearchHashesResponse) XXX_DiscardUnknown ¶
func (m *SearchHashesResponse) XXX_DiscardUnknown()
func (*SearchHashesResponse) XXX_Marshal ¶
func (m *SearchHashesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchHashesResponse) XXX_Merge ¶
func (m *SearchHashesResponse) XXX_Merge(src proto.Message)
func (*SearchHashesResponse) XXX_Size ¶
func (m *SearchHashesResponse) XXX_Size() int
func (*SearchHashesResponse) XXX_Unmarshal ¶
func (m *SearchHashesResponse) XXX_Unmarshal(b []byte) error
type SearchHashesResponse_ThreatHash ¶
type SearchHashesResponse_ThreatHash struct { // The ThreatList this threat belongs to. // This must contain at least one entry. ThreatTypes []ThreatType `` /* 147-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 *timestamp.Timestamp `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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() *timestamp.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
func (*SearchHashesResponse_ThreatHash) XXX_DiscardUnknown ¶
func (m *SearchHashesResponse_ThreatHash) XXX_DiscardUnknown()
func (*SearchHashesResponse_ThreatHash) XXX_Marshal ¶
func (m *SearchHashesResponse_ThreatHash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchHashesResponse_ThreatHash) XXX_Merge ¶
func (m *SearchHashesResponse_ThreatHash) XXX_Merge(src proto.Message)
func (*SearchHashesResponse_ThreatHash) XXX_Size ¶
func (m *SearchHashesResponse_ThreatHash) XXX_Size() int
func (*SearchHashesResponse_ThreatHash) XXX_Unmarshal ¶
func (m *SearchHashesResponse_ThreatHash) XXX_Unmarshal(b []byte) error
type SearchUrisRequest ¶
type SearchUrisRequest struct { // Required. The URI to be checked for matches. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // Required. The ThreatLists to search in. ThreatTypes []ThreatType `` /* 147-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*SearchUrisRequest) XXX_DiscardUnknown ¶
func (m *SearchUrisRequest) XXX_DiscardUnknown()
func (*SearchUrisRequest) XXX_Marshal ¶
func (m *SearchUrisRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchUrisRequest) XXX_Merge ¶
func (m *SearchUrisRequest) XXX_Merge(src proto.Message)
func (*SearchUrisRequest) XXX_Size ¶
func (m *SearchUrisRequest) XXX_Size() int
func (*SearchUrisRequest) XXX_Unmarshal ¶
func (m *SearchUrisRequest) XXX_Unmarshal(b []byte) error
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,proto3" json:"threat,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*SearchUrisResponse) XXX_DiscardUnknown ¶
func (m *SearchUrisResponse) XXX_DiscardUnknown()
func (*SearchUrisResponse) XXX_Marshal ¶
func (m *SearchUrisResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchUrisResponse) XXX_Merge ¶
func (m *SearchUrisResponse) XXX_Merge(src proto.Message)
func (*SearchUrisResponse) XXX_Size ¶
func (m *SearchUrisResponse) XXX_Size() int
func (*SearchUrisResponse) XXX_Unmarshal ¶
func (m *SearchUrisResponse) XXX_Unmarshal(b []byte) error
type SearchUrisResponse_ThreatUri ¶
type SearchUrisResponse_ThreatUri struct { // The ThreatList this threat belongs to. ThreatTypes []ThreatType `` /* 147-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 *timestamp.Timestamp `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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() *timestamp.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
func (*SearchUrisResponse_ThreatUri) XXX_DiscardUnknown ¶
func (m *SearchUrisResponse_ThreatUri) XXX_DiscardUnknown()
func (*SearchUrisResponse_ThreatUri) XXX_Marshal ¶
func (m *SearchUrisResponse_ThreatUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SearchUrisResponse_ThreatUri) XXX_Merge ¶
func (m *SearchUrisResponse_ThreatUri) XXX_Merge(src proto.Message)
func (*SearchUrisResponse_ThreatUri) XXX_Size ¶
func (m *SearchUrisResponse_ThreatUri) XXX_Size() int
func (*SearchUrisResponse_ThreatUri) XXX_Unmarshal ¶
func (m *SearchUrisResponse_ThreatUri) XXX_Unmarshal(b []byte) error
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,proto3" 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,proto3" json:"rice_hashes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*ThreatEntryAdditions) XXX_DiscardUnknown ¶
func (m *ThreatEntryAdditions) XXX_DiscardUnknown()
func (*ThreatEntryAdditions) XXX_Marshal ¶
func (m *ThreatEntryAdditions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThreatEntryAdditions) XXX_Merge ¶
func (m *ThreatEntryAdditions) XXX_Merge(src proto.Message)
func (*ThreatEntryAdditions) XXX_Size ¶
func (m *ThreatEntryAdditions) XXX_Size() int
func (*ThreatEntryAdditions) XXX_Unmarshal ¶
func (m *ThreatEntryAdditions) XXX_Unmarshal(b []byte) error
type ThreatEntryRemovals ¶
type ThreatEntryRemovals struct { // The raw removal indices for a local list. RawIndices *RawIndices `protobuf:"bytes,1,opt,name=raw_indices,json=rawIndices,proto3" 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,proto3" json:"rice_indices,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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
func (*ThreatEntryRemovals) XXX_DiscardUnknown ¶
func (m *ThreatEntryRemovals) XXX_DiscardUnknown()
func (*ThreatEntryRemovals) XXX_Marshal ¶
func (m *ThreatEntryRemovals) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ThreatEntryRemovals) XXX_Merge ¶
func (m *ThreatEntryRemovals) XXX_Merge(src proto.Message)
func (*ThreatEntryRemovals) XXX_Size ¶
func (m *ThreatEntryRemovals) XXX_Size() int
func (*ThreatEntryRemovals) XXX_Unmarshal ¶
func (m *ThreatEntryRemovals) XXX_Unmarshal(b []byte) error
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
type UnimplementedWebRiskServiceV1Beta1Server ¶
type UnimplementedWebRiskServiceV1Beta1Server struct { }
UnimplementedWebRiskServiceV1Beta1Server can be embedded to have forward compatible implementations.
func (*UnimplementedWebRiskServiceV1Beta1Server) ComputeThreatListDiff ¶
func (*UnimplementedWebRiskServiceV1Beta1Server) ComputeThreatListDiff(ctx context.Context, req *ComputeThreatListDiffRequest) (*ComputeThreatListDiffResponse, error)
func (*UnimplementedWebRiskServiceV1Beta1Server) SearchHashes ¶
func (*UnimplementedWebRiskServiceV1Beta1Server) SearchHashes(ctx context.Context, req *SearchHashesRequest) (*SearchHashesResponse, error)
func (*UnimplementedWebRiskServiceV1Beta1Server) SearchUris ¶
func (*UnimplementedWebRiskServiceV1Beta1Server) SearchUris(ctx context.Context, req *SearchUrisRequest) (*SearchUrisResponse, error)
type WebRiskServiceV1Beta1Client ¶
type WebRiskServiceV1Beta1Client interface { // Gets the most recent threat list diffs. ComputeThreatListDiff(ctx context.Context, in *ComputeThreatListDiffRequest, opts ...grpc.CallOption) (*ComputeThreatListDiffResponse, error) // This method is used to check whether a URI is on a given threatList. SearchUris(ctx context.Context, in *SearchUrisRequest, opts ...grpc.CallOption) (*SearchUrisResponse, error) // Gets the full hashes that match the requested hash prefix. // This is used after a hash prefix is looked up in a threatList // and there is a match. The client side threatList only holds partial hashes // so the client must query this method to determine if there is a full // hash match of a threat. SearchHashes(ctx context.Context, in *SearchHashesRequest, opts ...grpc.CallOption) (*SearchHashesResponse, error) }
WebRiskServiceV1Beta1Client is the client API for WebRiskServiceV1Beta1 service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewWebRiskServiceV1Beta1Client ¶
func NewWebRiskServiceV1Beta1Client(cc grpc.ClientConnInterface) WebRiskServiceV1Beta1Client
type WebRiskServiceV1Beta1Server ¶
type WebRiskServiceV1Beta1Server interface { // Gets the most recent threat list diffs. ComputeThreatListDiff(context.Context, *ComputeThreatListDiffRequest) (*ComputeThreatListDiffResponse, error) // This method is used to check whether a URI is on a given threatList. SearchUris(context.Context, *SearchUrisRequest) (*SearchUrisResponse, error) // Gets the full hashes that match the requested hash prefix. // This is used after a hash prefix is looked up in a threatList // and there is a match. The client side threatList only holds partial hashes // so the client must query this method to determine if there is a full // hash match of a threat. SearchHashes(context.Context, *SearchHashesRequest) (*SearchHashesResponse, error) }
WebRiskServiceV1Beta1Server is the server API for WebRiskServiceV1Beta1 service.