Class CreateWatchlistRequest.Builder (0.21.0)

public static final class CreateWatchlistRequest.Builder extends GeneratedMessage.Builder<CreateWatchlistRequest.Builder> implements CreateWatchlistRequestOrBuilder

Request message for creating watchlist.

Protobuf type google.cloud.chronicle.v1.CreateWatchlistRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateWatchlistRequest build()
Returns
Type Description
CreateWatchlistRequest

buildPartial()

public CreateWatchlistRequest buildPartial()
Returns
Type Description
CreateWatchlistRequest

clear()

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

clearParent()

public CreateWatchlistRequest.Builder clearParent()

Required. The parent resource where this watchlist will be created. Format: projects/{project}/locations/{location}/instances/{instance}

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

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.

clearWatchlist()

public CreateWatchlistRequest.Builder clearWatchlist()

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateWatchlistRequest.Builder

clearWatchlistId()

public CreateWatchlistRequest.Builder clearWatchlistId()

Optional. The ID to use for the watchlist, which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateWatchlistRequest getDefaultInstanceForType()
Returns
Type Description
CreateWatchlistRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource where this watchlist will be created. Format: projects/{project}/locations/{location}/instances/{instance}

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

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource where this watchlist will be created. Format: projects/{project}/locations/{location}/instances/{instance}

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

Returns
Type Description
ByteString

The bytes for parent.

getWatchlist()

public Watchlist getWatchlist()

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Watchlist

The watchlist.

getWatchlistBuilder()

public Watchlist.Builder getWatchlistBuilder()

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Watchlist.Builder

getWatchlistId()

public String getWatchlistId()

Optional. The ID to use for the watchlist, which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The watchlistId.

getWatchlistIdBytes()

public ByteString getWatchlistIdBytes()

Optional. The ID to use for the watchlist, which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for watchlistId.

getWatchlistOrBuilder()

public WatchlistOrBuilder getWatchlistOrBuilder()

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
WatchlistOrBuilder

hasWatchlist()

public boolean hasWatchlist()

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the watchlist field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateWatchlistRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeWatchlist(Watchlist value)

public CreateWatchlistRequest.Builder mergeWatchlist(Watchlist value)

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Watchlist
Returns
Type Description
CreateWatchlistRequest.Builder

setParent(String value)

public CreateWatchlistRequest.Builder setParent(String value)

Required. The parent resource where this watchlist will be created. Format: projects/{project}/locations/{location}/instances/{instance}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateWatchlistRequest.Builder setParentBytes(ByteString value)

Required. The parent resource where this watchlist will be created. Format: projects/{project}/locations/{location}/instances/{instance}

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

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.

setWatchlist(Watchlist value)

public CreateWatchlistRequest.Builder setWatchlist(Watchlist value)

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Watchlist
Returns
Type Description
CreateWatchlistRequest.Builder

setWatchlist(Watchlist.Builder builderForValue)

public CreateWatchlistRequest.Builder setWatchlist(Watchlist.Builder builderForValue)

Required. The watchlist to create.

.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Watchlist.Builder
Returns
Type Description
CreateWatchlistRequest.Builder

setWatchlistId(String value)

public CreateWatchlistRequest.Builder setWatchlistId(String value)

Optional. The ID to use for the watchlist, which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The watchlistId to set.

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.

setWatchlistIdBytes(ByteString value)

public CreateWatchlistRequest.Builder setWatchlistIdBytes(ByteString value)

Optional. The ID to use for the watchlist, which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters are /a-z-/.

string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for watchlistId to set.

Returns
Type Description
CreateWatchlistRequest.Builder

This builder for chaining.