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:
  • 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:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.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:
      getResponseTypeValue in interface ComputeThreatListDiffResponseOrBuilder
      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:
      getResponseType in interface ComputeThreatListDiffResponseOrBuilder
      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:
      hasAdditions in interface ComputeThreatListDiffResponseOrBuilder
      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.v1.ThreatEntryAdditions additions = 5;
      Specified by:
      getAdditions in interface ComputeThreatListDiffResponseOrBuilder
      Returns:
      The additions.
    • getAdditionsOrBuilder

      public ThreatEntryAdditionsOrBuilder getAdditionsOrBuilder()
       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
      Specified by:
      getAdditionsOrBuilder in interface ComputeThreatListDiffResponseOrBuilder
    • 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:
      hasRemovals in interface ComputeThreatListDiffResponseOrBuilder
      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.v1.ThreatEntryRemovals removals = 6;
      Specified by:
      getRemovals in interface ComputeThreatListDiffResponseOrBuilder
      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.v1.ThreatEntryRemovals removals = 6;
      Specified by:
      getRemovalsOrBuilder in interface ComputeThreatListDiffResponseOrBuilder
    • 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:
      getNewVersionToken in interface ComputeThreatListDiffResponseOrBuilder
      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:
      hasChecksum in interface ComputeThreatListDiffResponseOrBuilder
      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:
      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
       discard this diff and retry later.
       
      .google.cloud.webrisk.v1.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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

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

      public static ComputeThreatListDiffResponse.Builder newBuilder()
    • newBuilder

    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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