public static final class RawHashes.Builder extends GeneratedMessageV3.Builder<RawHashes.Builder> implements RawHashesOrBuilder
The uncompressed threat entries in hash format.
Hashes can be anywhere from 4 to 32 bytes in size. A large majority are 4
bytes, but some hashes are lengthened if they collide with the hash of a
popular URI.
Used for sending ThreatEntryAdditons to clients that do not support
compression, or when sending non-4-byte hashes to clients that do support
compression.
Protobuf type google.cloud.webrisk.v1.RawHashes
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RawHashes.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
buildPartial()
public RawHashes buildPartial()
clear()
public RawHashes.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public RawHashes.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public RawHashes.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPrefixSize()
public RawHashes.Builder clearPrefixSize()
The number of bytes for each prefix encoded below. This field can be
anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
In practice this is almost always 4, except in exceptional circumstances.
int32 prefix_size = 1;
clearRawHashes()
public RawHashes.Builder clearRawHashes()
The hashes, in binary format, concatenated into one long string. Hashes are
sorted in lexicographic order. For JSON API users, hashes are
base64-encoded.
bytes raw_hashes = 2;
clone()
public RawHashes.Builder clone()
Overrides
getDefaultInstanceForType()
public RawHashes getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPrefixSize()
public int getPrefixSize()
The number of bytes for each prefix encoded below. This field can be
anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
In practice this is almost always 4, except in exceptional circumstances.
int32 prefix_size = 1;
Returns |
---|
Type | Description |
int | The prefixSize.
|
getRawHashes()
public ByteString getRawHashes()
The hashes, in binary format, concatenated into one long string. Hashes are
sorted in lexicographic order. For JSON API users, hashes are
base64-encoded.
bytes raw_hashes = 2;
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public RawHashes.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RawHashes.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(RawHashes other)
public RawHashes.Builder mergeFrom(RawHashes other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RawHashes.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public RawHashes.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPrefixSize(int value)
public RawHashes.Builder setPrefixSize(int value)
The number of bytes for each prefix encoded below. This field can be
anywhere from 4 (shortest prefix) to 32 (full SHA256 hash).
In practice this is almost always 4, except in exceptional circumstances.
int32 prefix_size = 1;
Parameter |
---|
Name | Description |
value | int
The prefixSize to set.
|
setRawHashes(ByteString value)
public RawHashes.Builder setRawHashes(ByteString value)
The hashes, in binary format, concatenated into one long string. Hashes are
sorted in lexicographic order. For JSON API users, hashes are
base64-encoded.
bytes raw_hashes = 2;
Parameter |
---|
Name | Description |
value | ByteString
The rawHashes to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RawHashes.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final RawHashes.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides