Class DetachSubscriptionRequest.Builder (1.126.6)

public static final class DetachSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<DetachSubscriptionRequest.Builder> implements DetachSubscriptionRequestOrBuilder

Request for the DetachSubscription method.

Protobuf type google.pubsub.v1.DetachSubscriptionRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public DetachSubscriptionRequest build()
Returns
TypeDescription
DetachSubscriptionRequest

buildPartial()

public DetachSubscriptionRequest buildPartial()
Returns
TypeDescription
DetachSubscriptionRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSubscription()

public DetachSubscriptionRequest.Builder clearSubscription()

Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}.

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

Returns
TypeDescription
DetachSubscriptionRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public DetachSubscriptionRequest getDefaultInstanceForType()
Returns
TypeDescription
DetachSubscriptionRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSubscription()

public String getSubscription()

Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}.

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

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}.

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

Returns
TypeDescription
ByteString

The bytes for subscription.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(DetachSubscriptionRequest other)

public DetachSubscriptionRequest.Builder mergeFrom(DetachSubscriptionRequest other)
Parameter
NameDescription
otherDetachSubscriptionRequest
Returns
TypeDescription
DetachSubscriptionRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSubscription(String value)

public DetachSubscriptionRequest.Builder setSubscription(String value)

Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}.

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

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
DetachSubscriptionRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public DetachSubscriptionRequest.Builder setSubscriptionBytes(ByteString value)

Required. The subscription to detach. Format is projects/{project}/subscriptions/{subscription}.

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

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
DetachSubscriptionRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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