Send feedback
Class ServiceConnectionPolicy.PscConfig.Builder (0.14.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 0.14.1 keyboard_arrow_down
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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
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;
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy . PscConfig . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
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.
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.
build()
public ServiceConnectionPolicy . PscConfig build ()
buildPartial()
public ServiceConnectionPolicy . PscConfig buildPartial ()
clear()
public ServiceConnectionPolicy . PscConfig . Builder clear ()
Overrides
clearField(Descriptors.FieldDescriptor field)
public ServiceConnectionPolicy . PscConfig . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearLimit()
public ServiceConnectionPolicy . PscConfig . Builder clearLimit ()
Optional. Max number of PSC connections for this policy.
optional int64 limit = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public ServiceConnectionPolicy . PscConfig . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
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;
clone()
public ServiceConnectionPolicy . PscConfig . Builder clone ()
Overrides
getDefaultInstanceForType()
public ServiceConnectionPolicy . PscConfig getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
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;
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeFrom(ServiceConnectionPolicy.PscConfig other)
public ServiceConnectionPolicy . PscConfig . Builder mergeFrom ( ServiceConnectionPolicy . PscConfig other )
public ServiceConnectionPolicy . PscConfig . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public ServiceConnectionPolicy . PscConfig . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy . PscConfig . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public ServiceConnectionPolicy . PscConfig . Builder setField ( Descriptors . FieldDescriptor field , Object value )
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.
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ServiceConnectionPolicy . PscConfig . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
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.
setUnknownFields(UnknownFieldSet unknownFields)
public final ServiceConnectionPolicy . PscConfig . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-02-03 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-03 UTC."],[],[]]