Class ThreatEntryAdditions.Builder (2.41.0)

public static final class ThreatEntryAdditions.Builder extends GeneratedMessageV3.Builder<ThreatEntryAdditions.Builder> implements ThreatEntryAdditionsOrBuilder

Contains the set of entries to add to a local database. May contain a combination of compressed and raw data in a single response.

Protobuf type google.cloud.webrisk.v1.ThreatEntryAdditions

Static Methods

getDescriptor()

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

Methods

addAllRawHashes(Iterable<? extends RawHashes> values)

public ThreatEntryAdditions.Builder addAllRawHashes(Iterable<? extends RawHashes> values)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
values Iterable<? extends com.google.webrisk.v1.RawHashes>
Returns
Type Description
ThreatEntryAdditions.Builder

addRawHashes(RawHashes value)

public ThreatEntryAdditions.Builder addRawHashes(RawHashes value)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
value RawHashes
Returns
Type Description
ThreatEntryAdditions.Builder

addRawHashes(RawHashes.Builder builderForValue)

public ThreatEntryAdditions.Builder addRawHashes(RawHashes.Builder builderForValue)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
builderForValue RawHashes.Builder
Returns
Type Description
ThreatEntryAdditions.Builder

addRawHashes(int index, RawHashes value)

public ThreatEntryAdditions.Builder addRawHashes(int index, RawHashes value)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameters
Name Description
index int
value RawHashes
Returns
Type Description
ThreatEntryAdditions.Builder

addRawHashes(int index, RawHashes.Builder builderForValue)

public ThreatEntryAdditions.Builder addRawHashes(int index, RawHashes.Builder builderForValue)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameters
Name Description
index int
builderForValue RawHashes.Builder
Returns
Type Description
ThreatEntryAdditions.Builder

addRawHashesBuilder()

public RawHashes.Builder addRawHashesBuilder()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
RawHashes.Builder

addRawHashesBuilder(int index)

public RawHashes.Builder addRawHashesBuilder(int index)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
index int
Returns
Type Description
RawHashes.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ThreatEntryAdditions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

build()

public ThreatEntryAdditions build()
Returns
Type Description
ThreatEntryAdditions

buildPartial()

public ThreatEntryAdditions buildPartial()
Returns
Type Description
ThreatEntryAdditions

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ThreatEntryAdditions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreatEntryAdditions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

clearRawHashes()

public ThreatEntryAdditions.Builder clearRawHashes()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
ThreatEntryAdditions.Builder

clearRiceHashes()

public ThreatEntryAdditions.Builder clearRiceHashes()

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Returns
Type Description
ThreatEntryAdditions.Builder

clone()

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

getDefaultInstanceForType()

public ThreatEntryAdditions getDefaultInstanceForType()
Returns
Type Description
ThreatEntryAdditions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getRawHashes(int index)

public RawHashes getRawHashes(int index)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
index int
Returns
Type Description
RawHashes

getRawHashesBuilder(int index)

public RawHashes.Builder getRawHashesBuilder(int index)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
index int
Returns
Type Description
RawHashes.Builder

getRawHashesBuilderList()

public List<RawHashes.Builder> getRawHashesBuilderList()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
List<Builder>

getRawHashesCount()

public int getRawHashesCount()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
int

getRawHashesList()

public List<RawHashes> getRawHashesList()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
List<RawHashes>

getRawHashesOrBuilder(int index)

public RawHashesOrBuilder getRawHashesOrBuilder(int index)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
index int
Returns
Type Description
RawHashesOrBuilder

getRawHashesOrBuilderList()

public List<? extends RawHashesOrBuilder> getRawHashesOrBuilderList()

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Returns
Type Description
List<? extends com.google.webrisk.v1.RawHashesOrBuilder>

getRiceHashes()

public RiceDeltaEncoding getRiceHashes()

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Returns
Type Description
RiceDeltaEncoding

The riceHashes.

getRiceHashesBuilder()

public RiceDeltaEncoding.Builder getRiceHashesBuilder()

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Returns
Type Description
RiceDeltaEncoding.Builder

getRiceHashesOrBuilder()

public RiceDeltaEncodingOrBuilder getRiceHashesOrBuilder()

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Returns
Type Description
RiceDeltaEncodingOrBuilder

hasRiceHashes()

public boolean hasRiceHashes()

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Returns
Type Description
boolean

Whether the riceHashes 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 ThreatEntryAdditions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeFrom(ThreatEntryAdditions other)

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

mergeRiceHashes(RiceDeltaEncoding value)

public ThreatEntryAdditions.Builder mergeRiceHashes(RiceDeltaEncoding value)

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Parameter
Name Description
value RiceDeltaEncoding
Returns
Type Description
ThreatEntryAdditions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreatEntryAdditions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

removeRawHashes(int index)

public ThreatEntryAdditions.Builder removeRawHashes(int index)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameter
Name Description
index int
Returns
Type Description
ThreatEntryAdditions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ThreatEntryAdditions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

setRawHashes(int index, RawHashes value)

public ThreatEntryAdditions.Builder setRawHashes(int index, RawHashes value)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameters
Name Description
index int
value RawHashes
Returns
Type Description
ThreatEntryAdditions.Builder

setRawHashes(int index, RawHashes.Builder builderForValue)

public ThreatEntryAdditions.Builder setRawHashes(int index, RawHashes.Builder builderForValue)

The raw SHA256-formatted entries. Repeated to allow returning sets of hashes with different prefix sizes.

repeated .google.cloud.webrisk.v1.RawHashes raw_hashes = 1;

Parameters
Name Description
index int
builderForValue RawHashes.Builder
Returns
Type Description
ThreatEntryAdditions.Builder

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

public ThreatEntryAdditions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ThreatEntryAdditions.Builder
Overrides

setRiceHashes(RiceDeltaEncoding value)

public ThreatEntryAdditions.Builder setRiceHashes(RiceDeltaEncoding value)

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Parameter
Name Description
value RiceDeltaEncoding
Returns
Type Description
ThreatEntryAdditions.Builder

setRiceHashes(RiceDeltaEncoding.Builder builderForValue)

public ThreatEntryAdditions.Builder setRiceHashes(RiceDeltaEncoding.Builder builderForValue)

The encoded 4-byte prefixes of SHA256-formatted entries, using a Golomb-Rice encoding. The hashes are converted to uint32, sorted in ascending order, then delta encoded and stored as encoded_data.

.google.cloud.webrisk.v1.RiceDeltaEncoding rice_hashes = 2;

Parameter
Name Description
builderForValue RiceDeltaEncoding.Builder
Returns
Type Description
ThreatEntryAdditions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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