Skip to content

Commit

Permalink
feat: [container] added configuration for the StatefulHA addon to the…
Browse files Browse the repository at this point in the history
… AddonsConfig (#10345)

* feat: added configuration for the StatefulHA addon to the AddonsConfig

PiperOrigin-RevId: 604687474

Source-Link: googleapis/googleapis@8b16254

Source-Link: googleapis/googleapis-gen@758959f
Copy-Tag: eyJwIjoiamF2YS1jb250YWluZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc1ODk1OWYxZGQ1ZjYxNTI5MjBlZjQyYzcxZDU0YmNjMmJmZjAyODMifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Feb 8, 2024
1 parent 471fafd commit 4db5bc4
Show file tree
Hide file tree
Showing 79 changed files with 3,096 additions and 2,144 deletions.
Expand Up @@ -3617,6 +3617,24 @@
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.container.v1.StatefulHAConfig",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.container.v1.StatefulHAConfig$Builder",
"queryAllDeclaredConstructors": true,
"queryAllPublicConstructors": true,
"queryAllDeclaredMethods": true,
"allPublicMethods": true,
"allDeclaredClasses": true,
"allPublicClasses": true
},
{
"name": "com.google.container.v1.StatusCondition",
"queryAllDeclaredConstructors": true,
Expand Down
Expand Up @@ -672,6 +672,62 @@ public com.google.container.v1.GcsFuseCsiDriverConfig getGcsFuseCsiDriverConfig(
: gcsFuseCsiDriverConfig_;
}

public static final int STATEFUL_HA_CONFIG_FIELD_NUMBER = 18;
private com.google.container.v1.StatefulHAConfig statefulHaConfig_;
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the statefulHaConfig field is set.
*/
@java.lang.Override
public boolean hasStatefulHaConfig() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The statefulHaConfig.
*/
@java.lang.Override
public com.google.container.v1.StatefulHAConfig getStatefulHaConfig() {
return statefulHaConfig_ == null
? com.google.container.v1.StatefulHAConfig.getDefaultInstance()
: statefulHaConfig_;
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
@java.lang.Override
public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() {
return statefulHaConfig_ == null
? com.google.container.v1.StatefulHAConfig.getDefaultInstance()
: statefulHaConfig_;
}

private byte memoizedIsInitialized = -1;

@java.lang.Override
Expand Down Expand Up @@ -719,6 +775,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (((bitField0_ & 0x00000400) != 0)) {
output.writeMessage(17, getGcsFuseCsiDriverConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(18, getStatefulHaConfig());
}
getUnknownFields().writeTo(output);
}

Expand Down Expand Up @@ -770,6 +829,9 @@ public int getSerializedSize() {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(17, getGcsFuseCsiDriverConfig());
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(18, getStatefulHaConfig());
}
size += getUnknownFields().getSerializedSize();
memoizedSize = size;
return size;
Expand Down Expand Up @@ -832,6 +894,10 @@ public boolean equals(final java.lang.Object obj) {
if (hasGcsFuseCsiDriverConfig()) {
if (!getGcsFuseCsiDriverConfig().equals(other.getGcsFuseCsiDriverConfig())) return false;
}
if (hasStatefulHaConfig() != other.hasStatefulHaConfig()) return false;
if (hasStatefulHaConfig()) {
if (!getStatefulHaConfig().equals(other.getStatefulHaConfig())) return false;
}
if (!getUnknownFields().equals(other.getUnknownFields())) return false;
return true;
}
Expand Down Expand Up @@ -887,6 +953,10 @@ public int hashCode() {
hash = (37 * hash) + GCS_FUSE_CSI_DRIVER_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getGcsFuseCsiDriverConfig().hashCode();
}
if (hasStatefulHaConfig()) {
hash = (37 * hash) + STATEFUL_HA_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getStatefulHaConfig().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
Expand Down Expand Up @@ -1038,6 +1108,7 @@ private void maybeForceBuilderInitialization() {
getGcpFilestoreCsiDriverConfigFieldBuilder();
getGkeBackupAgentConfigFieldBuilder();
getGcsFuseCsiDriverConfigFieldBuilder();
getStatefulHaConfigFieldBuilder();
}
}

Expand Down Expand Up @@ -1100,6 +1171,11 @@ public Builder clear() {
gcsFuseCsiDriverConfigBuilder_.dispose();
gcsFuseCsiDriverConfigBuilder_ = null;
}
statefulHaConfig_ = null;
if (statefulHaConfigBuilder_ != null) {
statefulHaConfigBuilder_.dispose();
statefulHaConfigBuilder_ = null;
}
return this;
}

Expand Down Expand Up @@ -1209,6 +1285,11 @@ private void buildPartial0(com.google.container.v1.AddonsConfig result) {
: gcsFuseCsiDriverConfigBuilder_.build();
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.statefulHaConfig_ =
statefulHaConfigBuilder_ == null ? statefulHaConfig_ : statefulHaConfigBuilder_.build();
to_bitField0_ |= 0x00000800;
}
result.bitField0_ |= to_bitField0_;
}

Expand Down Expand Up @@ -1290,6 +1371,9 @@ public Builder mergeFrom(com.google.container.v1.AddonsConfig other) {
if (other.hasGcsFuseCsiDriverConfig()) {
mergeGcsFuseCsiDriverConfig(other.getGcsFuseCsiDriverConfig());
}
if (other.hasStatefulHaConfig()) {
mergeStatefulHaConfig(other.getStatefulHaConfig());
}
this.mergeUnknownFields(other.getUnknownFields());
onChanged();
return this;
Expand Down Expand Up @@ -1392,6 +1476,13 @@ public Builder mergeFrom(
bitField0_ |= 0x00000400;
break;
} // case 138
case 146:
{
input.readMessage(
getStatefulHaConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000800;
break;
} // case 146
default:
{
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
Expand Down Expand Up @@ -3632,6 +3723,210 @@ public Builder clearGcsFuseCsiDriverConfig() {
return gcsFuseCsiDriverConfigBuilder_;
}

private com.google.container.v1.StatefulHAConfig statefulHaConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.StatefulHAConfig,
com.google.container.v1.StatefulHAConfig.Builder,
com.google.container.v1.StatefulHAConfigOrBuilder>
statefulHaConfigBuilder_;
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return Whether the statefulHaConfig field is set.
*/
public boolean hasStatefulHaConfig() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*
* @return The statefulHaConfig.
*/
public com.google.container.v1.StatefulHAConfig getStatefulHaConfig() {
if (statefulHaConfigBuilder_ == null) {
return statefulHaConfig_ == null
? com.google.container.v1.StatefulHAConfig.getDefaultInstance()
: statefulHaConfig_;
} else {
return statefulHaConfigBuilder_.getMessage();
}
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setStatefulHaConfig(com.google.container.v1.StatefulHAConfig value) {
if (statefulHaConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
statefulHaConfig_ = value;
} else {
statefulHaConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder setStatefulHaConfig(
com.google.container.v1.StatefulHAConfig.Builder builderForValue) {
if (statefulHaConfigBuilder_ == null) {
statefulHaConfig_ = builderForValue.build();
} else {
statefulHaConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder mergeStatefulHaConfig(com.google.container.v1.StatefulHAConfig value) {
if (statefulHaConfigBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0)
&& statefulHaConfig_ != null
&& statefulHaConfig_ != com.google.container.v1.StatefulHAConfig.getDefaultInstance()) {
getStatefulHaConfigBuilder().mergeFrom(value);
} else {
statefulHaConfig_ = value;
}
} else {
statefulHaConfigBuilder_.mergeFrom(value);
}
if (statefulHaConfig_ != null) {
bitField0_ |= 0x00000800;
onChanged();
}
return this;
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public Builder clearStatefulHaConfig() {
bitField0_ = (bitField0_ & ~0x00000800);
statefulHaConfig_ = null;
if (statefulHaConfigBuilder_ != null) {
statefulHaConfigBuilder_.dispose();
statefulHaConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.container.v1.StatefulHAConfig.Builder getStatefulHaConfigBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getStatefulHaConfigFieldBuilder().getBuilder();
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
public com.google.container.v1.StatefulHAConfigOrBuilder getStatefulHaConfigOrBuilder() {
if (statefulHaConfigBuilder_ != null) {
return statefulHaConfigBuilder_.getMessageOrBuilder();
} else {
return statefulHaConfig_ == null
? com.google.container.v1.StatefulHAConfig.getDefaultInstance()
: statefulHaConfig_;
}
}
/**
*
*
* <pre>
* Optional. Configuration for the StatefulHA add-on.
* </pre>
*
* <code>
* .google.container.v1.StatefulHAConfig stateful_ha_config = 18 [(.google.api.field_behavior) = OPTIONAL];
* </code>
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.StatefulHAConfig,
com.google.container.v1.StatefulHAConfig.Builder,
com.google.container.v1.StatefulHAConfigOrBuilder>
getStatefulHaConfigFieldBuilder() {
if (statefulHaConfigBuilder_ == null) {
statefulHaConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.container.v1.StatefulHAConfig,
com.google.container.v1.StatefulHAConfig.Builder,
com.google.container.v1.StatefulHAConfigOrBuilder>(
getStatefulHaConfig(), getParentForChildren(), isClean());
statefulHaConfig_ = null;
}
return statefulHaConfigBuilder_;
}

@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
Expand Down

0 comments on commit 4db5bc4

Please sign in to comment.