Class ComputeThreatListDiffRequest.Builder (2.16.0)

public static final class ComputeThreatListDiffRequest.Builder extends GeneratedMessageV3.Builder<ComputeThreatListDiffRequest.Builder> implements ComputeThreatListDiffRequestOrBuilder

Describes an API diff request.

Protobuf type google.cloud.webrisk.v1.ComputeThreatListDiffRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ComputeThreatListDiffRequest build()
Returns
TypeDescription
ComputeThreatListDiffRequest

buildPartial()

public ComputeThreatListDiffRequest buildPartial()
Returns
TypeDescription
ComputeThreatListDiffRequest

clear()

public ComputeThreatListDiffRequest.Builder clear()
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

clearConstraints()

public ComputeThreatListDiffRequest.Builder clearConstraints()

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public ComputeThreatListDiffRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ComputeThreatListDiffRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

clearThreatType()

public ComputeThreatListDiffRequest.Builder clearThreatType()

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

.google.cloud.webrisk.v1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

This builder for chaining.

clearVersionToken()

public ComputeThreatListDiffRequest.Builder clearVersionToken()

The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

bytes version_token = 2;

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

This builder for chaining.

clone()

public ComputeThreatListDiffRequest.Builder clone()
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

getConstraints()

public ComputeThreatListDiffRequest.Constraints getConstraints()

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints

The constraints.

getConstraintsBuilder()

public ComputeThreatListDiffRequest.Constraints.Builder getConstraintsBuilder()

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComputeThreatListDiffRequest.Constraints.Builder

getConstraintsOrBuilder()

public ComputeThreatListDiffRequest.ConstraintsOrBuilder getConstraintsOrBuilder()

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ComputeThreatListDiffRequest.ConstraintsOrBuilder

getDefaultInstanceForType()

public ComputeThreatListDiffRequest getDefaultInstanceForType()
Returns
TypeDescription
ComputeThreatListDiffRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getThreatType()

public ThreatType getThreatType()

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

.google.cloud.webrisk.v1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ThreatType

The threatType.

getThreatTypeValue()

public int getThreatTypeValue()

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

.google.cloud.webrisk.v1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The enum numeric value on the wire for threatType.

getVersionToken()

public ByteString getVersionToken()

The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

bytes version_token = 2;

Returns
TypeDescription
ByteString

The versionToken.

hasConstraints()

public boolean hasConstraints()

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the constraints field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeConstraints(ComputeThreatListDiffRequest.Constraints value)

public ComputeThreatListDiffRequest.Builder mergeConstraints(ComputeThreatListDiffRequest.Constraints value)

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueComputeThreatListDiffRequest.Constraints
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(ComputeThreatListDiffRequest other)

public ComputeThreatListDiffRequest.Builder mergeFrom(ComputeThreatListDiffRequest other)
Parameter
NameDescription
otherComputeThreatListDiffRequest
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ComputeThreatListDiffRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

setConstraints(ComputeThreatListDiffRequest.Constraints value)

public ComputeThreatListDiffRequest.Builder setConstraints(ComputeThreatListDiffRequest.Constraints value)

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueComputeThreatListDiffRequest.Constraints
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

setConstraints(ComputeThreatListDiffRequest.Constraints.Builder builderForValue)

public ComputeThreatListDiffRequest.Builder setConstraints(ComputeThreatListDiffRequest.Constraints.Builder builderForValue)

Required. The constraints associated with this request.

.google.cloud.webrisk.v1.ComputeThreatListDiffRequest.Constraints constraints = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueComputeThreatListDiffRequest.Constraints.Builder
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public ComputeThreatListDiffRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ComputeThreatListDiffRequest.Builder
Overrides

setThreatType(ThreatType value)

public ComputeThreatListDiffRequest.Builder setThreatType(ThreatType value)

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

.google.cloud.webrisk.v1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueThreatType

The threatType to set.

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

This builder for chaining.

setThreatTypeValue(int value)

public ComputeThreatListDiffRequest.Builder setThreatTypeValue(int value)

Required. The threat list to update. Only a single ThreatType should be specified per request. If you want to handle multiple ThreatTypes, you must make one request per ThreatType.

.google.cloud.webrisk.v1.ThreatType threat_type = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueint

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

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setVersionToken(ByteString value)

public ComputeThreatListDiffRequest.Builder setVersionToken(ByteString value)

The current version token of the client for the requested list (the client version that was received from the last successful diff). If the client does not have a version token (this is the first time calling ComputeThreatListDiff), this may be left empty and a full database snapshot will be returned.

bytes version_token = 2;

Parameter
NameDescription
valueByteString

The versionToken to set.

Returns
TypeDescription
ComputeThreatListDiffRequest.Builder

This builder for chaining.