Class PscConfig.Builder (0.26.0)

public static final class PscConfig.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PscConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PscConfig.Builder
Overrides

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

clearField(Descriptors.FieldDescriptor field)

public PscConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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.

clearOneof(Descriptors.OneofDescriptor oneof)

public PscConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PscConfig.Builder
Overrides

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PscConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PscConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public PscConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PscConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PscConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PscConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PscConfig.Builder
Overrides