Package com.google.cloud.compute.v1
Class NatIpInfoNatIpInfoMapping.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NatIpInfoNatIpInfoMapping.Builder>
com.google.cloud.compute.v1.NatIpInfoNatIpInfoMapping.Builder
- All Implemented Interfaces:
NatIpInfoNatIpInfoMappingOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NatIpInfoNatIpInfoMapping
public static final class NatIpInfoNatIpInfoMapping.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NatIpInfoNatIpInfoMapping.Builder>
implements NatIpInfoNatIpInfoMappingOrBuilder
Contains information of a NAT IP.Protobuf type
google.cloud.compute.v1.NatIpInfoNatIpInfoMapping-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetMode()Output only.com.google.protobuf.ByteStringOutput only.getNatIp()Output only.com.google.protobuf.ByteStringOutput only.getUsage()Output only.com.google.protobuf.ByteStringOutput only.booleanhasMode()Output only.booleanhasNatIp()Output only.booleanhasUsage()Output only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setModeBytes(com.google.protobuf.ByteString value) Output only.Output only.setNatIpBytes(com.google.protobuf.ByteString value) Output only.Output only.setUsageBytes(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<NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NatIpInfoNatIpInfoMapping.Builder>
-
mergeFrom
public NatIpInfoNatIpInfoMapping.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<NatIpInfoNatIpInfoMapping.Builder>- Throws:
IOException
-
hasMode
public boolean hasMode()Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
hasModein interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- Whether the mode field is set.
-
getMode
Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModein interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The mode.
-
getModeBytes
public com.google.protobuf.ByteString getModeBytes()Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Specified by:
getModeBytesin interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The bytes for mode.
-
setMode
Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The mode to set.- Returns:
- This builder for chaining.
-
clearMode
Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Returns:
- This builder for chaining.
-
setModeBytes
Output only. Specifies whether NAT IP is auto or manual. Check the Mode enum for the list of possible values.
optional string mode = 3357091;- Parameters:
value- The bytes for mode to set.- Returns:
- This builder for chaining.
-
hasNatIp
public boolean hasNatIp()Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Specified by:
hasNatIpin interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- Whether the natIp field is set.
-
getNatIp
Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Specified by:
getNatIpin interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The natIp.
-
getNatIpBytes
public com.google.protobuf.ByteString getNatIpBytes()Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Specified by:
getNatIpBytesin interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The bytes for natIp.
-
setNatIp
Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Parameters:
value- The natIp to set.- Returns:
- This builder for chaining.
-
clearNatIp
Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Returns:
- This builder for chaining.
-
setNatIpBytes
Output only. NAT IP address. For example: 203.0.113.11.
optional string nat_ip = 21113093;- Parameters:
value- The bytes for natIp to set.- Returns:
- This builder for chaining.
-
hasUsage
public boolean hasUsage()Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Specified by:
hasUsagein interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- Whether the usage field is set.
-
getUsage
Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Specified by:
getUsagein interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The usage.
-
getUsageBytes
public com.google.protobuf.ByteString getUsageBytes()Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Specified by:
getUsageBytesin interfaceNatIpInfoNatIpInfoMappingOrBuilder- Returns:
- The bytes for usage.
-
setUsage
Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Parameters:
value- The usage to set.- Returns:
- This builder for chaining.
-
clearUsage
Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Returns:
- This builder for chaining.
-
setUsageBytes
Output only. Specifies whether NAT IP is currently serving at least one endpoint or not. Check the Usage enum for the list of possible values.
optional string usage = 111574433;- Parameters:
value- The bytes for usage to set.- Returns:
- This builder for chaining.
-