public static final class PscConnection.Builder extends GeneratedMessageV3.Builder<PscConnection.Builder> implements PscConnectionOrBuilderUser created Psc connection configuration.
Protobuf type google.cloud.memorystore.v1beta.PscConnection
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PscConnection.BuilderImplements
PscConnectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PscConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
build()
public PscConnection build()| Returns | |
|---|---|
| Type | Description |
PscConnection |
|
buildPartial()
public PscConnection buildPartial()| Returns | |
|---|---|
| Type | Description |
PscConnection |
|
clear()
public PscConnection.Builder clear()| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
clearConnectionType()
public PscConnection.Builder clearConnectionType()Output only. Type of the PSC connection.
.google.cloud.memorystore.v1beta.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PscConnection.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
clearForwardingRule()
public PscConnection.Builder clearForwardingRule()Required. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearIpAddress()
public PscConnection.Builder clearIpAddress()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearNetwork()
public PscConnection.Builder clearNetwork()Required. The consumer network where the IP address resides, 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 |
PscConnection.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
clearProjectId()
public PscConnection.Builder clearProjectId()Output only. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearPscConnectionId()
public PscConnection.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 |
PscConnection.Builder |
This builder for chaining. |
clearPscConnectionStatus()
public PscConnection.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.v1beta.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearServiceAttachment()
public PscConnection.Builder clearServiceAttachment()Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clone()
public PscConnection.Builder clone()| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
getConnectionType()
public ConnectionType getConnectionType()Output only. Type of the PSC connection.
.google.cloud.memorystore.v1beta.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.v1beta.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 PscConnection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
PscConnection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getForwardingRule()
public String getForwardingRule()Required. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The forwardingRule. |
getForwardingRuleBytes()
public ByteString getForwardingRuleBytes()Required. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for forwardingRule. |
getIpAddress()
public String getIpAddress()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The ipAddress. |
getIpAddressBytes()
public ByteString getIpAddressBytes()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for ipAddress. |
getNetwork()
public String getNetwork()Required. The consumer network where the IP address resides, 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 consumer network where the IP address resides, 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. |
getProjectId()
public String getProjectId()Output only. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()Output only. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| 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.v1beta.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.v1beta.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()Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The serviceAttachment. |
getServiceAttachmentBytes()
public ByteString getServiceAttachmentBytes()Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for serviceAttachment. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(PscConnection other)
public PscConnection.Builder mergeFrom(PscConnection other)| Parameter | |
|---|---|
| Name | Description |
other |
PscConnection |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PscConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public PscConnection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
setConnectionType(ConnectionType value)
public PscConnection.Builder setConnectionType(ConnectionType value)Output only. Type of the PSC connection.
.google.cloud.memorystore.v1beta.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ConnectionTypeThe connectionType to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setConnectionTypeValue(int value)
public PscConnection.Builder setConnectionTypeValue(int value)Output only. Type of the PSC connection.
.google.cloud.memorystore.v1beta.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for connectionType to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PscConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
setForwardingRule(String value)
public PscConnection.Builder setForwardingRule(String value)Required. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe forwardingRule to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setForwardingRuleBytes(ByteString value)
public PscConnection.Builder setForwardingRuleBytes(ByteString value)Required. The URI of the consumer side forwarding rule. Format: projects/{project}/regions/{region}/forwardingRules/{forwarding_rule}
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for forwardingRule to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setIpAddress(String value)
public PscConnection.Builder setIpAddress(String value)Required. The IP allocated on the consumer network for the PSC forwarding rule.
string ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe ipAddress to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setIpAddressBytes(ByteString value)
public PscConnection.Builder setIpAddressBytes(ByteString value)Required. The IP allocated on the consumer network for the PSC forwarding rule.
string ip_address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for ipAddress to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setNetwork(String value)
public PscConnection.Builder setNetwork(String value)Required. The consumer network where the IP address resides, 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 |
StringThe network to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setNetworkBytes(ByteString value)
public PscConnection.Builder setNetworkBytes(ByteString value)Required. The consumer network where the IP address resides, 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 |
ByteStringThe bytes for network to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setProjectId(String value)
public PscConnection.Builder setProjectId(String value)Output only. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe projectId to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setProjectIdBytes(ByteString value)
public PscConnection.Builder setProjectIdBytes(ByteString value)Output only. The consumer project_id where the forwarding rule is created from.
string project_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for projectId to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setPscConnectionId(String value)
public PscConnection.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 |
StringThe pscConnectionId to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setPscConnectionIdBytes(ByteString value)
public PscConnection.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 |
ByteStringThe bytes for pscConnectionId to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setPscConnectionStatus(PscConnectionStatus value)
public PscConnection.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.v1beta.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
PscConnectionStatusThe pscConnectionStatus to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setPscConnectionStatusValue(int value)
public PscConnection.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.v1beta.PscConnectionStatus psc_connection_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for pscConnectionStatus to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PscConnection.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|
setServiceAttachment(String value)
public PscConnection.Builder setServiceAttachment(String value)Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe serviceAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setServiceAttachmentBytes(ByteString value)
public PscConnection.Builder setServiceAttachmentBytes(ByteString value)Required. 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) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for serviceAttachment to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
|