com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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;
/**
*
*
*
* A VPN gateway interface.
*
*
* Protobuf type {@code google.cloud.compute.v1.VpnGatewayVpnGatewayInterface}
*/
public final class VpnGatewayVpnGatewayInterface extends com.google.protobuf.GeneratedMessageV3
implements
// @@protoc_insertion_point(message_implements:google.cloud.compute.v1.VpnGatewayVpnGatewayInterface)
VpnGatewayVpnGatewayInterfaceOrBuilder {
private static final long serialVersionUID = 0L;
// Use VpnGatewayVpnGatewayInterface.newBuilder() to construct.
private VpnGatewayVpnGatewayInterface(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private VpnGatewayVpnGatewayInterface() {
interconnectAttachment_ = "";
ipAddress_ = "";
ipv6Address_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
return new VpnGatewayVpnGatewayInterface();
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.class,
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 3355;
private int id_ = 0;
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int INTERCONNECT_ATTACHMENT_FIELD_NUMBER = 308135284;
@SuppressWarnings("serial")
private volatile java.lang.Object interconnectAttachment_ = "";
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return Whether the interconnectAttachment field is set.
*/
@java.lang.Override
public boolean hasInterconnectAttachment() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return The interconnectAttachment.
*/
@java.lang.Override
public java.lang.String getInterconnectAttachment() {
java.lang.Object ref = interconnectAttachment_;
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();
interconnectAttachment_ = s;
return s;
}
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return The bytes for interconnectAttachment.
*/
@java.lang.Override
public com.google.protobuf.ByteString getInterconnectAttachmentBytes() {
java.lang.Object ref = interconnectAttachment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
interconnectAttachment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IP_ADDRESS_FIELD_NUMBER = 406272220;
@SuppressWarnings("serial")
private volatile java.lang.Object ipAddress_ = "";
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return Whether the ipAddress field is set.
*/
@java.lang.Override
public boolean hasIpAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return The ipAddress.
*/
@java.lang.Override
public java.lang.String getIpAddress() {
java.lang.Object ref = ipAddress_;
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();
ipAddress_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return The bytes for ipAddress.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIpAddressBytes() {
java.lang.Object ref = ipAddress_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ipAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int IPV6_ADDRESS_FIELD_NUMBER = 341563804;
@SuppressWarnings("serial")
private volatile java.lang.Object ipv6Address_ = "";
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return Whether the ipv6Address field is set.
*/
@java.lang.Override
public boolean hasIpv6Address() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return The ipv6Address.
*/
@java.lang.Override
public java.lang.String getIpv6Address() {
java.lang.Object ref = ipv6Address_;
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();
ipv6Address_ = s;
return s;
}
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return The bytes for ipv6Address.
*/
@java.lang.Override
public com.google.protobuf.ByteString getIpv6AddressBytes() {
java.lang.Object ref = ipv6Address_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ipv6Address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.writeUInt32(3355, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(
output, 308135284, interconnectAttachment_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 341563804, ipv6Address_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 406272220, ipAddress_);
}
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.computeUInt32Size(3355, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size +=
com.google.protobuf.GeneratedMessageV3.computeStringSize(
308135284, interconnectAttachment_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(341563804, ipv6Address_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(406272220, ipAddress_);
}
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.VpnGatewayVpnGatewayInterface)) {
return super.equals(obj);
}
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface other =
(com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId() != other.getId()) return false;
}
if (hasInterconnectAttachment() != other.hasInterconnectAttachment()) return false;
if (hasInterconnectAttachment()) {
if (!getInterconnectAttachment().equals(other.getInterconnectAttachment())) return false;
}
if (hasIpAddress() != other.hasIpAddress()) return false;
if (hasIpAddress()) {
if (!getIpAddress().equals(other.getIpAddress())) return false;
}
if (hasIpv6Address() != other.hasIpv6Address()) return false;
if (hasIpv6Address()) {
if (!getIpv6Address().equals(other.getIpv6Address())) 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();
}
if (hasInterconnectAttachment()) {
hash = (37 * hash) + INTERCONNECT_ATTACHMENT_FIELD_NUMBER;
hash = (53 * hash) + getInterconnectAttachment().hashCode();
}
if (hasIpAddress()) {
hash = (37 * hash) + IP_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpAddress().hashCode();
}
if (hasIpv6Address()) {
hash = (37 * hash) + IPV6_ADDRESS_FIELD_NUMBER;
hash = (53 * hash) + getIpv6Address().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface parseFrom(
java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface parseFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface parseDelimitedFrom(
java.io.InputStream input) throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface 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;
}
/**
*
*
*
* A VPN gateway interface.
*
*
* Protobuf type {@code google.cloud.compute.v1.VpnGatewayVpnGatewayInterface}
*/
public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
implements
// @@protoc_insertion_point(builder_implements:google.cloud.compute.v1.VpnGatewayVpnGatewayInterface)
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterfaceOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.google.cloud.compute.v1.Compute
.internal_static_google_cloud_compute_v1_VpnGatewayVpnGatewayInterface_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.class,
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.Builder.class);
}
// Construct using com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.newBuilder()
private Builder() {}
private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
id_ = 0;
interconnectAttachment_ = "";
ipAddress_ = "";
ipv6Address_ = "";
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_VpnGatewayVpnGatewayInterface_descriptor;
}
@java.lang.Override
public com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface getDefaultInstanceForType() {
return com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.getDefaultInstance();
}
@java.lang.Override
public com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface build() {
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface buildPartial() {
com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface result =
new com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface(this);
if (bitField0_ != 0) {
buildPartial0(result);
}
onBuilt();
return result;
}
private void buildPartial0(com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface 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.interconnectAttachment_ = interconnectAttachment_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.ipAddress_ = ipAddress_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.ipv6Address_ = ipv6Address_;
to_bitField0_ |= 0x00000008;
}
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.VpnGatewayVpnGatewayInterface) {
return mergeFrom((com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface) other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface other) {
if (other == com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface.getDefaultInstance())
return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasInterconnectAttachment()) {
interconnectAttachment_ = other.interconnectAttachment_;
bitField0_ |= 0x00000002;
onChanged();
}
if (other.hasIpAddress()) {
ipAddress_ = other.ipAddress_;
bitField0_ |= 0x00000004;
onChanged();
}
if (other.hasIpv6Address()) {
ipv6Address_ = other.ipv6Address_;
bitField0_ |= 0x00000008;
onChanged();
}
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 26840:
{
id_ = input.readUInt32();
bitField0_ |= 0x00000001;
break;
} // case 26840
case -1829885022:
{
interconnectAttachment_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000002;
break;
} // case -1829885022
case -1562456862:
{
ipv6Address_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000008;
break;
} // case -1562456862
case -1044789534:
{
ipAddress_ = input.readStringRequireUtf8();
bitField0_ |= 0x00000004;
break;
} // case -1044789534
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 int id_;
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] Numeric identifier for this VPN interface associated with the VPN gateway.
*
*
* optional uint32 id = 3355;
*
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0;
onChanged();
return this;
}
private java.lang.Object interconnectAttachment_ = "";
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return Whether the interconnectAttachment field is set.
*/
public boolean hasInterconnectAttachment() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return The interconnectAttachment.
*/
public java.lang.String getInterconnectAttachment() {
java.lang.Object ref = interconnectAttachment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
interconnectAttachment_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return The bytes for interconnectAttachment.
*/
public com.google.protobuf.ByteString getInterconnectAttachmentBytes() {
java.lang.Object ref = interconnectAttachment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
interconnectAttachment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @param value The interconnectAttachment to set.
* @return This builder for chaining.
*/
public Builder setInterconnectAttachment(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
interconnectAttachment_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @return This builder for chaining.
*/
public Builder clearInterconnectAttachment() {
interconnectAttachment_ = getDefaultInstance().getInterconnectAttachment();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
*
*
*
* URL of the VLAN attachment (interconnectAttachment) resource for this VPN gateway interface. When the value of this field is present, the VPN gateway is used for HA VPN over Cloud Interconnect; all egress or ingress traffic for this VPN gateway interface goes through the specified VLAN attachment resource.
*
*
* optional string interconnect_attachment = 308135284;
*
* @param value The bytes for interconnectAttachment to set.
* @return This builder for chaining.
*/
public Builder setInterconnectAttachmentBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
interconnectAttachment_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
private java.lang.Object ipAddress_ = "";
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return Whether the ipAddress field is set.
*/
public boolean hasIpAddress() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return The ipAddress.
*/
public java.lang.String getIpAddress() {
java.lang.Object ref = ipAddress_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ipAddress_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return The bytes for ipAddress.
*/
public com.google.protobuf.ByteString getIpAddressBytes() {
java.lang.Object ref = ipAddress_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ipAddress_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @param value The ipAddress to set.
* @return This builder for chaining.
*/
public Builder setIpAddress(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ipAddress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @return This builder for chaining.
*/
public Builder clearIpAddress() {
ipAddress_ = getDefaultInstance().getIpAddress();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] IP address for this VPN interface associated with the VPN gateway. The IP address could be either a regional external IP address or a regional internal IP address. The two IP addresses for a VPN gateway must be all regional external or regional internal IP addresses. There cannot be a mix of regional external IP addresses and regional internal IP addresses. For HA VPN over Cloud Interconnect, the IP addresses for both interfaces could either be regional internal IP addresses or regional external IP addresses. For regular (non HA VPN over Cloud Interconnect) HA VPN tunnels, the IP address must be a regional external IP address.
*
*
* optional string ip_address = 406272220;
*
* @param value The bytes for ipAddress to set.
* @return This builder for chaining.
*/
public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ipAddress_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
private java.lang.Object ipv6Address_ = "";
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return Whether the ipv6Address field is set.
*/
public boolean hasIpv6Address() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return The ipv6Address.
*/
public java.lang.String getIpv6Address() {
java.lang.Object ref = ipv6Address_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
ipv6Address_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return The bytes for ipv6Address.
*/
public com.google.protobuf.ByteString getIpv6AddressBytes() {
java.lang.Object ref = ipv6Address_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
ipv6Address_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @param value The ipv6Address to set.
* @return This builder for chaining.
*/
public Builder setIpv6Address(java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ipv6Address_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @return This builder for chaining.
*/
public Builder clearIpv6Address() {
ipv6Address_ = getDefaultInstance().getIpv6Address();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
*
*
*
* [Output Only] IPv6 address for this VPN interface associated with the VPN gateway. The IPv6 address must be a regional external IPv6 address. The format is RFC 5952 format (e.g. 2001:db8::2d9:51:0:0).
*
*
* optional string ipv6_address = 341563804;
*
* @param value The bytes for ipv6Address to set.
* @return This builder for chaining.
*/
public Builder setIpv6AddressBytes(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ipv6Address_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
@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.VpnGatewayVpnGatewayInterface)
}
// @@protoc_insertion_point(class_scope:google.cloud.compute.v1.VpnGatewayVpnGatewayInterface)
private static final com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface();
}
public static com.google.cloud.compute.v1.VpnGatewayVpnGatewayInterface getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
@java.lang.Override
public VpnGatewayVpnGatewayInterface 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.VpnGatewayVpnGatewayInterface getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy