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;
Parameter |
Name |
Description |
values |
Iterable<String>
The subnetworks to add.
|
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