Class UsableSubnetwork (1.9.1)

public final class UsableSubnetwork extends GeneratedMessageV3 implements UsableSubnetworkOrBuilder

Subnetwork which the current user has compute.subnetworks.use permission on.

Protobuf type google.cloud.compute.v1.UsableSubnetwork

Static Fields

IP_CIDR_RANGE_FIELD_NUMBER

public static final int IP_CIDR_RANGE_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

SECONDARY_IP_RANGES_FIELD_NUMBER

public static final int SECONDARY_IP_RANGES_FIELD_NUMBER
Field Value
TypeDescription
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UsableSubnetwork getDefaultInstance()
Returns
TypeDescription
UsableSubnetwork

getDescriptor()

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

newBuilder()

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

newBuilder(UsableSubnetwork prototype)

public static UsableSubnetwork.Builder newBuilder(UsableSubnetwork prototype)
Parameter
NameDescription
prototypeUsableSubnetwork
Returns
TypeDescription
UsableSubnetwork.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public UsableSubnetwork getDefaultInstanceForType()
Returns
TypeDescription
UsableSubnetwork

getIpCidrRange()

public String getIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
String

The ipCidrRange.

getIpCidrRangeBytes()

public ByteString getIpCidrRangeBytes()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
ByteString

The bytes for ipCidrRange.

getNetwork()

public String getNetwork()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
ByteString

The bytes for network.

getParserForType()

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

getSecondaryIpRanges(int index)

public UsableSubnetworkSecondaryRange getSecondaryIpRanges(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRange

getSecondaryIpRangesCount()

public int getSecondaryIpRangesCount()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
int

getSecondaryIpRangesList()

public List<UsableSubnetworkSecondaryRange> getSecondaryIpRangesList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
List<UsableSubnetworkSecondaryRange>

getSecondaryIpRangesOrBuilder(int index)

public UsableSubnetworkSecondaryRangeOrBuilder getSecondaryIpRangesOrBuilder(int index)

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Parameter
NameDescription
indexint
Returns
TypeDescription
UsableSubnetworkSecondaryRangeOrBuilder

getSecondaryIpRangesOrBuilderList()

public List<? extends UsableSubnetworkSecondaryRangeOrBuilder> getSecondaryIpRangesOrBuilderList()

Secondary IP ranges.

repeated .google.cloud.compute.v1.UsableSubnetworkSecondaryRange secondary_ip_ranges = 136658915;

Returns
TypeDescription
List<? extends com.google.cloud.compute.v1.UsableSubnetworkSecondaryRangeOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubnetwork()

public String getSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
ByteString

The bytes for subnetwork.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasIpCidrRange()

public boolean hasIpCidrRange()

The range of internal addresses that are owned by this subnetwork.

optional string ip_cidr_range = 98117322;

Returns
TypeDescription
boolean

Whether the ipCidrRange field is set.

hasNetwork()

public boolean hasNetwork()

Network URL.

optional string network = 232872494;

Returns
TypeDescription
boolean

Whether the network field is set.

hasSubnetwork()

public boolean hasSubnetwork()

Subnetwork URL.

optional string subnetwork = 307827694;

Returns
TypeDescription
boolean

Whether the subnetwork 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 UsableSubnetwork.Builder newBuilderForType()
Returns
TypeDescription
UsableSubnetwork.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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