public static final class SearchHashesResponse.ThreatHash extends com.google.protobuf.GeneratedMessageV3 implements SearchHashesResponse.ThreatHashOrBuilder
Contains threat information on a matching hash.Protobuf type
google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash| Modifier and Type | Class and Description |
|---|---|
static class |
SearchHashesResponse.ThreatHash.Builder
Contains threat information on a matching hash.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
EXPIRE_TIME_FIELD_NUMBER |
static int |
HASH_FIELD_NUMBER |
static int |
THREAT_TYPES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static SearchHashesResponse.ThreatHash |
getDefaultInstance() |
SearchHashesResponse.ThreatHash |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getExpireTime()
The cache lifetime for the returned match.
|
com.google.protobuf.TimestampOrBuilder |
getExpireTimeOrBuilder()
The cache lifetime for the returned match.
|
com.google.protobuf.ByteString |
getHash()
A 32 byte SHA256 hash.
|
com.google.protobuf.Parser<SearchHashesResponse.ThreatHash> |
getParserForType() |
int |
getSerializedSize() |
ThreatType |
getThreatTypes(int index)
The ThreatList this threat belongs to.
|
int |
getThreatTypesCount()
The ThreatList this threat belongs to.
|
List<ThreatType> |
getThreatTypesList()
The ThreatList this threat belongs to.
|
int |
getThreatTypesValue(int index)
The ThreatList this threat belongs to.
|
List<Integer> |
getThreatTypesValueList()
The ThreatList this threat belongs to.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasExpireTime()
The cache lifetime for the returned match.
|
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static SearchHashesResponse.ThreatHash.Builder |
newBuilder() |
static SearchHashesResponse.ThreatHash.Builder |
newBuilder(SearchHashesResponse.ThreatHash prototype) |
SearchHashesResponse.ThreatHash.Builder |
newBuilderForType() |
protected SearchHashesResponse.ThreatHash.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static SearchHashesResponse.ThreatHash |
parseDelimitedFrom(InputStream input) |
static SearchHashesResponse.ThreatHash |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchHashesResponse.ThreatHash |
parseFrom(byte[] data) |
static SearchHashesResponse.ThreatHash |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchHashesResponse.ThreatHash |
parseFrom(ByteBuffer data) |
static SearchHashesResponse.ThreatHash |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchHashesResponse.ThreatHash |
parseFrom(com.google.protobuf.ByteString data) |
static SearchHashesResponse.ThreatHash |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchHashesResponse.ThreatHash |
parseFrom(com.google.protobuf.CodedInputStream input) |
static SearchHashesResponse.ThreatHash |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static SearchHashesResponse.ThreatHash |
parseFrom(InputStream input) |
static SearchHashesResponse.ThreatHash |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<SearchHashesResponse.ThreatHash> |
parser() |
SearchHashesResponse.ThreatHash.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int THREAT_TYPES_FIELD_NUMBER
public static final int HASH_FIELD_NUMBER
public static final int EXPIRE_TIME_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public List<ThreatType> getThreatTypesList()
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;getThreatTypesList in interface SearchHashesResponse.ThreatHashOrBuilderpublic int getThreatTypesCount()
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;getThreatTypesCount in interface SearchHashesResponse.ThreatHashOrBuilderpublic ThreatType getThreatTypes(int index)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;getThreatTypes in interface SearchHashesResponse.ThreatHashOrBuilderpublic List<Integer> getThreatTypesValueList()
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;getThreatTypesValueList in interface SearchHashesResponse.ThreatHashOrBuilderpublic int getThreatTypesValue(int index)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;getThreatTypesValue in interface SearchHashesResponse.ThreatHashOrBuilderpublic com.google.protobuf.ByteString getHash()
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
bytes hash = 2;getHash in interface SearchHashesResponse.ThreatHashOrBuilderpublic boolean hasExpireTime()
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
.google.protobuf.Timestamp expire_time = 3;hasExpireTime in interface SearchHashesResponse.ThreatHashOrBuilderpublic com.google.protobuf.Timestamp getExpireTime()
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
.google.protobuf.Timestamp expire_time = 3;getExpireTime in interface SearchHashesResponse.ThreatHashOrBuilderpublic com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
The cache lifetime for the returned match. Clients must not cache this response past this timestamp to avoid false positives.
.google.protobuf.Timestamp expire_time = 3;getExpireTimeOrBuilder in interface SearchHashesResponse.ThreatHashOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static SearchHashesResponse.ThreatHash parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(InputStream input) throws IOException
IOExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchHashesResponse.ThreatHash parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static SearchHashesResponse.ThreatHash parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static SearchHashesResponse.ThreatHash parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic SearchHashesResponse.ThreatHash.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static SearchHashesResponse.ThreatHash.Builder newBuilder()
public static SearchHashesResponse.ThreatHash.Builder newBuilder(SearchHashesResponse.ThreatHash prototype)
public SearchHashesResponse.ThreatHash.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected SearchHashesResponse.ThreatHash.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static SearchHashesResponse.ThreatHash getDefaultInstance()
public static com.google.protobuf.Parser<SearchHashesResponse.ThreatHash> parser()
public com.google.protobuf.Parser<SearchHashesResponse.ThreatHash> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public SearchHashesResponse.ThreatHash getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019 Google LLC. All rights reserved.