Class Instance (0.15.0)

public final class Instance extends GeneratedMessageV3 implements InstanceOrBuilder

A Memorystore for Memcached instance

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

Implements

InstanceOrBuilder

Static Fields

AUTHORIZED_NETWORK_FIELD_NUMBER

public static final int AUTHORIZED_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DISCOVERY_ENDPOINT_FIELD_NUMBER

public static final int DISCOVERY_ENDPOINT_FIELD_NUMBER
Field Value
Type Description
int

DISPLAY_NAME_FIELD_NUMBER

public static final int DISPLAY_NAME_FIELD_NUMBER
Field Value
Type Description
int

INSTANCE_MESSAGES_FIELD_NUMBER

public static final int INSTANCE_MESSAGES_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

MAINTENANCE_POLICY_FIELD_NUMBER

public static final int MAINTENANCE_POLICY_FIELD_NUMBER
Field Value
Type Description
int

MAINTENANCE_SCHEDULE_FIELD_NUMBER

public static final int MAINTENANCE_SCHEDULE_FIELD_NUMBER
Field Value
Type Description
int

MEMCACHE_FULL_VERSION_FIELD_NUMBER

public static final int MEMCACHE_FULL_VERSION_FIELD_NUMBER
Field Value
Type Description
int

MEMCACHE_NODES_FIELD_NUMBER

public static final int MEMCACHE_NODES_FIELD_NUMBER
Field Value
Type Description
int

MEMCACHE_VERSION_FIELD_NUMBER

public static final int MEMCACHE_VERSION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

NODE_CONFIG_FIELD_NUMBER

public static final int NODE_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

NODE_COUNT_FIELD_NUMBER

public static final int NODE_COUNT_FIELD_NUMBER
Field Value
Type Description
int

PARAMETERS_FIELD_NUMBER

public static final int PARAMETERS_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

ZONES_FIELD_NUMBER

public static final int ZONES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Instance getDefaultInstance()
Returns
Type Description
Instance

getDescriptor()

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

newBuilder()

public static Instance.Builder newBuilder()
Returns
Type Description
Instance.Builder

newBuilder(Instance prototype)

public static Instance.Builder newBuilder(Instance prototype)
Parameter
Name Description
prototype Instance
Returns
Type Description
Instance.Builder

parseDelimitedFrom(InputStream input)

public static Instance parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Instance parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Instance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Instance parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Instance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Instance parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Instance parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Instance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Instance parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Instance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Instance
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Instance> parser()
Returns
Type Description
Parser<Instance>

Methods

containsLabels(String key)

public boolean containsLabels(String key)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAuthorizedNetwork()

public String getAuthorizedNetwork()

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Returns
Type Description
String

The authorizedNetwork.

getAuthorizedNetworkBytes()

public ByteString getAuthorizedNetworkBytes()

The full name of the Google Compute Engine network to which the instance is connected. If left unspecified, the default network will be used.

string authorized_network = 4;

Returns
Type Description
ByteString

The bytes for authorizedNetwork.

getCreateTime()

public Timestamp getCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public Instance getDefaultInstanceForType()
Returns
Type Description
Instance

getDiscoveryEndpoint()

public String getDiscoveryEndpoint()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20;

Returns
Type Description
String

The discoveryEndpoint.

getDiscoveryEndpointBytes()

public ByteString getDiscoveryEndpointBytes()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20;

Returns
Type Description
ByteString

The bytes for discoveryEndpoint.

getDisplayName()

public String getDisplayName()

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

User provided name for the instance, which is only used for display purposes. Cannot be more than 80 characters.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getInstanceMessages(int index)

public Instance.InstanceMessage getInstanceMessages(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.events.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessage

getInstanceMessagesCount()

public int getInstanceMessagesCount()

List of messages that describe the current state of the Memcached instance.

repeated .google.events.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
int

getInstanceMessagesList()

public List<Instance.InstanceMessage> getInstanceMessagesList()

List of messages that describe the current state of the Memcached instance.

repeated .google.events.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
List<InstanceMessage>

getInstanceMessagesOrBuilder(int index)

public Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder(int index)

List of messages that describe the current state of the Memcached instance.

repeated .google.events.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Parameter
Name Description
index int
Returns
Type Description
Instance.InstanceMessageOrBuilder

getInstanceMessagesOrBuilderList()

public List<? extends Instance.InstanceMessageOrBuilder> getInstanceMessagesOrBuilderList()

List of messages that describe the current state of the Memcached instance.

repeated .google.events.cloud.memcache.v1.Instance.InstanceMessage instance_messages = 19;

Returns
Type Description
List<? extends com.google.events.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources

map<string, string> labels = 3;

Parameter
Name Description
key String
Returns
Type Description
String

getMaintenancePolicy()

public MaintenancePolicy getMaintenancePolicy()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.events.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
MaintenancePolicy

The maintenancePolicy.

getMaintenancePolicyOrBuilder()

public MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.events.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
MaintenancePolicyOrBuilder

getMaintenanceSchedule()

public MaintenanceSchedule getMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.events.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22;

Returns
Type Description
MaintenanceSchedule

The maintenanceSchedule.

getMaintenanceScheduleOrBuilder()

public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()

Output only. Published maintenance schedule.

.google.events.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22;

Returns
Type Description
MaintenanceScheduleOrBuilder

getMemcacheFullVersion()

public String getMemcacheFullVersion()

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18;

Returns
Type Description
String

The memcacheFullVersion.

getMemcacheFullVersionBytes()

public ByteString getMemcacheFullVersionBytes()

Output only. The full version of memcached server running on this instance. System automatically determines the full memcached version for an instance based on the input MemcacheVersion. The full version format will be "memcached-1.5.16".

string memcache_full_version = 18;

Returns
Type Description
ByteString

The bytes for memcacheFullVersion.

getMemcacheNodes(int index)

public Instance.Node getMemcacheNodes(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.events.cloud.memcache.v1.Instance.Node memcache_nodes = 12;

Parameter
Name Description
index int
Returns
Type Description
Instance.Node

getMemcacheNodesCount()

public int getMemcacheNodesCount()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.events.cloud.memcache.v1.Instance.Node memcache_nodes = 12;

Returns
Type Description
int

getMemcacheNodesList()

public List<Instance.Node> getMemcacheNodesList()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.events.cloud.memcache.v1.Instance.Node memcache_nodes = 12;

Returns
Type Description
List<Node>

getMemcacheNodesOrBuilder(int index)

public Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index)

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.events.cloud.memcache.v1.Instance.Node memcache_nodes = 12;

Parameter
Name Description
index int
Returns
Type Description
Instance.NodeOrBuilder

getMemcacheNodesOrBuilderList()

public List<? extends Instance.NodeOrBuilder> getMemcacheNodesOrBuilderList()

Output only. List of Memcached nodes. Refer to Node message for more details.

repeated .google.events.cloud.memcache.v1.Instance.Node memcache_nodes = 12;

Returns
Type Description
List<? extends com.google.events.cloud.memcache.v1.Instance.NodeOrBuilder>

getMemcacheVersion()

public MemcacheVersion getMemcacheVersion()

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.events.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
Type Description
MemcacheVersion

The memcacheVersion.

getMemcacheVersionValue()

public int getMemcacheVersionValue()

The major version of Memcached software. If not provided, latest supported version will be used. Currently the latest supported major version is MEMCACHE_1_5. The minor version will be automatically determined by our system based on the latest supported minor version.

.google.events.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
Type Description
int

The enum numeric value on the wire for memcacheVersion.

getName()

public String getName()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Unique name of the resource in this scope including project and location using the form: projects/{project_id}/locations/{location_id}/instances/{instance_id} Note: Memcached instances are managed and addressed at the regional level so location_id here refers to a Google Cloud region; however, users may choose which zones Memcached nodes should be provisioned in within an instance. Refer to zones field for more details.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNodeConfig()

public Instance.NodeConfig getNodeConfig()

Required. Configuration for Memcached nodes.

.google.events.cloud.memcache.v1.Instance.NodeConfig node_config = 7;

Returns
Type Description
Instance.NodeConfig

The nodeConfig.

getNodeConfigOrBuilder()

public Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()

Required. Configuration for Memcached nodes.

.google.events.cloud.memcache.v1.Instance.NodeConfig node_config = 7;

Returns
Type Description
Instance.NodeConfigOrBuilder

getNodeCount()

public int getNodeCount()

Required. Number of nodes in the Memcached instance.

int32 node_count = 6;

Returns
Type Description
int

The nodeCount.

getParameters()

public MemcacheParameters getParameters()

User defined parameters to apply to the memcached process on each node.

.google.events.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
MemcacheParameters

The parameters.

getParametersOrBuilder()

public MemcacheParametersOrBuilder getParametersOrBuilder()

User defined parameters to apply to the memcached process on each node.

.google.events.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
MemcacheParametersOrBuilder

getParserForType()

public Parser<Instance> getParserForType()
Returns
Type Description
Parser<Instance>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getState()

public Instance.State getState()

Output only. The state of this Memcached instance.

.google.events.cloud.memcache.v1.Instance.State state = 15;

Returns
Type Description
Instance.State

The state.

getStateValue()

public int getStateValue()

Output only. The state of this Memcached instance.

.google.events.cloud.memcache.v1.Instance.State state = 15;

Returns
Type Description
int

The enum numeric value on the wire for state.

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
Type Description
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14;

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14;

Returns
Type Description
TimestampOrBuilder

getZones(int index)

public String getZones(int index)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The zones at the given index.

getZonesBytes(int index)

public ByteString getZonesBytes(int index)

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the zones at the given index.

getZonesCount()

public int getZonesCount()

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Returns
Type Description
int

The count of zones.

getZonesList()

public ProtocolStringList getZonesList()

Zones in which Memcached nodes should be provisioned. Memcached nodes will be equally distributed across these zones. If not provided, the service will by default create nodes in all zones in the region for the instance.

repeated string zones = 5;

Returns
Type Description
ProtocolStringList

A list containing the zones.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13;

Returns
Type Description
boolean

Whether the createTime field is set.

hasMaintenancePolicy()

public boolean hasMaintenancePolicy()

The maintenance policy for the instance. If not provided, the maintenance event will be performed based on Memorystore internal rollout schedule.

.google.events.cloud.memcache.v1.MaintenancePolicy maintenance_policy = 21;

Returns
Type Description
boolean

Whether the maintenancePolicy field is set.

hasMaintenanceSchedule()

public boolean hasMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.events.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22;

Returns
Type Description
boolean

Whether the maintenanceSchedule field is set.

hasNodeConfig()

public boolean hasNodeConfig()

Required. Configuration for Memcached nodes.

.google.events.cloud.memcache.v1.Instance.NodeConfig node_config = 7;

Returns
Type Description
boolean

Whether the nodeConfig field is set.

hasParameters()

public boolean hasParameters()

User defined parameters to apply to the memcached process on each node.

.google.events.cloud.memcache.v1.MemcacheParameters parameters = 11;

Returns
Type Description
boolean

Whether the parameters field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14;

Returns
Type Description
boolean

Whether the updateTime field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
Name Description
number int
Returns
Type Description
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Instance.Builder newBuilderForType()
Returns
Type Description
Instance.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Instance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Instance.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public Instance.Builder toBuilder()
Returns
Type Description
Instance.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException