com.google.cloud.compute.v1.VmEndpointNatMappingsList 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;
/**
*
*
*
* Contains a list of VmEndpointNatMappings.
*
*
* Protobuf type {@code google.cloud.compute.v1.VmEndpointNatMappingsList}
*/
public final class VmEndpointNatMappingsList extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VmEndpointNatMappingsList)
VmEndpointNatMappingsListOrBuilder {
private static final long serialVersionUID = 0L;
// Use VmEndpointNatMappingsList.newBuilder() to construct.
private VmEndpointNatMappingsList(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VmEndpointNatMappingsList() {
id_ = "";
kind_ = "";
nextPageToken_ = "";
result_ = java.util.Collections.emptyList();
selfLink_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VmEndpointNatMappingsList();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.VmEndpointNatMappingsList.class,
com.google.cloud.compute.v1.VmEndpointNatMappingsList.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 3355;
@SuppressWarnings("serial")
private volatile java.lang.Object id_ = "";
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return The id.
*/
@java.lang.Override
public java.lang.String getId() {
java.lang.Object ref = id_;
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();
id_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return The bytes for id.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KIND_FIELD_NUMBER = 3292052;
@SuppressWarnings("serial")
private volatile java.lang.Object kind_ = "";
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return Whether the kind field is set.
*/
@java.lang.Override
public boolean hasKind() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return The kind.
*/
@java.lang.Override
public java.lang.String getKind() {
java.lang.Object ref = kind_;
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();
kind_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return The bytes for kind.
*/
@java.lang.Override
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 79797525;
@SuppressWarnings("serial")
private volatile java.lang.Object nextPageToken_ = "";
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return Whether the nextPageToken field is set.
*/
@java.lang.Override
public boolean hasNextPageToken() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return The nextPageToken.
*/
@java.lang.Override
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
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();
nextPageToken_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return The bytes for nextPageToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int RESULT_FIELD_NUMBER = 139315229;
@SuppressWarnings("serial")
private java.util.List result_;
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
@java.lang.Override
public java.util.List getResultList() {
return result_;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
@java.lang.Override
public java.util.List extends com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultOrBuilderList() {
return result_;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
@java.lang.Override
public int getResultCount() {
return result_.size();
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
@java.lang.Override
public com.google.cloud.compute.v1.VmEndpointNatMappings getResult(int index) {
return result_.get(index);
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
@java.lang.Override
public com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder getResultOrBuilder(int index) {
return result_.get(index);
}
public static final int SELF_LINK_FIELD_NUMBER = 456214797;
@SuppressWarnings("serial")
private volatile java.lang.Object selfLink_ = "";
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return Whether the selfLink field is set.
*/
@java.lang.Override
public boolean hasSelfLink() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return The selfLink.
*/
@java.lang.Override
public java.lang.String getSelfLink() {
java.lang.Object ref = selfLink_;
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();
selfLink_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return The bytes for selfLink.
*/
@java.lang.Override
public com.google.protobuf.ByteString getSelfLinkBytes() {
java.lang.Object ref = selfLink_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selfLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int WARNING_FIELD_NUMBER = 50704284;
private com.google.cloud.compute.v1.Warning warning_;
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return Whether the warning field is set.
*/
@java.lang.Override
public boolean hasWarning() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return The warning.
*/
@java.lang.Override
public com.google.cloud.compute.v1.Warning getWarning() {
return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
@java.lang.Override
public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
return warning_ == null ? com.google.cloud.compute.v1.Warning.getDefaultInstance() : warning_;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3355, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3292052, kind_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(50704284, getWarning());
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 79797525, nextPageToken_);
}
for (int i = 0; i < result_.size(); i++) {
output.writeMessage(139315229, result_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 456214797, selfLink_);
}
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.GeneratedMessageV3.computeStringSize(3355, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3292052, kind_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(50704284, getWarning());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(79797525, nextPageToken_);
}
for (int i = 0; i < result_.size(); i++) {
size += com.google.protobuf.CodedOutputStream.computeMessageSize(139315229, result_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(456214797, selfLink_);
}
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.VmEndpointNatMappingsList)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.VmEndpointNatMappingsList other =
(com.google.cloud.compute.v1.VmEndpointNatMappingsList) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId().equals(other.getId())) return false;
}
if (hasKind() != other.hasKind()) return false;
if (hasKind()) {
if (!getKind().equals(other.getKind())) return false;
}
if (hasNextPageToken() != other.hasNextPageToken()) return false;
if (hasNextPageToken()) {
if (!getNextPageToken().equals(other.getNextPageToken())) return false;
}
if (!getResultList().equals(other.getResultList())) return false;
if (hasSelfLink() != other.hasSelfLink()) return false;
if (hasSelfLink()) {
if (!getSelfLink().equals(other.getSelfLink())) return false;
}
if (hasWarning() != other.hasWarning()) return false;
if (hasWarning()) {
if (!getWarning().equals(other.getWarning())) 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 (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (hasKind()) {
hash = (37 * hash) + KIND_FIELD_NUMBER;
hash = (53 * hash) + getKind().hashCode();
}
if (hasNextPageToken()) {
hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getNextPageToken().hashCode();
}
if (getResultCount() > 0) {
hash = (37 * hash) + RESULT_FIELD_NUMBER;
hash = (53 * hash) + getResultList().hashCode();
}
if (hasSelfLink()) {
hash = (37 * hash) + SELF_LINK_FIELD_NUMBER;
hash = (53 * hash) + getSelfLink().hashCode();
}
if (hasWarning()) {
hash = (37 * hash) + WARNING_FIELD_NUMBER;
hash = (53 * hash) + getWarning().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList 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.VmEndpointNatMappingsList 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;
}
/**
*
*
*
* Contains a list of VmEndpointNatMappings.
*
*
* Protobuf type {@code google.cloud.compute.v1.VmEndpointNatMappingsList}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VmEndpointNatMappingsList)
com.google.cloud.compute.v1.VmEndpointNatMappingsListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VmEndpointNatMappingsList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.VmEndpointNatMappingsList.class,
com.google.cloud.compute.v1.VmEndpointNatMappingsList.Builder.class);
}
// Construct using com.google.cloud.compute.v1.VmEndpointNatMappingsList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
getResultFieldBuilder();
getWarningFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = "";
kind_ = "";
nextPageToken_ = "";
if (resultBuilder_ == null) {
result_ = java.util.Collections.emptyList();
} else {
result_ = null;
resultBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
selfLink_ = "";
warning_ = null;
if (warningBuilder_ != null) {
warningBuilder_.dispose();
warningBuilder_ = 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_VmEndpointNatMappingsList_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.VmEndpointNatMappingsList getDefaultInstanceForType() {
return com.google.cloud.compute.v1.VmEndpointNatMappingsList.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.VmEndpointNatMappingsList build() {
com.google.cloud.compute.v1.VmEndpointNatMappingsList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.VmEndpointNatMappingsList buildPartial() {
com.google.cloud.compute.v1.VmEndpointNatMappingsList result =
new com.google.cloud.compute.v1.VmEndpointNatMappingsList(this);
buildPartialRepeatedFields(result);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartialRepeatedFields(
com.google.cloud.compute.v1.VmEndpointNatMappingsList result) {
if (resultBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
result_ = java.util.Collections.unmodifiableList(result_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.result_ = result_;
} else {
result.result_ = resultBuilder_.build();
}
}
private void buildPartial0(com.google.cloud.compute.v1.VmEndpointNatMappingsList result) {
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.kind_ = kind_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.nextPageToken_ = nextPageToken_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.selfLink_ = selfLink_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.warning_ = warningBuilder_ == null ? warning_ : warningBuilder_.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.VmEndpointNatMappingsList) {
return mergeFrom((com.google.cloud.compute.v1.VmEndpointNatMappingsList) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.VmEndpointNatMappingsList other) {
if (other == com.google.cloud.compute.v1.VmEndpointNatMappingsList.getDefaultInstance())
return this;
if (other.hasId()) {
id_ = other.id_;
bitField0_ |= 0x00000001;
onChanged();
}
if (other.hasKind()) {
kind_ = other.kind_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasNextPageToken()) {
nextPageToken_ = other.nextPageToken_;
bitField0_ |= 0x00000004;
onChanged();
}
if (resultBuilder_ == null) {
if (!other.result_.isEmpty()) {
if (result_.isEmpty()) {
result_ = other.result_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureResultIsMutable();
result_.addAll(other.result_);
}
onChanged();
}
} else {
if (!other.result_.isEmpty()) {
if (resultBuilder_.isEmpty()) {
resultBuilder_.dispose();
resultBuilder_ = null;
result_ = other.result_;
bitField0_ = (bitField0_ & ~0x00000008);
resultBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
? getResultFieldBuilder()
: null;
} else {
resultBuilder_.addAllMessages(other.result_);
}
}
}
if (other.hasSelfLink()) {
selfLink_ = other.selfLink_;
bitField0_ |= 0x00000010;
onChanged();
}
if (other.hasWarning()) {
mergeWarning(other.getWarning());
}
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 26842:
{
id_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000001;
break;
} // case 26842
case 26336418:
{
kind_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case 26336418
case 405634274:
{
input.readMessage(getWarningFieldBuilder().getBuilder(), extensionRegistry);
bitField0_ |= 0x00000020;
break;
} // case 405634274
case 638380202:
{
nextPageToken_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case 638380202
case 1114521834:
{
com.google.cloud.compute.v1.VmEndpointNatMappings m =
input.readMessage(
com.google.cloud.compute.v1.VmEndpointNatMappings.parser(),
extensionRegistry);
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(m);
} else {
resultBuilder_.addMessage(m);
}
break;
} // case 1114521834
case -645248918:
{
selfLink_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000010;
break;
} // case -645248918
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.lang.Object id_ = "";
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return The id.
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return The bytes for id.
*/
public com.google.protobuf.ByteString getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] The unique identifier for the resource. This identifier is defined by the server.
*
*
* optional string id = 3355;
*
* @param value The bytes for id to set.
* @return This builder for chaining.
*/
public Builder setIdBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
private java.lang.Object kind_ = "";
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return Whether the kind field is set.
*/
public boolean hasKind() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return The kind.
*/
public java.lang.String getKind() {
java.lang.Object ref = kind_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
kind_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return The bytes for kind.
*/
public com.google.protobuf.ByteString getKindBytes() {
java.lang.Object ref = kind_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
kind_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @param value The kind to set.
* @return This builder for chaining.
*/
public Builder setKind(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
kind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @return This builder for chaining.
*/
public Builder clearKind() {
kind_ = getDefaultInstance().getKind();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Type of resource. Always compute#vmEndpointNatMappingsList for lists of Nat mappings of VM endpoints.
*
*
* optional string kind = 3292052;
*
* @param value The bytes for kind to set.
* @return This builder for chaining.
*/
public Builder setKindBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
kind_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object nextPageToken_ = "";
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return Whether the nextPageToken field is set.
*/
public boolean hasNextPageToken() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return The nextPageToken.
*/
public java.lang.String getNextPageToken() {
java.lang.Object ref = nextPageToken_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
nextPageToken_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return The bytes for nextPageToken.
*/
public com.google.protobuf.ByteString getNextPageTokenBytes() {
java.lang.Object ref = nextPageToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
nextPageToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @param value The nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageToken(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
nextPageToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @return This builder for chaining.
*/
public Builder clearNextPageToken() {
nextPageToken_ = getDefaultInstance().getNextPageToken();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results.
*
*
* optional string next_page_token = 79797525;
*
* @param value The bytes for nextPageToken to set.
* @return This builder for chaining.
*/
public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
nextPageToken_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.util.List result_ =
java.util.Collections.emptyList();
private void ensureResultIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
result_ =
new java.util.ArrayList(result_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.VmEndpointNatMappings,
com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
resultBuilder_;
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public java.util.List getResultList() {
if (resultBuilder_ == null) {
return java.util.Collections.unmodifiableList(result_);
} else {
return resultBuilder_.getMessageList();
}
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public int getResultCount() {
if (resultBuilder_ == null) {
return result_.size();
} else {
return resultBuilder_.getCount();
}
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public com.google.cloud.compute.v1.VmEndpointNatMappings getResult(int index) {
if (resultBuilder_ == null) {
return result_.get(index);
} else {
return resultBuilder_.getMessage(index);
}
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder setResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.set(index, value);
onChanged();
} else {
resultBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder setResult(
int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.set(index, builderForValue.build());
onChanged();
} else {
resultBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder addResult(com.google.cloud.compute.v1.VmEndpointNatMappings value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.add(value);
onChanged();
} else {
resultBuilder_.addMessage(value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder addResult(int index, com.google.cloud.compute.v1.VmEndpointNatMappings value) {
if (resultBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultIsMutable();
result_.add(index, value);
onChanged();
} else {
resultBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder addResult(
com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(builderForValue.build());
onChanged();
} else {
resultBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder addResult(
int index, com.google.cloud.compute.v1.VmEndpointNatMappings.Builder builderForValue) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.add(index, builderForValue.build());
onChanged();
} else {
resultBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder addAllResult(
java.lang.Iterable extends com.google.cloud.compute.v1.VmEndpointNatMappings> values) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(values, result_);
onChanged();
} else {
resultBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder clearResult() {
if (resultBuilder_ == null) {
result_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
resultBuilder_.clear();
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public Builder removeResult(int index) {
if (resultBuilder_ == null) {
ensureResultIsMutable();
result_.remove(index);
onChanged();
} else {
resultBuilder_.remove(index);
}
return this;
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder getResultBuilder(int index) {
return getResultFieldBuilder().getBuilder(index);
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder getResultOrBuilder(
int index) {
if (resultBuilder_ == null) {
return result_.get(index);
} else {
return resultBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public java.util.List extends com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultOrBuilderList() {
if (resultBuilder_ != null) {
return resultBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(result_);
}
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder addResultBuilder() {
return getResultFieldBuilder()
.addBuilder(com.google.cloud.compute.v1.VmEndpointNatMappings.getDefaultInstance());
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public com.google.cloud.compute.v1.VmEndpointNatMappings.Builder addResultBuilder(int index) {
return getResultFieldBuilder()
.addBuilder(
index, com.google.cloud.compute.v1.VmEndpointNatMappings.getDefaultInstance());
}
/**
*
*
*
* [Output Only] A list of Nat mapping information of VM endpoints.
*
*
* repeated .google.cloud.compute.v1.VmEndpointNatMappings result = 139315229;
*/
public java.util.List
getResultBuilderList() {
return getResultFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.VmEndpointNatMappings,
com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>
getResultFieldBuilder() {
if (resultBuilder_ == null) {
resultBuilder_ =
new com.google.protobuf.RepeatedFieldBuilderV3<
com.google.cloud.compute.v1.VmEndpointNatMappings,
com.google.cloud.compute.v1.VmEndpointNatMappings.Builder,
com.google.cloud.compute.v1.VmEndpointNatMappingsOrBuilder>(
result_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean());
result_ = null;
}
return resultBuilder_;
}
private java.lang.Object selfLink_ = "";
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return Whether the selfLink field is set.
*/
public boolean hasSelfLink() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return The selfLink.
*/
public java.lang.String getSelfLink() {
java.lang.Object ref = selfLink_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
selfLink_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return The bytes for selfLink.
*/
public com.google.protobuf.ByteString getSelfLinkBytes() {
java.lang.Object ref = selfLink_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
selfLink_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @param value The selfLink to set.
* @return This builder for chaining.
*/
public Builder setSelfLink(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
selfLink_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @return This builder for chaining.
*/
public Builder clearSelfLink() {
selfLink_ = getDefaultInstance().getSelfLink();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Server-defined URL for this resource.
*
*
* optional string self_link = 456214797;
*
* @param value The bytes for selfLink to set.
* @return This builder for chaining.
*/
public Builder setSelfLinkBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
selfLink_ = value;
bitField0_ |= 0x00000010;
onChanged();
return this;
}
private com.google.cloud.compute.v1.Warning warning_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>
warningBuilder_;
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return Whether the warning field is set.
*/
public boolean hasWarning() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*
* @return The warning.
*/
public com.google.cloud.compute.v1.Warning getWarning() {
if (warningBuilder_ == null) {
return warning_ == null
? com.google.cloud.compute.v1.Warning.getDefaultInstance()
: warning_;
} else {
return warningBuilder_.getMessage();
}
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder setWarning(com.google.cloud.compute.v1.Warning value) {
if (warningBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
warning_ = value;
} else {
warningBuilder_.setMessage(value);
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder setWarning(com.google.cloud.compute.v1.Warning.Builder builderForValue) {
if (warningBuilder_ == null) {
warning_ = builderForValue.build();
} else {
warningBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder mergeWarning(com.google.cloud.compute.v1.Warning value) {
if (warningBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 0)
&& warning_ != null
&& warning_ != com.google.cloud.compute.v1.Warning.getDefaultInstance()) {
getWarningBuilder().mergeFrom(value);
} else {
warning_ = value;
}
} else {
warningBuilder_.mergeFrom(value);
}
if (warning_ != null) {
bitField0_ |= 0x00000020;
onChanged();
}
return this;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public Builder clearWarning() {
bitField0_ = (bitField0_ & ~0x00000020);
warning_ = null;
if (warningBuilder_ != null) {
warningBuilder_.dispose();
warningBuilder_ = null;
}
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public com.google.cloud.compute.v1.Warning.Builder getWarningBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getWarningFieldBuilder().getBuilder();
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
public com.google.cloud.compute.v1.WarningOrBuilder getWarningOrBuilder() {
if (warningBuilder_ != null) {
return warningBuilder_.getMessageOrBuilder();
} else {
return warning_ == null
? com.google.cloud.compute.v1.Warning.getDefaultInstance()
: warning_;
}
}
/**
*
*
*
* [Output Only] Informational warning message.
*
*
* optional .google.cloud.compute.v1.Warning warning = 50704284;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>
getWarningFieldBuilder() {
if (warningBuilder_ == null) {
warningBuilder_ =
new com.google.protobuf.SingleFieldBuilderV3<
com.google.cloud.compute.v1.Warning,
com.google.cloud.compute.v1.Warning.Builder,
com.google.cloud.compute.v1.WarningOrBuilder>(
getWarning(), getParentForChildren(), isClean());
warning_ = null;
}
return warningBuilder_;
}
@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.VmEndpointNatMappingsList)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VmEndpointNatMappingsList)
private static final com.google.cloud.compute.v1.VmEndpointNatMappingsList DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VmEndpointNatMappingsList();
}
public static com.google.cloud.compute.v1.VmEndpointNatMappingsList getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VmEndpointNatMappingsList 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.VmEndpointNatMappingsList getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy