Class PscConfig.Builder (0.57.0)

public static final class PscConfig.Builder extends GeneratedMessage.Builder<PscConfig.Builder> implements PscConfigOrBuilder

Protobuf type google.cloud.redis.cluster.v1.PscConfig

Implements

PscConfigOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public PscConfig build()
Returns
Type Description
PscConfig

buildPartial()

public PscConfig buildPartial()
Returns
Type Description
PscConfig

clear()

public PscConfig.Builder clear()
Returns
Type Description
PscConfig.Builder
Overrides

clearNetwork()

public PscConfig.Builder clearNetwork()

Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
PscConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public PscConfig getDefaultInstanceForType()
Returns
Type Description
PscConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getNetwork()

public String getNetwork()

Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for network.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(PscConfig other)

public PscConfig.Builder mergeFrom(PscConfig other)
Parameter
Name Description
other PscConfig
Returns
Type Description
PscConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PscConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PscConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PscConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PscConfig.Builder
Overrides

setNetwork(String value)

public PscConfig.Builder setNetwork(String value)

Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The network to set.

Returns
Type Description
PscConfig.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public PscConfig.Builder setNetworkBytes(ByteString value)

Required. The network where the IP address of the discovery endpoint will be reserved, in the form of projects/{network_project}/global/networks/{network_id}.

string network = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
PscConfig.Builder

This builder for chaining.