Class ComputeThreatListDiffResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
com.google.webrisk.v1.ComputeThreatListDiffResponse.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ComputeThreatListDiffResponseOrBuilder, Cloneable
Enclosing class:
ComputeThreatListDiffResponse

public static final class ComputeThreatListDiffResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder> implements ComputeThreatListDiffResponseOrBuilder
Protobuf type google.cloud.webrisk.v1.ComputeThreatListDiffResponse
  • 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.Builder<ComputeThreatListDiffResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public ComputeThreatListDiffResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
    • mergeFrom

      public ComputeThreatListDiffResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffResponse.Builder>
      Throws:
      IOException
    • 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.
    • setResponseTypeValue

      public ComputeThreatListDiffResponse.Builder setResponseTypeValue(int value)
       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;
      Parameters:
      value - The enum numeric value on the wire for responseType to set.
      Returns:
      This builder for chaining.
    • 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.
    • setResponseType

       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;
      Parameters:
      value - The responseType to set.
      Returns:
      This builder for chaining.
    • clearResponseType

      public ComputeThreatListDiffResponse.Builder clearResponseType()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setAdditions

       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
    • setAdditions

       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
    • mergeAdditions

       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
    • clearAdditions

      public ComputeThreatListDiffResponse.Builder clearAdditions()
       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
    • getAdditionsBuilder

      public ThreatEntryAdditions.Builder getAdditionsBuilder()
       A set of entries to add to a local threat type's list.
       
      .google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;
    • 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.
    • setRemovals

       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;
    • setRemovals

       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;
    • mergeRemovals

       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;
    • clearRemovals

      public ComputeThreatListDiffResponse.Builder clearRemovals()
       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;
    • getRemovalsBuilder

      public ThreatEntryRemovals.Builder getRemovalsBuilder()
       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;
    • 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.
    • setNewVersionToken

      public ComputeThreatListDiffResponse.Builder setNewVersionToken(com.google.protobuf.ByteString value)
       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;
      Parameters:
      value - The newVersionToken to set.
      Returns:
      This builder for chaining.
    • clearNewVersionToken

      public ComputeThreatListDiffResponse.Builder clearNewVersionToken()
       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;
      Returns:
      This builder for chaining.
    • 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.
    • setChecksum

       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;
    • setChecksum

       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;
    • mergeChecksum

       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;
    • clearChecksum

      public ComputeThreatListDiffResponse.Builder clearChecksum()
       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;
    • getChecksumBuilder

       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;
    • 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.
    • setRecommendedNextDiff

      public ComputeThreatListDiffResponse.Builder setRecommendedNextDiff(com.google.protobuf.Timestamp value)
       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;
    • setRecommendedNextDiff

      public ComputeThreatListDiffResponse.Builder setRecommendedNextDiff(com.google.protobuf.Timestamp.Builder builderForValue)
       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;
    • mergeRecommendedNextDiff

      public ComputeThreatListDiffResponse.Builder mergeRecommendedNextDiff(com.google.protobuf.Timestamp value)
       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;
    • clearRecommendedNextDiff

      public ComputeThreatListDiffResponse.Builder clearRecommendedNextDiff()
       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;
    • getRecommendedNextDiffBuilder

      public com.google.protobuf.Timestamp.Builder getRecommendedNextDiffBuilder()
       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;
    • 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