Skip to content

Commit

Permalink
Re-generated to pick up changes in the API or client library generato…
Browse files Browse the repository at this point in the history
…r. (#40)
  • Loading branch information
yoshi-automation authored and hannahrogers-google committed Dec 20, 2019
1 parent 4ac81d3 commit bffbc22
Show file tree
Hide file tree
Showing 87 changed files with 2,767 additions and 179 deletions.
Expand Up @@ -42,6 +42,12 @@ private AcknowledgeRequest() {
ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}

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

@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
Expand Down Expand Up @@ -76,9 +82,9 @@ private AcknowledgeRequest(
case 18:
{
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
ackIds_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
mutable_bitField0_ |= 0x00000001;
}
ackIds_.add(s);
break;
Expand All @@ -97,7 +103,7 @@ private AcknowledgeRequest(
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000002) != 0)) {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
ackIds_ = ackIds_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
Expand All @@ -120,7 +126,6 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
com.google.pubsub.v1.AcknowledgeRequest.Builder.class);
}

private int bitField0_;
public static final int SUBSCRIPTION_FIELD_NUMBER = 1;
private volatile java.lang.Object subscription_;
/**
Expand All @@ -132,6 +137,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The subscription.
*/
public java.lang.String getSubscription() {
java.lang.Object ref = subscription_;
Expand All @@ -153,6 +160,8 @@ public java.lang.String getSubscription() {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The bytes for subscription.
*/
public com.google.protobuf.ByteString getSubscriptionBytes() {
java.lang.Object ref = subscription_;
Expand All @@ -177,6 +186,8 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return A list containing the ackIds.
*/
public com.google.protobuf.ProtocolStringList getAckIdsList() {
return ackIds_;
Expand All @@ -190,6 +201,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return The count of ackIds.
*/
public int getAckIdsCount() {
return ackIds_.size();
Expand All @@ -203,6 +216,9 @@ public int getAckIdsCount() {
* </pre>
*
* <code>repeated string ack_ids = 2;</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);
Expand All @@ -216,6 +232,9 @@ public java.lang.String getAckIds(int index) {
* </pre>
*
* <code>repeated string ack_ids = 2;</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);
Expand Down Expand Up @@ -443,7 +462,7 @@ public Builder clear() {
subscription_ = "";

ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}

Expand Down Expand Up @@ -472,14 +491,12 @@ public com.google.pubsub.v1.AcknowledgeRequest buildPartial() {
com.google.pubsub.v1.AcknowledgeRequest result =
new com.google.pubsub.v1.AcknowledgeRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
result.subscription_ = subscription_;
if (((bitField0_ & 0x00000002) != 0)) {
if (((bitField0_ & 0x00000001) != 0)) {
ackIds_ = ackIds_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.ackIds_ = ackIds_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
Expand Down Expand Up @@ -536,7 +553,7 @@ public Builder mergeFrom(com.google.pubsub.v1.AcknowledgeRequest other) {
if (!other.ackIds_.isEmpty()) {
if (ackIds_.isEmpty()) {
ackIds_ = other.ackIds_;
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAckIdsIsMutable();
ackIds_.addAll(other.ackIds_);
Expand Down Expand Up @@ -584,6 +601,8 @@ public Builder mergeFrom(
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The subscription.
*/
public java.lang.String getSubscription() {
java.lang.Object ref = subscription_;
Expand All @@ -605,6 +624,8 @@ public java.lang.String getSubscription() {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The bytes for subscription.
*/
public com.google.protobuf.ByteString getSubscriptionBytes() {
java.lang.Object ref = subscription_;
Expand All @@ -626,6 +647,9 @@ public com.google.protobuf.ByteString getSubscriptionBytes() {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @param value The subscription to set.
* @return This builder for chaining.
*/
public Builder setSubscription(java.lang.String value) {
if (value == null) {
Expand All @@ -645,6 +669,8 @@ public Builder setSubscription(java.lang.String value) {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return This builder for chaining.
*/
public Builder clearSubscription() {

Expand All @@ -661,6 +687,9 @@ public Builder clearSubscription() {
* </pre>
*
* <code>string subscription = 1;</code>
*
* @param value The bytes for subscription to set.
* @return This builder for chaining.
*/
public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
if (value == null) {
Expand All @@ -677,9 +706,9 @@ public Builder setSubscriptionBytes(com.google.protobuf.ByteString value) {
com.google.protobuf.LazyStringArrayList.EMPTY;

private void ensureAckIdsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
if (!((bitField0_ & 0x00000001) != 0)) {
ackIds_ = new com.google.protobuf.LazyStringArrayList(ackIds_);
bitField0_ |= 0x00000002;
bitField0_ |= 0x00000001;
}
}
/**
Expand All @@ -691,6 +720,8 @@ private void ensureAckIdsIsMutable() {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return A list containing the ackIds.
*/
public com.google.protobuf.ProtocolStringList getAckIdsList() {
return ackIds_.getUnmodifiableView();
Expand All @@ -704,6 +735,8 @@ public com.google.protobuf.ProtocolStringList getAckIdsList() {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return The count of ackIds.
*/
public int getAckIdsCount() {
return ackIds_.size();
Expand All @@ -717,6 +750,9 @@ public int getAckIdsCount() {
* </pre>
*
* <code>repeated string ack_ids = 2;</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);
Expand All @@ -730,6 +766,9 @@ public java.lang.String getAckIds(int index) {
* </pre>
*
* <code>repeated string ack_ids = 2;</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);
Expand All @@ -743,6 +782,10 @@ public com.google.protobuf.ByteString getAckIdsBytes(int index) {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @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) {
Expand All @@ -762,6 +805,9 @@ public Builder setAckIds(int index, java.lang.String value) {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @param value The ackIds to add.
* @return This builder for chaining.
*/
public Builder addAckIds(java.lang.String value) {
if (value == null) {
Expand All @@ -781,6 +827,9 @@ public Builder addAckIds(java.lang.String value) {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @param values The ackIds to add.
* @return This builder for chaining.
*/
public Builder addAllAckIds(java.lang.Iterable<java.lang.String> values) {
ensureAckIdsIsMutable();
Expand All @@ -797,10 +846,12 @@ public Builder addAllAckIds(java.lang.Iterable<java.lang.String> values) {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return This builder for chaining.
*/
public Builder clearAckIds() {
ackIds_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
Expand All @@ -813,6 +864,9 @@ public Builder clearAckIds() {
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @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) {
Expand Down
Expand Up @@ -32,6 +32,8 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The subscription.
*/
java.lang.String getSubscription();
/**
Expand All @@ -43,6 +45,8 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>string subscription = 1;</code>
*
* @return The bytes for subscription.
*/
com.google.protobuf.ByteString getSubscriptionBytes();

Expand All @@ -55,6 +59,8 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return A list containing the ackIds.
*/
java.util.List<java.lang.String> getAckIdsList();
/**
Expand All @@ -66,6 +72,8 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @return The count of ackIds.
*/
int getAckIdsCount();
/**
Expand All @@ -77,6 +85,9 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>repeated string ack_ids = 2;</code>
*
* @param index The index of the element to return.
* @return The ackIds at the given index.
*/
java.lang.String getAckIds(int index);
/**
Expand All @@ -88,6 +99,9 @@ public interface AcknowledgeRequestOrBuilder
* </pre>
*
* <code>repeated string ack_ids = 2;</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);
}

0 comments on commit bffbc22

Please sign in to comment.