Class DeleteSubscriptionRequest.Builder

public static final class DeleteSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<DeleteSubscriptionRequest.Builder> implements DeleteSubscriptionRequestOrBuilder

Request for DeleteSubscription.

Protobuf type google.cloud.pubsublite.v1.DeleteSubscriptionRequest

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeleteSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

build()

public DeleteSubscriptionRequest build()
Returns
TypeDescription
DeleteSubscriptionRequest

buildPartial()

public DeleteSubscriptionRequest buildPartial()
Returns
TypeDescription
DeleteSubscriptionRequest

clear()

public DeleteSubscriptionRequest.Builder clear()
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeleteSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

clearName()

public DeleteSubscriptionRequest.Builder clearName()

Required. The name of the subscription to delete.

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

Returns
TypeDescription
DeleteSubscriptionRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public DeleteSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

clone()

public DeleteSubscriptionRequest.Builder clone()
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

getDefaultInstanceForType()

public DeleteSubscriptionRequest getDefaultInstanceForType()
Returns
TypeDescription
DeleteSubscriptionRequest

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getName()

public String getName()

Required. The name of the subscription to delete.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. The name of the subscription to delete.

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

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeleteSubscriptionRequest other)

public DeleteSubscriptionRequest.Builder mergeFrom(DeleteSubscriptionRequest other)
Parameter
NameDescription
otherDeleteSubscriptionRequest
Returns
TypeDescription
DeleteSubscriptionRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeleteSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeleteSubscriptionRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeleteSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeleteSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

setName(String value)

public DeleteSubscriptionRequest.Builder setName(String value)

Required. The name of the subscription to delete.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
DeleteSubscriptionRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public DeleteSubscriptionRequest.Builder setNameBytes(ByteString value)

Required. The name of the subscription to delete.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
DeleteSubscriptionRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeleteSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DeleteSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeleteSubscriptionRequest.Builder
Overrides