Class ComputeThreatListDiffResponse.Builder (2.35.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder
Overrides

build()

public ComputeThreatListDiffResponse build()
Returns
TypeDescription
ComputeThreatListDiffResponse

buildPartial()

public ComputeThreatListDiffResponse buildPartial()
Returns
TypeDescription
ComputeThreatListDiffResponse

clear()

public ComputeThreatListDiffResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeThreatListDiffResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeThreatListDiffResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ComputeThreatListDiffResponse.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeThreatListDiffResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeThreatListDiffResponse.Builder

This builder for chaining.

clone()

public ComputeThreatListDiffResponse.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ComputeThreatListDiffResponse.ChecksumOrBuilder

getDefaultInstanceForType()

public ComputeThreatListDiffResponse getDefaultInstanceForType()
Returns
TypeDescription
ComputeThreatListDiffResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the removals field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueThreatEntryAdditions
Returns
TypeDescription
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
NameDescription
valueComputeThreatListDiffResponse.Checksum
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ComputeThreatListDiffResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ComputeThreatListDiffResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder
Overrides

mergeFrom(ComputeThreatListDiffResponse other)

public ComputeThreatListDiffResponse.Builder mergeFrom(ComputeThreatListDiffResponse other)
Parameter
NameDescription
otherComputeThreatListDiffResponse
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
valueThreatEntryRemovals
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueThreatEntryAdditions
Returns
TypeDescription
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
NameDescription
builderForValueThreatEntryAdditions.Builder
Returns
TypeDescription
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
NameDescription
valueComputeThreatListDiffResponse.Checksum
Returns
TypeDescription
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
NameDescription
builderForValueComputeThreatListDiffResponse.Checksum.Builder
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public ComputeThreatListDiffResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueByteString

The newVersionToken to set.

Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueThreatEntryRemovals
Returns
TypeDescription
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
NameDescription
builderForValueThreatEntryRemovals.Builder
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

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

public ComputeThreatListDiffResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueComputeThreatListDiffResponse.ResponseType

The responseType to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
ComputeThreatListDiffResponse.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeThreatListDiffResponse.Builder
Overrides