Class DeleteListingRequest.Builder (0.80.0)

public static final class DeleteListingRequest.Builder extends GeneratedMessage.Builder<DeleteListingRequest.Builder> implements DeleteListingRequestOrBuilder

Message for deleting a listing.

Protobuf type google.cloud.bigquery.analyticshub.v1.DeleteListingRequest

Static Methods

getDescriptor()

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

Methods

build()

public DeleteListingRequest build()
Returns
Type Description
DeleteListingRequest

buildPartial()

public DeleteListingRequest buildPartial()
Returns
Type Description
DeleteListingRequest

clear()

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

clearDeleteCommercial()

public DeleteListingRequest.Builder clearDeleteCommercial()

Optional. If the listing is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid deleting commercial listings accidentally.

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

Returns
Type Description
DeleteListingRequest.Builder

This builder for chaining.

clearName()

public DeleteListingRequest.Builder clearName()

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.

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

Returns
Type Description
DeleteListingRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public DeleteListingRequest getDefaultInstanceForType()
Returns
Type Description
DeleteListingRequest

getDeleteCommercial()

public boolean getDeleteCommercial()

Optional. If the listing is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid deleting commercial listings accidentally.

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

Returns
Type Description
boolean

The deleteCommercial.

getDescriptorForType()

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

getName()

public String getName()

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDeleteCommercial(boolean value)

public DeleteListingRequest.Builder setDeleteCommercial(boolean value)

Optional. If the listing is commercial then this field must be set to true, otherwise a failure is thrown. This acts as a safety guard to avoid deleting commercial listings accidentally.

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

Parameter
Name Description
value boolean

The deleteCommercial to set.

Returns
Type Description
DeleteListingRequest.Builder

This builder for chaining.

setName(String value)

public DeleteListingRequest.Builder setName(String value)

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
DeleteListingRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteListingRequest.Builder setNameBytes(ByteString value)

Required. Resource name of the listing to delete. e.g. projects/myproject/locations/us/dataExchanges/123/listings/456.

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

This builder for chaining.