- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public static final class NetworkAttachment.Builder extends GeneratedMessageV3.Builder<NetworkAttachment.Builder> implements NetworkAttachmentOrBuilder
NetworkAttachments A network attachment resource ...
Protobuf type google.cloud.compute.v1.NetworkAttachment
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > NetworkAttachment.BuilderImplements
NetworkAttachmentOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllConnectionEndpoints(Iterable<? extends NetworkAttachmentConnectedEndpoint> values)
public NetworkAttachment.Builder addAllConnectionEndpoints(Iterable<? extends NetworkAttachmentConnectedEndpoint> values)
[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 |
values | Iterable<? extends com.google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint> |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addAllProducerAcceptLists(Iterable<String> values)
public NetworkAttachment.Builder addAllProducerAcceptLists(Iterable<String> values)
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 |
values | Iterable<String> The producerAcceptLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addAllProducerRejectLists(Iterable<String> values)
public NetworkAttachment.Builder addAllProducerRejectLists(Iterable<String> values)
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 |
values | Iterable<String> The producerRejectLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addAllSubnetworks(Iterable<String> values)
public NetworkAttachment.Builder addAllSubnetworks(Iterable<String> values)
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 |
values | Iterable<String> The subnetworks to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addConnectionEndpoints(NetworkAttachmentConnectedEndpoint value)
public NetworkAttachment.Builder addConnectionEndpoints(NetworkAttachmentConnectedEndpoint value)
[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 |
value | NetworkAttachmentConnectedEndpoint |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addConnectionEndpoints(NetworkAttachmentConnectedEndpoint.Builder builderForValue)
public NetworkAttachment.Builder addConnectionEndpoints(NetworkAttachmentConnectedEndpoint.Builder builderForValue)
[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 |
builderForValue | NetworkAttachmentConnectedEndpoint.Builder |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint value)
public NetworkAttachment.Builder addConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint value)
[Output Only] An array of connections for all the producers connected to this network attachment.
repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
Parameters | |
---|---|
Name | Description |
index | int |
value | NetworkAttachmentConnectedEndpoint |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint.Builder builderForValue)
public NetworkAttachment.Builder addConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint.Builder builderForValue)
[Output Only] An array of connections for all the producers connected to this network attachment.
repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NetworkAttachmentConnectedEndpoint.Builder |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addConnectionEndpointsBuilder()
public NetworkAttachmentConnectedEndpoint.Builder addConnectionEndpointsBuilder()
[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 |
NetworkAttachmentConnectedEndpoint.Builder |
addConnectionEndpointsBuilder(int index)
public NetworkAttachmentConnectedEndpoint.Builder addConnectionEndpointsBuilder(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.Builder |
addProducerAcceptLists(String value)
public NetworkAttachment.Builder addProducerAcceptLists(String value)
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 |
value | String The producerAcceptLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addProducerAcceptListsBytes(ByteString value)
public NetworkAttachment.Builder addProducerAcceptListsBytes(ByteString value)
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 |
value | ByteString The bytes of the producerAcceptLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addProducerRejectLists(String value)
public NetworkAttachment.Builder addProducerRejectLists(String value)
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 |
value | String The producerRejectLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addProducerRejectListsBytes(ByteString value)
public NetworkAttachment.Builder addProducerRejectListsBytes(ByteString value)
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 |
value | ByteString The bytes of the producerRejectLists to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NetworkAttachment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
addSubnetworks(String value)
public NetworkAttachment.Builder addSubnetworks(String value)
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 |
value | String The subnetworks to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
addSubnetworksBytes(ByteString value)
public NetworkAttachment.Builder addSubnetworksBytes(ByteString value)
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 |
value | ByteString The bytes of the subnetworks to add. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
build()
public NetworkAttachment build()
Returns | |
---|---|
Type | Description |
NetworkAttachment |
buildPartial()
public NetworkAttachment buildPartial()
Returns | |
---|---|
Type | Description |
NetworkAttachment |
clear()
public NetworkAttachment.Builder clear()
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
clearConnectionEndpoints()
public NetworkAttachment.Builder clearConnectionEndpoints()
[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 |
NetworkAttachment.Builder |
clearConnectionPreference()
public NetworkAttachment.Builder clearConnectionPreference()
Check the ConnectionPreference enum for the list of possible values.
optional string connection_preference = 285818076;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearCreationTimestamp()
public NetworkAttachment.Builder clearCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearDescription()
public NetworkAttachment.Builder clearDescription()
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public NetworkAttachment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescriptor |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
clearFingerprint()
public NetworkAttachment.Builder clearFingerprint()
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 |
NetworkAttachment.Builder | This builder for chaining. |
clearId()
public NetworkAttachment.Builder clearId()
[Output Only] The unique identifier for the resource type. The server generates this identifier.
optional uint64 id = 3355;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearKind()
public NetworkAttachment.Builder clearKind()
[Output Only] Type of the resource.
optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearName()
public NetworkAttachment.Builder clearName()
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 |
NetworkAttachment.Builder | This builder for chaining. |
clearNetwork()
public NetworkAttachment.Builder clearNetwork()
[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 |
NetworkAttachment.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public NetworkAttachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof | OneofDescriptor |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
clearProducerAcceptLists()
public NetworkAttachment.Builder clearProducerAcceptLists()
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 |
NetworkAttachment.Builder | This builder for chaining. |
clearProducerRejectLists()
public NetworkAttachment.Builder clearProducerRejectLists()
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 |
NetworkAttachment.Builder | This builder for chaining. |
clearRegion()
public NetworkAttachment.Builder clearRegion()
[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 |
NetworkAttachment.Builder | This builder for chaining. |
clearSelfLink()
public NetworkAttachment.Builder clearSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearSelfLinkWithId()
public NetworkAttachment.Builder clearSelfLinkWithId()
[Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
clearSubnetworks()
public NetworkAttachment.Builder clearSubnetworks()
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 |
NetworkAttachment.Builder | This builder for chaining. |
clone()
public NetworkAttachment.Builder clone()
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
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 |
getConnectionEndpointsBuilder(int index)
public NetworkAttachmentConnectedEndpoint.Builder getConnectionEndpointsBuilder(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.Builder |
getConnectionEndpointsBuilderList()
public List<NetworkAttachmentConnectedEndpoint.Builder> getConnectionEndpointsBuilderList()
[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<Builder> |
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. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
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. |
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. |
getSelfLink()
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. |
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. |
hasSelfLink()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(NetworkAttachment other)
public NetworkAttachment.Builder mergeFrom(NetworkAttachment other)
Parameter | |
---|---|
Name | Description |
other | NetworkAttachment |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NetworkAttachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public NetworkAttachment.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NetworkAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
removeConnectionEndpoints(int index)
public NetworkAttachment.Builder removeConnectionEndpoints(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 |
NetworkAttachment.Builder |
setConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint value)
public NetworkAttachment.Builder setConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint value)
[Output Only] An array of connections for all the producers connected to this network attachment.
repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
Parameters | |
---|---|
Name | Description |
index | int |
value | NetworkAttachmentConnectedEndpoint |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
setConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint.Builder builderForValue)
public NetworkAttachment.Builder setConnectionEndpoints(int index, NetworkAttachmentConnectedEndpoint.Builder builderForValue)
[Output Only] An array of connections for all the producers connected to this network attachment.
repeated .google.cloud.compute.v1.NetworkAttachmentConnectedEndpoint connection_endpoints = 326078813;
Parameters | |
---|---|
Name | Description |
index | int |
builderForValue | NetworkAttachmentConnectedEndpoint.Builder |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
setConnectionPreference(String value)
public NetworkAttachment.Builder setConnectionPreference(String value)
Check the ConnectionPreference enum for the list of possible values.
optional string connection_preference = 285818076;
Parameter | |
---|---|
Name | Description |
value | String The connectionPreference to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setConnectionPreferenceBytes(ByteString value)
public NetworkAttachment.Builder setConnectionPreferenceBytes(ByteString value)
Check the ConnectionPreference enum for the list of possible values.
optional string connection_preference = 285818076;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for connectionPreference to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setCreationTimestamp(String value)
public NetworkAttachment.Builder setCreationTimestamp(String value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Parameter | |
---|---|
Name | Description |
value | String The creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setCreationTimestampBytes(ByteString value)
public NetworkAttachment.Builder setCreationTimestampBytes(ByteString value)
[Output Only] Creation timestamp in RFC3339 text format.
optional string creation_timestamp = 30525366;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for creationTimestamp to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setDescription(String value)
public NetworkAttachment.Builder setDescription(String value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Parameter | |
---|---|
Name | Description |
value | String The description to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public NetworkAttachment.Builder setDescriptionBytes(ByteString value)
An optional description of this resource. Provide this property when you create the resource.
optional string description = 422937596;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for description to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public NetworkAttachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
setFingerprint(String value)
public NetworkAttachment.Builder setFingerprint(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The fingerprint to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setFingerprintBytes(ByteString value)
public NetworkAttachment.Builder setFingerprintBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for fingerprint to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setId(long value)
public NetworkAttachment.Builder setId(long value)
[Output Only] The unique identifier for the resource type. The server generates this identifier.
optional uint64 id = 3355;
Parameter | |
---|---|
Name | Description |
value | long The id to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setKind(String value)
public NetworkAttachment.Builder setKind(String value)
[Output Only] Type of the resource.
optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
value | String The kind to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setKindBytes(ByteString value)
public NetworkAttachment.Builder setKindBytes(ByteString value)
[Output Only] Type of the resource.
optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for kind to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setName(String value)
public NetworkAttachment.Builder setName(String value)
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;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public NetworkAttachment.Builder setNameBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setNetwork(String value)
public NetworkAttachment.Builder setNetwork(String value)
[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;
Parameter | |
---|---|
Name | Description |
value | String The network to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public NetworkAttachment.Builder setNetworkBytes(ByteString value)
[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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for network to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setProducerAcceptLists(int index, String value)
public NetworkAttachment.Builder setProducerAcceptLists(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The producerAcceptLists to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setProducerRejectLists(int index, String value)
public NetworkAttachment.Builder setProducerRejectLists(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The producerRejectLists to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setRegion(String value)
public NetworkAttachment.Builder setRegion(String value)
[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;
Parameter | |
---|---|
Name | Description |
value | String The region to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setRegionBytes(ByteString value)
public NetworkAttachment.Builder setRegionBytes(ByteString value)
[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;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for region to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NetworkAttachment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |
setSelfLink(String value)
public NetworkAttachment.Builder setSelfLink(String value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
value | String The selfLink to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setSelfLinkBytes(ByteString value)
public NetworkAttachment.Builder setSelfLinkBytes(ByteString value)
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for selfLink to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setSelfLinkWithId(String value)
public NetworkAttachment.Builder setSelfLinkWithId(String value)
[Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;
Parameter | |
---|---|
Name | Description |
value | String The selfLinkWithId to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setSelfLinkWithIdBytes(ByteString value)
public NetworkAttachment.Builder setSelfLinkWithIdBytes(ByteString value)
[Output Only] Server-defined URL for this resource's resource id.
optional string self_link_with_id = 44520962;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for selfLinkWithId to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setSubnetworks(int index, String value)
public NetworkAttachment.Builder setSubnetworks(int index, String value)
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;
Parameters | |
---|---|
Name | Description |
index | int The index to set the value at. |
value | String The subnetworks to set. |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final NetworkAttachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
NetworkAttachment.Builder |