Class SearchHashesResponse.Builder (2.41.0)

public static final class SearchHashesResponse.Builder extends GeneratedMessageV3.Builder<SearchHashesResponse.Builder> implements SearchHashesResponseOrBuilder

Protobuf type google.cloud.webrisk.v1.SearchHashesResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

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>
Returns
Type Description
SearchHashesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchHashesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchHashesResponse.Builder
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.v1.SearchHashesResponse.ThreatHash threats = 1;

Parameter
Name Description
value SearchHashesResponse.ThreatHash
Returns
Type Description
SearchHashesResponse.Builder

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;

Parameter
Name Description
builderForValue SearchHashesResponse.ThreatHash.Builder
Returns
Type Description
SearchHashesResponse.Builder

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;

Parameters
Name Description
index int
value SearchHashesResponse.ThreatHash
Returns
Type Description
SearchHashesResponse.Builder

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;

Parameters
Name Description
index int
builderForValue SearchHashesResponse.ThreatHash.Builder
Returns
Type Description
SearchHashesResponse.Builder

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;

Returns
Type Description
SearchHashesResponse.ThreatHash.Builder

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
Returns
Type Description
SearchHashesResponse.ThreatHash.Builder

build()

public SearchHashesResponse build()
Returns
Type Description
SearchHashesResponse

buildPartial()

public SearchHashesResponse buildPartial()
Returns
Type Description
SearchHashesResponse

clear()

public SearchHashesResponse.Builder clear()
Returns
Type Description
SearchHashesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchHashesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SearchHashesResponse.Builder
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
Type Description
SearchHashesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchHashesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SearchHashesResponse.Builder
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.v1.SearchHashesResponse.ThreatHash threats = 1;

Returns
Type Description
SearchHashesResponse.Builder

clone()

public SearchHashesResponse.Builder clone()
Returns
Type Description
SearchHashesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchHashesResponse getDefaultInstanceForType()
Returns
Type Description
SearchHashesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
Builder

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
Type Description
TimestampOrBuilder

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
Returns
Type Description
SearchHashesResponse.ThreatHash

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
Returns
Type Description
SearchHashesResponse.ThreatHash.Builder

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;

Returns
Type Description
List<Builder>

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;

Returns
Type Description
List<ThreatHash>

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
Returns
Type Description
SearchHashesResponse.ThreatHashOrBuilder

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchHashesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SearchHashesResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public SearchHashesResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
SearchHashesResponse.Builder
Overrides

mergeFrom(SearchHashesResponse other)

public SearchHashesResponse.Builder mergeFrom(SearchHashesResponse other)
Parameter
Name Description
other SearchHashesResponse
Returns
Type Description
SearchHashesResponse.Builder

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
Name Description
value Timestamp
Returns
Type Description
SearchHashesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchHashesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchHashesResponse.Builder
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.v1.SearchHashesResponse.ThreatHash threats = 1;

Parameter
Name Description
index int
Returns
Type Description
SearchHashesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchHashesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SearchHashesResponse.Builder
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
Name Description
value Timestamp
Returns
Type Description
SearchHashesResponse.Builder

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
Type Description
SearchHashesResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SearchHashesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SearchHashesResponse.Builder
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.v1.SearchHashesResponse.ThreatHash threats = 1;

Parameters
Name Description
index int
value SearchHashesResponse.ThreatHash
Returns
Type Description
SearchHashesResponse.Builder

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;

Parameters
Name Description
index int
builderForValue SearchHashesResponse.ThreatHash.Builder
Returns
Type Description
SearchHashesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchHashesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SearchHashesResponse.Builder
Overrides