Class ServiceAttachment.Builder (1.30.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. next tag = 20

Protobuf type google.cloud.compute.v1.ServiceAttachment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.ServiceAttachmentConnectedEndpoint>
Returns
TypeDescription
ServiceAttachment.Builder

addAllConsumerAcceptLists(Iterable<? extends ServiceAttachmentConsumerProjectLimit> values)

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

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.compute.v1.ServiceAttachmentConsumerProjectLimit>
Returns
TypeDescription
ServiceAttachment.Builder

addAllConsumerRejectLists(Iterable<String> values)

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

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

repeated string consumer_reject_lists = 204033182;

Parameter
NameDescription
valuesIterable<String>

The consumerRejectLists to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The domainNames to add.

Returns
TypeDescription
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
NameDescription
valuesIterable<String>

The natSubnets to add.

Returns
TypeDescription
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
NameDescription
valueServiceAttachmentConnectedEndpoint
Returns
TypeDescription
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
NameDescription
builderForValueServiceAttachmentConnectedEndpoint.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServiceAttachmentConnectedEndpoint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceAttachmentConnectedEndpoint.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServiceAttachmentConnectedEndpoint.Builder

addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit value)

public ServiceAttachment.Builder addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit value)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
valueServiceAttachmentConsumerProjectLimit
Returns
TypeDescription
ServiceAttachment.Builder

addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

public ServiceAttachment.Builder addConsumerAcceptLists(ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
builderForValueServiceAttachmentConsumerProjectLimit.Builder
Returns
TypeDescription
ServiceAttachment.Builder

addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

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

Projects that are allowed to connect to this service attachment.

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

Parameters
NameDescription
indexint
valueServiceAttachmentConsumerProjectLimit
Returns
TypeDescription
ServiceAttachment.Builder

addConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

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

Projects that are allowed to connect to this service attachment.

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

Parameters
NameDescription
indexint
builderForValueServiceAttachmentConsumerProjectLimit.Builder
Returns
TypeDescription
ServiceAttachment.Builder

addConsumerAcceptListsBuilder()

public ServiceAttachmentConsumerProjectLimit.Builder addConsumerAcceptListsBuilder()

Projects that are allowed to connect to this service attachment.

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

Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

addConsumerAcceptListsBuilder(int index)

public ServiceAttachmentConsumerProjectLimit.Builder addConsumerAcceptListsBuilder(int index)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

addConsumerRejectLists(String value)

public ServiceAttachment.Builder addConsumerRejectLists(String value)

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

repeated string consumer_reject_lists = 204033182;

Parameter
NameDescription
valueString

The consumerRejectLists to add.

Returns
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

addConsumerRejectListsBytes(ByteString value)

public ServiceAttachment.Builder addConsumerRejectListsBytes(ByteString value)

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

repeated string consumer_reject_lists = 204033182;

Parameter
NameDescription
valueByteString

The bytes of the consumerRejectLists to add.

Returns
TypeDescription
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
NameDescription
valueString

The domainNames to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the domainNames to add.

Returns
TypeDescription
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
NameDescription
valueString

The natSubnets to add.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes of the natSubnets to add.

Returns
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceAttachment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceAttachment.Builder
Overrides

build()

public ServiceAttachment build()
Returns
TypeDescription
ServiceAttachment

buildPartial()

public ServiceAttachment buildPartial()
Returns
TypeDescription
ServiceAttachment

clear()

public ServiceAttachment.Builder clear()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

clearConsumerAcceptLists()

public ServiceAttachment.Builder clearConsumerAcceptLists()

Projects that are allowed to connect to this service attachment.

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

Returns
TypeDescription
ServiceAttachment.Builder

clearConsumerRejectLists()

public ServiceAttachment.Builder clearConsumerRejectLists()

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

repeated string consumer_reject_lists = 204033182;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceAttachment.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceAttachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceAttachment.Builder

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

This builder for chaining.

public ServiceAttachment.Builder clearSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

clone()

public ServiceAttachment.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for connectionPreference.

getConsumerAcceptLists(int index)

public ServiceAttachmentConsumerProjectLimit getConsumerAcceptLists(int index)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit

getConsumerAcceptListsBuilder(int index)

public ServiceAttachmentConsumerProjectLimit.Builder getConsumerAcceptListsBuilder(int index)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimit.Builder

getConsumerAcceptListsBuilderList()

public List<ServiceAttachmentConsumerProjectLimit.Builder> getConsumerAcceptListsBuilderList()

Projects that are allowed to connect to this service attachment.

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

Returns
TypeDescription
List<Builder>

getConsumerAcceptListsCount()

public int getConsumerAcceptListsCount()

Projects that are allowed to connect to this service attachment.

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

Returns
TypeDescription
int

getConsumerAcceptListsList()

public List<ServiceAttachmentConsumerProjectLimit> getConsumerAcceptListsList()

Projects that are allowed to connect to this service attachment.

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

Returns
TypeDescription
List<ServiceAttachmentConsumerProjectLimit>

getConsumerAcceptListsOrBuilder(int index)

public ServiceAttachmentConsumerProjectLimitOrBuilder getConsumerAcceptListsOrBuilder(int index)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
ServiceAttachmentConsumerProjectLimitOrBuilder

getConsumerAcceptListsOrBuilderList()

public List<? extends ServiceAttachmentConsumerProjectLimitOrBuilder> getConsumerAcceptListsOrBuilderList()

Projects that are allowed to connect to this service attachment.

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

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

getConsumerRejectLists(int index)

public String getConsumerRejectLists(int index)

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

repeated string consumer_reject_lists = 204033182;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The consumerRejectLists at the given index.

getConsumerRejectListsBytes(int index)

public ByteString getConsumerRejectListsBytes(int index)

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

repeated string consumer_reject_lists = 204033182;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the consumerRejectLists at the given index.

getConsumerRejectListsCount()

public int getConsumerRejectListsCount()

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

repeated string consumer_reject_lists = 204033182;

Returns
TypeDescription
int

The count of consumerRejectLists.

getConsumerRejectListsList()

public ProtocolStringList getConsumerRejectListsList()

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

repeated string consumer_reject_lists = 204033182;

Returns
TypeDescription
ProtocolStringList

A list containing the consumerRejectLists.

getCreationTimestamp()

public String getCreationTimestamp()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
String

The creationTimestamp.

getCreationTimestampBytes()

public ByteString getCreationTimestampBytes()

[Output Only] Creation timestamp in RFC3339 text format.

optional string creation_timestamp = 30525366;

Returns
TypeDescription
ByteString

The bytes for creationTimestamp.

getDefaultInstanceForType()

public ServiceAttachment getDefaultInstanceForType()
Returns
TypeDescription
ServiceAttachment

getDescription()

public String getDescription()

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

optional string description = 422937596;

Returns
TypeDescription
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
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
long

The id.

getKind()

public String getKind()

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

optional string kind = 3292052;

Returns
TypeDescription
String

The kind.

getKindBytes()

public ByteString getKindBytes()

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

optional string kind = 3292052;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for producerForwardingRule.

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
TypeDescription
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
TypeDescription
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
TypeDescription
Uint128OrBuilder

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
TypeDescription
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
TypeDescription
ByteString

The bytes for region.

public String getSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
String

The selfLink.

getSelfLinkBytes()

public ByteString getSelfLinkBytes()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the producerForwardingRule 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
TypeDescription
boolean

Whether the pscServiceAttachmentId 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
TypeDescription
boolean

Whether the region field is set.

public boolean hasSelfLink()

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

optional string self_link = 456214797;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the targetService field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceAttachment other)

public ServiceAttachment.Builder mergeFrom(ServiceAttachment other)
Parameter
NameDescription
otherServiceAttachment
Returns
TypeDescription
ServiceAttachment.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceAttachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceAttachment.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueUint128
Returns
TypeDescription
ServiceAttachment.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServiceAttachment.Builder

removeConsumerAcceptLists(int index)

public ServiceAttachment.Builder removeConsumerAcceptLists(int index)

Projects that are allowed to connect to this service attachment.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
valueServiceAttachmentConnectedEndpoint
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceAttachmentConnectedEndpoint.Builder
Returns
TypeDescription
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
NameDescription
valueString

The connectionPreference to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for connectionPreference to set.

Returns
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit value)

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

Projects that are allowed to connect to this service attachment.

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

Parameters
NameDescription
indexint
valueServiceAttachmentConsumerProjectLimit
Returns
TypeDescription
ServiceAttachment.Builder

setConsumerAcceptLists(int index, ServiceAttachmentConsumerProjectLimit.Builder builderForValue)

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

Projects that are allowed to connect to this service attachment.

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

Parameters
NameDescription
indexint
builderForValueServiceAttachmentConsumerProjectLimit.Builder
Returns
TypeDescription
ServiceAttachment.Builder

setConsumerRejectLists(int index, String value)

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

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

repeated string consumer_reject_lists = 204033182;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The consumerRejectLists to set.

Returns
TypeDescription
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
NameDescription
valueString

The creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for creationTimestamp to set.

Returns
TypeDescription
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
NameDescription
valueString

The description to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The domainNames to set.

Returns
TypeDescription
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
NameDescription
valueboolean

The enableProxyProtocol to set.

Returns
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceAttachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fingerprint to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for fingerprint to set.

Returns
TypeDescription
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
NameDescription
valuelong

The id to set.

Returns
TypeDescription
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
NameDescription
valueString

The kind to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for kind to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
indexint

The index to set the value at.

valueString

The natSubnets to set.

Returns
TypeDescription
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
NameDescription
valueString

The producerForwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for producerForwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueUint128
Returns
TypeDescription
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
NameDescription
builderForValueUint128.Builder
Returns
TypeDescription
ServiceAttachment.Builder

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
NameDescription
valueString

The region to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ServiceAttachment.Builder
Overrides
public ServiceAttachment.Builder setSelfLink(String value)

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

optional string self_link = 456214797;

Parameter
NameDescription
valueString

The selfLink to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for selfLink to set.

Returns
TypeDescription
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
NameDescription
valueString

The targetService to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for targetService to set.

Returns
TypeDescription
ServiceAttachment.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceAttachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceAttachment.Builder
Overrides