public static final class SearchHashesResponse.Builder extends GeneratedMessageV3.Builder<SearchHashesResponse.Builder> implements SearchHashesResponseOrBuilder
Protobuf type google.cloud.webrisk.v1beta1.SearchHashesResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.webrisk.v1beta1.SearchHashesResponse.ThreatHash>
|
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchHashesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameters
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameters
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
build()
public SearchHashesResponse build()
Returns
buildPartial()
public SearchHashesResponse buildPartial()
Returns
clear()
public SearchHashesResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchHashesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
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;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchHashesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
clone()
public SearchHashesResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchHashesResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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;
Returns
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;
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
getThreatsCount()
public int getThreatsCount()
The full hashes that matched the requested prefixes.
The hash will be populated in the key.
repeated .google.cloud.webrisk.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Returns
Type | Description |
List<? extends com.google.webrisk.v1beta1.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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public SearchHashesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchHashesResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(SearchHashesResponse other)
public SearchHashesResponse.Builder mergeFrom(SearchHashesResponse other)
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchHashesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SearchHashesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
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;
Parameter
Returns
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
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchHashesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameters
Returns
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.v1beta1.SearchHashesResponse.ThreatHash threats = 1;
Parameters
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchHashesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides