public static final class PscConnection.Builder extends GeneratedMessageV3.Builder<PscConnection.Builder> implements PscConnectionOrBuilderDetails of consumer resources in a PSC connection.
Protobuf type google.cloud.redis.cluster.v1beta1.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 |
|
clearAddress()
public PscConnection.Builder clearAddress()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearConnectionType()
public PscConnection.Builder clearConnectionType()Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| 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()Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearPscConnectionId()
public PscConnection.Builder clearPscConnectionId()Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
clearPscConnectionStatus()
public PscConnection.Builder clearPscConnectionStatus()Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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 |
|
getAddress()
public String getAddress()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The address. |
getAddressBytes()
public ByteString getAddressBytes()Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for address. |
getConnectionType()
public ConnectionType getConnectionType()Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
string forwarding_rule = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for forwardingRule. |
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()Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The projectId. |
getProjectIdBytes()
public ByteString getProjectIdBytes()Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for projectId. |
getPscConnectionId()
public String getPscConnectionId()Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The pscConnectionId. |
getPscConnectionIdBytes()
public ByteString getPscConnectionIdBytes()Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for pscConnectionId. |
getPscConnectionStatus()
public PscConnectionStatus getPscConnectionStatus()Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
PscConnectionStatus |
The pscConnectionStatus. |
getPscConnectionStatusValue()
public int getPscConnectionStatusValue()Output only. The status of the PSC connection. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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 |
|
setAddress(String value)
public PscConnection.Builder setAddress(String value)Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe address to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setAddressBytes(ByteString value)
public PscConnection.Builder setAddressBytes(ByteString value)Required. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_info) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for address to set. |
| Returns | |
|---|---|
| Type | Description |
PscConnection.Builder |
This builder for chaining. |
setConnectionType(ConnectionType value)
public PscConnection.Builder setConnectionType(ConnectionType value)Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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.redis.cluster.v1beta1.ConnectionType connection_type = 10 [(.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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. |
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)Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| 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)Optional. Project ID of the consumer project where the forwarding rule is created in.
string project_id = 4 [(.google.api.field_behavior) = OPTIONAL];
| 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)Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];
| 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)Required. The PSC connection id of the forwarding rule connected to the service attachment.
string psc_connection_id = 1 [(.google.api.field_behavior) = REQUIRED];
| 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. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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. Please note that this value is updated periodically. To get the latest status of a PSC connection, follow https://cloud.google.com/vpc/docs/configure-private-service-connect-services#endpoint-details.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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 |
|