Package com.google.cloud.compute.v1
Class VpnGatewayStatusTunnel.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
com.google.cloud.compute.v1.VpnGatewayStatusTunnel.Builder
- All Implemented Interfaces:
VpnGatewayStatusTunnelOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VpnGatewayStatusTunnel
public static final class VpnGatewayStatusTunnel.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
implements VpnGatewayStatusTunnelOrBuilder
Contains some information about a VPN tunnel.Protobuf type
google.cloud.compute.v1.VpnGatewayStatusTunnel-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorintOutput only.intOutput only.Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VpnGatewayStatusTunnel other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setLocalGatewayInterface(int value) Output only.setPeerGatewayInterface(int value) Output only.setTunnelUrl(String value) Output only.setTunnelUrlBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnGatewayStatusTunnel.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VpnGatewayStatusTunnel.Builder>
-
mergeFrom
public VpnGatewayStatusTunnel.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VpnGatewayStatusTunnel.Builder>- Throws:
IOException
-
hasLocalGatewayInterface
public boolean hasLocalGatewayInterface()Output only. The VPN gateway interface this VPN tunnel is associated with.
optional uint32 local_gateway_interface = 158764330;- Specified by:
hasLocalGatewayInterfacein interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- Whether the localGatewayInterface field is set.
-
getLocalGatewayInterface
public int getLocalGatewayInterface()Output only. The VPN gateway interface this VPN tunnel is associated with.
optional uint32 local_gateway_interface = 158764330;- Specified by:
getLocalGatewayInterfacein interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- The localGatewayInterface.
-
setLocalGatewayInterface
Output only. The VPN gateway interface this VPN tunnel is associated with.
optional uint32 local_gateway_interface = 158764330;- Parameters:
value- The localGatewayInterface to set.- Returns:
- This builder for chaining.
-
clearLocalGatewayInterface
Output only. The VPN gateway interface this VPN tunnel is associated with.
optional uint32 local_gateway_interface = 158764330;- Returns:
- This builder for chaining.
-
hasPeerGatewayInterface
public boolean hasPeerGatewayInterface()Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
optional uint32 peer_gateway_interface = 214380385;- Specified by:
hasPeerGatewayInterfacein interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- Whether the peerGatewayInterface field is set.
-
getPeerGatewayInterface
public int getPeerGatewayInterface()Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
optional uint32 peer_gateway_interface = 214380385;- Specified by:
getPeerGatewayInterfacein interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- The peerGatewayInterface.
-
setPeerGatewayInterface
Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
optional uint32 peer_gateway_interface = 214380385;- Parameters:
value- The peerGatewayInterface to set.- Returns:
- This builder for chaining.
-
clearPeerGatewayInterface
Output only. The peer gateway interface this VPN tunnel is connected to, the peer gateway could either be an external VPN gateway or a Google Cloud VPN gateway.
optional uint32 peer_gateway_interface = 214380385;- Returns:
- This builder for chaining.
-
hasTunnelUrl
public boolean hasTunnelUrl()Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Specified by:
hasTunnelUrlin interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- Whether the tunnelUrl field is set.
-
getTunnelUrl
Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Specified by:
getTunnelUrlin interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- The tunnelUrl.
-
getTunnelUrlBytes
public com.google.protobuf.ByteString getTunnelUrlBytes()Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Specified by:
getTunnelUrlBytesin interfaceVpnGatewayStatusTunnelOrBuilder- Returns:
- The bytes for tunnelUrl.
-
setTunnelUrl
Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Parameters:
value- The tunnelUrl to set.- Returns:
- This builder for chaining.
-
clearTunnelUrl
Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Returns:
- This builder for chaining.
-
setTunnelUrlBytes
Output only. URL reference to the VPN tunnel.
optional string tunnel_url = 78975256;- Parameters:
value- The bytes for tunnelUrl to set.- Returns:
- This builder for chaining.
-