public static final class PscConnection.Builder extends GeneratedMessageV3.Builder<PscConnection.Builder> implements PscConnectionOrBuilder
Details 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()
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.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()
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];
Returns | |
---|---|
Type | Description |
PscConnection.Builder | This builder for chaining. |
clearNetwork()
public PscConnection.Builder clearNetwork()
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
string network = 5;
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. |
clone()
public PscConnection.Builder clone()
Returns | |
---|---|
Type | Description |
PscConnection.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];
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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for address. |
getDefaultInstanceForType()
public PscConnection getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PscConnection |
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];
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];
Returns | |
---|---|
Type | Description |
ByteString | The bytes for forwardingRule. |
getNetwork()
public String getNetwork()
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
string network = 5;
Returns | |
---|---|
Type | Description |
String | The network. |
getNetworkBytes()
public ByteString getNetworkBytes()
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
string network = 5;
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. |
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)
Output only. The IP allocated on the consumer network for the PSC forwarding rule.
string address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
Parameter | |
---|---|
Name | Description |
value | String The address to set. |
Returns | |
---|---|
Type | Description |
PscConnection.Builder | This builder for chaining. |
setAddressBytes(ByteString value)
public PscConnection.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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for address 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)
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];
Parameter | |
---|---|
Name | Description |
value | String The forwardingRule to set. |
Returns | |
---|---|
Type | Description |
PscConnection.Builder | This builder for chaining. |
setForwardingRuleBytes(ByteString value)
public PscConnection.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];
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for forwardingRule to set. |
Returns | |
---|---|
Type | Description |
PscConnection.Builder | This builder for chaining. |
setNetwork(String value)
public PscConnection.Builder setNetwork(String value)
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
string network = 5;
Parameter | |
---|---|
Name | Description |
value | String The network to set. |
Returns | |
---|---|
Type | Description |
PscConnection.Builder | This builder for chaining. |
setNetworkBytes(ByteString value)
public PscConnection.Builder setNetworkBytes(ByteString value)
The consumer network where the IP address resides, in the form of projects/{project_id}/global/networks/{network_id}.
string network = 5;
Parameter | |
---|---|
Name | Description |
value | ByteString The 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 | String The 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 | ByteString The 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 | String The 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 | ByteString The bytes for pscConnectionId 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 |
setUnknownFields(UnknownFieldSet unknownFields)
public final PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PscConnection.Builder |