Class ComputeThreatListDiffResponse.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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

        public ComputeThreatListDiffResponse 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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.
      • setResponseType

        public ComputeThreatListDiffResponse.Builder setResponseType​(ComputeThreatListDiffResponse.ResponseType 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 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.
      • 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;
      • 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.
      • 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;
      • 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

        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
         discard this diff and retry later.
         
        .google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum checksum = 8;
        Specified by:
        getChecksum in interface ComputeThreatListDiffResponseOrBuilder
        Returns:
        The checksum.
      • setChecksum

        public ComputeThreatListDiffResponse.Builder setChecksum​(ComputeThreatListDiffResponse.Checksum value)
         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

        public ComputeThreatListDiffResponse.Builder setChecksum​(ComputeThreatListDiffResponse.Checksum.Builder builderForValue)
         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

        public ComputeThreatListDiffResponse.Builder mergeChecksum​(ComputeThreatListDiffResponse.Checksum value)
         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

        public ComputeThreatListDiffResponse.Checksum.Builder 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;
      • 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