Class PscConfig.Builder (0.5.0)

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

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

Implements

PscConfigOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PscConfig build()
Returns
TypeDescription
PscConfig

buildPartial()

public PscConfig buildPartial()
Returns
TypeDescription
PscConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

public PscConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
PscConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PscConfig getDefaultInstanceForType()
Returns
TypeDescription
PscConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for network.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PscConfig other)

public PscConfig.Builder mergeFrom(PscConfig other)
Parameter
NameDescription
otherPscConfig
Returns
TypeDescription
PscConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public PscConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The network to set.

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

The bytes for network to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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