Package cloud.google.com/go/webrisk/apiv1beta1/webriskpb (v1.8.1)

Variables

ThreatType_name, ThreatType_value

  var 
  
 ( 
  
 ThreatType_name 
  
 = 
  
 map 
 [ 
  int32 
 
 ] 
  string 
 
 { 
  
 0 
 : 
  
 "THREAT_TYPE_UNSPECIFIED" 
 , 
  
 1 
 : 
  
 "MALWARE" 
 , 
  
 2 
 : 
  
 "SOCIAL_ENGINEERING" 
 , 
  
 3 
 : 
  
 "UNWANTED_SOFTWARE" 
 , 
  
 } 
  
 ThreatType_value 
  
 = 
  
 map 
 [ 
  string 
 
 ] 
  int32 
 
 { 
  
 "THREAT_TYPE_UNSPECIFIED" 
 : 
  
 0 
 , 
  
 "MALWARE" 
 : 
  
 1 
 , 
  
 "SOCIAL_ENGINEERING" 
 : 
  
 2 
 , 
  
 "UNWANTED_SOFTWARE" 
 : 
  
 3 
 , 
  
 } 
 ) 
 

Enum value maps for ThreatType.

CompressionType_name, CompressionType_value

  var 
  
 ( 
  
 CompressionType_name 
  
 = 
  
 map 
 [ 
  int32 
 
 ] 
  string 
 
 { 
  
 0 
 : 
  
 "COMPRESSION_TYPE_UNSPECIFIED" 
 , 
  
 1 
 : 
  
 "RAW" 
 , 
  
 2 
 : 
  
 "RICE" 
 , 
  
 } 
  
 CompressionType_value 
  
 = 
  
 map 
 [ 
  string 
 
 ] 
  int32 
 
 { 
  
 "COMPRESSION_TYPE_UNSPECIFIED" 
 : 
  
 0 
 , 
  
 "RAW" 
 : 
  
 1 
 , 
  
 "RICE" 
 : 
  
 2 
 , 
  
 } 
 ) 
 

Enum value maps for CompressionType.

ComputeThreatListDiffResponse_ResponseType_name, ComputeThreatListDiffResponse_ResponseType_value

  var 
  
 ( 
  
 ComputeThreatListDiffResponse_ResponseType_name 
  
 = 
  
 map 
 [ 
  int32 
 
 ] 
  string 
 
 { 
  
 0 
 : 
  
 "RESPONSE_TYPE_UNSPECIFIED" 
 , 
  
 1 
 : 
  
 "DIFF" 
 , 
  
 2 
 : 
  
 "RESET" 
 , 
  
 } 
  
 ComputeThreatListDiffResponse_ResponseType_value 
  
 = 
  
 map 
 [ 
  string 
 
 ] 
  int32 
 
 { 
  
 "RESPONSE_TYPE_UNSPECIFIED" 
 : 
  
 0 
 , 
  
 "DIFF" 
 : 
  
 1 
 , 
  
 "RESET" 
 : 
  
 2 
 , 
  
 } 
 ) 
 

Enum value maps for ComputeThreatListDiffResponse_ResponseType.

File_google_cloud_webrisk_v1beta1_webrisk_proto

  var 
  
 File_google_cloud_webrisk_v1beta1_webrisk_proto 
  
  protoreflect 
 
 . 
  FileDescriptor 
 
 

Functions

func RegisterWebRiskServiceV1Beta1Server

  func 
  
 RegisterWebRiskServiceV1Beta1Server 
 ( 
 s 
  
 * 
  grpc 
 
 . 
  Server 
 
 , 
  
 srv 
  
  WebRiskServiceV1Beta1Server 
 
 ) 
 

CompressionType

  type 
  
 CompressionType 
  
  int32 
 
 

The ways in which threat entry sets can be compressed.

CompressionType_COMPRESSION_TYPE_UNSPECIFIED, CompressionType_RAW, CompressionType_RICE

  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) Descriptor

func (CompressionType) Enum

func (CompressionType) EnumDescriptor

  func 
  
 ( 
  CompressionType 
 
 ) 
  
 EnumDescriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use CompressionType.Descriptor instead.

func (CompressionType) Number

func (CompressionType) String

  func 
  
 ( 
 x 
  
  CompressionType 
 
 ) 
  
 String 
 () 
  
  string 
 
 

func (CompressionType) Type

ComputeThreatListDiffRequest

  type 
  
 ComputeThreatListDiffRequest 
  
 struct 
  
 { 
  
 ThreatType 
  
  ThreatType 
 
  
 "" 
  
 /* 137 byte string literal not displayed */ 
  
 VersionToken 
  
 [] 
  byte 
 
  
 `protobuf:"bytes,2,opt,name=version_token,json=versionToken,proto3" json:"version_token,omitempty"` 
  
 Constraints 
  
 * 
  ComputeThreatListDiffRequest_Constraints 
 
  
 `protobuf:"bytes,3,opt,name=constraints,proto3" json:"constraints,omitempty"` 
 } 
 

Describes an API diff request.

func (*ComputeThreatListDiffRequest) Descriptor

  func 
  
 ( 
 * 
  ComputeThreatListDiffRequest 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use ComputeThreatListDiffRequest.ProtoReflect.Descriptor instead.

func (*ComputeThreatListDiffRequest) GetConstraints

func (*ComputeThreatListDiffRequest) GetThreatType

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest 
 
 ) 
  
 GetThreatType 
 () 
  
  ThreatType 
 
 

func (*ComputeThreatListDiffRequest) GetVersionToken

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest 
 
 ) 
  
 GetVersionToken 
 () 
  
 [] 
  byte 
 
 

func (*ComputeThreatListDiffRequest) ProtoMessage

  func 
  
 ( 
 * 
  ComputeThreatListDiffRequest 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*ComputeThreatListDiffRequest) ProtoReflect

func (*ComputeThreatListDiffRequest) Reset

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest 
 
 ) 
  
 Reset 
 () 
 

func (*ComputeThreatListDiffRequest) String

ComputeThreatListDiffRequest_Constraints

  type 
  
 ComputeThreatListDiffRequest_Constraints 
  
 struct 
  
 { 
  
 MaxDiffEntries 
  
  int32 
 
  
 `protobuf:"varint,1,opt,name=max_diff_entries,json=maxDiffEntries,proto3" json:"max_diff_entries,omitempty"` 
  
 MaxDatabaseEntries 
  
  int32 
 
  
 `protobuf:"varint,2,opt,name=max_database_entries,json=maxDatabaseEntries,proto3" json:"max_database_entries,omitempty"` 
  
 SupportedCompressions 
  
 [] 
  CompressionType 
 
  
 "" 
  
 /* 182 byte string literal not displayed */ 
 } 
 

The constraints for this diff.

func (*ComputeThreatListDiffRequest_Constraints) Descriptor

Deprecated: Use ComputeThreatListDiffRequest_Constraints.ProtoReflect.Descriptor instead.

func (*ComputeThreatListDiffRequest_Constraints) GetMaxDatabaseEntries

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest_Constraints 
 
 ) 
  
 GetMaxDatabaseEntries 
 () 
  
  int32 
 
 

func (*ComputeThreatListDiffRequest_Constraints) GetMaxDiffEntries

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest_Constraints 
 
 ) 
  
 GetMaxDiffEntries 
 () 
  
  int32 
 
 

func (*ComputeThreatListDiffRequest_Constraints) GetSupportedCompressions

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffRequest_Constraints 
 
 ) 
  
 GetSupportedCompressions 
 () 
  
 [] 
  CompressionType 
 
 

func (*ComputeThreatListDiffRequest_Constraints) ProtoMessage

func (*ComputeThreatListDiffRequest_Constraints) ProtoReflect

func (*ComputeThreatListDiffRequest_Constraints) Reset

func (*ComputeThreatListDiffRequest_Constraints) String

ComputeThreatListDiffResponse

  type 
  
 ComputeThreatListDiffResponse 
  
 struct 
  
 { 
  
 ResponseType 
  
  ComputeThreatListDiffResponse_ResponseType 
 
  
 "" 
  
 /* 175 byte string literal not displayed */ 
  
 Additions 
  
 * 
  ThreatEntryAdditions 
 
  
 `protobuf:"bytes,5,opt,name=additions,proto3" json:"additions,omitempty"` 
  
 Removals 
  
 * 
  ThreatEntryRemovals 
 
  
 `protobuf:"bytes,6,opt,name=removals,proto3" json:"removals,omitempty"` 
  
 NewVersionToken 
  
 [] 
  byte 
 
  
 `protobuf:"bytes,7,opt,name=new_version_token,json=newVersionToken,proto3" json:"new_version_token,omitempty"` 
  
 Checksum 
  
 * 
  ComputeThreatListDiffResponse_Checksum 
 
  
 `protobuf:"bytes,8,opt,name=checksum,proto3" json:"checksum,omitempty"` 
  
 RecommendedNextDiff 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
  
 `protobuf:"bytes,2,opt,name=recommended_next_diff,json=recommendedNextDiff,proto3" json:"recommended_next_diff,omitempty"` 
 } 
 

func (*ComputeThreatListDiffResponse) Descriptor

  func 
  
 ( 
 * 
  ComputeThreatListDiffResponse 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use ComputeThreatListDiffResponse.ProtoReflect.Descriptor instead.

func (*ComputeThreatListDiffResponse) GetAdditions

func (*ComputeThreatListDiffResponse) GetChecksum

func (*ComputeThreatListDiffResponse) GetNewVersionToken

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffResponse 
 
 ) 
  
 GetNewVersionToken 
 () 
  
 [] 
  byte 
 
 

func (*ComputeThreatListDiffResponse) GetRecommendedNextDiff

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffResponse 
 
 ) 
  
 GetRecommendedNextDiff 
 () 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
 

func (*ComputeThreatListDiffResponse) GetRemovals

func (*ComputeThreatListDiffResponse) GetResponseType

func (*ComputeThreatListDiffResponse) ProtoMessage

  func 
  
 ( 
 * 
  ComputeThreatListDiffResponse 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*ComputeThreatListDiffResponse) ProtoReflect

func (*ComputeThreatListDiffResponse) Reset

  func 
  
 ( 
 x 
  
 * 
  ComputeThreatListDiffResponse 
 
 ) 
  
 Reset 
 () 
 

func (*ComputeThreatListDiffResponse) String

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"` 
  
 // contains filtered or unexported fields 
 } 
 

The expected state of a client's local database.

func (*ComputeThreatListDiffResponse_Checksum) Descriptor

  func 
  
 ( 
 * 
  ComputeThreatListDiffResponse_Checksum 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use ComputeThreatListDiffResponse_Checksum.ProtoReflect.Descriptor instead.

func (*ComputeThreatListDiffResponse_Checksum) GetSha256

func (*ComputeThreatListDiffResponse_Checksum) ProtoMessage

  func 
  
 ( 
 * 
  ComputeThreatListDiffResponse_Checksum 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*ComputeThreatListDiffResponse_Checksum) ProtoReflect

func (*ComputeThreatListDiffResponse_Checksum) Reset

func (*ComputeThreatListDiffResponse_Checksum) String

ComputeThreatListDiffResponse_ResponseType

  type 
  
 ComputeThreatListDiffResponse_ResponseType 
  
  int32 
 
 

The type of response sent to the client.

ComputeThreatListDiffResponse_RESPONSE_TYPE_UNSPECIFIED, ComputeThreatListDiffResponse_DIFF, ComputeThreatListDiffResponse_RESET

  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) Descriptor

func (ComputeThreatListDiffResponse_ResponseType) Enum

func (ComputeThreatListDiffResponse_ResponseType) EnumDescriptor

Deprecated: Use ComputeThreatListDiffResponse_ResponseType.Descriptor instead.

func (ComputeThreatListDiffResponse_ResponseType) Number

func (ComputeThreatListDiffResponse_ResponseType) String

func (ComputeThreatListDiffResponse_ResponseType) 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"` 
  
 // contains filtered or unexported fields 
 } 
 

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 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use RawHashes.ProtoReflect.Descriptor instead.

func (*RawHashes) GetPrefixSize

  func 
  
 ( 
 x 
  
 * 
  RawHashes 
 
 ) 
  
 GetPrefixSize 
 () 
  
  int32 
 
 

func (*RawHashes) GetRawHashes

  func 
  
 ( 
 x 
  
 * 
  RawHashes 
 
 ) 
  
 GetRawHashes 
 () 
  
 [] 
  byte 
 
 

func (*RawHashes) ProtoMessage

  func 
  
 ( 
 * 
  RawHashes 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*RawHashes) ProtoReflect

  func 
  
 ( 
 x 
  
 * 
  RawHashes 
 
 ) 
  
 ProtoReflect 
 () 
  
  protoreflect 
 
 . 
  Message 
 
 

func (*RawHashes) Reset

  func 
  
 ( 
 x 
  
 * 
  RawHashes 
 
 ) 
  
 Reset 
 () 
 

func (*RawHashes) String

  func 
  
 ( 
 x 
  
 * 
  RawHashes 
 
 ) 
  
 String 
 () 
  
  string 
 
 

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"` 
  
 // contains filtered or unexported fields 
 } 
 

A set of raw indices to remove from a local list.

func (*RawIndices) Descriptor

  func 
  
 ( 
 * 
  RawIndices 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use RawIndices.ProtoReflect.Descriptor instead.

func (*RawIndices) GetIndices

  func 
  
 ( 
 x 
  
 * 
  RawIndices 
 
 ) 
  
 GetIndices 
 () 
  
 [] 
  int32 
 
 

func (*RawIndices) ProtoMessage

  func 
  
 ( 
 * 
  RawIndices 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*RawIndices) ProtoReflect

  func 
  
 ( 
 x 
  
 * 
  RawIndices 
 
 ) 
  
 ProtoReflect 
 () 
  
  protoreflect 
 
 . 
  Message 
 
 

func (*RawIndices) Reset

  func 
  
 ( 
 x 
  
 * 
  RawIndices 
 
 ) 
  
 Reset 
 () 
 

func (*RawIndices) String

  func 
  
 ( 
 x 
  
 * 
  RawIndices 
 
 ) 
  
 String 
 () 
  
  string 
 
 

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"` 
  
 // contains filtered or unexported fields 
 } 
 

The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or compressed removal indices.

func (*RiceDeltaEncoding) Descriptor

  func 
  
 ( 
 * 
  RiceDeltaEncoding 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use RiceDeltaEncoding.ProtoReflect.Descriptor instead.

func (*RiceDeltaEncoding) GetEncodedData

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 GetEncodedData 
 () 
  
 [] 
  byte 
 
 

func (*RiceDeltaEncoding) GetEntryCount

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 GetEntryCount 
 () 
  
  int32 
 
 

func (*RiceDeltaEncoding) GetFirstValue

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 GetFirstValue 
 () 
  
  int64 
 
 

func (*RiceDeltaEncoding) GetRiceParameter

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 GetRiceParameter 
 () 
  
  int32 
 
 

func (*RiceDeltaEncoding) ProtoMessage

  func 
  
 ( 
 * 
  RiceDeltaEncoding 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*RiceDeltaEncoding) ProtoReflect

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 ProtoReflect 
 () 
  
  protoreflect 
 
 . 
  Message 
 
 

func (*RiceDeltaEncoding) Reset

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 Reset 
 () 
 

func (*RiceDeltaEncoding) String

  func 
  
 ( 
 x 
  
 * 
  RiceDeltaEncoding 
 
 ) 
  
 String 
 () 
  
  string 
 
 

SearchHashesRequest

  type 
  
 SearchHashesRequest 
  
 struct 
  
 { 
  
 HashPrefix 
  
 [] 
  byte 
 
  
 `protobuf:"bytes,1,opt,name=hash_prefix,json=hashPrefix,proto3" json:"hash_prefix,omitempty"` 
  
 ThreatTypes 
  
 [] 
  ThreatType 
 
  
 "" 
  
 /* 147 byte string literal not displayed */ 
 } 
 

Request to return full hashes matched by the provided hash prefixes.

func (*SearchHashesRequest) Descriptor

  func 
  
 ( 
 * 
  SearchHashesRequest 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchHashesRequest.ProtoReflect.Descriptor instead.

func (*SearchHashesRequest) GetHashPrefix

  func 
  
 ( 
 x 
  
 * 
  SearchHashesRequest 
 
 ) 
  
 GetHashPrefix 
 () 
  
 [] 
  byte 
 
 

func (*SearchHashesRequest) GetThreatTypes

  func 
  
 ( 
 x 
  
 * 
  SearchHashesRequest 
 
 ) 
  
 GetThreatTypes 
 () 
  
 [] 
  ThreatType 
 
 

func (*SearchHashesRequest) ProtoMessage

  func 
  
 ( 
 * 
  SearchHashesRequest 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchHashesRequest) ProtoReflect

func (*SearchHashesRequest) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchHashesRequest 
 
 ) 
  
 Reset 
 () 
 

func (*SearchHashesRequest) String

  func 
  
 ( 
 x 
  
 * 
  SearchHashesRequest 
 
 ) 
  
 String 
 () 
  
  string 
 
 

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 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
  
 `protobuf:"bytes,2,opt,name=negative_expire_time,json=negativeExpireTime,proto3" json:"negative_expire_time,omitempty"` 
  
 // contains filtered or unexported fields 
 } 
 

func (*SearchHashesResponse) Descriptor

  func 
  
 ( 
 * 
  SearchHashesResponse 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchHashesResponse.ProtoReflect.Descriptor instead.

func (*SearchHashesResponse) GetNegativeExpireTime

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse 
 
 ) 
  
 GetNegativeExpireTime 
 () 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
 

func (*SearchHashesResponse) GetThreats

func (*SearchHashesResponse) ProtoMessage

  func 
  
 ( 
 * 
  SearchHashesResponse 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchHashesResponse) ProtoReflect

func (*SearchHashesResponse) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse 
 
 ) 
  
 Reset 
 () 
 

func (*SearchHashesResponse) String

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse 
 
 ) 
  
 String 
 () 
  
  string 
 
 

SearchHashesResponse_ThreatHash

  type 
  
 SearchHashesResponse_ThreatHash 
  
 struct 
  
 { 
  
 ThreatTypes 
  
 [] 
  ThreatType 
 
  
 "" 
  
 /* 147 byte string literal not displayed */ 
  
 Hash 
  
 [] 
  byte 
 
  
 `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"` 
  
 ExpireTime 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
  
 `protobuf:"bytes,3,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` 
 } 
 

Contains threat information on a matching hash.

func (*SearchHashesResponse_ThreatHash) Descriptor

  func 
  
 ( 
 * 
  SearchHashesResponse_ThreatHash 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchHashesResponse_ThreatHash.ProtoReflect.Descriptor instead.

func (*SearchHashesResponse_ThreatHash) GetExpireTime

func (*SearchHashesResponse_ThreatHash) GetHash

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse_ThreatHash 
 
 ) 
  
 GetHash 
 () 
  
 [] 
  byte 
 
 

func (*SearchHashesResponse_ThreatHash) GetThreatTypes

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse_ThreatHash 
 
 ) 
  
 GetThreatTypes 
 () 
  
 [] 
  ThreatType 
 
 

func (*SearchHashesResponse_ThreatHash) ProtoMessage

  func 
  
 ( 
 * 
  SearchHashesResponse_ThreatHash 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchHashesResponse_ThreatHash) ProtoReflect

func (*SearchHashesResponse_ThreatHash) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchHashesResponse_ThreatHash 
 
 ) 
  
 Reset 
 () 
 

func (*SearchHashesResponse_ThreatHash) String

SearchUrisRequest

  type 
  
 SearchUrisRequest 
  
 struct 
  
 { 
  
 Uri 
  
  string 
 
  
 `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` 
  
 ThreatTypes 
  
 [] 
  ThreatType 
 
  
 "" 
  
 /* 147 byte string literal not displayed */ 
 } 
 

Request to check URI entries against threatLists.

func (*SearchUrisRequest) Descriptor

  func 
  
 ( 
 * 
  SearchUrisRequest 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchUrisRequest.ProtoReflect.Descriptor instead.

func (*SearchUrisRequest) GetThreatTypes

  func 
  
 ( 
 x 
  
 * 
  SearchUrisRequest 
 
 ) 
  
 GetThreatTypes 
 () 
  
 [] 
  ThreatType 
 
 

func (*SearchUrisRequest) GetUri

  func 
  
 ( 
 x 
  
 * 
  SearchUrisRequest 
 
 ) 
  
 GetUri 
 () 
  
  string 
 
 

func (*SearchUrisRequest) ProtoMessage

  func 
  
 ( 
 * 
  SearchUrisRequest 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchUrisRequest) ProtoReflect

  func 
  
 ( 
 x 
  
 * 
  SearchUrisRequest 
 
 ) 
  
 ProtoReflect 
 () 
  
  protoreflect 
 
 . 
  Message 
 
 

func (*SearchUrisRequest) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchUrisRequest 
 
 ) 
  
 Reset 
 () 
 

func (*SearchUrisRequest) String

  func 
  
 ( 
 x 
  
 * 
  SearchUrisRequest 
 
 ) 
  
 String 
 () 
  
  string 
 
 

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"` 
  
 // contains filtered or unexported fields 
 } 
 

func (*SearchUrisResponse) Descriptor

  func 
  
 ( 
 * 
  SearchUrisResponse 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchUrisResponse.ProtoReflect.Descriptor instead.

func (*SearchUrisResponse) GetThreat

func (*SearchUrisResponse) ProtoMessage

  func 
  
 ( 
 * 
  SearchUrisResponse 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchUrisResponse) ProtoReflect

  func 
  
 ( 
 x 
  
 * 
  SearchUrisResponse 
 
 ) 
  
 ProtoReflect 
 () 
  
  protoreflect 
 
 . 
  Message 
 
 

func (*SearchUrisResponse) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchUrisResponse 
 
 ) 
  
 Reset 
 () 
 

func (*SearchUrisResponse) String

  func 
  
 ( 
 x 
  
 * 
  SearchUrisResponse 
 
 ) 
  
 String 
 () 
  
  string 
 
 

SearchUrisResponse_ThreatUri

  type 
  
 SearchUrisResponse_ThreatUri 
  
 struct 
  
 { 
  
 ThreatTypes 
  
 [] 
  ThreatType 
 
  
 "" 
  
 /* 147 byte string literal not displayed */ 
  
 ExpireTime 
  
 * 
  timestamppb 
 
 . 
  Timestamp 
 
  
 `protobuf:"bytes,2,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` 
 } 
 

Contains threat information on a matching uri.

func (*SearchUrisResponse_ThreatUri) Descriptor

  func 
  
 ( 
 * 
  SearchUrisResponse_ThreatUri 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use SearchUrisResponse_ThreatUri.ProtoReflect.Descriptor instead.

func (*SearchUrisResponse_ThreatUri) GetExpireTime

func (*SearchUrisResponse_ThreatUri) GetThreatTypes

  func 
  
 ( 
 x 
  
 * 
  SearchUrisResponse_ThreatUri 
 
 ) 
  
 GetThreatTypes 
 () 
  
 [] 
  ThreatType 
 
 

func (*SearchUrisResponse_ThreatUri) ProtoMessage

  func 
  
 ( 
 * 
  SearchUrisResponse_ThreatUri 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*SearchUrisResponse_ThreatUri) ProtoReflect

func (*SearchUrisResponse_ThreatUri) Reset

  func 
  
 ( 
 x 
  
 * 
  SearchUrisResponse_ThreatUri 
 
 ) 
  
 Reset 
 () 
 

func (*SearchUrisResponse_ThreatUri) String

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"` 
  
 // contains filtered or unexported fields 
 } 
 

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 
 
 ) 
 

Deprecated: Use ThreatEntryAdditions.ProtoReflect.Descriptor instead.

func (*ThreatEntryAdditions) GetRawHashes

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryAdditions 
 
 ) 
  
 GetRawHashes 
 () 
  
 [] 
 * 
  RawHashes 
 
 

func (*ThreatEntryAdditions) GetRiceHashes

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryAdditions 
 
 ) 
  
 GetRiceHashes 
 () 
  
 * 
  RiceDeltaEncoding 
 
 

func (*ThreatEntryAdditions) ProtoMessage

  func 
  
 ( 
 * 
  ThreatEntryAdditions 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*ThreatEntryAdditions) ProtoReflect

func (*ThreatEntryAdditions) Reset

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryAdditions 
 
 ) 
  
 Reset 
 () 
 

func (*ThreatEntryAdditions) String

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryAdditions 
 
 ) 
  
 String 
 () 
  
  string 
 
 

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"` 
  
 // contains filtered or unexported fields 
 } 
 

Contains the set of entries to remove from a local database.

func (*ThreatEntryRemovals) Descriptor

  func 
  
 ( 
 * 
  ThreatEntryRemovals 
 
 ) 
  
 Descriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use ThreatEntryRemovals.ProtoReflect.Descriptor instead.

func (*ThreatEntryRemovals) GetRawIndices

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryRemovals 
 
 ) 
  
 GetRawIndices 
 () 
  
 * 
  RawIndices 
 
 

func (*ThreatEntryRemovals) GetRiceIndices

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryRemovals 
 
 ) 
  
 GetRiceIndices 
 () 
  
 * 
  RiceDeltaEncoding 
 
 

func (*ThreatEntryRemovals) ProtoMessage

  func 
  
 ( 
 * 
  ThreatEntryRemovals 
 
 ) 
  
 ProtoMessage 
 () 
 

func (*ThreatEntryRemovals) ProtoReflect

func (*ThreatEntryRemovals) Reset

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryRemovals 
 
 ) 
  
 Reset 
 () 
 

func (*ThreatEntryRemovals) String

  func 
  
 ( 
 x 
  
 * 
  ThreatEntryRemovals 
 
 ) 
  
 String 
 () 
  
  string 
 
 

ThreatType

  type 
  
 ThreatType 
  
  int32 
 
 

The type of threat. This maps dirrectly to the threat list a threat may belong to.

ThreatType_THREAT_TYPE_UNSPECIFIED, ThreatType_MALWARE, ThreatType_SOCIAL_ENGINEERING, ThreatType_UNWANTED_SOFTWARE

  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) Descriptor

func (ThreatType) Enum

  func 
  
 ( 
 x 
  
  ThreatType 
 
 ) 
  
 Enum 
 () 
  
 * 
  ThreatType 
 
 

func (ThreatType) EnumDescriptor

  func 
  
 ( 
  ThreatType 
 
 ) 
  
 EnumDescriptor 
 () 
  
 ([] 
  byte 
 
 , 
  
 [] 
  int 
 
 ) 
 

Deprecated: Use ThreatType.Descriptor instead.

func (ThreatType) Number

func (ThreatType) String

  func 
  
 ( 
 x 
  
  ThreatType 
 
 ) 
  
 String 
 () 
  
  string 
 
 

func (ThreatType) Type

UnimplementedWebRiskServiceV1Beta1Server

  type 
  
 UnimplementedWebRiskServiceV1Beta1Server 
  
 struct 
  
 { 
 } 
 

UnimplementedWebRiskServiceV1Beta1Server can be embedded to have forward compatible implementations.

func (*UnimplementedWebRiskServiceV1Beta1Server) ComputeThreatListDiff

func (*UnimplementedWebRiskServiceV1Beta1Server) SearchHashes

func (*UnimplementedWebRiskServiceV1Beta1Server) SearchUris

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 
 
 

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.

Create a Mobile Website
View Site in Mobile | Classic
Share by: