Package com.google.cloud.compute.v1
Class SubnetworkSecondaryRange.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SubnetworkSecondaryRange.Builder>
com.google.cloud.compute.v1.SubnetworkSecondaryRange.Builder
- All Implemented Interfaces:
SubnetworkSecondaryRangeOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SubnetworkSecondaryRange
public static final class SubnetworkSecondaryRange.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SubnetworkSecondaryRange.Builder>
implements SubnetworkSecondaryRangeOrBuilder
Represents a secondary IP range of a subnetwork.Protobuf type
google.cloud.compute.v1.SubnetworkSecondaryRange-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The range of IP addresses belonging to this subnetwork secondary range.The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.The URL of the reserved internal range.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe range of IP addresses belonging to this subnetwork secondary range.com.google.protobuf.ByteStringThe range of IP addresses belonging to this subnetwork secondary range.The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.com.google.protobuf.ByteStringThe name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.The URL of the reserved internal range.com.google.protobuf.ByteStringThe URL of the reserved internal range.booleanThe range of IP addresses belonging to this subnetwork secondary range.booleanThe name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.booleanThe URL of the reserved internal range.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setIpCidrRange(String value) The range of IP addresses belonging to this subnetwork secondary range.setIpCidrRangeBytes(com.google.protobuf.ByteString value) The range of IP addresses belonging to this subnetwork secondary range.setRangeName(String value) The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.setRangeNameBytes(com.google.protobuf.ByteString value) The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance.setReservedInternalRange(String value) The URL of the reserved internal range.setReservedInternalRangeBytes(com.google.protobuf.ByteString value) The URL of the reserved internal range.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<SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SubnetworkSecondaryRange.Builder>
-
mergeFrom
public SubnetworkSecondaryRange.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<SubnetworkSecondaryRange.Builder>- Throws:
IOException
-
hasIpCidrRange
public boolean hasIpCidrRange()The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Specified by:
hasIpCidrRangein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- Whether the ipCidrRange field is set.
-
getIpCidrRange
The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Specified by:
getIpCidrRangein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The ipCidrRange.
-
getIpCidrRangeBytes
public com.google.protobuf.ByteString getIpCidrRangeBytes()The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Specified by:
getIpCidrRangeBytesin interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The bytes for ipCidrRange.
-
setIpCidrRange
The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Parameters:
value- The ipCidrRange to set.- Returns:
- This builder for chaining.
-
clearIpCidrRange
The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Returns:
- This builder for chaining.
-
setIpCidrRangeBytes
The range of IP addresses belonging to this subnetwork secondary range. Provide this property when you create the subnetwork. Ranges must be unique and non-overlapping with all primary and secondary IP ranges within a network. Both IPv4 and IPv6 ranges are supported. For IPv4, the range can be any range listed in theValid ranges list. For IPv6: The range must have a /64 prefix length. The range must be omitted, for auto-allocation from Google-defined ULA IPv6 range. For BYOGUA internal IPv6 secondary range, the range may be specified along with the `ipCollection` field. If an `ipCollection` is specified, the requested ip_cidr_range must lie within the range of the PDP referenced by the `ipCollection` field for allocation. If `ipCollection` field is specified, but ip_cidr_range is not, the range is auto-allocated from the PDP referenced by the `ipCollection` field.
optional string ip_cidr_range = 98117322;- Parameters:
value- The bytes for ipCidrRange to set.- Returns:
- This builder for chaining.
-
hasRangeName
public boolean hasRangeName()The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Specified by:
hasRangeNamein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- Whether the rangeName field is set.
-
getRangeName
The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Specified by:
getRangeNamein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The rangeName.
-
getRangeNameBytes
public com.google.protobuf.ByteString getRangeNameBytes()The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Specified by:
getRangeNameBytesin interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The bytes for rangeName.
-
setRangeName
The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Parameters:
value- The rangeName to set.- Returns:
- This builder for chaining.
-
clearRangeName
The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Returns:
- This builder for chaining.
-
setRangeNameBytes
The name associated with this subnetwork secondary range, used when adding an alias IP/IPv6 range to a VM instance. The name must be 1-63 characters long, and comply withRFC1035. The name must be unique within the subnetwork.
optional string range_name = 332216397;- Parameters:
value- The bytes for rangeName to set.- Returns:
- This builder for chaining.
-
hasReservedInternalRange
public boolean hasReservedInternalRange()The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Specified by:
hasReservedInternalRangein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- Whether the reservedInternalRange field is set.
-
getReservedInternalRange
The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Specified by:
getReservedInternalRangein interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The reservedInternalRange.
-
getReservedInternalRangeBytes
public com.google.protobuf.ByteString getReservedInternalRangeBytes()The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Specified by:
getReservedInternalRangeBytesin interfaceSubnetworkSecondaryRangeOrBuilder- Returns:
- The bytes for reservedInternalRange.
-
setReservedInternalRange
The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Parameters:
value- The reservedInternalRange to set.- Returns:
- This builder for chaining.
-
clearReservedInternalRange
The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Returns:
- This builder for chaining.
-
setReservedInternalRangeBytes
public SubnetworkSecondaryRange.Builder setReservedInternalRangeBytes(com.google.protobuf.ByteString value) The URL of the reserved internal range. Only IPv4 is supported.
optional string reserved_internal_range = 286248754;- Parameters:
value- The bytes for reservedInternalRange to set.- Returns:
- This builder for chaining.
-