Interface InstanceOrBuilder (2.15.0)

public interface InstanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract 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
NameDescription
keyString
Returns
TypeDescription
boolean

getAuthorizedNetwork()

public abstract 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
TypeDescription
String

The authorizedNetwork.

getAuthorizedNetworkBytes()

public abstract 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
TypeDescription
ByteString

The bytes for authorizedNetwork.

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getDiscoveryEndpoint()

public abstract String getDiscoveryEndpoint()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The discoveryEndpoint.

getDiscoveryEndpointBytes()

public abstract ByteString getDiscoveryEndpointBytes()

Output only. Endpoint for the Discovery API.

string discovery_endpoint = 20 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for discoveryEndpoint.

getDisplayName()

public abstract 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
TypeDescription
String

The displayName.

getDisplayNameBytes()

public abstract 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
TypeDescription
ByteString

The bytes for displayName.

getInstanceMessages(int index)

public abstract Instance.InstanceMessage getInstanceMessages(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.InstanceMessage

getInstanceMessagesCount()

public abstract int getInstanceMessagesCount()

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

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

Returns
TypeDescription
int

getInstanceMessagesList()

public abstract List<Instance.InstanceMessage> getInstanceMessagesList()

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

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

Returns
TypeDescription
List<InstanceMessage>

getInstanceMessagesOrBuilder(int index)

public abstract Instance.InstanceMessageOrBuilder getInstanceMessagesOrBuilder(int index)

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

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

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.InstanceMessageOrBuilder

getInstanceMessagesOrBuilderList()

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

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

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

Returns
TypeDescription
List<? extends com.google.cloud.memcache.v1.Instance.InstanceMessageOrBuilder>

getLabels()

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public abstract 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
TypeDescription
int

getLabelsMap()

public abstract 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
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract 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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public abstract 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
NameDescription
keyString
Returns
TypeDescription
String

getMaintenancePolicy()

public abstract MaintenancePolicy getMaintenancePolicy()

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

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

Returns
TypeDescription
MaintenancePolicy

The maintenancePolicy.

getMaintenancePolicyOrBuilder()

public abstract MaintenancePolicyOrBuilder getMaintenancePolicyOrBuilder()

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

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

Returns
TypeDescription
MaintenancePolicyOrBuilder

getMaintenanceSchedule()

public abstract MaintenanceSchedule getMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MaintenanceSchedule

The maintenanceSchedule.

getMaintenanceScheduleOrBuilder()

public abstract MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
MaintenanceScheduleOrBuilder

getMemcacheFullVersion()

public abstract 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The memcacheFullVersion.

getMemcacheFullVersionBytes()

public abstract 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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for memcacheFullVersion.

getMemcacheNodes(int index)

public abstract Instance.Node getMemcacheNodes(int index)

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

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.Node

getMemcacheNodesCount()

public abstract int getMemcacheNodesCount()

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

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getMemcacheNodesList()

public abstract List<Instance.Node> getMemcacheNodesList()

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

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Node>

getMemcacheNodesOrBuilder(int index)

public abstract Instance.NodeOrBuilder getMemcacheNodesOrBuilder(int index)

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

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
Instance.NodeOrBuilder

getMemcacheNodesOrBuilderList()

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

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

repeated .google.cloud.memcache.v1.Instance.Node memcache_nodes = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.memcache.v1.Instance.NodeOrBuilder>

getMemcacheVersion()

public abstract 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.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
TypeDescription
MemcacheVersion

The memcacheVersion.

getMemcacheVersionValue()

public abstract 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.cloud.memcache.v1.MemcacheVersion memcache_version = 9;

Returns
TypeDescription
int

The enum numeric value on the wire for memcacheVersion.

getName()

public abstract 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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract 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 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

getNodeConfig()

public abstract Instance.NodeConfig getNodeConfig()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Instance.NodeConfig

The nodeConfig.

getNodeConfigOrBuilder()

public abstract Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
Instance.NodeConfigOrBuilder

getNodeCount()

public abstract int getNodeCount()

Required. Number of nodes in the Memcached instance.

int32 node_count = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The nodeCount.

getParameters()

public abstract MemcacheParameters getParameters()

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

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

Returns
TypeDescription
MemcacheParameters

The parameters.

getParametersOrBuilder()

public abstract MemcacheParametersOrBuilder getParametersOrBuilder()

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

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

Returns
TypeDescription
MemcacheParametersOrBuilder

getState()

public abstract Instance.State getState()

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Instance.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The state of this Memcached instance.

.google.cloud.memcache.v1.Instance.State state = 15 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
TimestampOrBuilder

getZones(int index)

public abstract 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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The zones at the given index.

getZonesBytes(int index)

public abstract 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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the zones at the given index.

getZonesCount()

public abstract 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
TypeDescription
int

The count of zones.

getZonesList()

public abstract List<String> 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
TypeDescription
List<String>

A list containing the zones.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The time the instance was created.

.google.protobuf.Timestamp create_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasMaintenancePolicy()

public abstract boolean hasMaintenancePolicy()

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

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

Returns
TypeDescription
boolean

Whether the maintenancePolicy field is set.

hasMaintenanceSchedule()

public abstract boolean hasMaintenanceSchedule()

Output only. Published maintenance schedule.

.google.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the maintenanceSchedule field is set.

hasNodeConfig()

public abstract boolean hasNodeConfig()

Required. Configuration for Memcached nodes.

.google.cloud.memcache.v1.Instance.NodeConfig node_config = 7 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the nodeConfig field is set.

hasParameters()

public abstract boolean hasParameters()

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

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

Returns
TypeDescription
boolean

Whether the parameters field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The time the instance was updated.

.google.protobuf.Timestamp update_time = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the updateTime field is set.