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
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
Name | Description |
values | Iterable<? extends com.google.webrisk.v1beta1.RawHashes>
|
Returns
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
Returns
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
Returns
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
Returns
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
Returns
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ThreatEntryAdditions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public ThreatEntryAdditions build()
Returns
buildPartial()
public ThreatEntryAdditions buildPartial()
Returns
clear()
public ThreatEntryAdditions.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public ThreatEntryAdditions.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public ThreatEntryAdditions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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
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
clone()
public ThreatEntryAdditions.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public ThreatEntryAdditions getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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
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
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
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
Returns
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
Type | Description |
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
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
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
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
Type | Description |
boolean | Whether the riceHashes field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ThreatEntryAdditions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public ThreatEntryAdditions.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(ThreatEntryAdditions other)
public ThreatEntryAdditions.Builder mergeFrom(ThreatEntryAdditions other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ThreatEntryAdditions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public ThreatEntryAdditions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ThreatEntryAdditions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
Returns
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
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final ThreatEntryAdditions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides