Class ServiceAttachment.Builder (1.64.0)

public static final class ServiceAttachment.Builder extends GeneratedMessageV3.Builder<ServiceAttachment.Builder> implements ServiceAttachmentOrBuilder

Represents a ServiceAttachment resource. A service attachment represents a service that a producer has exposed. It encapsulates the load balancer which fronts the service runs and a list of NAT IP ranges that the producers uses to represent the consumers connecting to the service.

Protobuf type google.cloud.compute.v1.ServiceAttachment

Static Methods

getDescriptor()

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

Methods

addAllConnectedEndpoints(Iterable<? extends ServiceAttachmentConnectedEndpoint> values)

public ServiceAttachment.Builder addAllConnectedEndpoints(Iterable<? extends ServiceAttachmentConnectedEndpoint> values)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint>
Returns
Type Description
ServiceAttachment.Builder

addAllConsumerAcceptLists(Iterable<? extends ServiceAttachmentConsumerProjectLimit> values)

public ServiceAttachment.Builder addAllConsumerAcceptLists(Iterable<? extends ServiceAttachmentConsumerProjectLimit> values)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
values Iterable<? extends com.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit>
Returns
Type Description
ServiceAttachment.Builder

addAllConsumerRejectLists(Iterable<String> values)

public ServiceAttachment.Builder addAllConsumerRejectLists(Iterable<String> values)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameter
Name Description
values Iterable<String>

The consumerRejectLists to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addAllDomainNames(Iterable<String> values)

public ServiceAttachment.Builder addAllDomainNames(Iterable<String> values)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameter
Name Description
values Iterable<String>

The domainNames to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addAllNatSubnets(Iterable<String> values)

public ServiceAttachment.Builder addAllNatSubnets(Iterable<String> values)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameter
Name Description
values Iterable<String>

The natSubnets to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addConnectedEndpoints(ServiceAttachmentConnectedEndpoint value)

public ServiceAttachment.Builder addConnectedEndpoints(ServiceAttachmentConnectedEndpoint value)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
value ServiceAttachmentConnectedEndpoint
Returns
Type Description
ServiceAttachment.Builder

addConnectedEndpoints(ServiceAttachmentConnectedEndpoint.Builder builderForValue)

public ServiceAttachment.Builder addConnectedEndpoints(ServiceAttachmentConnectedEndpoint.Builder builderForValue)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
builderForValue ServiceAttachmentConnectedEndpoint.Builder
Returns
Type Description
ServiceAttachment.Builder

addConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint value)

public ServiceAttachment.Builder addConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint value)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameters
Name Description
index int
value ServiceAttachmentConnectedEndpoint
Returns
Type Description
ServiceAttachment.Builder

addConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint.Builder builderForValue)

public ServiceAttachment.Builder addConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint.Builder builderForValue)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameters
Name Description
index int
builderForValue ServiceAttachmentConnectedEndpoint.Builder
Returns
Type Description
ServiceAttachment.Builder

addConnectedEndpointsBuilder()

public ServiceAttachmentConnectedEndpoint.Builder addConnectedEndpointsBuilder()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

addConnectedEndpointsBuilder(int index)

public ServiceAttachmentConnectedEndpoint.Builder addConnectedEndpointsBuilder(int index)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit value)

public ServiceAttachment.Builder addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit value)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
value ServiceAttachmentConsumerProjectLimit
Returns
Type Description
ServiceAttachment.Builder

addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

public ServiceAttachment.Builder addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
builderForValue ServiceAttachmentConsumerProjectLimit.Builder
Returns
Type Description
ServiceAttachment.Builder

addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

public ServiceAttachment.Builder addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameters
Name Description
index int
value ServiceAttachmentConsumerProjectLimit
Returns
Type Description
ServiceAttachment.Builder

addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

public ServiceAttachment.Builder addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameters
Name Description
index int
builderForValue ServiceAttachmentConsumerProjectLimit.Builder
Returns
Type Description
ServiceAttachment.Builder

addConsumerAcceptListsBuilder()

public ServiceAttachmentConsumerProjectLimit.Builder addConsumerAcceptListsBuilder()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

addConsumerAcceptListsBuilder(int index)

public ServiceAttachmentConsumerProjectLimit.Builder addConsumerAcceptListsBuilder(int index)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

addConsumerRejectLists(String value)

public ServiceAttachment.Builder addConsumerRejectLists(String value)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameter
Name Description
value String

The consumerRejectLists to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addConsumerRejectListsBytes(ByteString value)

public ServiceAttachment.Builder addConsumerRejectListsBytes(ByteString value)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameter
Name Description
value ByteString

The bytes of the consumerRejectLists to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addDomainNames(String value)

public ServiceAttachment.Builder addDomainNames(String value)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameter
Name Description
value String

The domainNames to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addDomainNamesBytes(ByteString value)

public ServiceAttachment.Builder addDomainNamesBytes(ByteString value)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameter
Name Description
value ByteString

The bytes of the domainNames to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addNatSubnets(String value)

public ServiceAttachment.Builder addNatSubnets(String value)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameter
Name Description
value String

The natSubnets to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addNatSubnetsBytes(ByteString value)

public ServiceAttachment.Builder addNatSubnetsBytes(ByteString value)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameter
Name Description
value ByteString

The bytes of the natSubnets to add.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceAttachment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceAttachment.Builder
Overrides

build()

public ServiceAttachment build()
Returns
Type Description
ServiceAttachment

buildPartial()

public ServiceAttachment buildPartial()
Returns
Type Description
ServiceAttachment

clear()

public ServiceAttachment.Builder clear()
Returns
Type Description
ServiceAttachment.Builder
Overrides

clearConnectedEndpoints()

public ServiceAttachment.Builder clearConnectedEndpoints()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Returns
Type Description
ServiceAttachment.Builder

clearConnectionPreference()

public ServiceAttachment.Builder clearConnectionPreference()

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Check the ConnectionPreference enum for the list of possible values.

optional string connection_preference = 285818076;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearConsumerAcceptLists()

public ServiceAttachment.Builder clearConsumerAcceptLists()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Returns
Type Description
ServiceAttachment.Builder

clearConsumerRejectLists()

public ServiceAttachment.Builder clearConsumerRejectLists()

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearCreationTimestamp()

public ServiceAttachment.Builder clearCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearDescription()

public ServiceAttachment.Builder clearDescription()

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

optional string description = 422937596;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearDomainNames()

public ServiceAttachment.Builder clearDomainNames()

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearEnableProxyProtocol()

public ServiceAttachment.Builder clearEnableProxyProtocol()

If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

optional bool enable_proxy_protocol = 363791237;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceAttachment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceAttachment.Builder
Overrides

clearFingerprint()

public ServiceAttachment.Builder clearFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

optional string fingerprint = 234678500;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearId()

public ServiceAttachment.Builder clearId()

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

optional uint64 id = 3355;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearKind()

public ServiceAttachment.Builder clearKind()

[Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.

optional string kind = 3292052;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearName()

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

clearNatSubnets()

public ServiceAttachment.Builder clearNatSubnets()

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceAttachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceAttachment.Builder
Overrides

clearProducerForwardingRule()

public ServiceAttachment.Builder clearProducerForwardingRule()

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearPropagatedConnectionLimit()

public ServiceAttachment.Builder clearPropagatedConnectionLimit()

The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.

optional uint32 propagated_connection_limit = 332719230;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearPscServiceAttachmentId()

public ServiceAttachment.Builder clearPscServiceAttachmentId()

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Returns
Type Description
ServiceAttachment.Builder

clearReconcileConnections()

public ServiceAttachment.Builder clearReconcileConnections()

This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.

optional bool reconcile_connections = 125493732;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearRegion()

public ServiceAttachment.Builder clearRegion()

[Output Only] URL of the region where the service 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
ServiceAttachment.Builder

This builder for chaining.

public ServiceAttachment.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clearTargetService()

public ServiceAttachment.Builder clearTargetService()

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

clone()

public ServiceAttachment.Builder clone()
Returns
Type Description
ServiceAttachment.Builder
Overrides

getConnectedEndpoints(int index)

public ServiceAttachmentConnectedEndpoint getConnectedEndpoints(int index)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConnectedEndpoint

getConnectedEndpointsBuilder(int index)

public ServiceAttachmentConnectedEndpoint.Builder getConnectedEndpointsBuilder(int index)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConnectedEndpoint.Builder

getConnectedEndpointsBuilderList()

public List<ServiceAttachmentConnectedEndpoint.Builder> getConnectedEndpointsBuilderList()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Returns
Type Description
List<Builder>

getConnectedEndpointsCount()

public int getConnectedEndpointsCount()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Returns
Type Description
int

getConnectedEndpointsList()

public List<ServiceAttachmentConnectedEndpoint> getConnectedEndpointsList()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Returns
Type Description
List<ServiceAttachmentConnectedEndpoint>

getConnectedEndpointsOrBuilder(int index)

public ServiceAttachmentConnectedEndpointOrBuilder getConnectedEndpointsOrBuilder(int index)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConnectedEndpointOrBuilder

getConnectedEndpointsOrBuilderList()

public List<? extends ServiceAttachmentConnectedEndpointOrBuilder> getConnectedEndpointsOrBuilderList()

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

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

getConnectionPreference()

public String getConnectionPreference()

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. 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()

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. Check the ConnectionPreference enum for the list of possible values.

optional string connection_preference = 285818076;

Returns
Type Description
ByteString

The bytes for connectionPreference.

getConsumerAcceptLists(int index)

public ServiceAttachmentConsumerProjectLimit getConsumerAcceptLists(int index)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConsumerProjectLimit

getConsumerAcceptListsBuilder(int index)

public ServiceAttachmentConsumerProjectLimit.Builder getConsumerAcceptListsBuilder(int index)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConsumerProjectLimit.Builder

getConsumerAcceptListsBuilderList()

public List<ServiceAttachmentConsumerProjectLimit.Builder> getConsumerAcceptListsBuilderList()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Returns
Type Description
List<Builder>

getConsumerAcceptListsCount()

public int getConsumerAcceptListsCount()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Returns
Type Description
int

getConsumerAcceptListsList()

public List<ServiceAttachmentConsumerProjectLimit> getConsumerAcceptListsList()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Returns
Type Description
List<ServiceAttachmentConsumerProjectLimit>

getConsumerAcceptListsOrBuilder(int index)

public ServiceAttachmentConsumerProjectLimitOrBuilder getConsumerAcceptListsOrBuilder(int index)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachmentConsumerProjectLimitOrBuilder

getConsumerAcceptListsOrBuilderList()

public List<? extends ServiceAttachmentConsumerProjectLimitOrBuilder> getConsumerAcceptListsOrBuilderList()

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

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

getConsumerRejectLists(int index)

public String getConsumerRejectLists(int index)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The consumerRejectLists at the given index.

getConsumerRejectListsBytes(int index)

public ByteString getConsumerRejectListsBytes(int index)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the consumerRejectLists at the given index.

getConsumerRejectListsCount()

public int getConsumerRejectListsCount()

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Returns
Type Description
int

The count of consumerRejectLists.

getConsumerRejectListsList()

public ProtocolStringList getConsumerRejectListsList()

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Returns
Type Description
ProtocolStringList

A list containing the consumerRejectLists.

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 ServiceAttachment getDefaultInstanceForType()
Returns
Type Description
ServiceAttachment

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
Overrides

getDomainNames(int index)

public String getDomainNames(int index)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The domainNames at the given index.

getDomainNamesBytes(int index)

public ByteString getDomainNamesBytes(int index)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the domainNames at the given index.

getDomainNamesCount()

public int getDomainNamesCount()

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Returns
Type Description
int

The count of domainNames.

getDomainNamesList()

public ProtocolStringList getDomainNamesList()

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Returns
Type Description
ProtocolStringList

A list containing the domainNames.

getEnableProxyProtocol()

public boolean getEnableProxyProtocol()

If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

optional bool enable_proxy_protocol = 363791237;

Returns
Type Description
boolean

The enableProxyProtocol.

getFingerprint()

public String getFingerprint()

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

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. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

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. Always compute#serviceAttachment for service attachments.

optional string kind = 3292052;

Returns
Type Description
String

The kind.

getKindBytes()

public ByteString getKindBytes()

[Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.

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.

getNatSubnets(int index)

public String getNatSubnets(int index)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The natSubnets at the given index.

getNatSubnetsBytes(int index)

public ByteString getNatSubnetsBytes(int index)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the natSubnets at the given index.

getNatSubnetsCount()

public int getNatSubnetsCount()

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Returns
Type Description
int

The count of natSubnets.

getNatSubnetsList()

public ProtocolStringList getNatSubnetsList()

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Returns
Type Description
ProtocolStringList

A list containing the natSubnets.

getProducerForwardingRule()

public String getProducerForwardingRule()

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Returns
Type Description
String

The producerForwardingRule.

getProducerForwardingRuleBytes()

public ByteString getProducerForwardingRuleBytes()

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Returns
Type Description
ByteString

The bytes for producerForwardingRule.

getPropagatedConnectionLimit()

public int getPropagatedConnectionLimit()

The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.

optional uint32 propagated_connection_limit = 332719230;

Returns
Type Description
int

The propagatedConnectionLimit.

getPscServiceAttachmentId()

public Uint128 getPscServiceAttachmentId()

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Returns
Type Description
Uint128

The pscServiceAttachmentId.

getPscServiceAttachmentIdBuilder()

public Uint128.Builder getPscServiceAttachmentIdBuilder()

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Returns
Type Description
Uint128.Builder

getPscServiceAttachmentIdOrBuilder()

public Uint128OrBuilder getPscServiceAttachmentIdOrBuilder()

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Returns
Type Description
Uint128OrBuilder

getReconcileConnections()

public boolean getReconcileConnections()

This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.

optional bool reconcile_connections = 125493732;

Returns
Type Description
boolean

The reconcileConnections.

getRegion()

public String getRegion()

[Output Only] URL of the region where the service 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 service 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.

getTargetService()

public String getTargetService()

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Returns
Type Description
String

The targetService.

getTargetServiceBytes()

public ByteString getTargetServiceBytes()

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Returns
Type Description
ByteString

The bytes for targetService.

hasConnectionPreference()

public boolean hasConnectionPreference()

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. 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.

hasEnableProxyProtocol()

public boolean hasEnableProxyProtocol()

If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

optional bool enable_proxy_protocol = 363791237;

Returns
Type Description
boolean

Whether the enableProxyProtocol 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. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

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. Always compute#serviceAttachment for service attachments.

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.

hasProducerForwardingRule()

public boolean hasProducerForwardingRule()

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Returns
Type Description
boolean

Whether the producerForwardingRule field is set.

hasPropagatedConnectionLimit()

public boolean hasPropagatedConnectionLimit()

The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.

optional uint32 propagated_connection_limit = 332719230;

Returns
Type Description
boolean

Whether the propagatedConnectionLimit field is set.

hasPscServiceAttachmentId()

public boolean hasPscServiceAttachmentId()

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Returns
Type Description
boolean

Whether the pscServiceAttachmentId field is set.

hasReconcileConnections()

public boolean hasReconcileConnections()

This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.

optional bool reconcile_connections = 125493732;

Returns
Type Description
boolean

Whether the reconcileConnections field is set.

hasRegion()

public boolean hasRegion()

[Output Only] URL of the region where the service 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.

hasTargetService()

public boolean hasTargetService()

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Returns
Type Description
boolean

Whether the targetService field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceAttachment other)

public ServiceAttachment.Builder mergeFrom(ServiceAttachment other)
Parameter
Name Description
other ServiceAttachment
Returns
Type Description
ServiceAttachment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceAttachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceAttachment.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceAttachment.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceAttachment.Builder
Overrides

mergePscServiceAttachmentId(Uint128 value)

public ServiceAttachment.Builder mergePscServiceAttachmentId(Uint128 value)

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Parameter
Name Description
value Uint128
Returns
Type Description
ServiceAttachment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceAttachment.Builder
Overrides

removeConnectedEndpoints(int index)

public ServiceAttachment.Builder removeConnectedEndpoints(int index)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachment.Builder

removeConsumerAcceptLists(int index)

public ServiceAttachment.Builder removeConsumerAcceptLists(int index)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameter
Name Description
index int
Returns
Type Description
ServiceAttachment.Builder

setConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint value)

public ServiceAttachment.Builder setConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint value)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameters
Name Description
index int
value ServiceAttachmentConnectedEndpoint
Returns
Type Description
ServiceAttachment.Builder

setConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint.Builder builderForValue)

public ServiceAttachment.Builder setConnectedEndpoints(int index, ServiceAttachmentConnectedEndpoint.Builder builderForValue)

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

repeated .google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint connected_endpoints = 72223688;

Parameters
Name Description
index int
builderForValue ServiceAttachmentConnectedEndpoint.Builder
Returns
Type Description
ServiceAttachment.Builder

setConnectionPreference(String value)

public ServiceAttachment.Builder setConnectionPreference(String value)

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. 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
ServiceAttachment.Builder

This builder for chaining.

setConnectionPreferenceBytes(ByteString value)

public ServiceAttachment.Builder setConnectionPreferenceBytes(ByteString value)

The connection preference of service attachment. The value can be set to ACCEPT_AUTOMATIC. An ACCEPT_AUTOMATIC service attachment is one that always accepts the connection from consumer forwarding rules. 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
ServiceAttachment.Builder

This builder for chaining.

setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

public ServiceAttachment.Builder setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameters
Name Description
index int
value ServiceAttachmentConsumerProjectLimit
Returns
Type Description
ServiceAttachment.Builder

setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

public ServiceAttachment.Builder setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

Specifies which consumer projects or networks are allowed to connect to the service attachment. Each project or network has a connection limit. A given service attachment can manage connections at either the project or network level. Therefore, both the accept and reject lists for a given service attachment must contain either only projects or only networks.

repeated .google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit consumer_accept_lists = 402725703;

Parameters
Name Description
index int
builderForValue ServiceAttachmentConsumerProjectLimit.Builder
Returns
Type Description
ServiceAttachment.Builder

setConsumerRejectLists(int index, String value)

public ServiceAttachment.Builder setConsumerRejectLists(int index, String value)

Specifies a list of projects or networks that are not allowed to connect to this service attachment. The project can be specified using its project ID or project number and the network can be specified using its URL. A given service attachment can manage connections at either the project or network level. Therefore, both the reject and accept lists for a given service attachment must contain either only projects or only networks.

repeated string consumer_reject_lists = 204033182;

Parameters
Name Description
index int

The index to set the value at.

value String

The consumerRejectLists to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setCreationTimestamp(String value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setCreationTimestampBytes(ByteString value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setDescription(String value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setDomainNames(int index, String value)

public ServiceAttachment.Builder setDomainNames(int index, String value)

If specified, the domain name will be used during the integration between the PSC connected endpoints and the Cloud DNS. For example, this is a valid domain name: "p.mycompany.com.". Current max number of domain names supported is 1.

repeated string domain_names = 6450189;

Parameters
Name Description
index int

The index to set the value at.

value String

The domainNames to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setEnableProxyProtocol(boolean value)

public ServiceAttachment.Builder setEnableProxyProtocol(boolean value)

If true, enable the proxy protocol which is for supplying client TCP/IP address data in TCP connections that traverse proxies on their way to destination servers.

optional bool enable_proxy_protocol = 363791237;

Parameter
Name Description
value boolean

The enableProxyProtocol to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceAttachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceAttachment.Builder
Overrides

setFingerprint(String value)

public ServiceAttachment.Builder setFingerprint(String value)

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

optional string fingerprint = 234678500;

Parameter
Name Description
value String

The fingerprint to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setFingerprintBytes(ByteString value)

public ServiceAttachment.Builder setFingerprintBytes(ByteString value)

Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ServiceAttachment. An up-to-date fingerprint must be provided in order to patch/update the ServiceAttachment; otherwise, the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve the ServiceAttachment.

optional string fingerprint = 234678500;

Parameter
Name Description
value ByteString

The bytes for fingerprint to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setId(long value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setKind(String value)

public ServiceAttachment.Builder setKind(String value)

[Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.

optional string kind = 3292052;

Parameter
Name Description
value String

The kind to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setKindBytes(ByteString value)

public ServiceAttachment.Builder setKindBytes(ByteString value)

[Output Only] Type of the resource. Always compute#serviceAttachment for service attachments.

optional string kind = 3292052;

Parameter
Name Description
value ByteString

The bytes for kind to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setName(String value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setNatSubnets(int index, String value)

public ServiceAttachment.Builder setNatSubnets(int index, String value)

An array of URLs where each entry is the URL of a subnet provided by the service producer to use for NAT in this service attachment.

repeated string nat_subnets = 374785944;

Parameters
Name Description
index int

The index to set the value at.

value String

The natSubnets to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setProducerForwardingRule(String value)

public ServiceAttachment.Builder setProducerForwardingRule(String value)

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Parameter
Name Description
value String

The producerForwardingRule to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setProducerForwardingRuleBytes(ByteString value)

public ServiceAttachment.Builder setProducerForwardingRuleBytes(ByteString value)

The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is serving the endpoint identified by this service attachment.

optional string producer_forwarding_rule = 247927889;

Parameter
Name Description
value ByteString

The bytes for producerForwardingRule to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setPropagatedConnectionLimit(int value)

public ServiceAttachment.Builder setPropagatedConnectionLimit(int value)

The number of consumer spokes that connected Private Service Connect endpoints can be propagated to through Network Connectivity Center. This limit lets the service producer limit how many propagated Private Service Connect connections can be established to this service attachment from a single consumer. If the connection preference of the service attachment is ACCEPT_MANUAL, the limit applies to each project or network that is listed in the consumer accept list. If the connection preference of the service attachment is ACCEPT_AUTOMATIC, the limit applies to each project that contains a connected endpoint. If unspecified, the default propagated connection limit is 250.

optional uint32 propagated_connection_limit = 332719230;

Parameter
Name Description
value int

The propagatedConnectionLimit to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setPscServiceAttachmentId(Uint128 value)

public ServiceAttachment.Builder setPscServiceAttachmentId(Uint128 value)

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Parameter
Name Description
value Uint128
Returns
Type Description
ServiceAttachment.Builder

setPscServiceAttachmentId(Uint128.Builder builderForValue)

public ServiceAttachment.Builder setPscServiceAttachmentId(Uint128.Builder builderForValue)

[Output Only] An 128-bit global unique ID of the PSC service attachment.

optional .google.cloud.compute.v1.Uint128 psc_service_attachment_id = 527695214;

Parameter
Name Description
builderForValue Uint128.Builder
Returns
Type Description
ServiceAttachment.Builder

setReconcileConnections(boolean value)

public ServiceAttachment.Builder setReconcileConnections(boolean value)

This flag determines whether a consumer accept/reject list change can reconcile the statuses of existing ACCEPTED or REJECTED PSC endpoints. - If false, connection policy update will only affect existing PENDING PSC endpoints. Existing ACCEPTED/REJECTED endpoints will remain untouched regardless how the connection policy is modified . - If true, update will affect both PENDING and ACCEPTED/REJECTED PSC endpoints. For example, an ACCEPTED PSC endpoint will be moved to REJECTED if its project is added to the reject list. For newly created service attachment, this boolean defaults to false.

optional bool reconcile_connections = 125493732;

Parameter
Name Description
value boolean

The reconcileConnections to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setRegion(String value)

public ServiceAttachment.Builder setRegion(String value)

[Output Only] URL of the region where the service 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
ServiceAttachment.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public ServiceAttachment.Builder setRegionBytes(ByteString value)

[Output Only] URL of the region where the service 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
ServiceAttachment.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceAttachment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceAttachment.Builder
Overrides
public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setSelfLinkBytes(ByteString value)

public ServiceAttachment.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
ServiceAttachment.Builder

This builder for chaining.

setTargetService(String value)

public ServiceAttachment.Builder setTargetService(String value)

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Parameter
Name Description
value String

The targetService to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setTargetServiceBytes(ByteString value)

public ServiceAttachment.Builder setTargetServiceBytes(ByteString value)

The URL of a service serving the endpoint identified by this service attachment.

optional string target_service = 1293831;

Parameter
Name Description
value ByteString

The bytes for targetService to set.

Returns
Type Description
ServiceAttachment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAttachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceAttachment.Builder
Overrides