/*
 * Copyright 2025 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/pubsub/v1/pubsub.proto

// Protobuf Java Version: 3.25.8
package com.google.pubsub.v1;

/**
 *
 *
 * <pre>
 * Response for the `StreamingPull` method. This response is used to stream
 * messages from the server to the client.
 * </pre>
 *
 * Protobuf type {@code google.pubsub.v1.StreamingPullResponse}
 */
public final class StreamingPullResponse extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse)
    StreamingPullResponseOrBuilder {
  private static final long serialVersionUID = 0L;

  // Use StreamingPullResponse.newBuilder() to construct.
  private StreamingPullResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private StreamingPullResponse() {
    receivedMessages_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new StreamingPullResponse();
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.pubsub.v1.PubsubProto
        .internal_static_google_pubsub_v1_StreamingPullResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.pubsub.v1.PubsubProto
        .internal_static_google_pubsub_v1_StreamingPullResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.pubsub.v1.StreamingPullResponse.class,
            com.google.pubsub.v1.StreamingPullResponse.Builder.class);
  }

  public interface AcknowledgeConfirmationOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the ackIds.
     */
    java.util.List<java.lang.String> getAckIdsList();

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of ackIds.
     */
    int getAckIdsCount();

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The ackIds at the given index.
     */
    java.lang.String getAckIds(int index);

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the ackIds at the given index.
     */
    com.google.protobuf.ByteString getAckIdsBytes(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the invalidAckIds.
     */
    java.util.List<java.lang.String> getInvalidAckIdsList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of invalidAckIds.
     */
    int getInvalidAckIdsCount();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The invalidAckIds at the given index.
     */
    java.lang.String getInvalidAckIds(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the invalidAckIds at the given index.
     */
    com.google.protobuf.ByteString getInvalidAckIdsBytes(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the unorderedAckIds.
     */
    java.util.List<java.lang.String> getUnorderedAckIdsList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of unorderedAckIds.
     */
    int getUnorderedAckIdsCount();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The unorderedAckIds at the given index.
     */
    java.lang.String getUnorderedAckIds(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the unorderedAckIds at the given index.
     */
    com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the temporaryFailedAckIds.
     */
    java.util.List<java.lang.String> getTemporaryFailedAckIdsList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of temporaryFailedAckIds.
     */
    int getTemporaryFailedAckIdsCount();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The temporaryFailedAckIds at the given index.
     */
    java.lang.String getTemporaryFailedAckIds(int index);

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the temporaryFailedAckIds at the given index.
     */
    com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index);
  }

  /**
   *
   *
   * <pre>
   * Acknowledgment IDs sent in one or more previous requests to acknowledge a
   * previously received message.
   * </pre>
   *
   * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation}
   */
  public static final class AcknowledgeConfirmation extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
      AcknowledgeConfirmationOrBuilder {
    private static final long serialVersionUID = 0L;

    // Use AcknowledgeConfirmation.newBuilder() to construct.
    private AcknowledgeConfirmation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private AcknowledgeConfirmation() {
      ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
      invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
      unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
      temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
    }

    @java.lang.Override
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new AcknowledgeConfirmation();
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.pubsub.v1.PubsubProto
          .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.pubsub.v1.PubsubProto
          .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class,
              com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
    }

    public static final int ACK_IDS_FIELD_NUMBER = 1;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList ackIds_ =
        com.google.protobuf.LazyStringArrayList.emptyList();

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the ackIds.
     */
    public com.google.protobuf.ProtocolStringList getAckIdsList() {
      return ackIds_;
    }

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of ackIds.
     */
    public int getAckIdsCount() {
      return ackIds_.size();
    }

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The ackIds at the given index.
     */
    public java.lang.String getAckIds(int index) {
      return ackIds_.get(index);
    }

    /**
     *
     *
     * <pre>
     * Optional. Successfully processed acknowledgment IDs.
     * </pre>
     *
     * <code>repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the ackIds at the given index.
     */
    public com.google.protobuf.ByteString getAckIdsBytes(int index) {
      return ackIds_.getByteString(index);
    }

    public static final int INVALID_ACK_IDS_FIELD_NUMBER = 2;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList invalidAckIds_ =
        com.google.protobuf.LazyStringArrayList.emptyList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the invalidAckIds.
     */
    public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() {
      return invalidAckIds_;
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of invalidAckIds.
     */
    public int getInvalidAckIdsCount() {
      return invalidAckIds_.size();
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The invalidAckIds at the given index.
     */
    public java.lang.String getInvalidAckIds(int index) {
      return invalidAckIds_.get(index);
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were malformed or whose
     * acknowledgment deadline has expired.
     * </pre>
     *
     * <code>repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the invalidAckIds at the given index.
     */
    public com.google.protobuf.ByteString getInvalidAckIdsBytes(int index) {
      return invalidAckIds_.getByteString(index);
    }

    public static final int UNORDERED_ACK_IDS_FIELD_NUMBER = 3;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList unorderedAckIds_ =
        com.google.protobuf.LazyStringArrayList.emptyList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return A list containing the unorderedAckIds.
     */
    public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() {
      return unorderedAckIds_;
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @return The count of unorderedAckIds.
     */
    public int getUnorderedAckIdsCount() {
      return unorderedAckIds_.size();
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the element to return.
     * @return The unorderedAckIds at the given index.
     */
    public java.lang.String getUnorderedAckIds(int index) {
      return unorderedAckIds_.get(index);
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that were out of order.
     * </pre>
     *
     * <code>repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];</code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the unorderedAckIds at the given index.
     */
    public com.google.protobuf.ByteString getUnorderedAckIdsBytes(int index) {
      return unorderedAckIds_.getByteString(index);
    }

    public static final int TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER = 4;

    @SuppressWarnings("serial")
    private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ =
        com.google.protobuf.LazyStringArrayList.emptyList();

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return A list containing the temporaryFailedAckIds.
     */
    public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() {
      return temporaryFailedAckIds_;
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @return The count of temporaryFailedAckIds.
     */
    public int getTemporaryFailedAckIdsCount() {
      return temporaryFailedAckIds_.size();
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the element to return.
     * @return The temporaryFailedAckIds at the given index.
     */
    public java.lang.String getTemporaryFailedAckIds(int index) {
      return temporaryFailedAckIds_.get(index);
    }

    /**
     *
     *
     * <pre>
     * Optional. List of acknowledgment IDs that failed processing with
     * temporary issues.
     * </pre>
     *
     * <code>repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
     * </code>
     *
     * @param index The index of the value to return.
     * @return The bytes of the temporaryFailedAckIds at the given index.
     */
    public com.google.protobuf.ByteString getTemporaryFailedAckIdsBytes(int index) {
      return temporaryFailedAckIds_.getByteString(index);
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      for (int i = 0; i < ackIds_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, ackIds_.getRaw(i));
      }
      for (int i = 0; i < invalidAckIds_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 2, invalidAckIds_.getRaw(i));
      }
      for (int i = 0; i < unorderedAckIds_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 3, unorderedAckIds_.getRaw(i));
      }
      for (int i = 0; i < temporaryFailedAckIds_.size(); i++) {
        com.google.protobuf.GeneratedMessageV3.writeString(
            output, 4, temporaryFailedAckIds_.getRaw(i));
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      {
        int dataSize = 0;
        for (int i = 0; i < ackIds_.size(); i++) {
          dataSize += computeStringSizeNoTag(ackIds_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getAckIdsList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < invalidAckIds_.size(); i++) {
          dataSize += computeStringSizeNoTag(invalidAckIds_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getInvalidAckIdsList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < unorderedAckIds_.size(); i++) {
          dataSize += computeStringSizeNoTag(unorderedAckIds_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getUnorderedAckIdsList().size();
      }
      {
        int dataSize = 0;
        for (int i = 0; i < temporaryFailedAckIds_.size(); i++) {
          dataSize += computeStringSizeNoTag(temporaryFailedAckIds_.getRaw(i));
        }
        size += dataSize;
        size += 1 * getTemporaryFailedAckIdsList().size();
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)) {
        return super.equals(obj);
      }
      com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other =
          (com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) obj;

      if (!getAckIdsList().equals(other.getAckIdsList())) return false;
      if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) return false;
      if (!getUnorderedAckIdsList().equals(other.getUnorderedAckIdsList())) return false;
      if (!getTemporaryFailedAckIdsList().equals(other.getTemporaryFailedAckIdsList()))
        return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (getAckIdsCount() > 0) {
        hash = (37 * hash) + ACK_IDS_FIELD_NUMBER;
        hash = (53 * hash) + getAckIdsList().hashCode();
      }
      if (getInvalidAckIdsCount() > 0) {
        hash = (37 * hash) + INVALID_ACK_IDS_FIELD_NUMBER;
        hash = (53 * hash) + getInvalidAckIdsList().hashCode();
      }
      if (getUnorderedAckIdsCount() > 0) {
        hash = (37 * hash) + UNORDERED_ACK_IDS_FIELD_NUMBER;
        hash = (53 * hash) + getUnorderedAckIdsList().hashCode();
      }
      if (getTemporaryFailedAckIdsCount() > 0) {
        hash = (37 * hash) + TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER;
        hash = (53 * hash) + getTemporaryFailedAckIdsList().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }

    /**
     *
     *
     * <pre>
     * Acknowledgment IDs sent in one or more previous requests to acknowledge a
     * previously received message.
     * </pre>
     *
     * Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation)
        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmationOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.pubsub.v1.PubsubProto
            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.pubsub.v1.PubsubProto
            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.class,
                com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.Builder.class);
      }

      // Construct using
      // com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
        invalidAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
        unorderedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
        temporaryFailedAckIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.pubsub.v1.PubsubProto
            .internal_static_google_pubsub_v1_StreamingPullResponse_AcknowledgeConfirmation_descriptor;
      }

      @java.lang.Override
      public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
          getDefaultInstanceForType() {
        return com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation build() {
        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation buildPartial() {
        com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result =
            new com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          ackIds_.makeImmutable();
          result.ackIds_ = ackIds_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          invalidAckIds_.makeImmutable();
          result.invalidAckIds_ = invalidAckIds_;
        }
        if (((from_bitField0_ & 0x00000004) != 0)) {
          unorderedAckIds_.makeImmutable();
          result.unorderedAckIds_ = unorderedAckIds_;
        }
        if (((from_bitField0_ & 0x00000008) != 0)) {
          temporaryFailedAckIds_.makeImmutable();
          result.temporaryFailedAckIds_ = temporaryFailedAckIds_;
        }
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
