public static final class CreateSubscriptionRequest.Builder extends GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder> implements CreateSubscriptionRequestOrBuilder
Request for CreateSubscription.
Protobuf type google.cloud.pubsublite.v1.CreateSubscriptionRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateSubscriptionRequest.BuilderImplements
CreateSubscriptionRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateSubscriptionRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateSubscriptionRequest.Builder |
build()
public CreateSubscriptionRequest build()
Type | Description |
CreateSubscriptionRequest |
buildPartial()
public CreateSubscriptionRequest buildPartial()
Type | Description |
CreateSubscriptionRequest |
clear()
public CreateSubscriptionRequest.Builder clear()
Type | Description |
CreateSubscriptionRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public CreateSubscriptionRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CreateSubscriptionRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateSubscriptionRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CreateSubscriptionRequest.Builder |
clearParent()
public CreateSubscriptionRequest.Builder clearParent()
Required. The parent location in which to create the subscription.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
clearSkipBacklog()
public CreateSubscriptionRequest.Builder clearSkipBacklog()
If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
bool skip_backlog = 4;
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
clearSubscription()
public CreateSubscriptionRequest.Builder clearSubscription()
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateSubscriptionRequest.Builder |
clearSubscriptionId()
public CreateSubscriptionRequest.Builder clearSubscriptionId()
Required. The ID to use for the subscription, which will become the final
component of the subscription's name.
This value is structured like: my-sub-name
.
string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
clone()
public CreateSubscriptionRequest.Builder clone()
Type | Description |
CreateSubscriptionRequest.Builder |
getDefaultInstanceForType()
public CreateSubscriptionRequest getDefaultInstanceForType()
Type | Description |
CreateSubscriptionRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The parent location in which to create the subscription.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
String | The parent. |
getParentBytes()
public ByteString getParentBytes()
Required. The parent location in which to create the subscription.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Type | Description |
ByteString | The bytes for parent. |
getSkipBacklog()
public boolean getSkipBacklog()
If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
bool skip_backlog = 4;
Type | Description |
boolean | The skipBacklog. |
getSubscription()
public Subscription getSubscription()
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Subscription | The subscription. |
getSubscriptionBuilder()
public Subscription.Builder getSubscriptionBuilder()
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
Subscription.Builder |
getSubscriptionId()
public String getSubscriptionId()
Required. The ID to use for the subscription, which will become the final
component of the subscription's name.
This value is structured like: my-sub-name
.
string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The subscriptionId. |
getSubscriptionIdBytes()
public ByteString getSubscriptionIdBytes()
Required. The ID to use for the subscription, which will become the final
component of the subscription's name.
This value is structured like: my-sub-name
.
string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for subscriptionId. |
getSubscriptionOrBuilder()
public SubscriptionOrBuilder getSubscriptionOrBuilder()
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
SubscriptionOrBuilder |
hasSubscription()
public boolean hasSubscription()
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
boolean | Whether the subscription field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CreateSubscriptionRequest other)
public CreateSubscriptionRequest.Builder mergeFrom(CreateSubscriptionRequest other)
Name | Description |
other | CreateSubscriptionRequest |
Type | Description |
CreateSubscriptionRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateSubscriptionRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CreateSubscriptionRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CreateSubscriptionRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CreateSubscriptionRequest.Builder |
mergeSubscription(Subscription value)
public CreateSubscriptionRequest.Builder mergeSubscription(Subscription value)
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Subscription |
Type | Description |
CreateSubscriptionRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateSubscriptionRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateSubscriptionRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateSubscriptionRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CreateSubscriptionRequest.Builder |
setParent(String value)
public CreateSubscriptionRequest.Builder setParent(String value)
Required. The parent location in which to create the subscription.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | String The parent to set. |
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
setParentBytes(ByteString value)
public CreateSubscriptionRequest.Builder setParentBytes(ByteString value)
Required. The parent location in which to create the subscription.
Structured like projects/{project_number}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Name | Description |
value | ByteString The bytes for parent to set. |
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateSubscriptionRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CreateSubscriptionRequest.Builder |
setSkipBacklog(boolean value)
public CreateSubscriptionRequest.Builder setSkipBacklog(boolean value)
If true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
bool skip_backlog = 4;
Name | Description |
value | boolean The skipBacklog to set. |
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
setSubscription(Subscription value)
public CreateSubscriptionRequest.Builder setSubscription(Subscription value)
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | Subscription |
Type | Description |
CreateSubscriptionRequest.Builder |
setSubscription(Subscription.Builder builderForValue)
public CreateSubscriptionRequest.Builder setSubscription(Subscription.Builder builderForValue)
Required. Configuration of the subscription to create. Its name
field is
ignored.
.google.cloud.pubsublite.v1.Subscription subscription = 2 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
builderForValue | Subscription.Builder |
Type | Description |
CreateSubscriptionRequest.Builder |
setSubscriptionId(String value)
public CreateSubscriptionRequest.Builder setSubscriptionId(String value)
Required. The ID to use for the subscription, which will become the final
component of the subscription's name.
This value is structured like: my-sub-name
.
string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The subscriptionId to set. |
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
setSubscriptionIdBytes(ByteString value)
public CreateSubscriptionRequest.Builder setSubscriptionIdBytes(ByteString value)
Required. The ID to use for the subscription, which will become the final
component of the subscription's name.
This value is structured like: my-sub-name
.
string subscription_id = 3 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for subscriptionId to set. |
Type | Description |
CreateSubscriptionRequest.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateSubscriptionRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CreateSubscriptionRequest.Builder |