/** * * * <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); }
/** * * * <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 boolean containsRedisConfigs(java.lang.String key) { if (key == null) { throw new java.lang.NullPointerException(); } return internalGetRedisConfigs().getMap().containsKey(key); } /** Use {@link #getRedisConfigsMap()} instead. */
result.redisConfigs_ = internalGetRedisConfigs(); result.redisConfigs_.makeImmutable(); result.tier_ = tier_;
/** * * * <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(); } /**
public int getRedisConfigsCount() { return internalGetRedisConfigs().getMap().size(); } /**
@SuppressWarnings({"rawtypes"}) 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); } }