- 1.62.0 (latest)
- 1.61.0
- 1.59.0
- 1.58.0
- 1.57.0
- 1.56.0
- 1.55.0
- 1.54.0
- 1.53.0
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.24.0
- 1.23.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.1
- 1.11.0
- 1.9.1
- 1.8.1
- 1.7.2
- 1.6.0-beta
public 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.
Protobuf type google.cloud.compute.v1.ServiceAttachment
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ServiceAttachmentImplements
ServiceAttachmentOrBuilderStatic Fields
CONNECTED_ENDPOINTS_FIELD_NUMBER
public static final int CONNECTED_ENDPOINTS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CONNECTION_PREFERENCE_FIELD_NUMBER
public static final int CONNECTION_PREFERENCE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CONSUMER_ACCEPT_LISTS_FIELD_NUMBER
public static final int CONSUMER_ACCEPT_LISTS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CONSUMER_REJECT_LISTS_FIELD_NUMBER
public static final int CONSUMER_REJECT_LISTS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
CREATION_TIMESTAMP_FIELD_NUMBER
public static final int CREATION_TIMESTAMP_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
DOMAIN_NAMES_FIELD_NUMBER
public static final int DOMAIN_NAMES_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ENABLE_PROXY_PROTOCOL_FIELD_NUMBER
public static final int ENABLE_PROXY_PROTOCOL_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
FINGERPRINT_FIELD_NUMBER
public static final int FINGERPRINT_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
KIND_FIELD_NUMBER
public static final int KIND_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
NAT_SUBNETS_FIELD_NUMBER
public static final int NAT_SUBNETS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PRODUCER_FORWARDING_RULE_FIELD_NUMBER
public static final int PRODUCER_FORWARDING_RULE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
PSC_SERVICE_ATTACHMENT_ID_FIELD_NUMBER
public static final int PSC_SERVICE_ATTACHMENT_ID_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
RECONCILE_CONNECTIONS_FIELD_NUMBER
public static final int RECONCILE_CONNECTIONS_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
REGION_FIELD_NUMBER
public static final int REGION_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
SELF_LINK_FIELD_NUMBER
public static final int SELF_LINK_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
TARGET_SERVICE_FIELD_NUMBER
public static final int TARGET_SERVICE_FIELD_NUMBER
Field Value | |
---|---|
Type | Description |
int |
Static Methods
getDefaultInstance()
public static ServiceAttachment getDefaultInstance()
Returns | |
---|---|
Type | Description |
ServiceAttachment |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
newBuilder()
public static ServiceAttachment.Builder newBuilder()
Returns | |
---|---|
Type | Description |
ServiceAttachment.Builder |
newBuilder(ServiceAttachment prototype)
public static ServiceAttachment.Builder newBuilder(ServiceAttachment prototype)
Parameter | |
---|---|
Name | Description |
prototype |
ServiceAttachment |
Returns | |
---|---|
Type | Description |
ServiceAttachment.Builder |
parseDelimitedFrom(InputStream input)
public static ServiceAttachment parseDelimitedFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(byte[] data)
public static ServiceAttachment parseFrom(byte[] data)
Parameter | |
---|---|
Name | Description |
data |
byte[] |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static ServiceAttachment parseFrom(ByteString data)
Parameter | |
---|---|
Name | Description |
data |
ByteString |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static ServiceAttachment parseFrom(CodedInputStream input)
Parameter | |
---|---|
Name | Description |
input |
CodedInputStream |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input)
public static ServiceAttachment parseFrom(InputStream input)
Parameter | |
---|---|
Name | Description |
input |
InputStream |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static ServiceAttachment parseFrom(ByteBuffer data)
Parameter | |
---|---|
Name | Description |
data |
ByteBuffer |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ServiceAttachment parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ServiceAttachment |
Exceptions | |
---|---|
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<ServiceAttachment> parser()
Returns | |
---|---|
Type | Description |
Parser<ServiceAttachment> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter | |
---|---|
Name | Description |
obj |
Object |
Returns | |
---|---|
Type | Description |
boolean |
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 |
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 |
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. |
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. |
getParserForType()
public Parser<ServiceAttachment> getParserForType()
Returns | |
---|---|
Type | Description |
Parser<ServiceAttachment> |
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. |
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. |
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. |
getSelfLink()
public String getSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
String |
The selfLink. |
getSelfLinkBytes()
public ByteString getSelfLinkBytes()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for selfLink. |
getSerializedSize()
public int getSerializedSize()
Returns | |
---|---|
Type | Description |
int |
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. |
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. |
hasSelfLink()
public boolean hasSelfLink()
[Output Only] Server-defined URL for the resource.
optional string self_link = 456214797;
Returns | |
---|---|
Type | Description |
boolean |
Whether the selfLink field is set. |
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. |
hashCode()
public int hashCode()
Returns | |
---|---|
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
newBuilderForType()
public ServiceAttachment.Builder newBuilderForType()
Returns | |
---|---|
Type | Description |
ServiceAttachment.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ServiceAttachment.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter | |
---|---|
Name | Description |
parent |
BuilderParent |
Returns | |
---|---|
Type | Description |
ServiceAttachment.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter | |
---|---|
Name | Description |
unused |
UnusedPrivateParameter |
Returns | |
---|---|
Type | Description |
Object |
toBuilder()
public ServiceAttachment.Builder toBuilder()
Returns | |
---|---|
Type | Description |
ServiceAttachment.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter | |
---|---|
Name | Description |
output |
CodedOutputStream |
Exceptions | |
---|---|
Type | Description |
IOException |