Class DeleteCatalogRequest.Builder (0.3.0)

public static final class DeleteCatalogRequest.Builder extends GeneratedMessage.Builder<DeleteCatalogRequest.Builder> implements DeleteCatalogRequestOrBuilder

Message for deleting a catalog.

Protobuf type google.cloud.designcenter.v1.DeleteCatalogRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteCatalogRequest build()
Returns
Type Description
DeleteCatalogRequest

buildPartial()

public DeleteCatalogRequest buildPartial()
Returns
Type Description
DeleteCatalogRequest

clear()

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

clearForce()

public DeleteCatalogRequest.Builder clearForce()

Optional. If set to true, the catalog's children are also deleted. If false, the catalog is only deleted if it has no children.

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

Returns
Type Description
DeleteCatalogRequest.Builder

This builder for chaining.

clearName()

public DeleteCatalogRequest.Builder clearName()

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

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

Returns
Type Description
DeleteCatalogRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteCatalogRequest getDefaultInstanceForType()
Returns
Type Description
DeleteCatalogRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, the catalog's children are also deleted. If false, the catalog is only deleted if it has no children.

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

Returns
Type Description
boolean

The force.

getName()

public String getName()

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

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(DeleteCatalogRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForce(boolean value)

public DeleteCatalogRequest.Builder setForce(boolean value)

Optional. If set to true, the catalog's children are also deleted. If false, the catalog is only deleted if it has no children.

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

Parameter
Name Description
value boolean

The force to set.

Returns
Type Description
DeleteCatalogRequest.Builder

This builder for chaining.

setName(String value)

public DeleteCatalogRequest.Builder setName(String value)

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteCatalogRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteCatalogRequest.Builder setNameBytes(ByteString value)

Required. The catalog name in the following format: projects/$project/locations/$location/spaces/$space/catalogs/$catalog

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
DeleteCatalogRequest.Builder

This builder for chaining.