public static final class Cluster.PscConfig.Builder extends GeneratedMessageV3.Builder<Cluster.PscConfig.Builder> implements Cluster.PscConfigOrBuilder
PscConfig contains PSC related configuration at a cluster level.
Protobuf type google.cloud.alloydb.v1alpha.Cluster.PscConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Cluster.PscConfig.BuilderImplements
Cluster.PscConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Cluster.PscConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
build()
public Cluster.PscConfig build()
Returns | |
---|---|
Type | Description |
Cluster.PscConfig |
buildPartial()
public Cluster.PscConfig buildPartial()
Returns | |
---|---|
Type | Description |
Cluster.PscConfig |
clear()
public Cluster.PscConfig.Builder clear()
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
clearField(Descriptors.FieldDescriptor field)
public Cluster.PscConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Cluster.PscConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
clearPscEnabled()
public Cluster.PscConfig.Builder clearPscEnabled()
Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
This builder for chaining. |
clearServiceOwnedProjectNumber()
public Cluster.PscConfig.Builder clearServiceOwnedProjectNumber()
Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
This builder for chaining. |
clone()
public Cluster.PscConfig.Builder clone()
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
getDefaultInstanceForType()
public Cluster.PscConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Cluster.PscConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPscEnabled()
public boolean getPscEnabled()
Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
boolean |
The pscEnabled. |
getServiceOwnedProjectNumber()
public long getServiceOwnedProjectNumber()
Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
long |
The serviceOwnedProjectNumber. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Cluster.PscConfig other)
public Cluster.PscConfig.Builder mergeFrom(Cluster.PscConfig other)
Parameter | |
---|---|
Name | Description |
other |
Cluster.PscConfig |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Cluster.PscConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Cluster.PscConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.PscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Cluster.PscConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
setPscEnabled(boolean value)
public Cluster.PscConfig.Builder setPscEnabled(boolean value)
Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance.
bool psc_enabled = 1 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
boolean The pscEnabled to set. |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Cluster.PscConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
setServiceOwnedProjectNumber(long value)
public Cluster.PscConfig.Builder setServiceOwnedProjectNumber(long value)
Output only. The project number that needs to be allowlisted on the network attachment to enable outbound connectivity.
int64 service_owned_project_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
long The serviceOwnedProjectNumber to set. |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Cluster.PscConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Cluster.PscConfig.Builder |