Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2024 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.5
package com.google.pubsub.v1;
/**
*
*
*
* Response for the `StreamingPull` method. This response is used to stream
* messages from the server to the client.
*
*
* 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 {
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The ackIds at the given index.
*/
java.lang.String getAckIds(int index);
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
java.util.List getInvalidAckIdsList();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
int getInvalidAckIdsCount();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The invalidAckIds at the given index.
*/
java.lang.String getInvalidAckIds(int index);
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the unorderedAckIds.
*/
java.util.List getUnorderedAckIdsList();
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of unorderedAckIds.
*/
int getUnorderedAckIdsCount();
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The unorderedAckIds at the given index.
*/
java.lang.String getUnorderedAckIds(int index);
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
java.util.List getTemporaryFailedAckIdsList();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
int getTemporaryFailedAckIdsCount();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the element to return.
* @return The temporaryFailedAckIds at the given index.
*/
java.lang.String getTemporaryFailedAckIds(int index);
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Acknowledgement IDs sent in one or more previous requests to acknowledge a
* previously received message.
*
*
* 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();
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() {
return invalidAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
public int getInvalidAckIdsCount() {
return invalidAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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();
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the unorderedAckIds.
*/
public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() {
return unorderedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of unorderedAckIds.
*/
public int getUnorderedAckIdsCount() {
return unorderedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
* @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();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() {
return temporaryFailedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
public int getTemporaryFailedAckIdsCount() {
return temporaryFailedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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;
}
/**
*
*
*
* Acknowledgement IDs sent in one or more previous requests to acknowledge a
* previously received message.
*
*
* Protobuf type {@code google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.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(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) {
return mergeFrom(
(com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation other) {
if (other
== com.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation
.getDefaultInstance()) return this;
if (!other.ackIds_.isEmpty()) {
if (ackIds_.isEmpty()) {
ackIds_ = other.ackIds_;
bitField0_ |= 0x00000001;
} else {
ensureAckIdsIsMutable();
ackIds_.addAll(other.ackIds_);
}
onChanged();
}
if (!other.invalidAckIds_.isEmpty()) {
if (invalidAckIds_.isEmpty()) {
invalidAckIds_ = other.invalidAckIds_;
bitField0_ |= 0x00000002;
} else {
ensureInvalidAckIdsIsMutable();
invalidAckIds_.addAll(other.invalidAckIds_);
}
onChanged();
}
if (!other.unorderedAckIds_.isEmpty()) {
if (unorderedAckIds_.isEmpty()) {
unorderedAckIds_ = other.unorderedAckIds_;
bitField0_ |= 0x00000004;
} else {
ensureUnorderedAckIdsIsMutable();
unorderedAckIds_.addAll(other.unorderedAckIds_);
}
onChanged();
}
if (!other.temporaryFailedAckIds_.isEmpty()) {
if (temporaryFailedAckIds_.isEmpty()) {
temporaryFailedAckIds_ = other.temporaryFailedAckIds_;
bitField0_ |= 0x00000008;
} else {
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.addAll(other.temporaryFailedAckIds_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
ensureAckIdsIsMutable();
ackIds_.add(s);
break;
} // case 10
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(s);
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureUnorderedAckIdsIsMutable();
unorderedAckIds_.add(s);
break;
} // case 26
case 34:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.add(s);
break;
} // case 34
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList ackIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAckIdsIsMutable() {
if (!ackIds_.isModifiable()) {
ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The ackIds to set.
* @return This builder for chaining.
*/
public Builder setAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAckIdsIsMutable();
ackIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes of the ackIds to add.
* @return This builder for chaining.
*/
public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAckIdsIsMutable();
ackIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList invalidAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureInvalidAckIdsIsMutable() {
if (!invalidAckIds_.isModifiable()) {
invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_);
}
bitField0_ |= 0x00000002;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() {
invalidAckIds_.makeImmutable();
return invalidAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
public int getInvalidAckIdsCount() {
return invalidAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The invalidAckIds to set.
* @return This builder for chaining.
*/
public Builder setInvalidAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInvalidAckIdsIsMutable();
invalidAckIds_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addInvalidAckIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param values The invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addAllInvalidAckIds(java.lang.Iterable values) {
ensureInvalidAckIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes of the invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList unorderedAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureUnorderedAckIdsIsMutable() {
if (!unorderedAckIds_.isModifiable()) {
unorderedAckIds_ = new com.google.protobuf.LazyStringArrayList(unorderedAckIds_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the unorderedAckIds.
*/
public com.google.protobuf.ProtocolStringList getUnorderedAckIdsList() {
unorderedAckIds_.makeImmutable();
return unorderedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of unorderedAckIds.
*/
public int getUnorderedAckIdsCount() {
return unorderedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index to set the value at.
* @param value The unorderedAckIds to set.
* @return This builder for chaining.
*/
public Builder setUnorderedAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnorderedAckIdsIsMutable();
unorderedAckIds_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The unorderedAckIds to add.
* @return This builder for chaining.
*/
public Builder addUnorderedAckIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureUnorderedAckIdsIsMutable();
unorderedAckIds_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param values The unorderedAckIds to add.
* @return This builder for chaining.
*/
public Builder addAllUnorderedAckIds(java.lang.Iterable values) {
ensureUnorderedAckIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unorderedAckIds_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were out of order.
*
* Optional. List of acknowledgement IDs that were out of order.
*
*
* repeated string unordered_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The bytes of the unorderedAckIds to add.
* @return This builder for chaining.
*/
public Builder addUnorderedAckIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureUnorderedAckIdsIsMutable();
unorderedAckIds_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTemporaryFailedAckIdsIsMutable() {
if (!temporaryFailedAckIds_.isModifiable()) {
temporaryFailedAckIds_ =
new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_);
}
bitField0_ |= 0x00000008;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() {
temporaryFailedAckIds_.makeImmutable();
return temporaryFailedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
public int getTemporaryFailedAckIdsCount() {
return temporaryFailedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index to set the value at.
* @param value The temporaryFailedAckIds to set.
* @return This builder for chaining.
*/
public Builder setTemporaryFailedAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.set(index, value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The temporaryFailedAckIds to add.
* @return This builder for chaining.
*/
public Builder addTemporaryFailedAckIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.add(value);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 4 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param values The temporaryFailedAckIds to add.
* @return This builder for chaining.
*/
public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) {
ensureTemporaryFailedAckIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_);
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The ackIds at the given index.
*/
java.lang.String getAckIds(int index);
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
java.util.List getInvalidAckIdsList();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
int getInvalidAckIdsCount();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index of the element to return.
* @return The invalidAckIds at the given index.
*/
java.lang.String getInvalidAckIds(int index);
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
java.util.List getTemporaryFailedAckIdsList();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
int getTemporaryFailedAckIdsCount();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index of the element to return.
* @return The temporaryFailedAckIds at the given index.
*/
java.lang.String getTemporaryFailedAckIds(int index);
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Acknowledgement IDs sent in one or more previous requests to modify the
* deadline for a specific message.
*
*
* Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation}
*/
public static final class ModifyAckDeadlineConfirmation
extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
ModifyAckDeadlineConfirmationOrBuilder {
private static final long serialVersionUID = 0L;
// Use ModifyAckDeadlineConfirmation.newBuilder() to construct.
private ModifyAckDeadlineConfirmation(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ModifyAckDeadlineConfirmation() {
ackIds_ = com.google.protobuf.LazyStringArrayList.emptyList();
invalidAckIds_ = 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 ModifyAckDeadlineConfirmation();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class,
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
.class);
}
public static final int ACK_IDS_FIELD_NUMBER = 1;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList ackIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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();
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() {
return invalidAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
public int getInvalidAckIdsCount() {
return invalidAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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 TEMPORARY_FAILED_ACK_IDS_FIELD_NUMBER = 3;
@SuppressWarnings("serial")
private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() {
return temporaryFailedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
public int getTemporaryFailedAckIdsCount() {
return temporaryFailedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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 < temporaryFailedAckIds_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 3, 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 < 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.ModifyAckDeadlineConfirmation)) {
return super.equals(obj);
}
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other =
(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) obj;
if (!getAckIdsList().equals(other.getAckIdsList())) return false;
if (!getInvalidAckIdsList().equals(other.getInvalidAckIdsList())) 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 (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.ModifyAckDeadlineConfirmation
parseFrom(java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
parseFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation
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.ModifyAckDeadlineConfirmation 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;
}
/**
*
*
*
* Acknowledgement IDs sent in one or more previous requests to modify the
* deadline for a specific message.
*
*
* Protobuf type {@code google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation}
*/
public static final class Builder
extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation)
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.pubsub.v1.PubsubProto
.internal_static_google_pubsub_v1_StreamingPullResponse_ModifyAckDeadlineConfirmation_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.class,
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.Builder
.class);
}
// Construct using
// com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation.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();
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_ModifyAckDeadlineConfirmation_descriptor;
}
@java.lang.Override
public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
getDefaultInstanceForType() {
return com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
.getDefaultInstance();
}
@java.lang.Override
public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation build() {
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result =
buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
buildPartial() {
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation result =
new com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation 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)) {
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(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other
instanceof com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) {
return mergeFrom(
(com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(
com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation other) {
if (other
== com.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation
.getDefaultInstance()) return this;
if (!other.ackIds_.isEmpty()) {
if (ackIds_.isEmpty()) {
ackIds_ = other.ackIds_;
bitField0_ |= 0x00000001;
} else {
ensureAckIdsIsMutable();
ackIds_.addAll(other.ackIds_);
}
onChanged();
}
if (!other.invalidAckIds_.isEmpty()) {
if (invalidAckIds_.isEmpty()) {
invalidAckIds_ = other.invalidAckIds_;
bitField0_ |= 0x00000002;
} else {
ensureInvalidAckIdsIsMutable();
invalidAckIds_.addAll(other.invalidAckIds_);
}
onChanged();
}
if (!other.temporaryFailedAckIds_.isEmpty()) {
if (temporaryFailedAckIds_.isEmpty()) {
temporaryFailedAckIds_ = other.temporaryFailedAckIds_;
bitField0_ |= 0x00000004;
} else {
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.addAll(other.temporaryFailedAckIds_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10:
{
java.lang.String s = input.readStringRequireUtf8();
ensureAckIdsIsMutable();
ackIds_.add(s);
break;
} // case 10
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(s);
break;
} // case 18
case 26:
{
java.lang.String s = input.readStringRequireUtf8();
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.add(s);
break;
} // case 26
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private com.google.protobuf.LazyStringArrayList ackIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureAckIdsIsMutable() {
if (!ackIds_.isModifiable()) {
ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
}
bitField0_ |= 0x00000001;
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The ackIds to set.
* @return This builder for chaining.
*/
public Builder setAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureAckIdsIsMutable();
ackIds_.set(index, value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
*
* repeated string ack_ids = 1 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes of the ackIds to add.
* @return This builder for chaining.
*/
public Builder addAckIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureAckIdsIsMutable();
ackIds_.add(value);
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList invalidAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureInvalidAckIdsIsMutable() {
if (!invalidAckIds_.isModifiable()) {
invalidAckIds_ = new com.google.protobuf.LazyStringArrayList(invalidAckIds_);
}
bitField0_ |= 0x00000002;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return A list containing the invalidAckIds.
*/
public com.google.protobuf.ProtocolStringList getInvalidAckIdsList() {
invalidAckIds_.makeImmutable();
return invalidAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @return The count of invalidAckIds.
*/
public int getInvalidAckIdsCount() {
return invalidAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param index The index to set the value at.
* @param value The invalidAckIds to set.
* @return This builder for chaining.
*/
public Builder setInvalidAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInvalidAckIdsIsMutable();
invalidAckIds_.set(index, value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addInvalidAckIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param values The invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addAllInvalidAckIds(java.lang.Iterable values) {
ensureInvalidAckIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, invalidAckIds_);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
* Optional. List of acknowledgement IDs that were malformed or whose
* acknowledgement deadline has expired.
*
*
* repeated string invalid_ack_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
*
* @param value The bytes of the invalidAckIds to add.
* @return This builder for chaining.
*/
public Builder addInvalidAckIdsBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureInvalidAckIdsIsMutable();
invalidAckIds_.add(value);
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private com.google.protobuf.LazyStringArrayList temporaryFailedAckIds_ =
com.google.protobuf.LazyStringArrayList.emptyList();
private void ensureTemporaryFailedAckIdsIsMutable() {
if (!temporaryFailedAckIds_.isModifiable()) {
temporaryFailedAckIds_ =
new com.google.protobuf.LazyStringArrayList(temporaryFailedAckIds_);
}
bitField0_ |= 0x00000004;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return A list containing the temporaryFailedAckIds.
*/
public com.google.protobuf.ProtocolStringList getTemporaryFailedAckIdsList() {
temporaryFailedAckIds_.makeImmutable();
return temporaryFailedAckIds_;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @return The count of temporaryFailedAckIds.
*/
public int getTemporaryFailedAckIdsCount() {
return temporaryFailedAckIds_.size();
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @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);
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param index The index to set the value at.
* @param value The temporaryFailedAckIds to set.
* @return This builder for chaining.
*/
public Builder setTemporaryFailedAckIds(int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.set(index, value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param value The temporaryFailedAckIds to add.
* @return This builder for chaining.
*/
public Builder addTemporaryFailedAckIds(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureTemporaryFailedAckIdsIsMutable();
temporaryFailedAckIds_.add(value);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*
*
*
* repeated string temporary_failed_ack_ids = 3 [(.google.api.field_behavior) = OPTIONAL];
*
*
* @param values The temporaryFailedAckIds to add.
* @return This builder for chaining.
*/
public Builder addAllTemporaryFailedAckIds(java.lang.Iterable values) {
ensureTemporaryFailedAckIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, temporaryFailedAckIds_);
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* Optional. List of acknowledgement IDs that failed processing with
* temporary issues.
*