public static final class PscAutoConnection.Builder extends GeneratedMessageV3.Builder<PscAutoConnection.Builder> implements PscAutoConnectionOrBuilder
Details of consumer resources in a PSC connection that is created through Service Connectivity Automation.
Protobuf type google.cloud.redis.cluster.v1beta1.PscAutoConnection
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PscAutoConnection.BuilderImplements
PscAutoConnectionOrBuilderStatic 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 |
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 |
clearAddress()
public PscAutoConnection.Builder clearAddress()
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
This builder for chaining. |
clearConnectionType()
public PscAutoConnection.Builder clearConnectionType()
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.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 |
clearForwardingRule()
public PscAutoConnection.Builder clearForwardingRule()
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
This builder for chaining. |
clearNetwork()
public PscAutoConnection.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 |
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 |
clearProjectId()
public PscAutoConnection.Builder clearProjectId()
Required. The consumer project_id where the forwarding rule is created from.
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. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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 |
getAddress()
public String getAddress()
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Returns | |
---|---|
Type | Description |
String |
The address. |
getAddressBytes()
public ByteString getAddressBytes()
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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 = 9 [(.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 = 9 [(.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 |
getForwardingRule()
public String getForwardingRule()
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
string forwarding_rule = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.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()
Required. The consumer project_id where the forwarding rule is created from.
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 the forwarding rule is created from.
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. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.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. Please use Private Service Connect APIs for the latest status.
.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()
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
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 |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PscAutoConnection.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PscAutoConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
setAddress(String value)
public PscAutoConnection.Builder setAddress(String value)
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
String The address to set. |
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
This builder for chaining. |
setAddressBytes(ByteString value)
public PscAutoConnection.Builder setAddressBytes(ByteString value)
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for address to set. |
Returns | |
---|---|
Type | Description |
PscAutoConnection.Builder |
This builder for chaining. |
setConnectionType(ConnectionType value)
public PscAutoConnection.Builder setConnectionType(ConnectionType value)
Output only. Type of the PSC connection.
.google.cloud.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.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.redis.cluster.v1beta1.ConnectionType connection_type = 9 [(.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 |
setForwardingRule(String value)
public PscAutoConnection.Builder setForwardingRule(String value)
Output only. The URI of the consumer side forwarding rule. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. Example: projects/{projectNumOrId}/regions/us-east1/forwardingRules/{resourceId}.
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. |
setNetwork(String value)
public PscAutoConnection.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 |
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 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 |
ByteString The bytes for network 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 the forwarding rule is created from.
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 the forwarding rule is created from.
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. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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. Please note that this value is updated periodically. Please use Private Service Connect APIs for the latest status.
.google.cloud.redis.cluster.v1beta1.PscConnectionStatus psc_connection_status = 8 [(.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 |
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 |