1 // Copyright 2022 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 // Code generated by aliasgen. DO NOT EDIT. 16 17 // Package webrisk aliases all exported identifiers in package 18 // "cloud.google.com/go/webrisk/apiv1/webriskpb". 19 // 20 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb. 21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md 22 // for more details. 23 package webrisk 24 25 import ( 26 src "cloud.google.com/go/webrisk/apiv1/webriskpb" 27 grpc "google.golang.org/grpc" 28 ) 29 30 // Deprecated: Please use consts in: cloud.google.com/go/webrisk/apiv1/webriskpb 31 const ( 32 CompressionType_COMPRESSION_TYPE_UNSPECIFIED = src.CompressionType_COMPRESSION_TYPE_UNSPECIFIED 33 CompressionType_RAW = src.CompressionType_RAW 34 CompressionType_RICE = src.CompressionType_RICE 35 ComputeThreatListDiffResponse_DIFF = src.ComputeThreatListDiffResponse_DIFF 36 ComputeThreatListDiffResponse_RESET = src.ComputeThreatListDiffResponse_RESET 37 ComputeThreatListDiffResponse_RESPONSE_TYPE_UNSPECIFIED = src.ComputeThreatListDiffResponse_RESPONSE_TYPE_UNSPECIFIED 38 ThreatType_MALWARE = src.ThreatType_MALWARE 39 ThreatType_SOCIAL_ENGINEERING = src.ThreatType_SOCIAL_ENGINEERING 40 ThreatType_SOCIAL_ENGINEERING_EXTENDED_COVERAGE = src.ThreatType_SOCIAL_ENGINEERING_EXTENDED_COVERAGE 41 ThreatType_THREAT_TYPE_UNSPECIFIED = src.ThreatType_THREAT_TYPE_UNSPECIFIED 42 ThreatType_UNWANTED_SOFTWARE = src.ThreatType_UNWANTED_SOFTWARE 43 ) 44 45 // Deprecated: Please use vars in: cloud.google.com/go/webrisk/apiv1/webriskpb 46 var ( 47 CompressionType_name = src.CompressionType_name 48 CompressionType_value = src.CompressionType_value 49 ComputeThreatListDiffResponse_ResponseType_name = src.ComputeThreatListDiffResponse_ResponseType_name 50 ComputeThreatListDiffResponse_ResponseType_value = src.ComputeThreatListDiffResponse_ResponseType_value 51 File_google_cloud_webrisk_v1_webrisk_proto = src.File_google_cloud_webrisk_v1_webrisk_proto 52 ThreatType_name = src.ThreatType_name 53 ThreatType_value = src.ThreatType_value 54 ) 55 56 // The ways in which threat entry sets can be compressed. 57 // 58 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 59 type CompressionType = src.CompressionType 60 61 // Describes an API diff request. 62 // 63 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 64 type ComputeThreatListDiffRequest = src.ComputeThreatListDiffRequest 65 66 // The constraints for this diff. 67 // 68 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 69 type ComputeThreatListDiffRequest_Constraints = src.ComputeThreatListDiffRequest_Constraints 70 type ComputeThreatListDiffResponse = src.ComputeThreatListDiffResponse 71 72 // The expected state of a client's local database. 73 // 74 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 75 type ComputeThreatListDiffResponse_Checksum = src.ComputeThreatListDiffResponse_Checksum 76 77 // The type of response sent to the client. 78 // 79 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 80 type ComputeThreatListDiffResponse_ResponseType = src.ComputeThreatListDiffResponse_ResponseType 81 82 // Request to send a potentially phishy URI to WebRisk. 83 // 84 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 85 type CreateSubmissionRequest = src.CreateSubmissionRequest 86 87 // The uncompressed threat entries in hash format. Hashes can be anywhere from 88 // 4 to 32 bytes in size. A large majority are 4 bytes, but some hashes are 89 // lengthened if they collide with the hash of a popular URI. Used for sending 90 // ThreatEntryAdditons to clients that do not support compression, or when 91 // sending non-4-byte hashes to clients that do support compression. 92 // 93 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 94 type RawHashes = src.RawHashes 95 96 // A set of raw indices to remove from a local list. 97 // 98 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 99 type RawIndices = src.RawIndices 100 101 // The Rice-Golomb encoded data. Used for sending compressed 4-byte hashes or 102 // compressed removal indices. 103 // 104 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 105 type RiceDeltaEncoding = src.RiceDeltaEncoding 106 107 // Request to return full hashes matched by the provided hash prefixes. 108 // 109 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 110 type SearchHashesRequest = src.SearchHashesRequest 111 type SearchHashesResponse = src.SearchHashesResponse 112 113 // Contains threat information on a matching hash. 114 // 115 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 116 type SearchHashesResponse_ThreatHash = src.SearchHashesResponse_ThreatHash 117 118 // Request to check URI entries against threatLists. 119 // 120 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 121 type SearchUrisRequest = src.SearchUrisRequest 122 type SearchUrisResponse = src.SearchUrisResponse 123 124 // Contains threat information on a matching uri. 125 // 126 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 127 type SearchUrisResponse_ThreatUri = src.SearchUrisResponse_ThreatUri 128 129 // Wraps a URI that might be displaying malicious content. 130 // 131 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 132 type Submission = src.Submission 133 134 // Contains the set of entries to add to a local database. May contain a 135 // combination of compressed and raw data in a single response. 136 // 137 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 138 type ThreatEntryAdditions = src.ThreatEntryAdditions 139 140 // Contains the set of entries to remove from a local database. 141 // 142 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 143 type ThreatEntryRemovals = src.ThreatEntryRemovals 144 145 // The type of threat. This maps directly to the threat list a threat may 146 // belong to. 147 // 148 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 149 type ThreatType = src.ThreatType 150 151 // UnimplementedWebRiskServiceServer can be embedded to have forward 152 // compatible implementations. 153 // 154 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 155 type UnimplementedWebRiskServiceServer = src.UnimplementedWebRiskServiceServer 156 157 // WebRiskServiceClient is the client API for WebRiskService service. For 158 // semantics around ctx use and closing/ending streaming RPCs, please refer to 159 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 160 // 161 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 162 type WebRiskServiceClient = src.WebRiskServiceClient 163 164 // WebRiskServiceServer is the server API for WebRiskService service. 165 // 166 // Deprecated: Please use types in: cloud.google.com/go/webrisk/apiv1/webriskpb 167 type WebRiskServiceServer = src.WebRiskServiceServer 168 169 // Deprecated: Please use funcs in: cloud.google.com/go/webrisk/apiv1/webriskpb 170 func NewWebRiskServiceClient(cc grpc.ClientConnInterface) WebRiskServiceClient { 171 return src.NewWebRiskServiceClient(cc) 172 } 173 174 // Deprecated: Please use funcs in: cloud.google.com/go/webrisk/apiv1/webriskpb 175 func RegisterWebRiskServiceServer(s *grpc.Server, srv WebRiskServiceServer) { 176 src.RegisterWebRiskServiceServer(s, srv) 177 } 178