Class ModifyAckDeadlineRequest

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ModifyAckDeadlineRequestOrBuilder, Serializable

    public final class ModifyAckDeadlineRequest
    extends com.google.protobuf.GeneratedMessageV3
    implements ModifyAckDeadlineRequestOrBuilder
     Request for the ModifyAckDeadline method.
     
    Protobuf type google.pubsub.v1.ModifyAckDeadlineRequest
    See Also:
    Serialized Form
    • Field Detail

      • SUBSCRIPTION_FIELD_NUMBER

        public static final int SUBSCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ACK_DEADLINE_SECONDS_FIELD_NUMBER

        public static final int ACK_DEADLINE_SECONDS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(ByteBuffer data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(ByteBuffer data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(com.google.protobuf.ByteString data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(com.google.protobuf.ByteString data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(byte[] data)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ModifyAckDeadlineRequest parseFrom​(byte[] data,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

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

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

        protected ModifyAckDeadlineRequest.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<ModifyAckDeadlineRequest> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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