Class ComputeThreatListDiffResponse.Builder (2.54.0)

public static final class ComputeThreatListDiffResponse.Builder extends GeneratedMessageV3.Builder<ComputeThreatListDiffResponse.Builder> implements ComputeThreatListDiffResponseOrBuilder

Protobuf type google.cloud.webrisk.v1.ComputeThreatListDiffResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

build()

public ComputeThreatListDiffResponse build()
Returns
Type Description
ComputeThreatListDiffResponse

buildPartial()

public ComputeThreatListDiffResponse buildPartial()
Returns
Type Description
ComputeThreatListDiffResponse

clear()

public ComputeThreatListDiffResponse.Builder clear()
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

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;

Returns
Type Description
ComputeThreatListDiffResponse.Builder

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;

Returns
Type Description
ComputeThreatListDiffResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeThreatListDiffResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

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
Type Description
ComputeThreatListDiffResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeThreatListDiffResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

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;

Returns
Type Description
ComputeThreatListDiffResponse.Builder

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;

Returns
Type Description
ComputeThreatListDiffResponse.Builder

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
Type Description
ComputeThreatListDiffResponse.Builder

This builder for chaining.

clone()

public ComputeThreatListDiffResponse.Builder clone()
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

getAdditions()

public ThreatEntryAdditions getAdditions()

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;

Returns
Type Description
ThreatEntryAdditions

The additions.

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;

Returns
Type Description
ThreatEntryAdditions.Builder

getAdditionsOrBuilder()

public ThreatEntryAdditionsOrBuilder getAdditionsOrBuilder()

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;

Returns
Type Description
ThreatEntryAdditionsOrBuilder

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;

Returns
Type Description
ComputeThreatListDiffResponse.Checksum

The checksum.

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;

Returns
Type Description
ComputeThreatListDiffResponse.Checksum.Builder

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;

Returns
Type Description
ComputeThreatListDiffResponse.ChecksumOrBuilder

getDefaultInstanceForType()

public ComputeThreatListDiffResponse getDefaultInstanceForType()
Returns
Type Description
ComputeThreatListDiffResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNewVersionToken()

public 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;

Returns
Type Description
ByteString

The newVersionToken.

getRecommendedNextDiff()

public 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;

Returns
Type Description
Timestamp

The recommendedNextDiff.

getRecommendedNextDiffBuilder()

public 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;

Returns
Type Description
Builder

getRecommendedNextDiffOrBuilder()

public 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;

Returns
Type Description
TimestampOrBuilder

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;

Returns
Type Description
ThreatEntryRemovals

The removals.

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;

Returns
Type Description
ThreatEntryRemovals.Builder

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;

Returns
Type Description
ThreatEntryRemovalsOrBuilder

getResponseType()

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

Returns
Type Description
ComputeThreatListDiffResponse.ResponseType

The responseType.

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;

Returns
Type Description
int

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.v1.ThreatEntryAdditions additions = 5;

Returns
Type Description
boolean

Whether the additions 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 discard this diff and retry later.

.google.cloud.webrisk.v1.ComputeThreatListDiffResponse.Checksum checksum = 8;

Returns
Type Description
boolean

Whether the checksum field is set.

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;

Returns
Type Description
boolean

Whether the recommendedNextDiff 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.v1.ThreatEntryRemovals removals = 6;

Returns
Type Description
boolean

Whether the removals field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdditions(ThreatEntryAdditions value)

public ComputeThreatListDiffResponse.Builder mergeAdditions(ThreatEntryAdditions value)

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;

Parameter
Name Description
value ThreatEntryAdditions
Returns
Type Description
ComputeThreatListDiffResponse.Builder

mergeChecksum(ComputeThreatListDiffResponse.Checksum value)

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;

Parameter
Name Description
value ComputeThreatListDiffResponse.Checksum
Returns
Type Description
ComputeThreatListDiffResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeThreatListDiffResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ComputeThreatListDiffResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

mergeFrom(ComputeThreatListDiffResponse other)

public ComputeThreatListDiffResponse.Builder mergeFrom(ComputeThreatListDiffResponse other)
Parameter
Name Description
other ComputeThreatListDiffResponse
Returns
Type Description
ComputeThreatListDiffResponse.Builder

mergeRecommendedNextDiff(Timestamp value)

public ComputeThreatListDiffResponse.Builder mergeRecommendedNextDiff(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeThreatListDiffResponse.Builder

mergeRemovals(ThreatEntryRemovals value)

public ComputeThreatListDiffResponse.Builder mergeRemovals(ThreatEntryRemovals value)

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;

Parameter
Name Description
value ThreatEntryRemovals
Returns
Type Description
ComputeThreatListDiffResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

setAdditions(ThreatEntryAdditions value)

public ComputeThreatListDiffResponse.Builder setAdditions(ThreatEntryAdditions value)

A set of entries to add to a local threat type's list.

.google.cloud.webrisk.v1.ThreatEntryAdditions additions = 5;

Parameter
Name Description
value ThreatEntryAdditions
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setAdditions(ThreatEntryAdditions.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ThreatEntryAdditions.Builder
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setChecksum(ComputeThreatListDiffResponse.Checksum value)

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;

Parameter
Name Description
value ComputeThreatListDiffResponse.Checksum
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setChecksum(ComputeThreatListDiffResponse.Checksum.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ComputeThreatListDiffResponse.Checksum.Builder
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

setNewVersionToken(ByteString value)

public ComputeThreatListDiffResponse.Builder setNewVersionToken(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;

Parameter
Name Description
value ByteString

The newVersionToken to set.

Returns
Type Description
ComputeThreatListDiffResponse.Builder

This builder for chaining.

setRecommendedNextDiff(Timestamp value)

public ComputeThreatListDiffResponse.Builder setRecommendedNextDiff(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;

Parameter
Name Description
value Timestamp
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setRecommendedNextDiff(Timestamp.Builder builderForValue)

public ComputeThreatListDiffResponse.Builder setRecommendedNextDiff(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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setRemovals(ThreatEntryRemovals value)

public ComputeThreatListDiffResponse.Builder setRemovals(ThreatEntryRemovals value)

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;

Parameter
Name Description
value ThreatEntryRemovals
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setRemovals(ThreatEntryRemovals.Builder builderForValue)

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;

Parameter
Name Description
builderForValue ThreatEntryRemovals.Builder
Returns
Type Description
ComputeThreatListDiffResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ComputeThreatListDiffResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides

setResponseType(ComputeThreatListDiffResponse.ResponseType value)

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;

Parameter
Name Description
value ComputeThreatListDiffResponse.ResponseType

The responseType to set.

Returns
Type Description
ComputeThreatListDiffResponse.Builder

This builder for chaining.

setResponseTypeValue(int value)

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;

Parameter
Name Description
value int

The enum numeric value on the wire for responseType to set.

Returns
Type Description
ComputeThreatListDiffResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ComputeThreatListDiffResponse.Builder
Overrides