1 /* 2 * Copyright 2020 Google LLC 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * https://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 // Generated by the protocol buffer compiler. DO NOT EDIT! 17 // source: google/cloud/redis/v1/cloud_redis.proto 18 19 package com.google.cloud.redis.v1; 20 21 public interface LocationMetadataOrBuilder 22 extends 23 // @@protoc_insertion_point(interface_extends:google.cloud.redis.v1.LocationMetadata) 24 com.google.protobuf.MessageOrBuilder { 25 26 /** 27 * 28 * 29 * <pre> 30 * Output only. The set of available zones in the location. The map is keyed 31 * by the lowercase ID of each zone, as defined by GCE. These keys can be 32 * specified in `location_id` or `alternative_location_id` fields when 33 * creating a Redis instance. 34 * </pre> 35 * 36 * <code> 37 * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 38 * </code> 39 */ getAvailableZonesCount()40 int getAvailableZonesCount(); 41 /** 42 * 43 * 44 * <pre> 45 * Output only. The set of available zones in the location. The map is keyed 46 * by the lowercase ID of each zone, as defined by GCE. These keys can be 47 * specified in `location_id` or `alternative_location_id` fields when 48 * creating a Redis instance. 49 * </pre> 50 * 51 * <code> 52 * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 53 * </code> 54 */ containsAvailableZones(java.lang.String key)55 boolean containsAvailableZones(java.lang.String key); 56 /** Use {@link #getAvailableZonesMap()} instead. */ 57 @java.lang.Deprecated getAvailableZones()58 java.util.Map<java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> getAvailableZones(); 59 /** 60 * 61 * 62 * <pre> 63 * Output only. The set of available zones in the location. The map is keyed 64 * by the lowercase ID of each zone, as defined by GCE. These keys can be 65 * specified in `location_id` or `alternative_location_id` fields when 66 * creating a Redis instance. 67 * </pre> 68 * 69 * <code> 70 * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 71 * </code> 72 */ getAvailableZonesMap()73 java.util.Map<java.lang.String, com.google.cloud.redis.v1.ZoneMetadata> getAvailableZonesMap(); 74 /** 75 * 76 * 77 * <pre> 78 * Output only. The set of available zones in the location. The map is keyed 79 * by the lowercase ID of each zone, as defined by GCE. These keys can be 80 * specified in `location_id` or `alternative_location_id` fields when 81 * creating a Redis instance. 82 * </pre> 83 * 84 * <code> 85 * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 86 * </code> 87 */ 88 /* nullable */ getAvailableZonesOrDefault( java.lang.String key, com.google.cloud.redis.v1.ZoneMetadata defaultValue)89 com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrDefault( 90 java.lang.String key, 91 /* nullable */ 92 com.google.cloud.redis.v1.ZoneMetadata defaultValue); 93 /** 94 * 95 * 96 * <pre> 97 * Output only. The set of available zones in the location. The map is keyed 98 * by the lowercase ID of each zone, as defined by GCE. These keys can be 99 * specified in `location_id` or `alternative_location_id` fields when 100 * creating a Redis instance. 101 * </pre> 102 * 103 * <code> 104 * map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; 105 * </code> 106 */ getAvailableZonesOrThrow(java.lang.String key)107 com.google.cloud.redis.v1.ZoneMetadata getAvailableZonesOrThrow(java.lang.String key); 108 } 109