Class NetworkAttachment (1.63.0)

public final class NetworkAttachment extends GeneratedMessageV3 implements NetworkAttachmentOrBuilder

NetworkAttachments A network attachment resource ...

Protobuf type google.cloud.compute.v1.NetworkAttachment

Static Fields

CONNECTION_ENDPOINTS_FIELD_NUMBER

public static final int CONNECTION_ENDPOINTS_FIELD_NUMBER
Field Value
Type Description
int

CONNECTION_PREFERENCE_FIELD_NUMBER

public static final int CONNECTION_PREFERENCE_FIELD_NUMBER
Field Value
Type Description
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
Type Description
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

FINGERPRINT_FIELD_NUMBER

public static final int FINGERPRINT_FIELD_NUMBER
Field Value
Type Description
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NETWORK_FIELD_NUMBER

public static final int NETWORK_FIELD_NUMBER
Field Value
Type Description
int

PRODUCER_ACCEPT_LISTS_FIELD_NUMBER

public static final int PRODUCER_ACCEPT_LISTS_FIELD_NUMBER
Field Value
Type Description
int

PRODUCER_REJECT_LISTS_FIELD_NUMBER

public static final int PRODUCER_REJECT_LISTS_FIELD_NUMBER
Field Value
Type Description
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
Type Description
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
Type Description
int
public static final int SELF_LINK_WITH_ID_FIELD_NUMBER
Field Value
Type Description
int

SUBNETWORKS_FIELD_NUMBER

public static final int SUBNETWORKS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static NetworkAttachment getDefaultInstance()
Returns
Type Description
NetworkAttachment

getDescriptor()

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

newBuilder()

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

newBuilder(NetworkAttachment prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getConnectionEndpoints(int index)

public NetworkAttachmentConnectedEndpoint getConnectionEndpoints(int index)

[Output Only] An array of connections for all the producers connected to this network attachment.

repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;

Parameter
Name Description
index int
Returns
Type Description
NetworkAttachmentConnectedEndpoint

getConnectionEndpointsCount()

public int getConnectionEndpointsCount()

[Output Only] An array of connections for all the producers connected to this network attachment.

repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;

Returns
Type Description
int

getConnectionEndpointsList()

public List<NetworkAttachmentConnectedEndpoint> getConnectionEndpointsList()

[Output Only] An array of connections for all the producers connected to this network attachment.

repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;

Returns
Type Description
List<NetworkAttachmentConnectedEndpoint>

getConnectionEndpointsOrBuilder(int index)

public NetworkAttachmentConnectedEndpointOrBuilder getConnectionEndpointsOrBuilder(int index)

[Output Only] An array of connections for all the producers connected to this network attachment.

repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;

Parameter
Name Description
index int
Returns
Type Description
NetworkAttachmentConnectedEndpointOrBuilder

getConnectionEndpointsOrBuilderList()

public List<? extends NetworkAttachmentConnectedEndpointOrBuilder> getConnectionEndpointsOrBuilderList()

[Output Only] An array of connections for all the producers connected to this network attachment.

repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;

Returns
Type Description
List<? extends com.google.cloud.compute.v1.NetworkAttachmentConnectedEndpointOrBuilder>

getConnectionPreference()

public String getConnectionPreference()

Check the ConnectionPreference enum for the list of possible values.

optional string connection_preference = 285818076;

Returns
Type Description
String

The connectionPreference.

getConnectionPreferenceBytes()

public ByteString getConnectionPreferenceBytes()

Check the ConnectionPreference enum for the list of possible values.

optional string connection_preference = 285818076;

Returns
Type Description
ByteString

The bytes for connectionPreference.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public NetworkAttachment getDefaultInstanceForType()
Returns
Type Description
NetworkAttachment

getDescription()

public String getDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
ByteString

The bytes for description.

getFingerprint()

public String getFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.

optional string fingerprint = 234678500;

Returns
Type Description
String

The fingerprint.

getFingerprintBytes()

public ByteString getFingerprintBytes()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.

optional string fingerprint = 234678500;

Returns
Type Description
ByteString

The bytes for fingerprint.

getId()

public long getId()

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
long

The id.

getKind()

public String getKind()

[Output Only] Type of the resource.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource.

optional string kind = 3292052;

Returns
Type Description
ByteString

The bytes for kind.

getName()

public String getName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

[Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.

optional string network = 232872494;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

[Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.

optional string network = 232872494;

Returns
Type Description
ByteString

The bytes for network.

getParserForType()

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

getProducerAcceptLists(int index)

public String getProducerAcceptLists(int index)

Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_accept_lists = 202804523;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The producerAcceptLists at the given index.

getProducerAcceptListsBytes(int index)

public ByteString getProducerAcceptListsBytes(int index)

Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_accept_lists = 202804523;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the producerAcceptLists at the given index.

getProducerAcceptListsCount()

public int getProducerAcceptListsCount()

Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_accept_lists = 202804523;

Returns
Type Description
int

The count of producerAcceptLists.

getProducerAcceptListsList()

public ProtocolStringList getProducerAcceptListsList()

Projects that are allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_accept_lists = 202804523;

Returns
Type Description
ProtocolStringList

A list containing the producerAcceptLists.

getProducerRejectLists(int index)

public String getProducerRejectLists(int index)

Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_reject_lists = 4112002;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The producerRejectLists at the given index.

getProducerRejectListsBytes(int index)

public ByteString getProducerRejectListsBytes(int index)

Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_reject_lists = 4112002;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the producerRejectLists at the given index.

getProducerRejectListsCount()

public int getProducerRejectListsCount()

Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_reject_lists = 4112002;

Returns
Type Description
int

The count of producerRejectLists.

getProducerRejectListsList()

public ProtocolStringList getProducerRejectListsList()

Projects that are not allowed to connect to this network attachment. The project can be specified using its id or number.

repeated string producer_reject_lists = 4112002;

Returns
Type Description
ProtocolStringList

A list containing the producerRejectLists.

getRegion()

public String getRegion()

[Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

[Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
ByteString

The bytes for region.

public String getSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
ByteString

The bytes for selfLink.

getSelfLinkWithId()

public String getSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
String

The selfLinkWithId.

getSelfLinkWithIdBytes()

public ByteString getSelfLinkWithIdBytes()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
ByteString

The bytes for selfLinkWithId.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSubnetworks(int index)

public String getSubnetworks(int index)

An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

repeated string subnetworks = 415853125;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The subnetworks at the given index.

getSubnetworksBytes(int index)

public ByteString getSubnetworksBytes(int index)

An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

repeated string subnetworks = 415853125;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the subnetworks at the given index.

getSubnetworksCount()

public int getSubnetworksCount()

An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

repeated string subnetworks = 415853125;

Returns
Type Description
int

The count of subnetworks.

getSubnetworksList()

public ProtocolStringList getSubnetworksList()

An array of URLs where each entry is the URL of a subnet provided by the service consumer to use for endpoints in the producers that connect to this network attachment.

repeated string subnetworks = 415853125;

Returns
Type Description
ProtocolStringList

A list containing the subnetworks.

hasConnectionPreference()

public boolean hasConnectionPreference()

Check the ConnectionPreference enum for the list of possible values.

optional string connection_preference = 285818076;

Returns
Type Description
boolean

Whether the connectionPreference field is set.

hasCreationTimestamp()

public boolean hasCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
boolean

Whether the creationTimestamp field is set.

hasDescription()

public boolean hasDescription()

An optional description of this resource. Provide this property when you create the resource.

optional string description = 422937596;

Returns
Type Description
boolean

Whether the description field is set.

hasFingerprint()

public boolean hasFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. An up-to-date fingerprint must be provided in order to patch.

optional string fingerprint = 234678500;

Returns
Type Description
boolean

Whether the fingerprint field is set.

hasId()

public boolean hasId()

[Output Only] The unique identifier for the resource type. The server generates this identifier.

optional uint64 id = 3355;

Returns
Type Description
boolean

Whether the id field is set.

hasKind()

public boolean hasKind()

[Output Only] Type of the resource.

optional string kind = 3292052;

Returns
Type Description
boolean

Whether the kind field is set.

hasName()

public boolean hasName()

Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

optional string name = 3373707;

Returns
Type Description
boolean

Whether the name field is set.

hasNetwork()

public boolean hasNetwork()

[Output Only] The URL of the network which the Network Attachment belongs to. Practically it is inferred by fetching the network of the first subnetwork associated. Because it is required that all the subnetworks must be from the same network, it is assured that the Network Attachment belongs to the same network as all the subnetworks.

optional string network = 232872494;

Returns
Type Description
boolean

Whether the network field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URL of the region where the network attachment resides. This field applies only to the region resource. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.

optional string region = 138946292;

Returns
Type Description
boolean

Whether the region field is set.

public boolean hasSelfLink()

[Output Only] Server-defined URL for the resource.

optional string self_link = 456214797;

Returns
Type Description
boolean

Whether the selfLink field is set.

hasSelfLinkWithId()

public boolean hasSelfLinkWithId()

[Output Only] Server-defined URL for this resource's resource id.

optional string self_link_with_id = 44520962;

Returns
Type Description
boolean

Whether the selfLinkWithId 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 NetworkAttachment.Builder newBuilderForType()
Returns
Type Description
NetworkAttachment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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