Class ComputeThreatListDiffResponse (2.10.0)

public final class ComputeThreatListDiffResponse extends GeneratedMessageV3 implements ComputeThreatListDiffResponseOrBuilder

Protobuf type google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse

Static Fields

ADDITIONS_FIELD_NUMBER

public static final int ADDITIONS_FIELD_NUMBER
Field Value
TypeDescription
int

CHECKSUM_FIELD_NUMBER

public static final int CHECKSUM_FIELD_NUMBER
Field Value
TypeDescription
int

NEW_VERSION_TOKEN_FIELD_NUMBER

public static final int NEW_VERSION_TOKEN_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RECOMMENDED_NEXT_DIFF_FIELD_NUMBER
Field Value
TypeDescription
int

REMOVALS_FIELD_NUMBER

public static final int REMOVALS_FIELD_NUMBER
Field Value
TypeDescription
int

RESPONSE_TYPE_FIELD_NUMBER

public static final int RESPONSE_TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ComputeThreatListDiffResponse getDefaultInstance()
Returns
TypeDescription
ComputeThreatListDiffResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ComputeThreatListDiffResponse.Builder newBuilder()
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

newBuilder(ComputeThreatListDiffResponse prototype)

public static ComputeThreatListDiffResponse.Builder newBuilder(ComputeThreatListDiffResponse prototype)
Parameter
NameDescription
prototypeComputeThreatListDiffResponse
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

parseDelimitedFrom(InputStream input)

public static ComputeThreatListDiffResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ComputeThreatListDiffResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ComputeThreatListDiffResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ComputeThreatListDiffResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ComputeThreatListDiffResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ComputeThreatListDiffResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ComputeThreatListDiffResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ComputeThreatListDiffResponse> parser()
Returns
TypeDescription
Parser<ComputeThreatListDiffResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAdditions()

public ThreatEntryAdditions getAdditions()

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5;

Returns
TypeDescription
ThreatEntryAdditions

The additions.

getAdditionsOrBuilder()

public ThreatEntryAdditionsOrBuilder getAdditionsOrBuilder()

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5;

Returns
TypeDescription
ThreatEntryAdditionsOrBuilder

getChecksum()

public ComputeThreatListDiffResponse.Checksum getChecksum()

The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn't match the expected state, the client must disregard this diff and retry later.

.google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8;

Returns
TypeDescription
ComputeThreatListDiffResponse.Checksum

The checksum.

getChecksumOrBuilder()

public ComputeThreatListDiffResponse.ChecksumOrBuilder getChecksumOrBuilder()

The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn't match the expected state, the client must disregard this diff and retry later.

.google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8;

Returns
TypeDescription
ComputeThreatListDiffResponse.ChecksumOrBuilder

getDefaultInstanceForType()

public ComputeThreatListDiffResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeThreatListDiffResponse

getNewVersionToken()

public ByteString getNewVersionToken()

The new opaque client version token.

bytes new_version_token = 7;

Returns
TypeDescription
ByteString

The newVersionToken.

getParserForType()

public Parser<ComputeThreatListDiffResponse> getParserForType()
Returns
TypeDescription
Parser<ComputeThreatListDiffResponse>
Overrides

getRecommendedNextDiff()

public Timestamp getRecommendedNextDiff()

The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.

.google.protobuf.Timestamp recommended_next_diff = 2;

Returns
TypeDescription
Timestamp

The recommendedNextDiff.

getRecommendedNextDiffOrBuilder()

public TimestampOrBuilder getRecommendedNextDiffOrBuilder()

The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.

.google.protobuf.Timestamp recommended_next_diff = 2;

Returns
TypeDescription
TimestampOrBuilder

getRemovals()

public ThreatEntryRemovals getRemovals()

A set of entries to remove from a local threat type's list. This field may be empty.

.google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6;

Returns
TypeDescription
ThreatEntryRemovals

The removals.

getRemovalsOrBuilder()

public ThreatEntryRemovalsOrBuilder getRemovalsOrBuilder()

A set of entries to remove from a local threat type's list. This field may be empty.

.google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6;

Returns
TypeDescription
ThreatEntryRemovalsOrBuilder

getResponseType()

public ComputeThreatListDiffResponse.ResponseType getResponseType()

The type of response. This may indicate that an action must be taken by the client when the response is received.

.google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4;

Returns
TypeDescription
ComputeThreatListDiffResponse.ResponseType

The responseType.

getResponseTypeValue()

public int getResponseTypeValue()

The type of response. This may indicate that an action must be taken by the client when the response is received.

.google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.ResponseType response_type = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for responseType.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAdditions()

public boolean hasAdditions()

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5;

Returns
TypeDescription
boolean

Whether the additions field is set.

hasChecksum()

public boolean hasChecksum()

The expected SHA256 hash of the client state; that is, of the sorted list of all hashes present in the database after applying the provided diff. If the client state doesn't match the expected state, the client must disregard this diff and retry later.

.google.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse.Checksum checksum = 8;

Returns
TypeDescription
boolean

Whether the checksum field is set.

hasRecommendedNextDiff()

public boolean hasRecommendedNextDiff()

The soonest the client should wait before issuing any diff request. Querying sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable considering the use case. If this field is not set clients may update as soon as they want.

.google.protobuf.Timestamp recommended_next_diff = 2;

Returns
TypeDescription
boolean

Whether the recommendedNextDiff field is set.

hasRemovals()

public boolean hasRemovals()

A set of entries to remove from a local threat type's list. This field may be empty.

.google.cloud.webrisk.v1beta1.ThreatEntryRemovals removals = 6;

Returns
TypeDescription
boolean

Whether the removals field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ComputeThreatListDiffResponse.Builder newBuilderForType()
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ComputeThreatListDiffResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ComputeThreatListDiffResponse.Builder toBuilder()
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException