- 1.77.0 (latest)
 - 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 static final class ServiceConnectionPolicy.Builder extends GeneratedMessageV3.Builder<ServiceConnectionPolicy.Builder> implements ServiceConnectionPolicyOrBuilderThe ServiceConnectionPolicy resource.
 Protobuf type google.cloud.networkconnectivity.v1.ServiceConnectionPolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ServiceConnectionPolicy.BuilderImplements
ServiceConnectionPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllPscConnections(Iterable<? extends ServiceConnectionPolicy.PscConnection> values)
public ServiceConnectionPolicy.Builder addAllPscConnections(Iterable<? extends ServiceConnectionPolicy.PscConnection> values)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<? extends com.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection> | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
addPscConnections(ServiceConnectionPolicy.PscConnection value)
public ServiceConnectionPolicy.Builder addPscConnections(ServiceConnectionPolicy.PscConnection value)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ServiceConnectionPolicy.PscConnection | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
addPscConnections(ServiceConnectionPolicy.PscConnection.Builder builderForValue)
public ServiceConnectionPolicy.Builder addPscConnections(ServiceConnectionPolicy.PscConnection.Builder builderForValue)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        ServiceConnectionPolicy.PscConnection.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
addPscConnections(int index, ServiceConnectionPolicy.PscConnection value)
public ServiceConnectionPolicy.Builder addPscConnections(int index, ServiceConnectionPolicy.PscConnection value)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        ServiceConnectionPolicy.PscConnection | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
addPscConnections(int index, ServiceConnectionPolicy.PscConnection.Builder builderForValue)
public ServiceConnectionPolicy.Builder addPscConnections(int index, ServiceConnectionPolicy.PscConnection.Builder builderForValue)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        ServiceConnectionPolicy.PscConnection.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
addPscConnectionsBuilder()
public ServiceConnectionPolicy.PscConnection.Builder addPscConnectionsBuilder()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConnection.Builder | 
        |
addPscConnectionsBuilder(int index)
public ServiceConnectionPolicy.PscConnection.Builder addPscConnectionsBuilder(int index)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConnection.Builder | 
        |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
build()
public ServiceConnectionPolicy build()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy | 
        |
buildPartial()
public ServiceConnectionPolicy buildPartial()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy | 
        |
clear()
public ServiceConnectionPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearCreateTime()
public ServiceConnectionPolicy.Builder clearCreateTime()Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearDescription()
public ServiceConnectionPolicy.Builder clearDescription()A description of this resource.
 string description = 5;
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearEtag()
public ServiceConnectionPolicy.Builder clearEtag()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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearField(Descriptors.FieldDescriptor field)
public ServiceConnectionPolicy.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearInfrastructure()
public ServiceConnectionPolicy.Builder clearInfrastructure()Output only. The type of underlying resources used to create the connection.
 
 .google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearLabels()
public ServiceConnectionPolicy.Builder clearLabels()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearName()
public ServiceConnectionPolicy.Builder clearName()Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
 string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearNetwork()
public ServiceConnectionPolicy.Builder clearNetwork()The resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
 
 string network = 6 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceConnectionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearPscConfig()
public ServiceConnectionPolicy.Builder clearPscConfig()Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearPscConnections()
public ServiceConnectionPolicy.Builder clearPscConnections()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clearServiceClass()
public ServiceConnectionPolicy.Builder clearServiceClass()The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
 string service_class = 7;
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
clearUpdateTime()
public ServiceConnectionPolicy.Builder clearUpdateTime()Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
clone()
public ServiceConnectionPolicy.Builder clone()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
containsLabels(String key)
public boolean containsLabels(String key)User-defined labels.
 map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
getCreateTime()
public Timestamp getCreateTime()Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Timestamp | 
        The createTime.  | 
      
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Builder | 
        |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
TimestampOrBuilder | 
        |
getDefaultInstanceForType()
public ServiceConnectionPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy | 
        |
getDescription()
public String getDescription()A description of this resource.
 string description = 5;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The description.  | 
      
getDescriptionBytes()
public ByteString getDescriptionBytes()A description of this resource.
 string description = 5;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for description.  | 
      
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getEtag()
public 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The etag.  | 
      
getEtagBytes()
public 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for etag.  | 
      
getInfrastructure()
public Infrastructure getInfrastructure()Output only. The type of underlying resources used to create the connection.
 
 .google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Infrastructure | 
        The infrastructure.  | 
      
getInfrastructureValue()
public int getInfrastructureValue()Output only. The type of underlying resources used to create the connection.
 
 .google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        The enum numeric value on the wire for infrastructure.  | 
      
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
getLabelsCount()
public int getLabelsCount()User-defined labels.
 map<string, string> labels = 4;
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getLabelsMap()
public Map<String,String> getLabelsMap()User-defined labels.
 map<string, string> labels = 4;
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)User-defined labels.
 map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description | 
key | 
        String | 
      
defaultValue | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)User-defined labels.
 map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
Map<String,String> | 
        |
getName()
public String getName()Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
 string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description | 
String | 
        The name.  | 
      
getNameBytes()
public ByteString getNameBytes()Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
 string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for name.  | 
      
getNetwork()
public String getNetwork()The resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
 
 string network = 6 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description | 
String | 
        The network.  | 
      
getNetworkBytes()
public ByteString getNetworkBytes()The resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
 
 string network = 6 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for network.  | 
      
getPscConfig()
public ServiceConnectionPolicy.PscConfig getPscConfig()Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConfig | 
        The pscConfig.  | 
      
getPscConfigBuilder()
public ServiceConnectionPolicy.PscConfig.Builder getPscConfigBuilder()Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConfig.Builder | 
        |
getPscConfigOrBuilder()
public ServiceConnectionPolicy.PscConfigOrBuilder getPscConfigOrBuilder()Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConfigOrBuilder | 
        |
getPscConnections(int index)
public ServiceConnectionPolicy.PscConnection getPscConnections(int index)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConnection | 
        |
getPscConnectionsBuilder(int index)
public ServiceConnectionPolicy.PscConnection.Builder getPscConnectionsBuilder(int index)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConnection.Builder | 
        |
getPscConnectionsBuilderList()
public List<ServiceConnectionPolicy.PscConnection.Builder> getPscConnectionsBuilderList()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
List<Builder> | 
        |
getPscConnectionsCount()
public int getPscConnectionsCount()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
int | 
        |
getPscConnectionsList()
public List<ServiceConnectionPolicy.PscConnection> getPscConnectionsList()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
List<PscConnection> | 
        |
getPscConnectionsOrBuilder(int index)
public ServiceConnectionPolicy.PscConnectionOrBuilder getPscConnectionsOrBuilder(int index)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.PscConnectionOrBuilder | 
        |
getPscConnectionsOrBuilderList()
public List<? extends ServiceConnectionPolicy.PscConnectionOrBuilder> getPscConnectionsOrBuilderList()Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
List<? extends com.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnectionOrBuilder> | 
        |
getServiceClass()
public String getServiceClass()The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
 string service_class = 7;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The serviceClass.  | 
      
getServiceClassBytes()
public ByteString getServiceClassBytes()The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
 string service_class = 7;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for serviceClass.  | 
      
getUpdateTime()
public Timestamp getUpdateTime()Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Timestamp | 
        The updateTime.  | 
      
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
Builder | 
        |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
TimestampOrBuilder | 
        |
hasCreateTime()
public boolean hasCreateTime()Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the createTime field is set.  | 
      
hasEtag()
public 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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the etag field is set.  | 
      
hasPscConfig()
public boolean hasPscConfig()Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the pscConfig field is set.  | 
      
hasUpdateTime()
public boolean hasUpdateTime()Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the updateTime field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
com.google.protobuf.MapFieldReflectionAccessor | 
        |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
number | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
com.google.protobuf.MapFieldReflectionAccessor | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeCreateTime(Timestamp value)
public ServiceConnectionPolicy.Builder mergeCreateTime(Timestamp value)Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Timestamp | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
mergeFrom(ServiceConnectionPolicy other)
public ServiceConnectionPolicy.Builder mergeFrom(ServiceConnectionPolicy other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        ServiceConnectionPolicy | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ServiceConnectionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public ServiceConnectionPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
mergePscConfig(ServiceConnectionPolicy.PscConfig value)
public ServiceConnectionPolicy.Builder mergePscConfig(ServiceConnectionPolicy.PscConfig value)Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ServiceConnectionPolicy.PscConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
mergeUpdateTime(Timestamp value)
public ServiceConnectionPolicy.Builder mergeUpdateTime(Timestamp value)Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Timestamp | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
putAllLabels(Map<String,String> values)
public ServiceConnectionPolicy.Builder putAllLabels(Map<String,String> values)User-defined labels.
 map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Map<String,String> | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
putLabels(String key, String value)
public ServiceConnectionPolicy.Builder putLabels(String key, String value)User-defined labels.
 map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description | 
key | 
        String | 
      
value | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
removeLabels(String key)
public ServiceConnectionPolicy.Builder removeLabels(String key)User-defined labels.
 map<string, string> labels = 4;
| Parameter | |
|---|---|
| Name | Description | 
key | 
        String | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
removePscConnections(int index)
public ServiceConnectionPolicy.Builder removePscConnections(int index)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
index | 
        int | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setCreateTime(Timestamp value)
public ServiceConnectionPolicy.Builder setCreateTime(Timestamp value)Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Timestamp | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setCreateTime(Timestamp.Builder builderForValue)
public ServiceConnectionPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. Time when the ServiceConnectionPolicy was created.
 
 .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setDescription(String value)
public ServiceConnectionPolicy.Builder setDescription(String value)A description of this resource.
 string description = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setDescriptionBytes(ByteString value)
public ServiceConnectionPolicy.Builder setDescriptionBytes(ByteString value)A description of this resource.
 string description = 5;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for description to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setEtag(String value)
public ServiceConnectionPolicy.Builder setEtag(String value)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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe etag to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setEtagBytes(ByteString value)
public ServiceConnectionPolicy.Builder setEtagBytes(ByteString value)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 = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for etag to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setInfrastructure(Infrastructure value)
public ServiceConnectionPolicy.Builder setInfrastructure(Infrastructure value)Output only. The type of underlying resources used to create the connection.
 
 .google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        InfrastructureThe infrastructure to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setInfrastructureValue(int value)
public ServiceConnectionPolicy.Builder setInfrastructureValue(int value)Output only. The type of underlying resources used to create the connection.
 
 .google.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        intThe enum numeric value on the wire for infrastructure to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setName(String value)
public ServiceConnectionPolicy.Builder setName(String value)Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
 string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setNameBytes(ByteString value)
public ServiceConnectionPolicy.Builder setNameBytes(ByteString value)Immutable. The name of a ServiceConnectionPolicy. Format: projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy} See: https://google.aip.dev/122#fields-representing-resource-names
 string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for name to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setNetwork(String value)
public ServiceConnectionPolicy.Builder setNetwork(String value)The resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
 
 string network = 6 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe network to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setNetworkBytes(ByteString value)
public ServiceConnectionPolicy.Builder setNetworkBytes(ByteString value)The resource path of the consumer network. Example:
- projects/{projectNumOrId}/global/networks/{resourceId}.
 
 string network = 6 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for network to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setPscConfig(ServiceConnectionPolicy.PscConfig value)
public ServiceConnectionPolicy.Builder setPscConfig(ServiceConnectionPolicy.PscConfig value)Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ServiceConnectionPolicy.PscConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setPscConfig(ServiceConnectionPolicy.PscConfig.Builder builderForValue)
public ServiceConnectionPolicy.Builder setPscConfig(ServiceConnectionPolicy.PscConfig.Builder builderForValue)Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.
 .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConfig psc_config = 9;
 
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        ServiceConnectionPolicy.PscConfig.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setPscConnections(int index, ServiceConnectionPolicy.PscConnection value)
public ServiceConnectionPolicy.Builder setPscConnections(int index, ServiceConnectionPolicy.PscConnection value)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
value | 
        ServiceConnectionPolicy.PscConnection | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setPscConnections(int index, ServiceConnectionPolicy.PscConnection.Builder builderForValue)
public ServiceConnectionPolicy.Builder setPscConnections(int index, ServiceConnectionPolicy.PscConnection.Builder builderForValue)Output only. [Output only] Information about each Private Service Connect connection.
 
 repeated .google.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameters | |
|---|---|
| Name | Description | 
index | 
        int | 
      
builderForValue | 
        ServiceConnectionPolicy.PscConnection.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceConnectionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setServiceClass(String value)
public ServiceConnectionPolicy.Builder setServiceClass(String value)The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
 string service_class = 7;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe serviceClass to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setServiceClassBytes(ByteString value)
public ServiceConnectionPolicy.Builder setServiceClassBytes(ByteString value)The service class identifier for which this ServiceConnectionPolicy is for. The service class identifier is a unique, symbolic representation of a ServiceClass. It is provided by the Service Producer. Google services have a prefix of gcp or google-cloud. For example, gcp-memorystore-redis or google-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.
 string service_class = 7;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for serviceClass to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setUpdateTime(Timestamp value)
public ServiceConnectionPolicy.Builder setUpdateTime(Timestamp value)Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
value | 
        Timestamp | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |
setUpdateTime(Timestamp.Builder builderForValue)
public ServiceConnectionPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. Time when the ServiceConnectionPolicy was updated.
 
 .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
ServiceConnectionPolicy.Builder | 
        |