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 classComputeThreatListDiffResponse.BuilderProtobuf typegoogle.cloud.webrisk.v1beta1.ComputeThreatListDiffResponsestatic classComputeThreatListDiffResponse.ChecksumThe expected state of a client's local database.static interfaceComputeThreatListDiffResponse.ChecksumOrBuilderstatic classComputeThreatListDiffResponse.ResponseTypeThe 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 intADDITIONS_FIELD_NUMBERstatic intCHECKSUM_FIELD_NUMBERstatic intNEW_VERSION_TOKEN_FIELD_NUMBERstatic intRECOMMENDED_NEXT_DIFF_FIELD_NUMBERstatic intREMOVALS_FIELD_NUMBERstatic intRESPONSE_TYPE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)ThreatEntryAdditionsgetAdditions()A set of entries to add to a local threat type's list.ThreatEntryAdditionsOrBuildergetAdditionsOrBuilder()A set of entries to add to a local threat type's list.ComputeThreatListDiffResponse.ChecksumgetChecksum()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.ChecksumOrBuildergetChecksumOrBuilder()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 ComputeThreatListDiffResponsegetDefaultInstance()ComputeThreatListDiffResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.ByteStringgetNewVersionToken()The new opaque client version token.com.google.protobuf.Parser<ComputeThreatListDiffResponse>getParserForType()com.google.protobuf.TimestampgetRecommendedNextDiff()The soonest the client should wait before issuing any diff request.com.google.protobuf.TimestampOrBuildergetRecommendedNextDiffOrBuilder()The soonest the client should wait before issuing any diff request.ThreatEntryRemovalsgetRemovals()A set of entries to remove from a local threat type's list.ThreatEntryRemovalsOrBuildergetRemovalsOrBuilder()A set of entries to remove from a local threat type's list.ComputeThreatListDiffResponse.ResponseTypegetResponseType()The type of response.intgetResponseTypeValue()The type of response.intgetSerializedSize()booleanhasAdditions()A set of entries to add to a local threat type's list.booleanhasChecksum()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.inthashCode()booleanhasRecommendedNextDiff()The soonest the client should wait before issuing any diff request.booleanhasRemovals()A set of entries to remove from a local threat type's list.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ComputeThreatListDiffResponse.BuildernewBuilder()static ComputeThreatListDiffResponse.BuildernewBuilder(ComputeThreatListDiffResponse prototype)ComputeThreatListDiffResponse.BuildernewBuilderForType()protected ComputeThreatListDiffResponse.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ComputeThreatListDiffResponseparseDelimitedFrom(InputStream input)static ComputeThreatListDiffResponseparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeThreatListDiffResponseparseFrom(byte[] data)static ComputeThreatListDiffResponseparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeThreatListDiffResponseparseFrom(com.google.protobuf.ByteString data)static ComputeThreatListDiffResponseparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeThreatListDiffResponseparseFrom(com.google.protobuf.CodedInputStream input)static ComputeThreatListDiffResponseparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeThreatListDiffResponseparseFrom(InputStream input)static ComputeThreatListDiffResponseparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ComputeThreatListDiffResponseparseFrom(ByteBuffer data)static ComputeThreatListDiffResponseparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<ComputeThreatListDiffResponse>parser()ComputeThreatListDiffResponse.BuildertoBuilder()voidwriteTo(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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein 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:
getResponseTypeValuein 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:
getResponseTypein 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:
hasAdditionsin 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:
getAdditionsin 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:
getAdditionsOrBuilderin 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:
hasRemovalsin 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:
getRemovalsin 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:
getRemovalsOrBuilderin interfaceComputeThreatListDiffResponseOrBuilder
-
getNewVersionToken
public com.google.protobuf.ByteString getNewVersionToken()
The new opaque client version token.
bytes new_version_token = 7;- Specified by:
getNewVersionTokenin 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:
hasChecksumin 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:
getChecksumin 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:
getChecksumOrBuilderin 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:
hasRecommendedNextDiffin 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:
getRecommendedNextDiffin 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:
getRecommendedNextDiffOrBuilderin interfaceComputeThreatListDiffResponseOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeThreatListDiffResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ComputeThreatListDiffResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-