Class SearchHashesResponse.Builder (2.36.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.webrisk.v1.SearchHashesResponse.ThreatHash>
Returns
TypeDescription
SearchHashesResponse.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SearchHashesResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueSearchHashesResponse.ThreatHash
Returns
TypeDescription
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
NameDescription
builderForValueSearchHashesResponse.ThreatHash.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueSearchHashesResponse.ThreatHash
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSearchHashesResponse.ThreatHash.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchHashesResponse.ThreatHash.Builder

build()

public SearchHashesResponse build()
Returns
TypeDescription
SearchHashesResponse

buildPartial()

public SearchHashesResponse buildPartial()
Returns
TypeDescription
SearchHashesResponse

clear()

public SearchHashesResponse.Builder clear()
Returns
TypeDescription
SearchHashesResponse.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SearchHashesResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
SearchHashesResponse.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SearchHashesResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SearchHashesResponse.Builder

clone()

public SearchHashesResponse.Builder clone()
Returns
TypeDescription
SearchHashesResponse.Builder
Overrides

getDefaultInstanceForType()

public SearchHashesResponse getDefaultInstanceForType()
Returns
TypeDescription
SearchHashesResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the negativeExpireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SearchHashesResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SearchHashesResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SearchHashesResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SearchHashesResponse.Builder
Overrides

mergeFrom(SearchHashesResponse other)

public SearchHashesResponse.Builder mergeFrom(SearchHashesResponse other)
Parameter
NameDescription
otherSearchHashesResponse
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
SearchHashesResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SearchHashesResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
SearchHashesResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SearchHashesResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
SearchHashesResponse.Builder

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

public SearchHashesResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
indexint
valueSearchHashesResponse.ThreatHash
Returns
TypeDescription
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
NameDescription
indexint
builderForValueSearchHashesResponse.ThreatHash.Builder
Returns
TypeDescription
SearchHashesResponse.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final SearchHashesResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SearchHashesResponse.Builder
Overrides