Class PscConnection.Builder (0.3.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PscConnection.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PscConnection.Builder
Overrides

build()

public PscConnection build()
Returns
TypeDescription
PscConnection

buildPartial()

public PscConnection buildPartial()
Returns
TypeDescription
PscConnection

clear()

public PscConnection.Builder clear()
Returns
TypeDescription
PscConnection.Builder
Overrides

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
TypeDescription
PscConnection.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public PscConnection.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PscConnection.Builder
Overrides

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
TypeDescription
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
TypeDescription
PscConnection.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PscConnection.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PscConnection.Builder
Overrides

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
TypeDescription
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
TypeDescription
PscConnection.Builder

This builder for chaining.

clone()

public PscConnection.Builder clone()
Returns
TypeDescription
PscConnection.Builder
Overrides

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
TypeDescription
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
TypeDescription
ByteString

The bytes for address.

getDefaultInstanceForType()

public PscConnection getDefaultInstanceForType()
Returns
TypeDescription
PscConnection

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for pscConnectionId.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PscConnection other)

public PscConnection.Builder mergeFrom(PscConnection other)
Parameter
NameDescription
otherPscConnection
Returns
TypeDescription
PscConnection.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PscConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PscConnection.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PscConnection.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
PscConnection.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PscConnection.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PscConnection.Builder
Overrides

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
NameDescription
valueString

The address to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for address to set.

Returns
TypeDescription
PscConnection.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public PscConnection.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PscConnection.Builder
Overrides

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
NameDescription
valueString

The forwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for forwardingRule to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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
NameDescription
valueString

The projectId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for projectId to set.

Returns
TypeDescription
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
NameDescription
valueString

The pscConnectionId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for pscConnectionId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PscConnection.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PscConnection.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
PscConnection.Builder
Overrides