Class DeleteWatchlistRequest.Builder (0.21.0)

public static final class DeleteWatchlistRequest.Builder extends GeneratedMessage.Builder<DeleteWatchlistRequest.Builder> implements DeleteWatchlistRequestOrBuilder

Request message for deleting watchlist.

Protobuf type google.cloud.chronicle.v1.DeleteWatchlistRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteWatchlistRequest build()
Returns
Type Description
DeleteWatchlistRequest

buildPartial()

public DeleteWatchlistRequest buildPartial()
Returns
Type Description
DeleteWatchlistRequest

clear()

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

clearForce()

public DeleteWatchlistRequest.Builder clearForce()

Optional. If set to true, any entities under this watchlist will also be deleted. (Otherwise, the request will only work if the watchlist has no entities.)

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DeleteWatchlistRequest.Builder

This builder for chaining.

clearName()

public DeleteWatchlistRequest.Builder clearName()

Required. The name of the watchlist to delete. Format: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
DeleteWatchlistRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteWatchlistRequest getDefaultInstanceForType()
Returns
Type Description
DeleteWatchlistRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, any entities under this watchlist will also be deleted. (Otherwise, the request will only work if the watchlist has no entities.)

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The name of the watchlist to delete. Format: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the watchlist to delete. Format: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeleteWatchlistRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForce(boolean value)

public DeleteWatchlistRequest.Builder setForce(boolean value)

Optional. If set to true, any entities under this watchlist will also be deleted. (Otherwise, the request will only work if the watchlist has no entities.)

bool force = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeleteWatchlistRequest.Builder

This builder for chaining.

setName(String value)

public DeleteWatchlistRequest.Builder setName(String value)

Required. The name of the watchlist to delete. Format: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteWatchlistRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteWatchlistRequest.Builder setNameBytes(ByteString value)

Required. The name of the watchlist to delete. Format: projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
DeleteWatchlistRequest.Builder

This builder for chaining.