@SuppressWarnings({"rawtypes"}) @java.lang.Override protected com.google.protobuf.MapField internalGetMapField(int number) { switch (number) { case 3: return internalGetLabels(); case 16: return internalGetRedisConfigs(); default: throw new RuntimeException("Invalid map field number: " + number); } }
public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /**
/** * * * <pre> * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: * * maxmemory-policy * * notify-keyspace-events * </pre> * * <code>map<string, string> redis_configs = 16;</code> */ public java.util.Map<java.lang.String, java.lang.String> getRedisConfigsMap() { return internalGetRedisConfigs().getMap(); } /**
/** * * * <pre> * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: * * maxmemory-policy * * notify-keyspace-events * </pre> * * <code>map<string, string> redis_configs = 16;</code> */ public boolean containsRedisConfigs(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRedisConfigs().getMap().containsKey(key); } /** Use {@link #getRedisConfigsMap()} instead. */
/** * * * <pre> * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: * * maxmemory-policy * * notify-keyspace-events * </pre> * * <code>map<string, string> redis_configs = 16;</code> */ public java.lang.String getRedisConfigsOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetRedisConfigs().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /**
/** * * * <pre> * Optional. Redis configuration parameters, according to * http://redis.io/topics/config. Currently, the only supported parameters * are: * * maxmemory-policy * * notify-keyspace-events * </pre> * * <code>map<string, string> redis_configs = 16;</code> */ public java.lang.String getRedisConfigsOrThrow(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } java.util.Map<java.lang.String, java.lang.String> map = internalGetRedisConfigs().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); }
output, internalGetRedisConfigs(), RedisConfigsDefaultEntryHolder.defaultEntry, 16); if (tier_ != com.google.cloud.redis.v1.Instance.Tier.TIER_UNSPECIFIED.getNumber()) { output.writeEnum(17, tier_);
internalGetRedisConfigs().getMap().entrySet()) { com.google.protobuf.MapEntry<java.lang.String, java.lang.String> redisConfigs__ = RedisConfigsDefaultEntryHolder.defaultEntry
hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getStatusMessage().hashCode(); if (!internalGetRedisConfigs().getMap().isEmpty()) { hash = (37 * hash) + REDIS_CONFIGS_FIELD_NUMBER; hash = (53 * hash) + internalGetRedisConfigs().hashCode();
result = result && internalGetRedisConfigs().equals(other.internalGetRedisConfigs()); result = result && tier_ == other.tier_; result = result && (getMemorySizeGb() == other.getMemorySizeGb());