Class SubnetworkSecondaryRange (1.42.0)

public final class SubnetworkSecondaryRange extends GeneratedMessageV3 implements SubnetworkSecondaryRangeOrBuilder

Represents a secondary IP range of a subnetwork.

Protobuf type google.cloud.compute.v1.SubnetworkSecondaryRange

Static Fields

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

RANGE_NAME_FIELD_NUMBER

public static final int RANGE_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SubnetworkSecondaryRange getDefaultInstance()
Returns
TypeDescription
SubnetworkSecondaryRange

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SubnetworkSecondaryRange.Builder newBuilder()
Returns
TypeDescription
SubnetworkSecondaryRange.Builder

newBuilder(SubnetworkSecondaryRange prototype)

public static SubnetworkSecondaryRange.Builder newBuilder(SubnetworkSecondaryRange prototype)
Parameter
NameDescription
prototypeSubnetworkSecondaryRange
Returns
TypeDescription
SubnetworkSecondaryRange.Builder

parseDelimitedFrom(InputStream input)

public static SubnetworkSecondaryRange parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SubnetworkSecondaryRange parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SubnetworkSecondaryRange parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SubnetworkSecondaryRange parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SubnetworkSecondaryRange parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SubnetworkSecondaryRange parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SubnetworkSecondaryRange parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SubnetworkSecondaryRange
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SubnetworkSecondaryRange> parser()
Returns
TypeDescription
Parser<SubnetworkSecondaryRange>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public SubnetworkSecondaryRange getDefaultInstanceForType()
Returns
TypeDescription
SubnetworkSecondaryRange

getIpCidrRange()

public String 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. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public 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. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

getParserForType()

public Parser<SubnetworkSecondaryRange> getParserForType()
Returns
TypeDescription
Parser<SubnetworkSecondaryRange>
Overrides

getRangeName()

public String getRangeName()

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

optional string range_name = 332216397;

Returns
TypeDescription
String

The rangeName.

getRangeNameBytes()

public ByteString getRangeNameBytes()

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

optional string range_name = 332216397;

Returns
TypeDescription
ByteString

The bytes for rangeName.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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. Only IPv4 is supported. The range can be any range listed in the Valid ranges list.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
boolean

Whether the ipCidrRange field is set.

hasRangeName()

public boolean hasRangeName()

The name associated with this subnetwork secondary range, used when adding an alias IP range to a VM instance. The name must be 1-63 characters long, and comply with RFC1035. The name must be unique within the subnetwork.

optional string range_name = 332216397;

Returns
TypeDescription
boolean

Whether the rangeName field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SubnetworkSecondaryRange.Builder newBuilderForType()
Returns
TypeDescription
SubnetworkSecondaryRange.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SubnetworkSecondaryRange.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SubnetworkSecondaryRange.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SubnetworkSecondaryRange.Builder toBuilder()
Returns
TypeDescription
SubnetworkSecondaryRange.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException