Class ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.Builder>
      • addRepeatedField

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

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

        public ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.Builder>
        Throws:
        IOException
      • getSubscription

        public String getSubscription()
         Required. The name of the subscription.
         Format is `projects/{project}/subscriptions/{sub}`.
         
        string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSubscription in interface ModifyAckDeadlineRequestOrBuilder
        Returns:
        The subscription.
      • getSubscriptionBytes

        public com.google.protobuf.ByteString getSubscriptionBytes()
         Required. The name of the subscription.
         Format is `projects/{project}/subscriptions/{sub}`.
         
        string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getSubscriptionBytes in interface ModifyAckDeadlineRequestOrBuilder
        Returns:
        The bytes for subscription.
      • setSubscription

        public ModifyAckDeadlineRequest.Builder setSubscription​(String value)
         Required. The name of the subscription.
         Format is `projects/{project}/subscriptions/{sub}`.
         
        string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The subscription to set.
        Returns:
        This builder for chaining.
      • clearSubscription

        public ModifyAckDeadlineRequest.Builder clearSubscription()
         Required. The name of the subscription.
         Format is `projects/{project}/subscriptions/{sub}`.
         
        string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setSubscriptionBytes

        public ModifyAckDeadlineRequest.Builder setSubscriptionBytes​(com.google.protobuf.ByteString value)
         Required. The name of the subscription.
         Format is `projects/{project}/subscriptions/{sub}`.
         
        string subscription = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for subscription to set.
        Returns:
        This builder for chaining.
      • getAckIdsList

        public com.google.protobuf.ProtocolStringList getAckIdsList()
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAckIdsList in interface ModifyAckDeadlineRequestOrBuilder
        Returns:
        A list containing the ackIds.
      • getAckIdsCount

        public int getAckIdsCount()
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAckIdsCount in interface ModifyAckDeadlineRequestOrBuilder
        Returns:
        The count of ackIds.
      • getAckIds

        public String getAckIds​(int index)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAckIds in interface ModifyAckDeadlineRequestOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The ackIds at the given index.
      • getAckIdsBytes

        public com.google.protobuf.ByteString getAckIdsBytes​(int index)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAckIdsBytes in interface ModifyAckDeadlineRequestOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the ackIds at the given index.
      • setAckIds

        public ModifyAckDeadlineRequest.Builder setAckIds​(int index,
                                                          String value)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The ackIds to set.
        Returns:
        This builder for chaining.
      • addAckIds

        public ModifyAckDeadlineRequest.Builder addAckIds​(String value)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The ackIds to add.
        Returns:
        This builder for chaining.
      • addAllAckIds

        public ModifyAckDeadlineRequest.Builder addAllAckIds​(Iterable<String> values)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The ackIds to add.
        Returns:
        This builder for chaining.
      • clearAckIds

        public ModifyAckDeadlineRequest.Builder clearAckIds()
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • addAckIdsBytes

        public ModifyAckDeadlineRequest.Builder addAckIdsBytes​(com.google.protobuf.ByteString value)
         Required. List of acknowledgment IDs.
         
        repeated string ack_ids = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes of the ackIds to add.
        Returns:
        This builder for chaining.
      • getAckDeadlineSeconds

        public int getAckDeadlineSeconds()
         Required. The new ack deadline with respect to the time this request was
         sent to the Pub/Sub system. For example, if the value is 10, the new ack
         deadline will expire 10 seconds after the `ModifyAckDeadline` call was
         made. Specifying zero might immediately make the message available for
         delivery to another subscriber client. This typically results in an
         increase in the rate of message redeliveries (that is, duplicates).
         The minimum deadline you can specify is 0 seconds.
         The maximum deadline you can specify is 600 seconds (10 minutes).
         
        int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAckDeadlineSeconds in interface ModifyAckDeadlineRequestOrBuilder
        Returns:
        The ackDeadlineSeconds.
      • setAckDeadlineSeconds

        public ModifyAckDeadlineRequest.Builder setAckDeadlineSeconds​(int value)
         Required. The new ack deadline with respect to the time this request was
         sent to the Pub/Sub system. For example, if the value is 10, the new ack
         deadline will expire 10 seconds after the `ModifyAckDeadline` call was
         made. Specifying zero might immediately make the message available for
         delivery to another subscriber client. This typically results in an
         increase in the rate of message redeliveries (that is, duplicates).
         The minimum deadline you can specify is 0 seconds.
         The maximum deadline you can specify is 600 seconds (10 minutes).
         
        int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The ackDeadlineSeconds to set.
        Returns:
        This builder for chaining.
      • clearAckDeadlineSeconds

        public ModifyAckDeadlineRequest.Builder clearAckDeadlineSeconds()
         Required. The new ack deadline with respect to the time this request was
         sent to the Pub/Sub system. For example, if the value is 10, the new ack
         deadline will expire 10 seconds after the `ModifyAckDeadline` call was
         made. Specifying zero might immediately make the message available for
         delivery to another subscriber client. This typically results in an
         increase in the rate of message redeliveries (that is, duplicates).
         The minimum deadline you can specify is 0 seconds.
         The maximum deadline you can specify is 600 seconds (10 minutes).
         
        int32 ack_deadline_seconds = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.Builder>
      • mergeUnknownFields

        public final ModifyAckDeadlineRequest.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<ModifyAckDeadlineRequest.Builder>