Class PscAutoConnection.Builder (0.1.0)

public static final class PscAutoConnection.Builder extends GeneratedMessageV3.Builder<PscAutoConnection.Builder> implements PscAutoConnectionOrBuilder

Details of consumer resources in a PSC connection.

Protobuf type google.cloud.memorystore.v1.PscAutoConnection

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PscAutoConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PscAutoConnection.Builder
Overrides

build()

public PscAutoConnection build()
Returns
Type Description
PscAutoConnection

buildPartial()

public PscAutoConnection buildPartial()
Returns
Type Description
PscAutoConnection

clear()

public PscAutoConnection.Builder clear()
Returns
Type Description
PscAutoConnection.Builder
Overrides

clearConnectionType()

public PscAutoConnection.Builder clearConnectionType()

Output only. Type of the PSC connection.

.google.cloud.memorystore.v1.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PscAutoConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PscAutoConnection.Builder
Overrides

clearForwardingRule()

public PscAutoConnection.Builder clearForwardingRule()

Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearIpAddress()

public PscAutoConnection.Builder clearIpAddress()

Output only. The IP allocated on the consumer network for the PSC forwarding rule.

string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearNetwork()

public PscAutoConnection.Builder clearNetwork()

Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PscAutoConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PscAutoConnection.Builder
Overrides

clearPort()

public PscAutoConnection.Builder clearPort()

Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.

int32 port = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearPorts()

public PscAutoConnection.Builder clearPorts()
Returns
Type Description
PscAutoConnection.Builder

clearProjectId()

public PscAutoConnection.Builder clearProjectId()

Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.

string project_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearPscConnectionId()

public PscAutoConnection.Builder clearPscConnectionId()

Output only. The PSC connection id of the forwarding rule connected to the service attachment.

string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearPscConnectionStatus()

public PscAutoConnection.Builder clearPscConnectionStatus()

Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.

.google.cloud.memorystore.v1.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clearServiceAttachment()

public PscAutoConnection.Builder clearServiceAttachment()

Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

clone()

public PscAutoConnection.Builder clone()
Returns
Type Description
PscAutoConnection.Builder
Overrides

getConnectionType()

public ConnectionType getConnectionType()

Output only. Type of the PSC connection.

.google.cloud.memorystore.v1.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ConnectionType

The connectionType.

getConnectionTypeValue()

public int getConnectionTypeValue()

Output only. Type of the PSC connection.

.google.cloud.memorystore.v1.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for connectionType.

getDefaultInstanceForType()

public PscAutoConnection getDefaultInstanceForType()
Returns
Type Description
PscAutoConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getForwardingRule()

public String getForwardingRule()

Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The forwardingRule.

getForwardingRuleBytes()

public ByteString getForwardingRuleBytes()

Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for forwardingRule.

getIpAddress()

public String getIpAddress()

Output only. The IP allocated on the consumer network for the PSC forwarding rule.

string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

Output only. The IP allocated on the consumer network for the PSC forwarding rule.

string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for ipAddress.

getNetwork()

public String getNetwork()

Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for network.

getPort()

public int getPort()

Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.

int32 port = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The port.

getPortsCase()

public PscAutoConnection.PortsCase getPortsCase()
Returns
Type Description
PscAutoConnection.PortsCase

getProjectId()

public String getProjectId()

Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.

string project_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The projectId.

getProjectIdBytes()

public ByteString getProjectIdBytes()

Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.

string project_id = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for projectId.

getPscConnectionId()

public String getPscConnectionId()

Output only. The PSC connection id of the forwarding rule connected to the service attachment.

string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The pscConnectionId.

getPscConnectionIdBytes()

public ByteString getPscConnectionIdBytes()

Output only. The PSC connection id of the forwarding rule connected to the service attachment.

string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for pscConnectionId.

getPscConnectionStatus()

public PscConnectionStatus getPscConnectionStatus()

Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.

.google.cloud.memorystore.v1.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
PscConnectionStatus

The pscConnectionStatus.

getPscConnectionStatusValue()

public int getPscConnectionStatusValue()

Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.

.google.cloud.memorystore.v1.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for pscConnectionStatus.

getServiceAttachment()

public String getServiceAttachment()

Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The serviceAttachment.

getServiceAttachmentBytes()

public ByteString getServiceAttachmentBytes()

Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for serviceAttachment.

hasPort()

public boolean hasPort()

Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.

int32 port = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the port field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PscAutoConnection other)

public PscAutoConnection.Builder mergeFrom(PscAutoConnection other)
Parameter
Name Description
other PscAutoConnection
Returns
Type Description
PscAutoConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PscAutoConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PscAutoConnection.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PscAutoConnection.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PscAutoConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PscAutoConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PscAutoConnection.Builder
Overrides

setConnectionType(ConnectionType value)

public PscAutoConnection.Builder setConnectionType(ConnectionType value)

Output only. Type of the PSC connection.

.google.cloud.memorystore.v1.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ConnectionType

The connectionType to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setConnectionTypeValue(int value)

public PscAutoConnection.Builder setConnectionTypeValue(int value)

Output only. Type of the PSC connection.

.google.cloud.memorystore.v1.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for connectionType to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PscAutoConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PscAutoConnection.Builder
Overrides

setForwardingRule(String value)

public PscAutoConnection.Builder setForwardingRule(String value)

Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The forwardingRule to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setForwardingRuleBytes(ByteString value)

public PscAutoConnection.Builder setForwardingRuleBytes(ByteString value)

Output only. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}

string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for forwardingRule to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setIpAddress(String value)

public PscAutoConnection.Builder setIpAddress(String value)

Output only. The IP allocated on the consumer network for the PSC forwarding rule.

string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The ipAddress to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public PscAutoConnection.Builder setIpAddressBytes(ByteString value)

Output only. The IP allocated on the consumer network for the PSC forwarding rule.

string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for ipAddress to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setNetwork(String value)

public PscAutoConnection.Builder setNetwork(String value)

Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The network to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public PscAutoConnection.Builder setNetworkBytes(ByteString value)

Required. The network where the PSC endpoints are created, in the form of projects/{project_id}/global/networks/{network_id}.

string network = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setPort(int value)

public PscAutoConnection.Builder setPort(int value)

Optional. Output only. port will only be set for Primary/Reader or Discovery endpoint.

int32 port = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setProjectId(String value)

public PscAutoConnection.Builder setProjectId(String value)

Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.

string project_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The projectId to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setProjectIdBytes(ByteString value)

public PscAutoConnection.Builder setProjectIdBytes(ByteString value)

Required. The consumer project_id where PSC connections are established. This should be the same project_id that the instance is being created in.

string project_id = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for projectId to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setPscConnectionId(String value)

public PscAutoConnection.Builder setPscConnectionId(String value)

Output only. The PSC connection id of the forwarding rule connected to the service attachment.

string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The pscConnectionId to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setPscConnectionIdBytes(ByteString value)

public PscAutoConnection.Builder setPscConnectionIdBytes(ByteString value)

Output only. The PSC connection id of the forwarding rule connected to the service attachment.

string psc_connection_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for pscConnectionId to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setPscConnectionStatus(PscConnectionStatus value)

public PscAutoConnection.Builder setPscConnectionStatus(PscConnectionStatus value)

Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.

.google.cloud.memorystore.v1.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value PscConnectionStatus

The pscConnectionStatus to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setPscConnectionStatusValue(int value)

public PscAutoConnection.Builder setPscConnectionStatusValue(int value)

Output only. The status of the PSC connection: whether a connection exists and ACTIVE or it no longer exists. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.

.google.cloud.memorystore.v1.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for pscConnectionStatus to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PscAutoConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PscAutoConnection.Builder
Overrides

setServiceAttachment(String value)

public PscAutoConnection.Builder setServiceAttachment(String value)

Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The serviceAttachment to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setServiceAttachmentBytes(ByteString value)

public PscAutoConnection.Builder setServiceAttachmentBytes(ByteString value)

Output only. The service attachment which is the target of the PSC connection, in the form of projects/{project-id}/regions/{region}/serviceAttachments/{service-attachment-id}.

string service_attachment = 6 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for serviceAttachment to set.

Returns
Type Description
PscAutoConnection.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final PscAutoConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PscAutoConnection.Builder
Overrides