Class ServiceAttachment (1.30.0)

public final class ServiceAttachment extends GeneratedMessageV3 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 Fields

CONNECTED_ENDPOINTS_FIELD_NUMBER

public static final int CONNECTED_ENDPOINTS_FIELD_NUMBER
Field Value
TypeDescription
int

CONNECTION_PREFERENCE_FIELD_NUMBER

public static final int CONNECTION_PREFERENCE_FIELD_NUMBER
Field Value
TypeDescription
int

CONSUMER_ACCEPT_LISTS_FIELD_NUMBER

public static final int CONSUMER_ACCEPT_LISTS_FIELD_NUMBER
Field Value
TypeDescription
int

CONSUMER_REJECT_LISTS_FIELD_NUMBER

public static final int CONSUMER_REJECT_LISTS_FIELD_NUMBER
Field Value
TypeDescription
int

CREATION_TIMESTAMP_FIELD_NUMBER

public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value
TypeDescription
int

DESCRIPTION_FIELD_NUMBER

public static final int DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

DOMAIN_NAMES_FIELD_NUMBER

public static final int DOMAIN_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

ENABLE_PROXY_PROTOCOL_FIELD_NUMBER

public static final int ENABLE_PROXY_PROTOCOL_FIELD_NUMBER
Field Value
TypeDescription
int

FINGERPRINT_FIELD_NUMBER

public static final int FINGERPRINT_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

NAT_SUBNETS_FIELD_NUMBER

public static final int NAT_SUBNETS_FIELD_NUMBER
Field Value
TypeDescription
int

PRODUCER_FORWARDING_RULE_FIELD_NUMBER

public static final int PRODUCER_FORWARDING_RULE_FIELD_NUMBER
Field Value
TypeDescription
int

PSC_SERVICE_ATTACHMENT_ID_FIELD_NUMBER

public static final int PSC_SERVICE_ATTACHMENT_ID_FIELD_NUMBER
Field Value
TypeDescription
int

REGION_FIELD_NUMBER

public static final int REGION_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int SELF_LINK_FIELD_NUMBER
Field Value
TypeDescription
int

TARGET_SERVICE_FIELD_NUMBER

public static final int TARGET_SERVICE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ServiceAttachment getDefaultInstance()
Returns
TypeDescription
ServiceAttachment

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ServiceAttachment.Builder newBuilder()
Returns
TypeDescription
ServiceAttachment.Builder

newBuilder(ServiceAttachment prototype)

public static ServiceAttachment.Builder newBuilder(ServiceAttachment prototype)
Parameter
NameDescription
prototypeServiceAttachment
Returns
TypeDescription
ServiceAttachment.Builder

parseDelimitedFrom(InputStream input)

public static ServiceAttachment parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ServiceAttachment parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ServiceAttachment parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ServiceAttachment parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ServiceAttachment parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ServiceAttachment parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ServiceAttachment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceAttachment
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ServiceAttachment> parser()
Returns
TypeDescription
Parser<ServiceAttachment>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

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.

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.

getParserForType()

public Parser<ServiceAttachment> getParserForType()
Returns
TypeDescription
Parser<ServiceAttachment>
Overrides

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.

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ServiceAttachment.Builder newBuilderForType()
Returns
TypeDescription
ServiceAttachment.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ServiceAttachment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ServiceAttachment.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ServiceAttachment.Builder toBuilder()
Returns
TypeDescription
ServiceAttachment.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException