com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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
/*
* 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.NetworkEndpointWithHealthStatus}
*/
public final class NetworkEndpointWithHealthStatus extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.NetworkEndpointWithHealthStatus)
NetworkEndpointWithHealthStatusOrBuilder {
private static final long serialVersionUID = 0L;
// Use NetworkEndpointWithHealthStatus.newBuilder() to construct.
private NetworkEndpointWithHealthStatus(
com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NetworkEndpointWithHealthStatus() {
healths_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new NetworkEndpointWithHealthStatus();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.class,
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.Builder.class);
}
private int bitField0_;
public static final int HEALTHS_FIELD_NUMBER = 258689431;
@SuppressWarnings("serial")
private java.util.List healths_;
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
@java.lang.Override
public java.util.List
getHealthsList() {
return healths_;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
@java.lang.Override
public java.util.List<
? extends com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder>
getHealthsOrBuilderList() {
return healths_;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
@java.lang.Override
public int getHealthsCount() {
return healths_.size();
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint getHealths(int index) {
return healths_.get(index);
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
@java.lang.Override
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHealthsOrBuilder(
int index) {
return healths_.get(index);
}
public static final int NETWORK_ENDPOINT_FIELD_NUMBER = 56789126;
private com.google.cloud.compute.v1.NetworkEndpoint networkEndpoint_;
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*
* @return Whether the networkEndpoint field is set.
*/
@java.lang.Override
public boolean hasNetworkEndpoint() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*
* @return The networkEndpoint.
*/
@java.lang.Override
public com.google.cloud.compute.v1.NetworkEndpoint getNetworkEndpoint() {
return networkEndpoint_ == null
? com.google.cloud.compute.v1.NetworkEndpoint.getDefaultInstance()
: networkEndpoint_;
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
@java.lang.Override
public com.google.cloud.compute.v1.NetworkEndpointOrBuilder getNetworkEndpointOrBuilder() {
return networkEndpoint_ == null
? com.google.cloud.compute.v1.NetworkEndpoint.getDefaultInstance()
: networkEndpoint_;
}
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_ & 0x00000001) != 0)) {
output.writeMessage(56789126, getNetworkEndpoint());
}
for (int i = 0; i < healths_.size(); i++) {
output.writeMessage(258689431, healths_.get(i));
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size +=
com.google.protobuf.CodedOutputStream.computeMessageSize(56789126, getNetworkEndpoint());
}
for (int i = 0; i < healths_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(258689431, healths_.get(i));
}
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.NetworkEndpointWithHealthStatus)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus other =
(com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus) obj;
if (!getHealthsList().equals(other.getHealthsList())) return false;
if (hasNetworkEndpoint() != other.hasNetworkEndpoint()) return false;
if (hasNetworkEndpoint()) {
if (!getNetworkEndpoint().equals(other.getNetworkEndpoint())) 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 (getHealthsCount() > 0) {
hash = (37 * hash) + HEALTHS_FIELD_NUMBER;
hash = (53 * hash) + getHealthsList().hashCode();
}
if (hasNetworkEndpoint()) {
hash = (37 * hash) + NETWORK_ENDPOINT_FIELD_NUMBER;
hash = (53 * hash) + getNetworkEndpoint().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.NetworkEndpointWithHealthStatus)
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatusOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_NetworkEndpointWithHealthStatus_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.class,
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.Builder.class);
}
// Construct using com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getHealthsFieldBuilder();
getNetworkEndpointFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
if (healthsBuilder_ == null) {
healths_ = java.util.Collections.emptyList();
} else {
healths_ = null;
healthsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
networkEndpoint_ = null;
if (networkEndpointBuilder_ != null) {
networkEndpointBuilder_.dispose();
networkEndpointBuilder_ = 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_NetworkEndpointWithHealthStatus_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus getDefaultInstanceForType() {
return com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus build() {
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus buildPartial() {
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus result =
new com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus result) {
if (healthsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
healths_ = java.util.Collections.unmodifiableList(healths_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.healths_ = healths_;
} else {
result.healths_ = healthsBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000002) != 0)) {
result.networkEndpoint_ =
networkEndpointBuilder_ == null ? networkEndpoint_ : networkEndpointBuilder_.build();
to_bitField0_ |= 0x00000001;
}
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.NetworkEndpointWithHealthStatus) {
return mergeFrom((com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus other) {
if (other == com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus.getDefaultInstance())
return this;
if (healthsBuilder_ == null) {
if (!other.healths_.isEmpty()) {
if (healths_.isEmpty()) {
healths_ = other.healths_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureHealthsIsMutable();
healths_.addAll(other.healths_);
}
onChanged();
}
} else {
if (!other.healths_.isEmpty()) {
if (healthsBuilder_.isEmpty()) {
healthsBuilder_.dispose();
healthsBuilder_ = null;
healths_ = other.healths_;
bitField0_ = (bitField0_ & ~0x00000001);
healthsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getHealthsFieldBuilder()
: null;
} else {
healthsBuilder_.addAllMessages(other.healths_);
}
}
}
if (other.hasNetworkEndpoint()) {
mergeNetworkEndpoint(other.getNetworkEndpoint());
}
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 454313010:
{
input.readMessage(getNetworkEndpointFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000002;
break;
} // case 454313010
case 2069515450:
{
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint m =
input.readMessage(
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.parser(),
extensionRegistry);
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
healths_.add(m);
} else {
healthsBuilder_.addMessage(m);
}
break;
} // case 2069515450
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 java.util.List healths_ =
java.util.Collections.emptyList();
private void ensureHealthsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
healths_ =
new java.util.ArrayList(
healths_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder>
healthsBuilder_;
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public java.util.List
getHealthsList() {
if (healthsBuilder_ == null) {
return java.util.Collections.unmodifiableList(healths_);
} else {
return healthsBuilder_.getMessageList();
}
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public int getHealthsCount() {
if (healthsBuilder_ == null) {
return healths_.size();
} else {
return healthsBuilder_.getCount();
}
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint getHealths(int index) {
if (healthsBuilder_ == null) {
return healths_.get(index);
} else {
return healthsBuilder_.getMessage(index);
}
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder setHealths(
int index, com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint value) {
if (healthsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthsIsMutable();
healths_.set(index, value);
onChanged();
} else {
healthsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder setHealths(
int index,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder builderForValue) {
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
healths_.set(index, builderForValue.build());
onChanged();
} else {
healthsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder addHealths(com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint value) {
if (healthsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthsIsMutable();
healths_.add(value);
onChanged();
} else {
healthsBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder addHealths(
int index, com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint value) {
if (healthsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureHealthsIsMutable();
healths_.add(index, value);
onChanged();
} else {
healthsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder addHealths(
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder builderForValue) {
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
healths_.add(builderForValue.build());
onChanged();
} else {
healthsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder addHealths(
int index,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder builderForValue) {
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
healths_.add(index, builderForValue.build());
onChanged();
} else {
healthsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder addAllHealths(
java.lang.Iterable extends com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint>
values) {
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, healths_);
onChanged();
} else {
healthsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder clearHealths() {
if (healthsBuilder_ == null) {
healths_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
healthsBuilder_.clear();
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public Builder removeHealths(int index) {
if (healthsBuilder_ == null) {
ensureHealthsIsMutable();
healths_.remove(index);
onChanged();
} else {
healthsBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder getHealthsBuilder(
int index) {
return getHealthsFieldBuilder().getBuilder(index);
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder getHealthsOrBuilder(
int index) {
if (healthsBuilder_ == null) {
return healths_.get(index);
} else {
return healthsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public java.util.List<
? extends com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder>
getHealthsOrBuilderList() {
if (healthsBuilder_ != null) {
return healthsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(healths_);
}
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder addHealthsBuilder() {
return getHealthsFieldBuilder()
.addBuilder(
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.getDefaultInstance());
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder addHealthsBuilder(
int index) {
return getHealthsFieldBuilder()
.addBuilder(
index,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.getDefaultInstance());
}
/**
*
*
*
* [Output only] The health status of network endpoint;
*
*
* repeated .google.cloud.compute.v1.HealthStatusForNetworkEndpoint healths = 258689431;
*
*/
public java.util.List
getHealthsBuilderList() {
return getHealthsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder>
getHealthsFieldBuilder() {
if (healthsBuilder_ == null) {
healthsBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpoint.Builder,
com.google.cloud.compute.v1.HealthStatusForNetworkEndpointOrBuilder>(
healths_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
healths_ = null;
}
return healthsBuilder_;
}
private com.google.cloud.compute.v1.NetworkEndpoint networkEndpoint_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.NetworkEndpoint,
com.google.cloud.compute.v1.NetworkEndpoint.Builder,
com.google.cloud.compute.v1.NetworkEndpointOrBuilder>
networkEndpointBuilder_;
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*
* @return Whether the networkEndpoint field is set.
*/
public boolean hasNetworkEndpoint() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*
* @return The networkEndpoint.
*/
public com.google.cloud.compute.v1.NetworkEndpoint getNetworkEndpoint() {
if (networkEndpointBuilder_ == null) {
return networkEndpoint_ == null
? com.google.cloud.compute.v1.NetworkEndpoint.getDefaultInstance()
: networkEndpoint_;
} else {
return networkEndpointBuilder_.getMessage();
}
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public Builder setNetworkEndpoint(com.google.cloud.compute.v1.NetworkEndpoint value) {
if (networkEndpointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
networkEndpoint_ = value;
} else {
networkEndpointBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public Builder setNetworkEndpoint(
com.google.cloud.compute.v1.NetworkEndpoint.Builder builderForValue) {
if (networkEndpointBuilder_ == null) {
networkEndpoint_ = builderForValue.build();
} else {
networkEndpointBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public Builder mergeNetworkEndpoint(com.google.cloud.compute.v1.NetworkEndpoint value) {
if (networkEndpointBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)
&& networkEndpoint_ != null
&& networkEndpoint_
!= com.google.cloud.compute.v1.NetworkEndpoint.getDefaultInstance()) {
getNetworkEndpointBuilder().mergeFrom(value);
} else {
networkEndpoint_ = value;
}
} else {
networkEndpointBuilder_.mergeFrom(value);
}
if (networkEndpoint_ != null) {
bitField0_ |= 0x00000002;
onChanged();
}
return this;
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public Builder clearNetworkEndpoint() {
bitField0_ = (bitField0_ & ~0x00000002);
networkEndpoint_ = null;
if (networkEndpointBuilder_ != null) {
networkEndpointBuilder_.dispose();
networkEndpointBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public com.google.cloud.compute.v1.NetworkEndpoint.Builder getNetworkEndpointBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getNetworkEndpointFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
public com.google.cloud.compute.v1.NetworkEndpointOrBuilder getNetworkEndpointOrBuilder() {
if (networkEndpointBuilder_ != null) {
return networkEndpointBuilder_.getMessageOrBuilder();
} else {
return networkEndpoint_ == null
? com.google.cloud.compute.v1.NetworkEndpoint.getDefaultInstance()
: networkEndpoint_;
}
}
/**
*
*
*
* [Output only] The network endpoint;
*
*
* optional .google.cloud.compute.v1.NetworkEndpoint network_endpoint = 56789126;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.NetworkEndpoint,
com.google.cloud.compute.v1.NetworkEndpoint.Builder,
com.google.cloud.compute.v1.NetworkEndpointOrBuilder>
getNetworkEndpointFieldBuilder() {
if (networkEndpointBuilder_ == null) {
networkEndpointBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.NetworkEndpoint,
com.google.cloud.compute.v1.NetworkEndpoint.Builder,
com.google.cloud.compute.v1.NetworkEndpointOrBuilder>(
getNetworkEndpoint(), getParentForChildren(), isClean());
networkEndpoint_ = null;
}
return networkEndpointBuilder_;
}
@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.NetworkEndpointWithHealthStatus)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.NetworkEndpointWithHealthStatus)
private static final com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus();
}
public static com.google.cloud.compute.v1.NetworkEndpointWithHealthStatus getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NetworkEndpointWithHealthStatus 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.NetworkEndpointWithHealthStatus getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy