Package com.google.webrisk.v1beta1
Class SearchHashesResponse.ThreatHash.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
- com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SearchHashesResponse.ThreatHashOrBuilder,Cloneable
- Enclosing class:
- SearchHashesResponse.ThreatHash
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 typegoogle.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchHashesResponse.ThreatHash.BuilderaddAllThreatTypes(Iterable<? extends ThreatType> values)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.BuilderaddAllThreatTypesValue(Iterable<Integer> values)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SearchHashesResponse.ThreatHash.BuilderaddThreatTypes(ThreatType value)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.BuilderaddThreatTypesValue(int value)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHashbuild()SearchHashesResponse.ThreatHashbuildPartial()SearchHashesResponse.ThreatHash.Builderclear()SearchHashesResponse.ThreatHash.BuilderclearExpireTime()The cache lifetime for the returned match.SearchHashesResponse.ThreatHash.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SearchHashesResponse.ThreatHash.BuilderclearHash()A 32 byte SHA256 hash.SearchHashesResponse.ThreatHash.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SearchHashesResponse.ThreatHash.BuilderclearThreatTypes()The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.Builderclone()SearchHashesResponse.ThreatHashgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetExpireTime()The cache lifetime for the returned match.com.google.protobuf.Timestamp.BuildergetExpireTimeBuilder()The cache lifetime for the returned match.com.google.protobuf.TimestampOrBuildergetExpireTimeOrBuilder()The cache lifetime for the returned match.com.google.protobuf.ByteStringgetHash()A 32 byte SHA256 hash.ThreatTypegetThreatTypes(int index)The ThreatList this threat belongs to.intgetThreatTypesCount()The ThreatList this threat belongs to.List<ThreatType>getThreatTypesList()The ThreatList this threat belongs to.intgetThreatTypesValue(int index)The ThreatList this threat belongs to.List<Integer>getThreatTypesValueList()The ThreatList this threat belongs to.booleanhasExpireTime()The cache lifetime for the returned match.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SearchHashesResponse.ThreatHash.BuildermergeExpireTime(com.google.protobuf.Timestamp value)The cache lifetime for the returned match.SearchHashesResponse.ThreatHash.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SearchHashesResponse.ThreatHash.BuildermergeFrom(com.google.protobuf.Message other)SearchHashesResponse.ThreatHash.BuildermergeFrom(SearchHashesResponse.ThreatHash other)SearchHashesResponse.ThreatHash.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SearchHashesResponse.ThreatHash.BuildersetExpireTime(com.google.protobuf.Timestamp value)The cache lifetime for the returned match.SearchHashesResponse.ThreatHash.BuildersetExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)The cache lifetime for the returned match.SearchHashesResponse.ThreatHash.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SearchHashesResponse.ThreatHash.BuildersetHash(com.google.protobuf.ByteString value)A 32 byte SHA256 hash.SearchHashesResponse.ThreatHash.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SearchHashesResponse.ThreatHash.BuildersetThreatTypes(int index, ThreatType value)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.BuildersetThreatTypesValue(int index, int value)The ThreatList this threat belongs to.SearchHashesResponse.ThreatHash.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
clear
public SearchHashesResponse.ThreatHash.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.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.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
getDefaultInstanceForType
public SearchHashesResponse.ThreatHash getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SearchHashesResponse.ThreatHash build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SearchHashesResponse.ThreatHash buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SearchHashesResponse.ThreatHash.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
setField
public SearchHashesResponse.ThreatHash.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
clearField
public SearchHashesResponse.ThreatHash.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
clearOneof
public SearchHashesResponse.ThreatHash.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
setRepeatedField
public SearchHashesResponse.ThreatHash.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
addRepeatedField
public SearchHashesResponse.ThreatHash.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
mergeFrom
public SearchHashesResponse.ThreatHash.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchHashesResponse.ThreatHash.Builder>
-
mergeFrom
public SearchHashesResponse.ThreatHash.Builder mergeFrom(SearchHashesResponse.ThreatHash other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
mergeFrom
public SearchHashesResponse.ThreatHash.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<SearchHashesResponse.ThreatHash.Builder>- Throws:
IOException
-
getThreatTypesList
public 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;- Specified by:
getThreatTypesListin interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- A list containing the threatTypes.
-
getThreatTypesCount
public int getThreatTypesCount()
The ThreatList this threat belongs to. This must contain at least one entry.
repeated .google.cloud.webrisk.v1beta1.ThreatType threat_types = 1;- Specified by:
getThreatTypesCountin interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- The count of threatTypes.
-
getThreatTypes
public 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;- Specified by:
getThreatTypesin interfaceSearchHashesResponse.ThreatHashOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The threatTypes at the given index.
-
setThreatTypes
public 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;- Parameters:
index- The index to set the value at.value- The threatTypes to set.- Returns:
- This builder for chaining.
-
addThreatTypes
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;- Parameters:
value- The threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypes
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;- Parameters:
values- The threatTypes to add.- Returns:
- This builder for chaining.
-
clearThreatTypes
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;- Returns:
- This builder for chaining.
-
getThreatTypesValueList
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;- Specified by:
getThreatTypesValueListin interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- A list containing the enum numeric values on the wire for threatTypes.
-
getThreatTypesValue
public 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;- Specified by:
getThreatTypesValuein interfaceSearchHashesResponse.ThreatHashOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of threatTypes at the given index.
-
setThreatTypesValue
public 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;- 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
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;- Parameters:
value- The enum numeric value on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-
addAllThreatTypesValue
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;- Parameters:
values- The enum numeric values on the wire for threatTypes to add.- Returns:
- This builder for chaining.
-
getHash
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;- Specified by:
getHashin interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- The hash.
-
setHash
public 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;- Parameters:
value- The hash to set.- Returns:
- This builder for chaining.
-
clearHash
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;- Returns:
- This builder for chaining.
-
hasExpireTime
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;- Specified by:
hasExpireTimein interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- Whether the expireTime field is set.
-
getExpireTime
public 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;- Specified by:
getExpireTimein interfaceSearchHashesResponse.ThreatHashOrBuilder- Returns:
- The expireTime.
-
setExpireTime
public 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;
-
setExpireTime
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;
-
mergeExpireTime
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;
-
clearExpireTime
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;
-
getExpireTimeBuilder
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;
-
getExpireTimeOrBuilder
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;- Specified by:
getExpireTimeOrBuilderin interfaceSearchHashesResponse.ThreatHashOrBuilder
-
setUnknownFields
public final SearchHashesResponse.ThreatHash.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
mergeUnknownFields
public final SearchHashesResponse.ThreatHash.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SearchHashesResponse.ThreatHash.Builder>
-
-