public static final class SearchHashesResponse.ThreatHash.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder> implements SearchHashesResponse.ThreatHashOrBuilder
Contains threat information on a matching hash.Protobuf type
google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash| Modifier and Type | Method and Description |
|---|---|
SearchHashesResponse.ThreatHash.Builder |
addAllThreatTypes(Iterable<? extends ThreatType> values)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
addAllThreatTypesValue(Iterable<Integer> values)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchHashesResponse.ThreatHash.Builder |
addThreatTypes(ThreatType value)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
addThreatTypesValue(int value)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash |
build() |
SearchHashesResponse.ThreatHash |
buildPartial() |
SearchHashesResponse.ThreatHash.Builder |
clear() |
SearchHashesResponse.ThreatHash.Builder |
clearExpireTime()
The cache lifetime for the returned match.
|
SearchHashesResponse.ThreatHash.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SearchHashesResponse.ThreatHash.Builder |
clearHash()
A 32 byte SHA256 hash.
|
SearchHashesResponse.ThreatHash.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SearchHashesResponse.ThreatHash.Builder |
clearThreatTypes()
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
clone() |
SearchHashesResponse.ThreatHash |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Timestamp |
getExpireTime()
The cache lifetime for the returned match.
|
com.google.protobuf.Timestamp.Builder |
getExpireTimeBuilder()
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.
|
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.
|
boolean |
hasExpireTime()
The cache lifetime for the returned match.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SearchHashesResponse.ThreatHash.Builder |
mergeExpireTime(com.google.protobuf.Timestamp value)
The cache lifetime for the returned match.
|
SearchHashesResponse.ThreatHash.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SearchHashesResponse.ThreatHash.Builder |
mergeFrom(com.google.protobuf.Message other) |
SearchHashesResponse.ThreatHash.Builder |
mergeFrom(SearchHashesResponse.ThreatHash other) |
SearchHashesResponse.ThreatHash.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SearchHashesResponse.ThreatHash.Builder |
setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
The cache lifetime for the returned match.
|
SearchHashesResponse.ThreatHash.Builder |
setExpireTime(com.google.protobuf.Timestamp value)
The cache lifetime for the returned match.
|
SearchHashesResponse.ThreatHash.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SearchHashesResponse.ThreatHash.Builder |
setHash(com.google.protobuf.ByteString value)
A 32 byte SHA256 hash.
|
SearchHashesResponse.ThreatHash.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SearchHashesResponse.ThreatHash.Builder |
setThreatTypes(int index,
ThreatType value)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
setThreatTypesValue(int index,
int value)
The ThreatList this threat belongs to.
|
SearchHashesResponse.ThreatHash.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SearchHashesResponse.ThreatHash build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SearchHashesResponse.ThreatHash buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SearchHashesResponse.ThreatHash.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder mergeFrom(SearchHashesResponse.ThreatHash other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public SearchHashesResponse.ThreatHash.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SearchHashesResponse.ThreatHash.Builder>IOExceptionpublic 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 SearchHashesResponse.ThreatHash.Builder setThreatTypes(int index, ThreatType value)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public SearchHashesResponse.ThreatHash.Builder addThreatTypes(ThreatType value)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public SearchHashesResponse.ThreatHash.Builder addAllThreatTypes(Iterable<? extends ThreatType> values)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public SearchHashesResponse.ThreatHash.Builder clearThreatTypes()
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public 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 SearchHashesResponse.ThreatHash.Builder setThreatTypesValue(int index, int value)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public SearchHashesResponse.ThreatHash.Builder addThreatTypesValue(int value)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public SearchHashesResponse.ThreatHash.Builder addAllThreatTypesValue(Iterable<Integer> values)
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;public 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 SearchHashesResponse.ThreatHash.Builder setHash(com.google.protobuf.ByteString value)
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
bytes hash = 2;public SearchHashesResponse.ThreatHash.Builder clearHash()
A 32 byte SHA256 hash. This field is in binary format. For JSON requests, hashes are base64-encoded.
bytes hash = 2;public 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 SearchHashesResponse.ThreatHash.Builder setExpireTime(com.google.protobuf.Timestamp value)
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;public SearchHashesResponse.ThreatHash.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
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;public SearchHashesResponse.ThreatHash.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
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;public SearchHashesResponse.ThreatHash.Builder clearExpireTime()
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;public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
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;public 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 SearchHashesResponse.ThreatHash.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>public final SearchHashesResponse.ThreatHash.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>Copyright © 2019 Google LLC. All rights reserved.