Package com.google.webrisk.v1
Class ComputeThreatListDiffResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.webrisk.v1.ComputeThreatListDiffResponse
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ComputeThreatListDiffResponseOrBuilder,Serializable
@Generated
public final class ComputeThreatListDiffResponse
extends com.google.protobuf.GeneratedMessage
implements ComputeThreatListDiffResponseOrBuilder
Protobuf type
google.cloud.webrisk.v1.ComputeThreatListDiffResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typegoogle.cloud.webrisk.v1.ComputeThreatListDiffResponsestatic final classThe expected state of a client's local database.static interfacestatic enumThe type of response sent to the client.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanA set of entries to add to a local threat type's list.A set of entries to add to a local threat type's list.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.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 final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringThe new opaque client version token.com.google.protobuf.Parser<ComputeThreatListDiffResponse>com.google.protobuf.TimestampThe soonest the client should wait before issuing any diff request.com.google.protobuf.TimestampOrBuilderThe soonest the client should wait before issuing any diff request.A set of entries to remove from a local threat type's list.A set of entries to remove from a local threat type's list.The type of response.intThe type of response.intbooleanA set of entries to add to a local threat type's list.booleanThe 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()booleanThe soonest the client should wait before issuing any diff request.booleanA set of entries to remove from a local threat type's list.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ComputeThreatListDiffResponse prototype) protected ComputeThreatListDiffResponse.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ComputeThreatListDiffResponse>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
RESPONSE_TYPE_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER- See Also:
-
ADDITIONS_FIELD_NUMBER
public static final int ADDITIONS_FIELD_NUMBER- See Also:
-
REMOVALS_FIELD_NUMBER
public static final int REMOVALS_FIELD_NUMBER- See Also:
-
NEW_VERSION_TOKEN_FIELD_NUMBER
public static final int NEW_VERSION_TOKEN_FIELD_NUMBER- See Also:
-
CHECKSUM_FIELD_NUMBER
public static final int CHECKSUM_FIELD_NUMBER- See Also:
-
RECOMMENDED_NEXT_DIFF_FIELD_NUMBER
public static final int RECOMMENDED_NEXT_DIFF_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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.v1.ComputeThreatListDiffResponse.ResponseType response_type = 4;- Specified by:
getResponseTypeValuein interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The enum numeric value on the wire for 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.v1.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.v1.ThreatEntryAdditions additions = 5;- Specified by:
hasAdditionsin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- Whether the additions field is set.
-
getAdditions
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;- Specified by:
getAdditionsin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The additions.
-
getAdditionsOrBuilder
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1.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.v1.ThreatEntryRemovals removals = 6;- Specified by:
hasRemovalsin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- Whether the removals field is set.
-
getRemovals
A set of entries to remove from a local threat type's list. This field may be empty.
.google.cloud.webrisk.v1.ThreatEntryRemovals removals = 6;- Specified by:
getRemovalsin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The removals.
-
getRemovalsOrBuilder
A set of entries to remove from a local threat type's list. This field may be empty.
.google.cloud.webrisk.v1.ThreatEntryRemovals removals = 6;- Specified by:
getRemovalsOrBuilderin interfaceComputeThreatListDiffResponseOrBuilder
-
getNewVersionToken
public com.google.protobuf.ByteString getNewVersionToken()The new opaque client version token. This should be retained by the client and passed into the next call of ComputeThreatListDiff as 'version_token'. A separate version token should be stored and used for each threatList.
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 discard this diff and retry later.
.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum checksum = 8;- Specified by:
hasChecksumin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- Whether the checksum field is set.
-
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 discard this diff and retry later.
.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum checksum = 8;- Specified by:
getChecksumin interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The checksum.
-
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 discard this diff and retry later.
.google.cloud.webrisk.v1.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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static ComputeThreatListDiffResponse.Builder newBuilder(ComputeThreatListDiffResponse prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ComputeThreatListDiffResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-