Class CreateSubscriptionRequest.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>
      • getDefaultInstanceForType

        public CreateSubscriptionRequest getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CreateSubscriptionRequest build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CreateSubscriptionRequest buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • setRepeatedField

        public CreateSubscriptionRequest.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                  int index,
                                                                  Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>
      • mergeFrom

        public CreateSubscriptionRequest.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateSubscriptionRequest.Builder>
        Throws:
        IOException
      • 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) = { ... }
        Specified by:
        getParent in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.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) = { ... }
        Specified by:
        getParentBytes in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        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) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • 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) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public CreateSubscriptionRequest.Builder setParentBytes​(com.google.protobuf.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) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • 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];
        Specified by:
        hasSubscription in interface CreateSubscriptionRequestOrBuilder
        Returns:
        Whether the subscription field is set.
      • 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];
        Specified by:
        getSubscription in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The subscription.
      • setSubscription

        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];
      • setSubscription

        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];
      • mergeSubscription

        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];
      • 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];
      • 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];
      • 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];
        Specified by:
        getSubscriptionId in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The subscriptionId.
      • getSubscriptionIdBytes

        public com.google.protobuf.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];
        Specified by:
        getSubscriptionIdBytes in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The bytes for subscriptionId.
      • setSubscriptionId

        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];
        Parameters:
        value - The subscriptionId to set.
        Returns:
        This builder for chaining.
      • 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];
        Returns:
        This builder for chaining.
      • setSubscriptionIdBytes

        public CreateSubscriptionRequest.Builder setSubscriptionIdBytes​(com.google.protobuf.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];
        Parameters:
        value - The bytes for subscriptionId to set.
        Returns:
        This builder for chaining.
      • 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;
        Specified by:
        getSkipBacklog in interface CreateSubscriptionRequestOrBuilder
        Returns:
        The skipBacklog.
      • setSkipBacklog

        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;
        Parameters:
        value - The skipBacklog to set.
        Returns:
        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;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final CreateSubscriptionRequest.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>
      • mergeUnknownFields

        public final CreateSubscriptionRequest.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CreateSubscriptionRequest.Builder>