Class Instance.NodeConfig (2.39.0)

public static final class Instance.NodeConfig extends GeneratedMessageV3 implements Instance.NodeConfigOrBuilder

Configuration for a Memcached Node.

Protobuf type google.cloud.memcache.v1.Instance.NodeConfig

Static Fields

CPU_COUNT_FIELD_NUMBER

public static final int CPU_COUNT_FIELD_NUMBER
Field Value
TypeDescription
int

MEMORY_SIZE_MB_FIELD_NUMBER

public static final int MEMORY_SIZE_MB_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Instance.NodeConfig getDefaultInstance()
Returns
TypeDescription
Instance.NodeConfig

getDescriptor()

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

newBuilder()

public static Instance.NodeConfig.Builder newBuilder()
Returns
TypeDescription
Instance.NodeConfig.Builder

newBuilder(Instance.NodeConfig prototype)

public static Instance.NodeConfig.Builder newBuilder(Instance.NodeConfig prototype)
Parameter
NameDescription
prototypeInstance.NodeConfig
Returns
TypeDescription
Instance.NodeConfig.Builder

parseDelimitedFrom(InputStream input)

public static Instance.NodeConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Instance.NodeConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance.NodeConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance.NodeConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Instance.NodeConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Instance.NodeConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance.NodeConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Instance.NodeConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Instance.NodeConfig> parser()
Returns
TypeDescription
Parser<NodeConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCpuCount()

public int getCpuCount()

Required. Number of cpus per Memcached node.

int32 cpu_count = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The cpuCount.

getDefaultInstanceForType()

public Instance.NodeConfig getDefaultInstanceForType()
Returns
TypeDescription
Instance.NodeConfig

getMemorySizeMb()

public int getMemorySizeMb()

Required. Memory size in MiB for each Memcached node.

int32 memory_size_mb = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The memorySizeMb.

getParserForType()

public Parser<Instance.NodeConfig> getParserForType()
Returns
TypeDescription
Parser<NodeConfig>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Instance.NodeConfig.Builder newBuilderForType()
Returns
TypeDescription
Instance.NodeConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.NodeConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Instance.NodeConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Instance.NodeConfig.Builder toBuilder()
Returns
TypeDescription
Instance.NodeConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException