Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Update generation configuration at Tue Jul 23 02:17:28 UTC 2024 #2118

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion generation_config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gapic_generator_version: 2.42.0
googleapis_commitish: 19577edb4d439db98d2fb1f6f48f2e1b29fba099
googleapis_commitish: d44c3001960c430bc60ac1e1736cebfd8fd45e77
libraries_bom_version: 26.43.0
libraries:
- api_shortname: pubsub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1865,6 +1865,25 @@ public long getMaxBytes() {
return maxBytes_;
}

public static final int MAX_MESSAGES_FIELD_NUMBER = 8;
private long maxMessages_ = 0L;
/**
*
*
* <pre>
* Optional. The maximum number of messages that can be written to a Cloud
* Storage file before a new file is created. Min 1000 messages.
* </pre>
*
* <code>int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The maxMessages.
*/
@java.lang.Override
public long getMaxMessages() {
return maxMessages_;
}

public static final int STATE_FIELD_NUMBER = 9;
private int state_ = 0;
/**
Expand Down Expand Up @@ -2002,6 +2021,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (maxBytes_ != 0L) {
output.writeInt64(7, maxBytes_);
}
if (maxMessages_ != 0L) {
output.writeInt64(8, maxMessages_);
}
if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) {
output.writeEnum(9, state_);
}
Expand Down Expand Up @@ -2045,6 +2067,9 @@ public int getSerializedSize() {
if (maxBytes_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(7, maxBytes_);
}
if (maxMessages_ != 0L) {
size += com.google.protobuf.CodedOutputStream.computeInt64Size(8, maxMessages_);
}
if (state_ != com.google.pubsub.v1.CloudStorageConfig.State.STATE_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(9, state_);
}
Expand Down Expand Up @@ -2078,6 +2103,7 @@ public boolean equals(final java.lang.Object obj) {
if (!getMaxDuration().equals(other.getMaxDuration())) return false;
}
if (getMaxBytes() != other.getMaxBytes()) return false;
if (getMaxMessages() != other.getMaxMessages()) return false;
if (state_ != other.state_) return false;
if (!getServiceAccountEmail().equals(other.getServiceAccountEmail())) return false;
if (!getOutputFormatCase().equals(other.getOutputFormatCase())) return false;
Expand Down Expand Up @@ -2116,6 +2142,8 @@ public int hashCode() {
}
hash = (37 * hash) + MAX_BYTES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxBytes());
hash = (37 * hash) + MAX_MESSAGES_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxMessages());
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (37 * hash) + SERVICE_ACCOUNT_EMAIL_FIELD_NUMBER;
Expand Down Expand Up @@ -2296,6 +2324,7 @@ public Builder clear() {
maxDurationBuilder_ = null;
}
maxBytes_ = 0L;
maxMessages_ = 0L;
state_ = 0;
serviceAccountEmail_ = "";
outputFormatCase_ = 0;
Expand Down Expand Up @@ -2359,9 +2388,12 @@ private void buildPartial0(com.google.pubsub.v1.CloudStorageConfig result) {
result.maxBytes_ = maxBytes_;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.state_ = state_;
result.maxMessages_ = maxMessages_;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.state_ = state_;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.serviceAccountEmail_ = serviceAccountEmail_;
}
result.bitField0_ |= to_bitField0_;
Expand Down Expand Up @@ -2449,12 +2481,15 @@ public Builder mergeFrom(com.google.pubsub.v1.CloudStorageConfig other) {
if (other.getMaxBytes() != 0L) {
setMaxBytes(other.getMaxBytes());
}
if (other.getMaxMessages() != 0L) {
setMaxMessages(other.getMaxMessages());
}
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
if (!other.getServiceAccountEmail().isEmpty()) {
serviceAccountEmail_ = other.serviceAccountEmail_;
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
onChanged();
}
switch (other.getOutputFormatCase()) {
Expand Down Expand Up @@ -2541,10 +2576,16 @@ public Builder mergeFrom(
bitField0_ |= 0x00000080;
break;
} // case 56
case 64:
{
maxMessages_ = input.readInt64();
bitField0_ |= 0x00000100;
break;
} // case 64
case 72:
{
state_ = input.readEnum();
bitField0_ |= 0x00000100;
bitField0_ |= 0x00000200;
break;
} // case 72
case 82:
Expand All @@ -2556,7 +2597,7 @@ public Builder mergeFrom(
case 90:
{
serviceAccountEmail_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
break;
} // case 90
default:
Expand Down Expand Up @@ -3801,6 +3842,62 @@ public Builder clearMaxBytes() {
return this;
}

private long maxMessages_;
/**
*
*
* <pre>
* Optional. The maximum number of messages that can be written to a Cloud
* Storage file before a new file is created. Min 1000 messages.
* </pre>
*
* <code>int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The maxMessages.
*/
@java.lang.Override
public long getMaxMessages() {
return maxMessages_;
}
/**
*
*
* <pre>
* Optional. The maximum number of messages that can be written to a Cloud
* Storage file before a new file is created. Min 1000 messages.
* </pre>
*
* <code>int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @param value The maxMessages to set.
* @return This builder for chaining.
*/
public Builder setMaxMessages(long value) {

maxMessages_ = value;
bitField0_ |= 0x00000100;
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. The maximum number of messages that can be written to a Cloud
* Storage file before a new file is created. Min 1000 messages.
* </pre>
*
* <code>int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return This builder for chaining.
*/
public Builder clearMaxMessages() {
bitField0_ = (bitField0_ & ~0x00000100);
maxMessages_ = 0L;
onChanged();
return this;
}

private int state_ = 0;
/**
*
Expand Down Expand Up @@ -3837,7 +3934,7 @@ public int getStateValue() {
*/
public Builder setStateValue(int value) {
state_ = value;
bitField0_ |= 0x00000100;
bitField0_ |= 0x00000200;
onChanged();
return this;
}
Expand Down Expand Up @@ -3880,7 +3977,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
bitField0_ |= 0x00000200;
state_ = value.getNumber();
onChanged();
return this;
Expand All @@ -3900,7 +3997,7 @@ public Builder setState(com.google.pubsub.v1.CloudStorageConfig.State value) {
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000100);
bitField0_ = (bitField0_ & ~0x00000200);
state_ = 0;
onChanged();
return this;
Expand Down Expand Up @@ -3983,7 +4080,7 @@ public Builder setServiceAccountEmail(java.lang.String value) {
throw new NullPointerException();
}
serviceAccountEmail_ = value;
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
Expand All @@ -4005,7 +4102,7 @@ public Builder setServiceAccountEmail(java.lang.String value) {
*/
public Builder clearServiceAccountEmail() {
serviceAccountEmail_ = getDefaultInstance().getServiceAccountEmail();
bitField0_ = (bitField0_ & ~0x00000200);
bitField0_ = (bitField0_ & ~0x00000400);
onChanged();
return this;
}
Expand All @@ -4032,7 +4129,7 @@ public Builder setServiceAccountEmailBytes(com.google.protobuf.ByteString value)
}
checkByteStringIsUtf8(value);
serviceAccountEmail_ = value;
bitField0_ |= 0x00000200;
bitField0_ |= 0x00000400;
onChanged();
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,20 @@ public interface CloudStorageConfigOrBuilder
*/
long getMaxBytes();

/**
*
*
* <pre>
* Optional. The maximum number of messages that can be written to a Cloud
* Storage file before a new file is created. Min 1000 messages.
* </pre>
*
* <code>int64 max_messages = 8 [(.google.api.field_behavior) = OPTIONAL];</code>
*
* @return The maxMessages.
*/
long getMaxMessages();

/**
*
*
Expand Down
Loading
Loading