com.google.cloud.compute.v1.InstanceGroupManagerStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-compute-v1 Show documentation
Show all versions of proto-google-cloud-compute-v1 Show documentation
Proto library for google-cloud-compute
The newest version!
/*
* 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/cloud/compute/v1/compute.proto
// Protobuf Java Version: 3.25.5
package com.google.cloud.compute.v1;
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStatus}
*/
public final class InstanceGroupManagerStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.InstanceGroupManagerStatus)
InstanceGroupManagerStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use InstanceGroupManagerStatus.newBuilder() to construct.
private InstanceGroupManagerStatus(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InstanceGroupManagerStatus() {
autoscaler_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new InstanceGroupManagerStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstanceGroupManagerStatus.class,
com.google.cloud.compute.v1.InstanceGroupManagerStatus.Builder.class);
}
private int bitField0_;
public static final int ALL_INSTANCES_CONFIG_FIELD_NUMBER = 112596737;
private com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
allInstancesConfig_;
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*
* @return Whether the allInstancesConfig field is set.
*/
@java.lang.Override
public boolean hasAllInstancesConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*
* @return The allInstancesConfig.
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
getAllInstancesConfig() {
return allInstancesConfig_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
.getDefaultInstance()
: allInstancesConfig_;
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigOrBuilder
getAllInstancesConfigOrBuilder() {
return allInstancesConfig_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
.getDefaultInstance()
: allInstancesConfig_;
}
public static final int AUTOSCALER_FIELD_NUMBER = 517258967;
@SuppressWarnings("serial")
private volatile java.lang.Object autoscaler_ = "";
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return Whether the autoscaler field is set.
*/
@java.lang.Override
public boolean hasAutoscaler() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return The autoscaler.
*/
@java.lang.Override
public java.lang.String getAutoscaler() {
java.lang.Object ref = autoscaler_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
autoscaler_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return The bytes for autoscaler.
*/
@java.lang.Override
public com.google.protobuf.ByteString getAutoscalerBytes() {
java.lang.Object ref = autoscaler_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
autoscaler_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IS_STABLE_FIELD_NUMBER = 108410864;
private boolean isStable_ = false;
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @return Whether the isStable field is set.
*/
@java.lang.Override
public boolean hasIsStable() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @return The isStable.
*/
@java.lang.Override
public boolean getIsStable() {
return isStable_;
}
public static final int STATEFUL_FIELD_NUMBER = 244462412;
private com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful_;
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*
* @return Whether the stateful field is set.
*/
@java.lang.Override
public boolean hasStateful() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*
* @return The stateful.
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStateful() {
return stateful_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.getDefaultInstance()
: stateful_;
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulOrBuilder
getStatefulOrBuilder() {
return stateful_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.getDefaultInstance()
: stateful_;
}
public static final int VERSION_TARGET_FIELD_NUMBER = 289386200;
private com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget versionTarget_;
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*
* @return Whether the versionTarget field is set.
*/
@java.lang.Override
public boolean hasVersionTarget() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*
* @return The versionTarget.
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget getVersionTarget() {
return versionTarget_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.getDefaultInstance()
: versionTarget_;
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetOrBuilder
getVersionTargetOrBuilder() {
return versionTarget_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.getDefaultInstance()
: versionTarget_;
}
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 {
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(108410864, isStable_);
}
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(112596737, getAllInstancesConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(244462412, getStateful());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(289386200, getVersionTarget());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 517258967, autoscaler_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeBoolSize(108410864, isStable_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(
112596737, getAllInstancesConfig());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(244462412, getStateful());
}
if (((bitField0_ & 0x00000010) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(289386200, getVersionTarget());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(517258967, autoscaler_);
}
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.cloud.compute.v1.InstanceGroupManagerStatus)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.InstanceGroupManagerStatus other =
(com.google.cloud.compute.v1.InstanceGroupManagerStatus) obj;
if (hasAllInstancesConfig() != other.hasAllInstancesConfig()) return false;
if (hasAllInstancesConfig()) {
if (!getAllInstancesConfig().equals(other.getAllInstancesConfig())) return false;
}
if (hasAutoscaler() != other.hasAutoscaler()) return false;
if (hasAutoscaler()) {
if (!getAutoscaler().equals(other.getAutoscaler())) return false;
}
if (hasIsStable() != other.hasIsStable()) return false;
if (hasIsStable()) {
if (getIsStable() != other.getIsStable()) return false;
}
if (hasStateful() != other.hasStateful()) return false;
if (hasStateful()) {
if (!getStateful().equals(other.getStateful())) return false;
}
if (hasVersionTarget() != other.hasVersionTarget()) return false;
if (hasVersionTarget()) {
if (!getVersionTarget().equals(other.getVersionTarget())) 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 (hasAllInstancesConfig()) {
hash = (37 * hash) + ALL_INSTANCES_CONFIG_FIELD_NUMBER;
hash = (53 * hash) + getAllInstancesConfig().hashCode();
}
if (hasAutoscaler()) {
hash = (37 * hash) + AUTOSCALER_FIELD_NUMBER;
hash = (53 * hash) + getAutoscaler().hashCode();
}
if (hasIsStable()) {
hash = (37 * hash) + IS_STABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsStable());
}
if (hasStateful()) {
hash = (37 * hash) + STATEFUL_FIELD_NUMBER;
hash = (53 * hash) + getStateful().hashCode();
}
if (hasVersionTarget()) {
hash = (37 * hash) + VERSION_TARGET_FIELD_NUMBER;
hash = (53 * hash) + getVersionTarget().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus 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.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus 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.cloud.compute.v1.InstanceGroupManagerStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus 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.cloud.compute.v1.InstanceGroupManagerStatus parseFrom(
com.google.protobuf.CodedInputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus 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.cloud.compute.v1.InstanceGroupManagerStatus 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;
}
/**
*
*
*
*
*
* Protobuf type {@code google.cloud.compute.v1.InstanceGroupManagerStatus}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.InstanceGroupManagerStatus)
com.google.cloud.compute.v1.InstanceGroupManagerStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.InstanceGroupManagerStatus.class,
com.google.cloud.compute.v1.InstanceGroupManagerStatus.Builder.class);
}
// Construct using com.google.cloud.compute.v1.InstanceGroupManagerStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getAllInstancesConfigFieldBuilder();
getStatefulFieldBuilder();
getVersionTargetFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
allInstancesConfig_ = null;
if (allInstancesConfigBuilder_ != null) {
allInstancesConfigBuilder_.dispose();
allInstancesConfigBuilder_ = null;
}
autoscaler_ = "";
isStable_ = false;
stateful_ = null;
if (statefulBuilder_ != null) {
statefulBuilder_.dispose();
statefulBuilder_ = null;
}
versionTarget_ = null;
if (versionTargetBuilder_ != null) {
versionTargetBuilder_.dispose();
versionTargetBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_InstanceGroupManagerStatus_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatus getDefaultInstanceForType() {
return com.google.cloud.compute.v1.InstanceGroupManagerStatus.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatus build() {
com.google.cloud.compute.v1.InstanceGroupManagerStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatus buildPartial() {
com.google.cloud.compute.v1.InstanceGroupManagerStatus result =
new com.google.cloud.compute.v1.InstanceGroupManagerStatus(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.compute.v1.InstanceGroupManagerStatus result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.allInstancesConfig_ =
allInstancesConfigBuilder_ == null
? allInstancesConfig_
: allInstancesConfigBuilder_.build();
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.autoscaler_ = autoscaler_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.isStable_ = isStable_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.stateful_ = statefulBuilder_ == null ? stateful_ : statefulBuilder_.build();
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.versionTarget_ =
versionTargetBuilder_ == null ? versionTarget_ : versionTargetBuilder_.build();
to_bitField0_ |= 0x00000010;
}
result.bitField0_ |= to_bitField0_;
}
@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.cloud.compute.v1.InstanceGroupManagerStatus) {
return mergeFrom((com.google.cloud.compute.v1.InstanceGroupManagerStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.InstanceGroupManagerStatus other) {
if (other == com.google.cloud.compute.v1.InstanceGroupManagerStatus.getDefaultInstance())
return this;
if (other.hasAllInstancesConfig()) {
mergeAllInstancesConfig(other.getAllInstancesConfig());
}
if (other.hasAutoscaler()) {
autoscaler_ = other.autoscaler_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasIsStable()) {
setIsStable(other.getIsStable());
}
if (other.hasStateful()) {
mergeStateful(other.getStateful());
}
if (other.hasVersionTarget()) {
mergeVersionTarget(other.getVersionTarget());
}
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 867286912:
{
isStable_ = input.readBool();
bitField0_ |= 0x00000004;
break;
} // case 867286912
case 900773898:
{
input.readMessage(
getAllInstancesConfigFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000001;
break;
} // case 900773898
case 1955699298:
{
input.readMessage(getStatefulFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000008;
break;
} // case 1955699298
case -1979877694:
{
input.readMessage(getVersionTargetFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000010;
break;
} // case -1979877694
case -156895558:
{
autoscaler_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case -156895558
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.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
allInstancesConfig_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigOrBuilder>
allInstancesConfigBuilder_;
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*
* @return Whether the allInstancesConfig field is set.
*/
public boolean hasAllInstancesConfig() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*
* @return The allInstancesConfig.
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
getAllInstancesConfig() {
if (allInstancesConfigBuilder_ == null) {
return allInstancesConfig_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
.getDefaultInstance()
: allInstancesConfig_;
} else {
return allInstancesConfigBuilder_.getMessage();
}
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public Builder setAllInstancesConfig(
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig value) {
if (allInstancesConfigBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
allInstancesConfig_ = value;
} else {
allInstancesConfigBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public Builder setAllInstancesConfig(
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.Builder
builderForValue) {
if (allInstancesConfigBuilder_ == null) {
allInstancesConfig_ = builderForValue.build();
} else {
allInstancesConfigBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public Builder mergeAllInstancesConfig(
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig value) {
if (allInstancesConfigBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)
&& allInstancesConfig_ != null
&& allInstancesConfig_
!= com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
.getDefaultInstance()) {
getAllInstancesConfigBuilder().mergeFrom(value);
} else {
allInstancesConfig_ = value;
}
} else {
allInstancesConfigBuilder_.mergeFrom(value);
}
if (allInstancesConfig_ != null) {
bitField0_ |= 0x00000001;
onChanged();
}
return this;
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public Builder clearAllInstancesConfig() {
bitField0_ = (bitField0_ & ~0x00000001);
allInstancesConfig_ = null;
if (allInstancesConfigBuilder_ != null) {
allInstancesConfigBuilder_.dispose();
allInstancesConfigBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.Builder
getAllInstancesConfigBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getAllInstancesConfigFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigOrBuilder
getAllInstancesConfigOrBuilder() {
if (allInstancesConfigBuilder_ != null) {
return allInstancesConfigBuilder_.getMessageOrBuilder();
} else {
return allInstancesConfig_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig
.getDefaultInstance()
: allInstancesConfig_;
}
}
/**
*
*
*
* [Output only] Status of all-instances configuration on the group.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig all_instances_config = 112596737;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigOrBuilder>
getAllInstancesConfigFieldBuilder() {
if (allInstancesConfigBuilder_ == null) {
allInstancesConfigBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfig.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusAllInstancesConfigOrBuilder>(
getAllInstancesConfig(), getParentForChildren(), isClean());
allInstancesConfig_ = null;
}
return allInstancesConfigBuilder_;
}
private java.lang.Object autoscaler_ = "";
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return Whether the autoscaler field is set.
*/
public boolean hasAutoscaler() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return The autoscaler.
*/
public java.lang.String getAutoscaler() {
java.lang.Object ref = autoscaler_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
autoscaler_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return The bytes for autoscaler.
*/
public com.google.protobuf.ByteString getAutoscalerBytes() {
java.lang.Object ref = autoscaler_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
autoscaler_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @param value The autoscaler to set.
* @return This builder for chaining.
*/
public Builder setAutoscaler(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
autoscaler_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @return This builder for chaining.
*/
public Builder clearAutoscaler() {
autoscaler_ = getDefaultInstance().getAutoscaler();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The URL of the Autoscaler that targets this instance group manager.
*
*
* optional string autoscaler = 517258967;
*
* @param value The bytes for autoscaler to set.
* @return This builder for chaining.
*/
public Builder setAutoscalerBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
autoscaler_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private boolean isStable_;
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @return Whether the isStable field is set.
*/
@java.lang.Override
public boolean hasIsStable() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @return The isStable.
*/
@java.lang.Override
public boolean getIsStable() {
return isStable_;
}
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @param value The isStable to set.
* @return This builder for chaining.
*/
public Builder setIsStable(boolean value) {
isStable_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] A bit indicating whether the managed instance group is in a stable state. A stable state means that: none of the instances in the managed instance group is currently undergoing any type of change (for example, creation, restart, or deletion); no future changes are scheduled for instances in the managed instance group; and the managed instance group itself is not being modified.
*
*
* optional bool is_stable = 108410864;
*
* @return This builder for chaining.
*/
public Builder clearIsStable() {
bitField0_ = (bitField0_ & ~0x00000004);
isStable_ = false;
onChanged();
return this;
}
private com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulOrBuilder>
statefulBuilder_;
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*
* @return Whether the stateful field is set.
*/
public boolean hasStateful() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*
* @return The stateful.
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful getStateful() {
if (statefulBuilder_ == null) {
return stateful_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.getDefaultInstance()
: stateful_;
} else {
return statefulBuilder_.getMessage();
}
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public Builder setStateful(
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful value) {
if (statefulBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stateful_ = value;
} else {
statefulBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public Builder setStateful(
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder builderForValue) {
if (statefulBuilder_ == null) {
stateful_ = builderForValue.build();
} else {
statefulBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public Builder mergeStateful(
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful value) {
if (statefulBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)
&& stateful_ != null
&& stateful_
!= com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful
.getDefaultInstance()) {
getStatefulBuilder().mergeFrom(value);
} else {
stateful_ = value;
}
} else {
statefulBuilder_.mergeFrom(value);
}
if (stateful_ != null) {
bitField0_ |= 0x00000008;
onChanged();
}
return this;
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public Builder clearStateful() {
bitField0_ = (bitField0_ & ~0x00000008);
stateful_ = null;
if (statefulBuilder_ != null) {
statefulBuilder_.dispose();
statefulBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder
getStatefulBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getStatefulFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulOrBuilder
getStatefulOrBuilder() {
if (statefulBuilder_ != null) {
return statefulBuilder_.getMessageOrBuilder();
} else {
return stateful_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.getDefaultInstance()
: stateful_;
}
}
/**
*
*
*
* [Output Only] Stateful status of the given Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusStateful stateful = 244462412;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulOrBuilder>
getStatefulFieldBuilder() {
if (statefulBuilder_ == null) {
statefulBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStateful.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusStatefulOrBuilder>(
getStateful(), getParentForChildren(), isClean());
stateful_ = null;
}
return statefulBuilder_;
}
private com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget versionTarget_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetOrBuilder>
versionTargetBuilder_;
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*
* @return Whether the versionTarget field is set.
*/
public boolean hasVersionTarget() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*
* @return The versionTarget.
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget getVersionTarget() {
if (versionTargetBuilder_ == null) {
return versionTarget_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget
.getDefaultInstance()
: versionTarget_;
} else {
return versionTargetBuilder_.getMessage();
}
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public Builder setVersionTarget(
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget value) {
if (versionTargetBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
versionTarget_ = value;
} else {
versionTargetBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public Builder setVersionTarget(
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder
builderForValue) {
if (versionTargetBuilder_ == null) {
versionTarget_ = builderForValue.build();
} else {
versionTargetBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public Builder mergeVersionTarget(
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget value) {
if (versionTargetBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0)
&& versionTarget_ != null
&& versionTarget_
!= com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget
.getDefaultInstance()) {
getVersionTargetBuilder().mergeFrom(value);
} else {
versionTarget_ = value;
}
} else {
versionTargetBuilder_.mergeFrom(value);
}
if (versionTarget_ != null) {
bitField0_ |= 0x00000010;
onChanged();
}
return this;
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public Builder clearVersionTarget() {
bitField0_ = (bitField0_ & ~0x00000010);
versionTarget_ = null;
if (versionTargetBuilder_ != null) {
versionTargetBuilder_.dispose();
versionTargetBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder
getVersionTargetBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getVersionTargetFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
public com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetOrBuilder
getVersionTargetOrBuilder() {
if (versionTargetBuilder_ != null) {
return versionTargetBuilder_.getMessageOrBuilder();
} else {
return versionTarget_ == null
? com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget
.getDefaultInstance()
: versionTarget_;
}
}
/**
*
*
*
* [Output Only] A status of consistency of Instances' versions with their target version specified by version field on Instance Group Manager.
*
*
*
* optional .google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget version_target = 289386200;
*
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetOrBuilder>
getVersionTargetFieldBuilder() {
if (versionTargetBuilder_ == null) {
versionTargetBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTarget.Builder,
com.google.cloud.compute.v1.InstanceGroupManagerStatusVersionTargetOrBuilder>(
getVersionTarget(), getParentForChildren(), isClean());
versionTarget_ = null;
}
return versionTargetBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:google.cloud.compute.v1.InstanceGroupManagerStatus)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.InstanceGroupManagerStatus)
private static final com.google.cloud.compute.v1.InstanceGroupManagerStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.InstanceGroupManagerStatus();
}
public static com.google.cloud.compute.v1.InstanceGroupManagerStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InstanceGroupManagerStatus parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
Builder builder = newBuilder();
try {
builder.mergeFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(builder.buildPartial());
} catch (com.google.protobuf.UninitializedMessageException e) {
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e)
.setUnfinishedMessage(builder.buildPartial());
}
return builder.buildPartial();
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public com.google.cloud.compute.v1.InstanceGroupManagerStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy