Package com.google.webrisk.v1beta1
Class ComputeThreatListDiffResponse
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.webrisk.v1beta1.ComputeThreatListDiffResponse
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ComputeThreatListDiffResponseOrBuilder
,Serializable
public final class ComputeThreatListDiffResponse extends com.google.protobuf.GeneratedMessageV3 implements ComputeThreatListDiffResponseOrBuilder
Protobuf typegoogle.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComputeThreatListDiffResponse.Builder
Protobuf typegoogle.cloud.webrisk.v1beta1.ComputeThreatListDiffResponse
static class
ComputeThreatListDiffResponse.Checksum
The expected state of a client's local database.static interface
ComputeThreatListDiffResponse.ChecksumOrBuilder
static class
ComputeThreatListDiffResponse.ResponseType
The type of response sent to the client.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADDITIONS_FIELD_NUMBER
static int
CHECKSUM_FIELD_NUMBER
static int
NEW_VERSION_TOKEN_FIELD_NUMBER
static int
RECOMMENDED_NEXT_DIFF_FIELD_NUMBER
static int
REMOVALS_FIELD_NUMBER
static int
RESPONSE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
ThreatEntryAdditions
getAdditions()
A set of entries to add to a local threat type's list.ThreatEntryAdditionsOrBuilder
getAdditionsOrBuilder()
A set of entries to add to a local threat type's list.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.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.static ComputeThreatListDiffResponse
getDefaultInstance()
ComputeThreatListDiffResponse
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.ByteString
getNewVersionToken()
The new opaque client version token.com.google.protobuf.Parser<ComputeThreatListDiffResponse>
getParserForType()
com.google.protobuf.Timestamp
getRecommendedNextDiff()
The soonest the client should wait before issuing any diff request.com.google.protobuf.TimestampOrBuilder
getRecommendedNextDiffOrBuilder()
The soonest the client should wait before issuing any diff request.ThreatEntryRemovals
getRemovals()
A set of entries to remove from a local threat type's list.ThreatEntryRemovalsOrBuilder
getRemovalsOrBuilder()
A set of entries to remove from a local threat type's list.ComputeThreatListDiffResponse.ResponseType
getResponseType()
The type of response.int
getResponseTypeValue()
The type of response.int
getSerializedSize()
boolean
hasAdditions()
A set of entries to add to a local threat type's list.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.int
hashCode()
boolean
hasRecommendedNextDiff()
The soonest the client should wait before issuing any diff request.boolean
hasRemovals()
A set of entries to remove from a local threat type's list.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static ComputeThreatListDiffResponse.Builder
newBuilder()
static ComputeThreatListDiffResponse.Builder
newBuilder(ComputeThreatListDiffResponse prototype)
ComputeThreatListDiffResponse.Builder
newBuilderForType()
protected ComputeThreatListDiffResponse.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static ComputeThreatListDiffResponse
parseDelimitedFrom(InputStream input)
static ComputeThreatListDiffResponse
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeThreatListDiffResponse
parseFrom(byte[] data)
static ComputeThreatListDiffResponse
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeThreatListDiffResponse
parseFrom(com.google.protobuf.ByteString data)
static ComputeThreatListDiffResponse
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeThreatListDiffResponse
parseFrom(com.google.protobuf.CodedInputStream input)
static ComputeThreatListDiffResponse
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeThreatListDiffResponse
parseFrom(InputStream input)
static ComputeThreatListDiffResponse
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static ComputeThreatListDiffResponse
parseFrom(ByteBuffer data)
static ComputeThreatListDiffResponse
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<ComputeThreatListDiffResponse>
parser()
ComputeThreatListDiffResponse.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ADDITIONS_FIELD_NUMBER
public static final int ADDITIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REMOVALS_FIELD_NUMBER
public static final int REMOVALS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NEW_VERSION_TOKEN_FIELD_NUMBER
public static final int NEW_VERSION_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHECKSUM_FIELD_NUMBER
public static final int CHECKSUM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECOMMENDED_NEXT_DIFF_FIELD_NUMBER
public static final int RECOMMENDED_NEXT_DIFF_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
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;
- Specified by:
getResponseTypeValue
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- The enum numeric value on the wire for responseType.
-
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;
- Specified by:
getResponseType
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- The responseType.
-
hasAdditions
public boolean hasAdditions()
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5;
- Specified by:
hasAdditions
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- Whether the additions field is set.
-
getAdditions
public ThreatEntryAdditions getAdditions()
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1beta1.ThreatEntryAdditions additions = 5;
- Specified by:
getAdditions
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- 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;
- Specified by:
getAdditionsOrBuilder
in interfaceComputeThreatListDiffResponseOrBuilder
-
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;
- Specified by:
hasRemovals
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- Whether the removals field is set.
-
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;
- Specified by:
getRemovals
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- 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;
- Specified by:
getRemovalsOrBuilder
in interfaceComputeThreatListDiffResponseOrBuilder
-
getNewVersionToken
public com.google.protobuf.ByteString getNewVersionToken()
The new opaque client version token.
bytes new_version_token = 7;
- Specified by:
getNewVersionToken
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- The newVersionToken.
-
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;
- Specified by:
hasChecksum
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- Whether the checksum field is set.
-
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;
- Specified by:
getChecksum
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- 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;
- Specified by:
getChecksumOrBuilder
in interfaceComputeThreatListDiffResponseOrBuilder
-
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;
- Specified by:
hasRecommendedNextDiff
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- Whether the recommendedNextDiff field is set.
-
getRecommendedNextDiff
public com.google.protobuf.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;
- Specified by:
getRecommendedNextDiff
in interfaceComputeThreatListDiffResponseOrBuilder
- Returns:
- The recommendedNextDiff.
-
getRecommendedNextDiffOrBuilder
public com.google.protobuf.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;
- Specified by:
getRecommendedNextDiffOrBuilder
in interfaceComputeThreatListDiffResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeThreatListDiffResponse parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ComputeThreatListDiffResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ComputeThreatListDiffResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ComputeThreatListDiffResponse.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ComputeThreatListDiffResponse.Builder newBuilder()
-
newBuilder
public static ComputeThreatListDiffResponse.Builder newBuilder(ComputeThreatListDiffResponse prototype)
-
toBuilder
public ComputeThreatListDiffResponse.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeThreatListDiffResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ComputeThreatListDiffResponse getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ComputeThreatListDiffResponse> parser()
-
getParserForType
public com.google.protobuf.Parser<ComputeThreatListDiffResponse> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ComputeThreatListDiffResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-