Class ComputeThreatListDiffResponse

    • Field Detail

      • RESPONSE_TYPE_FIELD_NUMBER

        public static final int RESPONSE_TYPE_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
      • 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 class com.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 class com.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 interface ComputeThreatListDiffResponseOrBuilder
        Returns:
        The enum numeric value on the wire for 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 interface ComputeThreatListDiffResponseOrBuilder
        Returns:
        Whether the additions 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;
        Specified by:
        hasRemovals in interface ComputeThreatListDiffResponseOrBuilder
        Returns:
        Whether the removals 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;
        Specified by:
        hasChecksum in interface ComputeThreatListDiffResponseOrBuilder
        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 interface ComputeThreatListDiffResponseOrBuilder
        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 interface ComputeThreatListDiffResponseOrBuilder
      • 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 interface ComputeThreatListDiffResponseOrBuilder
        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 interface ComputeThreatListDiffResponseOrBuilder
        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 interface ComputeThreatListDiffResponseOrBuilder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public ComputeThreatListDiffResponse.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public ComputeThreatListDiffResponse.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected ComputeThreatListDiffResponse.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ComputeThreatListDiffResponse> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public ComputeThreatListDiffResponse getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder