Class DeleteComponentRequest.Builder (0.3.0)

public static final class DeleteComponentRequest.Builder extends GeneratedMessage.Builder<DeleteComponentRequest.Builder> implements DeleteComponentRequestOrBuilder

Message for deleting a component.

Protobuf type google.cloud.designcenter.v1.DeleteComponentRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteComponentRequest build()
Returns
Type Description
DeleteComponentRequest

buildPartial()

public DeleteComponentRequest buildPartial()
Returns
Type Description
DeleteComponentRequest

clear()

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

clearForce()

public DeleteComponentRequest.Builder clearForce()

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

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

Returns
Type Description
DeleteComponentRequest.Builder

This builder for chaining.

clearName()

public DeleteComponentRequest.Builder clearName()

Required. The component name.

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

Returns
Type Description
DeleteComponentRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteComponentRequest getDefaultInstanceForType()
Returns
Type Description
DeleteComponentRequest

getDescriptorForType()

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

getForce()

public boolean getForce()

Optional. If set to true, the component's children are also deleted. If false, the component 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 component name.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The component name.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setForce(boolean value)

public DeleteComponentRequest.Builder setForce(boolean value)

Optional. If set to true, the component's children are also deleted. If false, the component 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
DeleteComponentRequest.Builder

This builder for chaining.

setName(String value)

public DeleteComponentRequest.Builder setName(String value)

Required. The component name.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteComponentRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteComponentRequest.Builder setNameBytes(ByteString value)

Required. The component name.

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

This builder for chaining.