public static final class SearchHashesResponse.Builder extends GeneratedMessage.Builder<SearchHashesResponse.Builder> implements SearchHashesResponseOrBuilder
Protobuf type google.cloud.webrisk.v1.SearchHashesResponse
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllThreats(Iterable<? extends SearchHashesResponse.ThreatHash> values)
public SearchHashesResponse.Builder addAllThreats(Iterable<? extends SearchHashesResponse.ThreatHash> values)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.webrisk.v1.SearchHashesResponse.ThreatHash>
|
addThreats(SearchHashesResponse.ThreatHash value)
public SearchHashesResponse.Builder addThreats(SearchHashesResponse.ThreatHash value)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
addThreats(SearchHashesResponse.ThreatHash.Builder builderForValue)
public SearchHashesResponse.Builder addThreats(SearchHashesResponse.ThreatHash.Builder builderForValue)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
addThreats(int index, SearchHashesResponse.ThreatHash value)
public SearchHashesResponse.Builder addThreats(int index, SearchHashesResponse.ThreatHash value)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
addThreats(int index, SearchHashesResponse.ThreatHash.Builder builderForValue)
public SearchHashesResponse.Builder addThreats(int index, SearchHashesResponse.ThreatHash.Builder builderForValue)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
addThreatsBuilder()
public SearchHashesResponse.ThreatHash.Builder addThreatsBuilder()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
addThreatsBuilder(int index)
public SearchHashesResponse.ThreatHash.Builder addThreatsBuilder(int index)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
index |
int
|
build()
public SearchHashesResponse build()
buildPartial()
public SearchHashesResponse buildPartial()
clear()
public SearchHashesResponse.Builder clear()
Overrides
clearNegativeExpireTime()
public SearchHashesResponse.Builder clearNegativeExpireTime()
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
clearThreats()
public SearchHashesResponse.Builder clearThreats()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
getDefaultInstanceForType()
public SearchHashesResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getNegativeExpireTime()
public Timestamp getNegativeExpireTime()
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
| Returns |
| Type |
Description |
Timestamp |
The negativeExpireTime.
|
getNegativeExpireTimeBuilder()
public Timestamp.Builder getNegativeExpireTimeBuilder()
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
getNegativeExpireTimeOrBuilder()
public TimestampOrBuilder getNegativeExpireTimeOrBuilder()
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
getThreats(int index)
public SearchHashesResponse.ThreatHash getThreats(int index)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
index |
int
|
getThreatsBuilder(int index)
public SearchHashesResponse.ThreatHash.Builder getThreatsBuilder(int index)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
index |
int
|
getThreatsBuilderList()
public List<SearchHashesResponse.ThreatHash.Builder> getThreatsBuilderList()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
getThreatsCount()
public int getThreatsCount()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Returns |
| Type |
Description |
int |
|
getThreatsList()
public List<SearchHashesResponse.ThreatHash> getThreatsList()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
getThreatsOrBuilder(int index)
public SearchHashesResponse.ThreatHashOrBuilder getThreatsOrBuilder(int index)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
index |
int
|
getThreatsOrBuilderList()
public List<? extends SearchHashesResponse.ThreatHashOrBuilder> getThreatsOrBuilderList()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Returns |
| Type |
Description |
List<? extends com.google.webrisk.v1.SearchHashesResponse.ThreatHashOrBuilder> |
|
hasNegativeExpireTime()
public boolean hasNegativeExpireTime()
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
| Returns |
| Type |
Description |
boolean |
Whether the negativeExpireTime field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public SearchHashesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchHashesResponse.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeFrom(SearchHashesResponse other)
public SearchHashesResponse.Builder mergeFrom(SearchHashesResponse other)
mergeNegativeExpireTime(Timestamp value)
public SearchHashesResponse.Builder mergeNegativeExpireTime(Timestamp value)
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
removeThreats(int index)
public SearchHashesResponse.Builder removeThreats(int index)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
| Parameter |
| Name |
Description |
index |
int
|
setNegativeExpireTime(Timestamp value)
public SearchHashesResponse.Builder setNegativeExpireTime(Timestamp value)
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
setNegativeExpireTime(Timestamp.Builder builderForValue)
public SearchHashesResponse.Builder setNegativeExpireTime(Timestamp.Builder builderForValue)
For requested entities that did not match the threat list, how long to
cache the response until.
.google.protobuf.Timestamp negative_expire_time = 2;
| Parameter |
| Name |
Description |
builderForValue |
Builder
|
setThreats(int index, SearchHashesResponse.ThreatHash value)
public SearchHashesResponse.Builder setThreats(int index, SearchHashesResponse.ThreatHash value)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;
setThreats(int index, SearchHashesResponse.ThreatHash.Builder builderForValue)
public SearchHashesResponse.Builder setThreats(int index, SearchHashesResponse.ThreatHash.Builder builderForValue)
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1.SearchHashesResponse.ThreatHash threats = 1;