1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/webrisk/v1/webrisk.proto 18 19 package com.google.webrisk.v1; 20 21 public interface SearchHashesRequestOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.webrisk.v1.SearchHashesRequest) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 31 * hash. For JSON requests, this field is base64-encoded. 32 * Note that if this parameter is provided by a URI, it must be encoded using 33 * the web safe base64 variant (RFC 4648). 34 * </pre> 35 * 36 * <code>bytes hash_prefix = 1;</code> 37 * 38 * @return The hashPrefix. 39 */ getHashPrefix()40 com.google.protobuf.ByteString getHashPrefix(); 41 42 /** 43 * 44 * 45 * <pre> 46 * Required. The ThreatLists to search in. Multiple ThreatLists may be specified. 47 * </pre> 48 * 49 * <code> 50 * repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; 51 * </code> 52 * 53 * @return A list containing the threatTypes. 54 */ getThreatTypesList()55 java.util.List<com.google.webrisk.v1.ThreatType> getThreatTypesList(); 56 /** 57 * 58 * 59 * <pre> 60 * Required. The ThreatLists to search in. Multiple ThreatLists may be specified. 61 * </pre> 62 * 63 * <code> 64 * repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; 65 * </code> 66 * 67 * @return The count of threatTypes. 68 */ getThreatTypesCount()69 int getThreatTypesCount(); 70 /** 71 * 72 * 73 * <pre> 74 * Required. The ThreatLists to search in. Multiple ThreatLists may be specified. 75 * </pre> 76 * 77 * <code> 78 * repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; 79 * </code> 80 * 81 * @param index The index of the element to return. 82 * @return The threatTypes at the given index. 83 */ getThreatTypes(int index)84 com.google.webrisk.v1.ThreatType getThreatTypes(int index); 85 /** 86 * 87 * 88 * <pre> 89 * Required. The ThreatLists to search in. Multiple ThreatLists may be specified. 90 * </pre> 91 * 92 * <code> 93 * repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; 94 * </code> 95 * 96 * @return A list containing the enum numeric values on the wire for threatTypes. 97 */ getThreatTypesValueList()98 java.util.List<java.lang.Integer> getThreatTypesValueList(); 99 /** 100 * 101 * 102 * <pre> 103 * Required. The ThreatLists to search in. Multiple ThreatLists may be specified. 104 * </pre> 105 * 106 * <code> 107 * repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED]; 108 * </code> 109 * 110 * @param index The index of the value to return. 111 * @return The enum numeric value on the wire of threatTypes at the given index. 112 */ getThreatTypesValue(int index)113 int getThreatTypesValue(int index); 114 } 115