Class ServiceConnectionPolicy.PscConfig.Builder (0.16.0)

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

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

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllSubnetworks(Iterable<String> values)

public ServiceConnectionPolicy.PscConfig.Builder addAllSubnetworks(Iterable<String> values)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
values Iterable<String>

The subnetworks to add.

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

addSubnetworks(String value)

public ServiceConnectionPolicy.PscConfig.Builder addSubnetworks(String value)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
value String

The subnetworks to add.

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

addSubnetworksBytes(ByteString value)

public ServiceConnectionPolicy.PscConfig.Builder addSubnetworksBytes(ByteString value)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
value ByteString

The bytes of the subnetworks to add.

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

build()

public ServiceConnectionPolicy.PscConfig build()
Returns
Type Description
ServiceConnectionPolicy.PscConfig

buildPartial()

public ServiceConnectionPolicy.PscConfig buildPartial()
Returns
Type Description
ServiceConnectionPolicy.PscConfig

clear()

public ServiceConnectionPolicy.PscConfig.Builder clear()
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLimit()

public ServiceConnectionPolicy.PscConfig.Builder clearLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public ServiceConnectionPolicy.PscConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

clearSubnetworks()

public ServiceConnectionPolicy.PscConfig.Builder clearSubnetworks()

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceConnectionPolicy.PscConfig getDefaultInstanceForType()
Returns
Type Description
ServiceConnectionPolicy.PscConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLimit()

public long getLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
Type Description
long

The limit.

getSubnetworks(int index)

public String getSubnetworks(int index)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The subnetworks at the given index.

getSubnetworksBytes(int index)

public ByteString getSubnetworksBytes(int index)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the subnetworks at the given index.

getSubnetworksCount()

public int getSubnetworksCount()

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Returns
Type Description
int

The count of subnetworks.

getSubnetworksList()

public ProtocolStringList getSubnetworksList()

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Returns
Type Description
ProtocolStringList

A list containing the subnetworks.

hasLimit()

public boolean hasLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
Type Description
boolean

Whether the limit field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ServiceConnectionPolicy.PscConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ServiceConnectionPolicy.PscConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ServiceConnectionPolicy.PscConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

setLimit(long value)

public ServiceConnectionPolicy.PscConfig.Builder setLimit(long value)

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Parameter
Name Description
value long

The limit to set.

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

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

public ServiceConnectionPolicy.PscConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides

setSubnetworks(int index, String value)

public ServiceConnectionPolicy.PscConfig.Builder setSubnetworks(int index, String value)

The resource paths of subnetworks to use for IP address management. Example: projects/{projectNumOrId}/regions/{region}/subnetworks/{resourceId}.

repeated string subnetworks = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The subnetworks to set.

Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ServiceConnectionPolicy.PscConfig.Builder
Overrides