Class NetworkAttachmentConnectedEndpoint (1.52.0)

public final class NetworkAttachmentConnectedEndpoint extends GeneratedMessageV3 implements NetworkAttachmentConnectedEndpointOrBuilder

[Output Only] A connection connected to this network attachment.

Protobuf type google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > NetworkAttachmentConnectedEndpoint

Static Fields

IPV6_ADDRESS_FIELD_NUMBER

public static final int IPV6_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

IP_ADDRESS_FIELD_NUMBER

public static final int IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

PROJECT_ID_OR_NUM_FIELD_NUMBER

public static final int PROJECT_ID_OR_NUM_FIELD_NUMBER
Field Value
Type Description
int

SECONDARY_IP_CIDR_RANGES_FIELD_NUMBER

public static final int SECONDARY_IP_CIDR_RANGES_FIELD_NUMBER
Field Value
Type Description
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_CIDR_RANGE_FIELD_NUMBER

public static final int SUBNETWORK_CIDR_RANGE_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORK_FIELD_NUMBER

public static final int SUBNETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkAttachmentConnectedEndpoint getDefaultInstance()
Returns
Type Description
NetworkAttachmentConnectedEndpoint

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static NetworkAttachmentConnectedEndpoint.Builder newBuilder()
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

newBuilder(NetworkAttachmentConnectedEndpoint prototype)

public static NetworkAttachmentConnectedEndpoint.Builder newBuilder(NetworkAttachmentConnectedEndpoint prototype)
Parameter
Name Description
prototype NetworkAttachmentConnectedEndpoint
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

parseDelimitedFrom(InputStream input)

public static NetworkAttachmentConnectedEndpoint parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static NetworkAttachmentConnectedEndpoint parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static NetworkAttachmentConnectedEndpoint parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static NetworkAttachmentConnectedEndpoint parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static NetworkAttachmentConnectedEndpoint parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static NetworkAttachmentConnectedEndpoint parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static NetworkAttachmentConnectedEndpoint parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NetworkAttachmentConnectedEndpoint
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<NetworkAttachmentConnectedEndpoint> parser()
Returns
Type Description
Parser<NetworkAttachmentConnectedEndpoint>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public NetworkAttachmentConnectedEndpoint getDefaultInstanceForType()
Returns
Type Description
NetworkAttachmentConnectedEndpoint

getIpAddress()

public String getIpAddress()

The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.

optional string ip_address = 406272220;

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.

optional string ip_address = 406272220;

Returns
Type Description
ByteString

The bytes for ipAddress.

getIpv6Address()

public String getIpv6Address()

The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.

optional string ipv6_address = 341563804;

Returns
Type Description
String

The ipv6Address.

getIpv6AddressBytes()

public ByteString getIpv6AddressBytes()

The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.

optional string ipv6_address = 341563804;

Returns
Type Description
ByteString

The bytes for ipv6Address.

getParserForType()

public Parser<NetworkAttachmentConnectedEndpoint> getParserForType()
Returns
Type Description
Parser<NetworkAttachmentConnectedEndpoint>
Overrides

getProjectIdOrNum()

public String getProjectIdOrNum()

The project id or number of the interface to which the IP was assigned.

optional string project_id_or_num = 349783336;

Returns
Type Description
String

The projectIdOrNum.

getProjectIdOrNumBytes()

public ByteString getProjectIdOrNumBytes()

The project id or number of the interface to which the IP was assigned.

optional string project_id_or_num = 349783336;

Returns
Type Description
ByteString

The bytes for projectIdOrNum.

getSecondaryIpCidrRanges(int index)

public String getSecondaryIpCidrRanges(int index)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The secondaryIpCidrRanges at the given index.

getSecondaryIpCidrRangesBytes(int index)

public ByteString getSecondaryIpCidrRangesBytes(int index)

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the secondaryIpCidrRanges at the given index.

getSecondaryIpCidrRangesCount()

public int getSecondaryIpCidrRangesCount()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Returns
Type Description
int

The count of secondaryIpCidrRanges.

getSecondaryIpCidrRangesList()

public ProtocolStringList getSecondaryIpCidrRangesList()

Alias IP ranges from the same subnetwork.

repeated string secondary_ip_cidr_ranges = 117184788;

Returns
Type Description
ProtocolStringList

A list containing the secondaryIpCidrRanges.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStatus()

public String getStatus()

The status of a connected endpoint to this network attachment. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
String

The status.

getStatusBytes()

public ByteString getStatusBytes()

The status of a connected endpoint to this network attachment. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
ByteString

The bytes for status.

getSubnetwork()

public String getSubnetwork()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
Type Description
String

The subnetwork.

getSubnetworkBytes()

public ByteString getSubnetworkBytes()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
Type Description
ByteString

The bytes for subnetwork.

getSubnetworkCidrRange()

public String getSubnetworkCidrRange()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
Type Description
String

The subnetworkCidrRange.

getSubnetworkCidrRangeBytes()

public ByteString getSubnetworkCidrRangeBytes()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
Type Description
ByteString

The bytes for subnetworkCidrRange.

hasIpAddress()

public boolean hasIpAddress()

The IPv4 address assigned to the producer instance network interface. This value will be a range in case of Serverless.

optional string ip_address = 406272220;

Returns
Type Description
boolean

Whether the ipAddress field is set.

hasIpv6Address()

public boolean hasIpv6Address()

The IPv6 address assigned to the producer instance network interface. This is only assigned when the stack types of both the instance network interface and the consumer subnet are IPv4_IPv6.

optional string ipv6_address = 341563804;

Returns
Type Description
boolean

Whether the ipv6Address field is set.

hasProjectIdOrNum()

public boolean hasProjectIdOrNum()

The project id or number of the interface to which the IP was assigned.

optional string project_id_or_num = 349783336;

Returns
Type Description
boolean

Whether the projectIdOrNum field is set.

hasStatus()

public boolean hasStatus()

The status of a connected endpoint to this network attachment. Check the Status enum for the list of possible values.

optional string status = 181260274;

Returns
Type Description
boolean

Whether the status field is set.

hasSubnetwork()

public boolean hasSubnetwork()

The subnetwork used to assign the IP to the producer instance network interface.

optional string subnetwork = 307827694;

Returns
Type Description
boolean

Whether the subnetwork field is set.

hasSubnetworkCidrRange()

public boolean hasSubnetworkCidrRange()

[Output Only] The CIDR range of the subnet from which the IPv4 internal IP was allocated from.

optional string subnetwork_cidr_range = 383249827;

Returns
Type Description
boolean

Whether the subnetworkCidrRange field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public NetworkAttachmentConnectedEndpoint.Builder newBuilderForType()
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected NetworkAttachmentConnectedEndpoint.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public NetworkAttachmentConnectedEndpoint.Builder toBuilder()
Returns
Type Description
NetworkAttachmentConnectedEndpoint.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException