Class ThreatEntryAdditions.Builder (2.22.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.v1beta1.ThreatEntryAdditions

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.webrisk.v1beta1.RawHashes>
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
valueRawHashes
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
builderForValueRawHashes.Builder
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameters
NameDescription
indexint
valueRawHashes
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameters
NameDescription
indexint
builderForValueRawHashes.Builder
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
RawHashes.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ThreatEntryAdditions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ThreatEntryAdditions.Builder
Overrides

build()

public ThreatEntryAdditions build()
Returns
TypeDescription
ThreatEntryAdditions

buildPartial()

public ThreatEntryAdditions buildPartial()
Returns
TypeDescription
ThreatEntryAdditions

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ThreatEntryAdditions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ThreatEntryAdditions.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ThreatEntryAdditions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Returns
TypeDescription
ThreatEntryAdditions.Builder

clone()

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

getDefaultInstanceForType()

public ThreatEntryAdditions getDefaultInstanceForType()
Returns
TypeDescription
ThreatEntryAdditions

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Returns
TypeDescription
List<? extends com.google.webrisk.v1beta1.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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Returns
TypeDescription
boolean

Whether the riceHashes 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 ThreatEntryAdditions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ThreatEntryAdditions.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

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

mergeFrom(ThreatEntryAdditions other)

public ThreatEntryAdditions.Builder mergeFrom(ThreatEntryAdditions other)
Parameter
NameDescription
otherThreatEntryAdditions
Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Parameter
NameDescription
valueRiceDeltaEncoding
Returns
TypeDescription
ThreatEntryAdditions.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ThreatEntryAdditions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
ThreatEntryAdditions.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ThreatEntryAdditions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameters
NameDescription
indexint
valueRawHashes
Returns
TypeDescription
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.v1beta1.RawHashes raw_hashes = 1;

Parameters
NameDescription
indexint
builderForValueRawHashes.Builder
Returns
TypeDescription
ThreatEntryAdditions.Builder

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

public ThreatEntryAdditions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Parameter
NameDescription
valueRiceDeltaEncoding
Returns
TypeDescription
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.v1beta1.RiceDeltaEncoding rice_hashes = 2;

Parameter
NameDescription
builderForValueRiceDeltaEncoding.Builder
Returns
TypeDescription
ThreatEntryAdditions.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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