Class ServiceConnectionPolicy.PscConfig.Builder (0.14.1)

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
TypeDescription
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
NameDescription
valuesIterable<String>

The subnetworks to add.

Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

The subnetworks to add.

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

The bytes of the subnetworks to add.

Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

build()

public ServiceConnectionPolicy.PscConfig build()
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig

buildPartial()

public ServiceConnectionPolicy.PscConfig buildPartial()
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public ServiceConnectionPolicy.PscConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder
Overrides

clearLimit()

public ServiceConnectionPolicy.PscConfig.Builder clearLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ServiceConnectionPolicy.PscConfig getDefaultInstanceForType()
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLimit()

public long getLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

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

The index of the element to return.

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

The index of the value to return.

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

A list containing the subnetworks.

hasLimit()

public boolean hasLimit()

Optional. Max number of PSC connections for this policy.

optional int64 limit = 2;

Returns
TypeDescription
boolean

Whether the limit field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ServiceConnectionPolicy.PscConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public ServiceConnectionPolicy.PscConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

The limit to set.

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

The index to set the value at.

valueString

The subnetworks to set.

Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final ServiceConnectionPolicy.PscConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ServiceConnectionPolicy.PscConfig.Builder
Overrides