Class ServiceConnectionPolicy.Builder (0.14.1)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.events.cloud.networkconnectivity.v1.ServiceConnectionPolicy.PscConnection>
Returns
TypeDescription
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
NameDescription
valueServiceConnectionPolicy.PscConnection
Returns
TypeDescription
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
NameDescription
builderForValueServiceConnectionPolicy.PscConnection.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServiceConnectionPolicy.PscConnection
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceConnectionPolicy.PscConnection.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
ServiceConnectionPolicy.PscConnection.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ServiceConnectionPolicy.Builder
Overrides

build()

public ServiceConnectionPolicy build()
Returns
TypeDescription
ServiceConnectionPolicy

buildPartial()

public ServiceConnectionPolicy buildPartial()
Returns
TypeDescription
ServiceConnectionPolicy

clear()

public ServiceConnectionPolicy.Builder clear()
Returns
TypeDescription
ServiceConnectionPolicy.Builder
Overrides

clearCreateTime()

public ServiceConnectionPolicy.Builder clearCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
ServiceConnectionPolicy.Builder

clearDescription()

public ServiceConnectionPolicy.Builder clearDescription()

A description of this resource.

string description = 5;

Returns
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

clearLabels()

public ServiceConnectionPolicy.Builder clearLabels()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ServiceConnectionPolicy.Builder

clone()

public ServiceConnectionPolicy.Builder clone()
Returns
TypeDescription
ServiceConnectionPolicy.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public ServiceConnectionPolicy getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionPolicy

getDescription()

public String getDescription()

A description of this resource.

string description = 5;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A description of this resource.

string description = 5;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for infrastructure.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

User-defined labels.

map<string, string> labels = 4;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The resource path of the consumer network. Example:

  • projects/{projectNumOrId}/global/networks/{resourceId}.

string network = 6;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for serviceClass.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Time when the ServiceConnectionMap was updated.

.google.protobuf.Timestamp update_time = 3;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Time when the ServiceConnectionMap was created.

.google.protobuf.Timestamp create_time = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionPolicy.Builder

mergeFrom(ServiceConnectionPolicy other)

public ServiceConnectionPolicy.Builder mergeFrom(ServiceConnectionPolicy other)
Parameter
NameDescription
otherServiceConnectionPolicy
Returns
TypeDescription
ServiceConnectionPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceConnectionPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ServiceConnectionPolicy.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ServiceConnectionPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueServiceConnectionPolicy.PscConfig
Returns
TypeDescription
ServiceConnectionPolicy.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
ServiceConnectionPolicy.Builder

putAllLabels(Map<String,String> values)

public ServiceConnectionPolicy.Builder putAllLabels(Map<String,String> values)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ServiceConnectionPolicy.Builder

putLabels(String key, String value)

public ServiceConnectionPolicy.Builder putLabels(String key, String value)

User-defined labels.

map<string, string> labels = 4;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ServiceConnectionPolicy.Builder

removeLabels(String key)

public ServiceConnectionPolicy.Builder removeLabels(String key)

User-defined labels.

map<string, string> labels = 4;

Parameter
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceConnectionPolicy.Builder

setDescription(String value)

public ServiceConnectionPolicy.Builder setDescription(String value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ServiceConnectionPolicy.Builder setDescriptionBytes(ByteString value)

A description of this resource.

string description = 5;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueInfrastructure

The infrastructure to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for infrastructure to set.

Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
valueServiceConnectionPolicy.PscConfig
Returns
TypeDescription
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
NameDescription
builderForValueServiceConnectionPolicy.PscConfig.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueServiceConnectionPolicy.PscConnection
Returns
TypeDescription
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
NameDescription
indexint
builderForValueServiceConnectionPolicy.PscConnection.Builder
Returns
TypeDescription
ServiceConnectionPolicy.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ServiceConnectionPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The serviceClass to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for serviceClass to set.

Returns
TypeDescription
ServiceConnectionPolicy.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
ServiceConnectionPolicy.Builder