public final class Instance extends GeneratedMessageV3 implements InstanceOrBuilder
A Memorystore for Memcached instance
Protobuf type google.events.cloud.memcache.v1.Instance
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Instance.Builder newBuilder()
newBuilder(Instance prototype)
public static Instance.Builder newBuilder(Instance prototype)
Parameter |
Name |
Description |
prototype |
Instance
|
public static Instance parseDelimitedFrom(InputStream input)
public static Instance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Instance parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Instance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Instance parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Instance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Instance parseFrom(CodedInputStream input)
public static Instance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Instance parseFrom(InputStream input)
public static Instance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Instance parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Instance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Instance> parser()
Methods
containsLabels(String key)
public boolean containsLabels(String key)
Parameter |
Name |
Description |
key |
String
|
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
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;
getDefaultInstanceForType()
public Instance getDefaultInstanceForType()
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
|
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;
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
|
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()
getLabelsCount()
public int getLabelsCount()
Returns |
Type |
Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Returns |
Type |
Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
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;
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;
getMaintenanceSchedule()
public MaintenanceSchedule getMaintenanceSchedule()
Output only. Published maintenance schedule.
.google.events.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22;
getMaintenanceScheduleOrBuilder()
public MaintenanceScheduleOrBuilder getMaintenanceScheduleOrBuilder()
Output only. Published maintenance schedule.
.google.events.cloud.memcache.v1.MaintenanceSchedule maintenance_schedule = 22;
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
|
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;
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
|
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;
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()
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;
getNodeConfigOrBuilder()
public Instance.NodeConfigOrBuilder getNodeConfigOrBuilder()
Required. Configuration for Memcached nodes.
.google.events.cloud.memcache.v1.Instance.NodeConfig node_config = 7;
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;
getParametersOrBuilder()
public MemcacheParametersOrBuilder getParametersOrBuilder()
User defined parameters to apply to the memcached process
on each node.
.google.events.cloud.memcache.v1.MemcacheParameters parameters = 11;
getParserForType()
public Parser<Instance> getParserForType()
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;
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()
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;
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;
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()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Parameter |
Name |
Description |
number |
int
|
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Instance.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Instance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public Instance.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides