public static final class DetachSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<DetachSubscriptionRequest.Builder> implements DetachSubscriptionRequestOrBuilder
Request for the DetachSubscription method.
Protobuf type google.pubsub.v1.DetachSubscriptionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > DetachSubscriptionRequest.BuilderImplements
DetachSubscriptionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetachSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DetachSubscriptionRequest.Builder |
build()
public DetachSubscriptionRequest build()
Type | Description |
DetachSubscriptionRequest |
buildPartial()
public DetachSubscriptionRequest buildPartial()
Type | Description |
DetachSubscriptionRequest |
clear()
public DetachSubscriptionRequest.Builder clear()
Type | Description |
DetachSubscriptionRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public DetachSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
DetachSubscriptionRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public DetachSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
DetachSubscriptionRequest.Builder |
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) = { ... }
Type | Description |
DetachSubscriptionRequest.Builder | This builder for chaining. |
clone()
public DetachSubscriptionRequest.Builder clone()
Type | Description |
DetachSubscriptionRequest.Builder |
getDefaultInstanceForType()
public DetachSubscriptionRequest getDefaultInstanceForType()
Type | Description |
DetachSubscriptionRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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) = { ... }
Type | Description |
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) = { ... }
Type | Description |
ByteString | The bytes for subscription. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DetachSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
DetachSubscriptionRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public DetachSubscriptionRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
DetachSubscriptionRequest.Builder |
mergeFrom(DetachSubscriptionRequest other)
public DetachSubscriptionRequest.Builder mergeFrom(DetachSubscriptionRequest other)
Name | Description |
other | DetachSubscriptionRequest |
Type | Description |
DetachSubscriptionRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetachSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DetachSubscriptionRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public DetachSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
DetachSubscriptionRequest.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetachSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
DetachSubscriptionRequest.Builder |
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) = { ... }
Name | Description |
value | String The subscription to set. |
Type | Description |
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) = { ... }
Name | Description |
value | ByteString The bytes for subscription to set. |
Type | Description |
DetachSubscriptionRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final DetachSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
DetachSubscriptionRequest.Builder |