Package com.google.webrisk.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()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 new opaque client version token.The soonest the client should wait before issuing any diff request.A set of entries to remove from a local threat type's list.The type of response.A 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.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.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.Descriptors.Descriptorcom.google.protobuf.ByteStringThe new opaque client version token.com.google.protobuf.TimestampThe soonest the client should wait before issuing any diff request.com.google.protobuf.Timestamp.BuilderThe 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.A set of entries to remove from a local threat type's list.The type of response.intThe type of response.booleanA 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.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 booleanA 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.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeRecommendedNextDiff(com.google.protobuf.Timestamp value) The soonest the client should wait before issuing any diff request.mergeRemovals(ThreatEntryRemovals value) A set of entries to remove from a local threat type's list.setAdditions(ThreatEntryAdditions value) A set of entries to add to a local threat type's list.setAdditions(ThreatEntryAdditions.Builder builderForValue) 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.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.setNewVersionToken(com.google.protobuf.ByteString value) The new opaque client version token.setRecommendedNextDiff(com.google.protobuf.Timestamp value) The soonest the client should wait before issuing any diff request.setRecommendedNextDiff(com.google.protobuf.Timestamp.Builder builderForValue) The soonest the client should wait before issuing any diff request.setRemovals(ThreatEntryRemovals value) A set of entries to remove from a local threat type's list.setRemovals(ThreatEntryRemovals.Builder builderForValue) A set of entries to remove from a local threat type's list.The type of response.setResponseTypeValue(int value) The type of response.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<ComputeThreatListDiffResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ComputeThreatListDiffResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ComputeThreatListDiffResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getResponseTypeValuein interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The enum numeric value on the wire for responseType.
-
setResponseTypeValue
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:
getResponseTypein interfaceComputeThreatListDiffResponseOrBuilder- Returns:
- The responseType.
-
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
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:
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.
-
setAdditions
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5; -
setAdditions
public ComputeThreatListDiffResponse.Builder setAdditions(ThreatEntryAdditions.Builder builderForValue) 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
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5; -
getAdditionsBuilder
A set of entries to add to a local threat type's list.
.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5; -
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.
-
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
public ComputeThreatListDiffResponse.Builder setRemovals(ThreatEntryRemovals.Builder builderForValue) 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
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
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
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.
-
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
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:
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.
-
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
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
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.
-
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
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:
getRecommendedNextDiffOrBuilderin interfaceComputeThreatListDiffResponseOrBuilder
-