Class ServiceConnectionPolicy.Builder (0.16.0)

public static final class ServiceConnectionPolicy.Builder extends GeneratedMessageV3.Builder<ServiceConnectionPolicy.Builder> implements ServiceConnectionPolicyOrBuilder

The ServiceConnectionPolicy resource. Next id: 11

Protobuf type google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy

Static 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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Parameter
Name Description
values Iterable<? extends com.google.events.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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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
Overrides

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
Overrides

clearCreateTime()

public ServiceConnectionPolicy.Builder clearCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

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.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ServiceConnectionPolicy.Builder
Overrides

clearInfrastructure()

public ServiceConnectionPolicy.Builder clearInfrastructure()

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

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;

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;

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
Overrides

clearPscConfig()

public ServiceConnectionPolicy.Builder clearPscConfig()

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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. For example, gcp-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 ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
ServiceConnectionPolicy.Builder

clone()

public ServiceConnectionPolicy.Builder clone()
Returns
Type Description
ServiceConnectionPolicy.Builder
Overrides

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 ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

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
Overrides

getInfrastructure()

public Infrastructure getInfrastructure()

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Returns
Type Description
Infrastructure

The infrastructure.

getInfrastructureValue()

public int getInfrastructureValue()

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Returns
Type Description
int

The enum numeric value on the wire for infrastructure.

getLabels()

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()

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;

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;

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;

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;

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.events.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.events.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.events.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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
Type Description
List<Builder>

getPscConnectionsCount()

public int getPscConnectionsCount()

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
Type Description
int

getPscConnectionsList()

public List<ServiceConnectionPolicy.PscConnection> getPscConnectionsList()

Output only. [Output only] Information about each Private Service Connect connection.

repeated .google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Returns
Type Description
List<? extends com.google.events.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. For example, gcp-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. For example, gcp-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 ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
Type Description
boolean

Whether the createTime field is set.

hasPscConfig()

public boolean hasPscConfig()

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.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 ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public ServiceConnectionPolicy.Builder mergeCreateTime(Timestamp value)

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ServiceConnectionPolicy.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ServiceConnectionPolicy.Builder
Overrides

mergePscConfig(ServiceConnectionPolicy.PscConfig value)

public ServiceConnectionPolicy.Builder mergePscConfig(ServiceConnectionPolicy.PscConfig value)

Configuration used for Private Service Connect connections. Used when Infrastructure is PSC.

.google.events.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
Overrides

mergeUpdateTime(Timestamp value)

public ServiceConnectionPolicy.Builder mergeUpdateTime(Timestamp value)

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

Parameter
Name Description
index int
Returns
Type Description
ServiceConnectionPolicy.Builder

setCreateTime(Timestamp value)

public ServiceConnectionPolicy.Builder setCreateTime(Timestamp value)

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

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 ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

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 String

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

The bytes for description 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
Overrides

setInfrastructure(Infrastructure value)

public ServiceConnectionPolicy.Builder setInfrastructure(Infrastructure value)

Output only. The type of underlying resources used to create the connection.

.google.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Parameter
Name Description
value Infrastructure

The 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.events.cloud.networkconnectivity.v1.Infrastructure infrastructure = 8;

Parameter
Name Description
value int

The 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;

Parameter
Name Description
value String

The 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;

Parameter
Name Description
value ByteString

The 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;

Parameter
Name Description
value String

The 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;

Parameter
Name Description
value ByteString

The 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.events.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.events.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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection psc_connections = 10;

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
Overrides

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. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

string service_class = 7;

Parameter
Name Description
value String

The 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. For example, gcp-cloud-sql. 3rd party services do not. For example, test-service-a3dfcx.

string service_class = 7;

Parameter
Name Description
value ByteString

The 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
Overrides

setUpdateTime(Timestamp value)

public ServiceConnectionPolicy.Builder setUpdateTime(Timestamp value)

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

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 ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ServiceConnectionPolicy.Builder