Class VpnConnection
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.edgecontainer.v1.VpnConnection
- All Implemented Interfaces:
VpnConnectionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class VpnConnection
extends com.google.protobuf.GeneratedMessage
implements VpnConnectionOrBuilder
A VPN connection .Protobuf type
google.cloud.edgecontainer.v1.VpnConnection- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumRouting mode.static final classA VPN connection .static final classThe created connection details.static interfacestatic final classProject detail of the VPC network.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsLabels(String key) Labels associated with this resource.booleanDeprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.intDeprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated.The canonical Cluster name to connect to.com.google.protobuf.ByteStringThe canonical Cluster name to connect to.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static VpnConnectionstatic final com.google.protobuf.Descriptors.DescriptorOutput only.Output only.booleanWhether this VPN connection has HA enabled on cluster side.Deprecated.intLabels associated with this resource.Labels associated with this resource.getLabelsOrDefault(String key, String defaultValue) Labels associated with this resource.getLabelsOrThrow(String key) Labels associated with this resource.getName()Required.com.google.protobuf.ByteStringRequired.NAT gateway IP, or WAN IP address.com.google.protobuf.ByteStringNAT gateway IP, or WAN IP address.com.google.protobuf.Parser<VpnConnection>Optional.com.google.protobuf.ByteStringOptional.intcom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.getVpc()The network ID of VPC to connect to.com.google.protobuf.ByteStringThe network ID of VPC to connect to.Optional.Optional.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) final booleanstatic VpnConnection.Builderstatic VpnConnection.BuildernewBuilder(VpnConnection prototype) protected VpnConnection.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static VpnConnectionparseDelimitedFrom(InputStream input) static VpnConnectionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpnConnectionparseFrom(byte[] data) static VpnConnectionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpnConnectionparseFrom(com.google.protobuf.ByteString data) static VpnConnectionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpnConnectionparseFrom(com.google.protobuf.CodedInputStream input) static VpnConnectionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpnConnectionparseFrom(InputStream input) static VpnConnectionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static VpnConnectionparseFrom(ByteBuffer data) static VpnConnectionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<VpnConnection>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER- See Also:
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER- See Also:
-
NAT_GATEWAY_IP_FIELD_NUMBER
public static final int NAT_GATEWAY_IP_FIELD_NUMBER- See Also:
-
BGP_ROUTING_MODE_FIELD_NUMBER
public static final int BGP_ROUTING_MODE_FIELD_NUMBER- See Also:
-
CLUSTER_FIELD_NUMBER
public static final int CLUSTER_FIELD_NUMBER- See Also:
-
VPC_FIELD_NUMBER
public static final int VPC_FIELD_NUMBER- See Also:
-
VPC_PROJECT_FIELD_NUMBER
public static final int VPC_PROJECT_FIELD_NUMBER- See Also:
-
ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER
public static final int ENABLE_HIGH_AVAILABILITY_FIELD_NUMBER- See Also:
-
ROUTER_FIELD_NUMBER
public static final int ROUTER_FIELD_NUMBER- See Also:
-
DETAILS_FIELD_NUMBER
public static final int DETAILS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNamein interfaceVpnConnectionOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The resource name of VPN connection
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }- Specified by:
getNameBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for name.
-
hasCreateTime
public boolean hasCreateTime()Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceVpnConnectionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceVpnConnectionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the VPN connection was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceVpnConnectionOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceVpnConnectionOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceVpnConnectionOrBuilder- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time when the VPN connection was last updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceVpnConnectionOrBuilder
-
getLabelsCount
public int getLabelsCount()Description copied from interface:VpnConnectionOrBuilderLabels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceVpnConnectionOrBuilder
-
containsLabels
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceVpnConnectionOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceVpnConnectionOrBuilder
-
getLabelsMap
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceVpnConnectionOrBuilder
-
getLabelsOrDefault
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceVpnConnectionOrBuilder
-
getLabelsOrThrow
Labels associated with this resource.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceVpnConnectionOrBuilder
-
getNatGatewayIp
NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Specified by:
getNatGatewayIpin interfaceVpnConnectionOrBuilder- Returns:
- The natGatewayIp.
-
getNatGatewayIpBytes
public com.google.protobuf.ByteString getNatGatewayIpBytes()NAT gateway IP, or WAN IP address. If a customer has multiple NAT IPs, the customer needs to configure NAT such that only one external IP maps to the GMEC Anthos cluster. This is empty if NAT is not used.
string nat_gateway_ip = 5;- Specified by:
getNatGatewayIpBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for natGatewayIp.
-
getBgpRoutingModeValue
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=763Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Specified by:
getBgpRoutingModeValuein interfaceVpnConnectionOrBuilder- Returns:
- The enum numeric value on the wire for bgpRoutingMode.
-
getBgpRoutingMode
Deprecated.google.cloud.edgecontainer.v1.VpnConnection.bgp_routing_mode is deprecated. See google/cloud/edgecontainer/v1/resources.proto;l=763Dynamic routing mode of the VPC network, `regional` or `global`.
.google.cloud.edgecontainer.v1.VpnConnection.BgpRoutingMode bgp_routing_mode = 6 [deprecated = true];- Specified by:
getBgpRoutingModein interfaceVpnConnectionOrBuilder- Returns:
- The bgpRoutingMode.
-
getCluster
The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getClusterin interfaceVpnConnectionOrBuilder- Returns:
- The cluster.
-
getClusterBytes
public com.google.protobuf.ByteString getClusterBytes()The canonical Cluster name to connect to. It is in the form of projects/{project}/locations/{location}/clusters/{cluster}.string cluster = 7 [(.google.api.resource_reference) = { ... }- Specified by:
getClusterBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for cluster.
-
getVpc
The network ID of VPC to connect to.
string vpc = 8;- Specified by:
getVpcin interfaceVpnConnectionOrBuilder- Returns:
- The vpc.
-
getVpcBytes
public com.google.protobuf.ByteString getVpcBytes()The network ID of VPC to connect to.
string vpc = 8;- Specified by:
getVpcBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for vpc.
-
hasVpcProject
public boolean hasVpcProject()Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVpcProjectin interfaceVpnConnectionOrBuilder- Returns:
- Whether the vpcProject field is set.
-
getVpcProject
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcProjectin interfaceVpnConnectionOrBuilder- Returns:
- The vpcProject.
-
getVpcProjectOrBuilder
Optional. Project detail of the VPC network. Required if VPC is in a different project than the cluster project.
.google.cloud.edgecontainer.v1.VpnConnection.VpcProject vpc_project = 11 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getVpcProjectOrBuilderin interfaceVpnConnectionOrBuilder
-
getEnableHighAvailability
public boolean getEnableHighAvailability()Whether this VPN connection has HA enabled on cluster side. If enabled, when creating VPN connection we will attempt to use 2 ANG floating IPs.
bool enable_high_availability = 9;- Specified by:
getEnableHighAvailabilityin interfaceVpnConnectionOrBuilder- Returns:
- The enableHighAvailability.
-
getRouter
Optional. The VPN connection Cloud Router name.
string router = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRouterin interfaceVpnConnectionOrBuilder- Returns:
- The router.
-
getRouterBytes
public com.google.protobuf.ByteString getRouterBytes()Optional. The VPN connection Cloud Router name.
string router = 12 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRouterBytesin interfaceVpnConnectionOrBuilder- Returns:
- The bytes for router.
-
hasDetails
public boolean hasDetails()Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDetailsin interfaceVpnConnectionOrBuilder- Returns:
- Whether the details field is set.
-
getDetails
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailsin interfaceVpnConnectionOrBuilder- Returns:
- The details.
-
getDetailsOrBuilder
Output only. The created connection details.
.google.cloud.edgecontainer.v1.VpnConnection.Details details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDetailsOrBuilderin interfaceVpnConnectionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static VpnConnection parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpnConnection parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpnConnection parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpnConnection parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpnConnection parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static VpnConnection parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static VpnConnection parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static VpnConnection parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static VpnConnection parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static VpnConnection parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected VpnConnection.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-