Package com.google.webrisk.v1
Class SearchHashesRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
com.google.webrisk.v1.SearchHashesRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SearchHashesRequestOrBuilder,Cloneable
- Enclosing class:
- SearchHashesRequest
public static final class SearchHashesRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
implements SearchHashesRequestOrBuilder
Request to return full hashes matched by the provided hash prefixes.Protobuf type
google.cloud.webrisk.v1.SearchHashesRequest-
Method Summary
Modifier and TypeMethodDescriptionaddAllThreatTypes(Iterable<? extends ThreatType> values) Required.addAllThreatTypesValue(Iterable<Integer> values) Required.addThreatTypes(ThreatType value) Required.addThreatTypesValue(int value) Required.build()clear()A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringA hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash.getThreatTypes(int index) Required.intRequired.Required.intgetThreatTypesValue(int index) Required.Required.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(SearchHashesRequest other) setHashPrefix(com.google.protobuf.ByteString value) A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash.setThreatTypes(int index, ThreatType value) Required.setThreatTypesValue(int index, int value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchHashesRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchHashesRequest.Builder>
-
mergeFrom
public SearchHashesRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchHashesRequest.Builder>- Throws:
IOException
-
getHashPrefix
public com.google.protobuf.ByteString getHashPrefix()A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
bytes hash_prefix = 1;- Specified by:
getHashPrefixin interfaceSearchHashesRequestOrBuilder- Returns:
- The hashPrefix.
-
setHashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
bytes hash_prefix = 1;- Parameters:
value- The hashPrefix to set.- Returns:
- This builder for chaining.
-
clearHashPrefix
A hash prefix, consisting of the most significant 4-32 bytes of a SHA256 hash. For JSON requests, this field is base64-encoded. Note that if this parameter is provided by a URI, it must be encoded using the web safe base64 variant (RFC 4648).
bytes hash_prefix = 1;- Returns:
- This builder for chaining.
-
getThreatTypesList
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getThreatTypesListin interfaceSearchHashesRequestOrBuilder- Returns:
- A list containing the threatTypes.
-
getThreatTypesCount
public int getThreatTypesCount()Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getThreatTypesCountin interfaceSearchHashesRequestOrBuilder- Returns:
- The count of threatTypes.
-
getThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getThreatTypesin interfaceSearchHashesRequestOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The threatTypes at the given index.
-
setThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The threatTypes to set.- Returns:
- This builder for chaining.
-
addThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The threatTypes to add.- Returns:
- This builder for chaining.
-
clearThreatTypes
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getThreatTypesValueList
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getThreatTypesValueListin interfaceSearchHashesRequestOrBuilder- Returns:
- A list containing the enum numeric values on the wire for threatTypes.
-
getThreatTypesValue
public int getThreatTypesValue(int index) Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getThreatTypesValuein interfaceSearchHashesRequestOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of threatTypes at the given index.
-
setThreatTypesValue
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for threatTypes to set.- Returns:
- This builder for chaining.
-
addThreatTypesValue
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypesValue
Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
repeated .google.cloud.webrisk.v1.ThreatType threat_types = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The enum numeric values on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-