# Interface ServiceConnectionMapOrBuilder (1.92.0)

1.92.0 (latest) 1.90.0 1.87.0 1.86.0 1.84.0 1.82.0 1.81.0 1.79.0 1.77.0 1.75.0 1.74.0 1.73.0 1.72.0 1.71.0 1.69.0 1.67.0 1.66.0 1.63.0 1.62.0 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.48.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.36.0 1.35.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.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.0 1.11.0 1.10.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.9 1.1.1 1.0.0 0.5.0

    public interface ServiceConnectionMapOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### containsLabels(String key)

    public abstract boolean containsLabels(String key)

User-defined labels.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getConsumerPscConfigs(int index)

    public abstract ServiceConnectionMap.ConsumerPscConfig getConsumerPscConfigs(int index)

The PSC configurations on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig consumer_psc_configs = 10;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig` |   |

### getConsumerPscConfigsCount()

    public abstract int getConsumerPscConfigsCount()

The PSC configurations on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig consumer_psc_configs = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getConsumerPscConfigsList()

    public abstract List<ServiceConnectionMap.ConsumerPscConfig> getConsumerPscConfigsList()

The PSC configurations on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig consumer_psc_configs = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig>` |   |

### getConsumerPscConfigsOrBuilder(int index)

    public abstract ServiceConnectionMap.ConsumerPscConfigOrBuilder getConsumerPscConfigsOrBuilder(int index)

The PSC configurations on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig consumer_psc_configs = 10;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfigOrBuilder` |   |

### getConsumerPscConfigsOrBuilderList()

    public abstract List<? extends ServiceConnectionMap.ConsumerPscConfigOrBuilder> getConsumerPscConfigsOrBuilderList()

The PSC configurations on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfig consumer_psc_configs = 10;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConfigOrBuilder>` |   |

### getConsumerPscConnections(int index)

    public abstract ServiceConnectionMap.ConsumerPscConnection getConsumerPscConnections(int index)

Output only. PSC connection details on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection consumer_psc_connections = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection` |   |

### getConsumerPscConnectionsCount()

    public abstract int getConsumerPscConnectionsCount()

Output only. PSC connection details on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection consumer_psc_connections = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getConsumerPscConnectionsList()

    public abstract List<ServiceConnectionMap.ConsumerPscConnection> getConsumerPscConnectionsList()

Output only. PSC connection details on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection consumer_psc_connections = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection>` |   |

### getConsumerPscConnectionsOrBuilder(int index)

    public abstract ServiceConnectionMap.ConsumerPscConnectionOrBuilder getConsumerPscConnectionsOrBuilder(int index)

Output only. PSC connection details on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection consumer_psc_connections = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnectionOrBuilder` |   |

### getConsumerPscConnectionsOrBuilderList()

    public abstract List<? extends ServiceConnectionMap.ConsumerPscConnectionOrBuilder> getConsumerPscConnectionsOrBuilderList()

Output only. PSC connection details on consumer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnection consumer_psc_connections = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ConsumerPscConnectionOrBuilder>` |   |

### getCreateTime()

    public abstract Timestamp getCreateTime()

Output only. Time when the ServiceConnectionMap was created.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The createTime. |

### getCreateTimeOrBuilder()

    public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was created.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getDescription()

    public abstract String getDescription()

A description of this resource.

`string description = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The description. |

### getDescriptionBytes()

    public abstract ByteString getDescriptionBytes()

A description of this resource.

`string description = 5;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for description. |

### getEtag()

    public abstract String getEtag()

Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before
proceeding.

`optional string etag = 14 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The etag. |

### getEtagBytes()

    public abstract ByteString getEtagBytes()

Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before
proceeding.

`optional string etag = 14 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for etag. |

### getInfrastructure()

    public abstract Infrastructure getInfrastructure()

Output only. The infrastructure used for connections between
consumers/producers.

`
.google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.Infrastructure` | The infrastructure. |

### getInfrastructureValue()

    public abstract int getInfrastructureValue()

Output only. The infrastructure used for connections between
consumers/producers.

`
.google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for infrastructure. |

### getLabels() (deprecated)

    public abstract Map<String,String> getLabels()

Use [#getLabelsMap()](https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMapOrBuilder#com_google_cloud_networkconnectivity_v1_ServiceConnectionMapOrBuilder_getLabelsMap__) instead.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsCount()

    public abstract int getLabelsCount()

User-defined labels.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getLabelsMap()

    public abstract Map<String,String> getLabelsMap()

User-defined labels.

`map<string, string> labels = 4;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/Map.html<https://docs.oracle.com/javase/8/docs/api/java/lang/String.html,https://docs.oracle.com/javase/8/docs/api/java/lang/String.html>` |   |

### getLabelsOrDefault(String key, String defaultValue)

    public abstract String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

`map<string, string> labels = 4;`

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |
| `defaultValue` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getLabelsOrThrow(String key)

    public abstract String getLabelsOrThrow(String key)

User-defined labels.

`map<string, string> labels = 4;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `key` | `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

### getName()

    public abstract String getName()

Immutable. The name of a ServiceConnectionMap.
Format:
projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map}
See: <https://google.aip.dev/122#fields-representing-resource-names>

`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The name. |

### getNameBytes()

    public abstract ByteString getNameBytes()

Immutable. The name of a ServiceConnectionMap.
Format:
projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map}
See: <https://google.aip.dev/122#fields-representing-resource-names>

`string name = 1 [(.google.api.field_behavior) = IMMUTABLE];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for name. |

### getProducerPscConfigs(int index)

    public abstract ServiceConnectionMap.ProducerPscConfig getProducerPscConfigs(int index)

The PSC configurations on producer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig producer_psc_configs = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig` |   |

### getProducerPscConfigsCount()

    public abstract int getProducerPscConfigsCount()

The PSC configurations on producer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig producer_psc_configs = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getProducerPscConfigsList()

    public abstract List<ServiceConnectionMap.ProducerPscConfig> getProducerPscConfigsList()

The PSC configurations on producer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig producer_psc_configs = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig>` |   |

### getProducerPscConfigsOrBuilder(int index)

    public abstract ServiceConnectionMap.ProducerPscConfigOrBuilder getProducerPscConfigsOrBuilder(int index)

The PSC configurations on producer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig producer_psc_configs = 9;
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfigOrBuilder` |   |

### getProducerPscConfigsOrBuilderList()

    public abstract List<? extends ServiceConnectionMap.ProducerPscConfigOrBuilder> getProducerPscConfigsOrBuilderList()

The PSC configurations on producer side.

`
repeated .google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfig producer_psc_configs = 9;
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.networkconnectivity.v1.ServiceConnectionMap.ProducerPscConfigOrBuilder>` |   |

### getServiceClass()

    public abstract String getServiceClass()

The service class identifier this ServiceConnectionMap is for.
The user of ServiceConnectionMap create API needs to have
networkconnecitivty.serviceclasses.use iam permission for the service
class.

`string service_class = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serviceClass. |

### getServiceClassBytes()

    public abstract ByteString getServiceClassBytes()

The service class identifier this ServiceConnectionMap is for.
The user of ServiceConnectionMap create API needs to have
networkconnecitivty.serviceclasses.use iam permission for the service
class.

`string service_class = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for serviceClass. |

### getServiceClassUri()

    public abstract String getServiceClassUri()

Output only. The service class uri this ServiceConnectionMap is for.

`string service_class_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The serviceClassUri. |

### getServiceClassUriBytes()

    public abstract ByteString getServiceClassUriBytes()

Output only. The service class uri this ServiceConnectionMap is for.

`string service_class_uri = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for serviceClassUri. |

### getToken()

    public abstract String getToken()

The token provided by the consumer. This token authenticates that the
consumer can create a connection within the specified project and network.

`string token = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The token. |

### getTokenBytes()

    public abstract ByteString getTokenBytes()

The token provided by the consumer. This token authenticates that the
consumer can create a connection within the specified project and network.

`string token = 13;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for token. |

### getUpdateTime()

    public abstract Timestamp getUpdateTime()

Output only. Time when the ServiceConnectionMap was updated.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The updateTime. |

### getUpdateTimeOrBuilder()

    public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was updated.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### hasCreateTime()

    public abstract boolean hasCreateTime()

Output only. Time when the ServiceConnectionMap was created.

`.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the createTime field is set. |

### hasEtag()

    public abstract boolean hasEtag()

Optional. The etag is computed by the server, and may be sent on update and
delete requests to ensure the client has an up-to-date value before
proceeding.

`optional string etag = 14 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the etag field is set. |

### hasUpdateTime()

    public abstract boolean hasUpdateTime()

Output only. Time when the ServiceConnectionMap was updated.

`.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the updateTime field is set. |