public static final class Instance.PscInstanceConfig.Builder extends GeneratedMessageV3.Builder<Instance.PscInstanceConfig.Builder> implements Instance.PscInstanceConfigOrBuilder
PscInstanceConfig contains PSC related configuration at an instance level.
Protobuf type google.cloud.alloydb.v1.Instance.PscInstanceConfig
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Instance.PscInstanceConfig.BuilderImplements
Instance.PscInstanceConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addAllAllowedConsumerProjects(Iterable<String> values)
public Instance.PscInstanceConfig.Builder addAllAllowedConsumerProjects(Iterable<String> values)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
values |
Iterable<String> The allowedConsumerProjects to add. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
addAllowedConsumerProjects(String value)
public Instance.PscInstanceConfig.Builder addAllowedConsumerProjects(String value)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The allowedConsumerProjects to add. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
addAllowedConsumerProjectsBytes(ByteString value)
public Instance.PscInstanceConfig.Builder addAllowedConsumerProjectsBytes(ByteString value)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes of the allowedConsumerProjects to add. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Instance.PscInstanceConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
build()
public Instance.PscInstanceConfig build()
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig |
buildPartial()
public Instance.PscInstanceConfig buildPartial()
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig |
clear()
public Instance.PscInstanceConfig.Builder clear()
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
clearAllowedConsumerProjects()
public Instance.PscInstanceConfig.Builder clearAllowedConsumerProjects()
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public Instance.PscInstanceConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Instance.PscInstanceConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
clearPscDnsName()
public Instance.PscInstanceConfig.Builder clearPscDnsName()
Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
clearServiceAttachmentLink()
public Instance.PscInstanceConfig.Builder clearServiceAttachmentLink()
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format of
projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
clone()
public Instance.PscInstanceConfig.Builder clone()
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
getAllowedConsumerProjects(int index)
public String getAllowedConsumerProjects(int index)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the element to return. |
Returns | |
---|---|
Type | Description |
String |
The allowedConsumerProjects at the given index. |
getAllowedConsumerProjectsBytes(int index)
public ByteString getAllowedConsumerProjectsBytes(int index)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
index |
int The index of the value to return. |
Returns | |
---|---|
Type | Description |
ByteString |
The bytes of the allowedConsumerProjects at the given index. |
getAllowedConsumerProjectsCount()
public int getAllowedConsumerProjectsCount()
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
int |
The count of allowedConsumerProjects. |
getAllowedConsumerProjectsList()
public ProtocolStringList getAllowedConsumerProjectsList()
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ProtocolStringList |
A list containing the allowedConsumerProjects. |
getDefaultInstanceForType()
public Instance.PscInstanceConfig getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getPscDnsName()
public String getPscDnsName()
Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The pscDnsName. |
getPscDnsNameBytes()
public ByteString getPscDnsNameBytes()
Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for pscDnsName. |
getServiceAttachmentLink()
public String getServiceAttachmentLink()
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format of
projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
String |
The serviceAttachmentLink. |
getServiceAttachmentLinkBytes()
public ByteString getServiceAttachmentLinkBytes()
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format of
projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for serviceAttachmentLink. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Instance.PscInstanceConfig other)
public Instance.PscInstanceConfig.Builder mergeFrom(Instance.PscInstanceConfig other)
Parameter | |
---|---|
Name | Description |
other |
Instance.PscInstanceConfig |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Instance.PscInstanceConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Instance.PscInstanceConfig.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Instance.PscInstanceConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
setAllowedConsumerProjects(int index, String value)
public Instance.PscInstanceConfig.Builder setAllowedConsumerProjects(int index, String value)
Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance.
repeated string allowed_consumer_projects = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameters | |
---|---|
Name | Description |
index |
int The index to set the value at. |
value |
String The allowedConsumerProjects to set. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public Instance.PscInstanceConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
setPscDnsName(String value)
public Instance.PscInstanceConfig.Builder setPscDnsName(String value)
Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The pscDnsName to set. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
setPscDnsNameBytes(ByteString value)
public Instance.PscInstanceConfig.Builder setPscDnsNameBytes(ByteString value)
Output only. The DNS name of the instance for PSC connectivity. Name convention: <uid>.<uid>.<region>.alloydb-psc.goog
string psc_dns_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for pscDnsName to set. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Instance.PscInstanceConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
setServiceAttachmentLink(String value)
public Instance.PscInstanceConfig.Builder setServiceAttachmentLink(String value)
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format of
projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
String The serviceAttachmentLink to set. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
setServiceAttachmentLinkBytes(ByteString value)
public Instance.PscInstanceConfig.Builder setServiceAttachmentLinkBytes(ByteString value)
Output only. The service attachment created when Private
Service Connect (PSC) is enabled for the instance.
The name of the resource will be in the format of
projects/<alloydb-tenant-project-number>/regions/<region-name>/serviceAttachments/<service-attachment-name>
string service_attachment_link = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for serviceAttachmentLink to set. |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Instance.PscInstanceConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Instance.PscInstanceConfig.Builder |