Class LocationMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
com.google.cloud.redis.v1.LocationMetadata.Builder
All Implemented Interfaces:
LocationMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
LocationMetadata

public static final class LocationMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder> implements LocationMetadataOrBuilder
 This location metadata represents additional configuration options for a
 given location where a Redis instance may be created. All fields are output
 only. It is returned as content of the
 `google.cloud.location.Location.metadata` field.
 
Protobuf type google.cloud.redis.v1.LocationMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • clear

      public LocationMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • getDefaultInstanceForType

      public LocationMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public LocationMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public LocationMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LocationMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationMetadata.Builder>
    • mergeFrom

      public LocationMetadata.Builder mergeFrom(LocationMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<LocationMetadata.Builder>
    • mergeFrom

      public LocationMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LocationMetadata.Builder>
      Throws:
      IOException
    • getAvailableZonesCount

      public int getAvailableZonesCount()
      Description copied from interface: LocationMetadataOrBuilder
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailableZonesCount in interface LocationMetadataOrBuilder
    • containsAvailableZones

      public boolean containsAvailableZones(String key)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      containsAvailableZones in interface LocationMetadataOrBuilder
    • getAvailableZones

      @Deprecated public Map<String,ZoneMetadata> getAvailableZones()
      Deprecated.
      Specified by:
      getAvailableZones in interface LocationMetadataOrBuilder
    • getAvailableZonesMap

      public Map<String,ZoneMetadata> getAvailableZonesMap()
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailableZonesMap in interface LocationMetadataOrBuilder
    • getAvailableZonesOrDefault

      public ZoneMetadata getAvailableZonesOrDefault(String key, ZoneMetadata defaultValue)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailableZonesOrDefault in interface LocationMetadataOrBuilder
    • getAvailableZonesOrThrow

      public ZoneMetadata getAvailableZonesOrThrow(String key)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getAvailableZonesOrThrow in interface LocationMetadataOrBuilder
    • clearAvailableZones

      public LocationMetadata.Builder clearAvailableZones()
    • removeAvailableZones

      public LocationMetadata.Builder removeAvailableZones(String key)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getMutableAvailableZones

      @Deprecated public Map<String,ZoneMetadata> getMutableAvailableZones()
      Deprecated.
      Use alternate mutation accessors instead.
    • putAvailableZones

      public LocationMetadata.Builder putAvailableZones(String key, ZoneMetadata value)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAllAvailableZones

      public LocationMetadata.Builder putAllAvailableZones(Map<String,ZoneMetadata> values)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • putAvailableZonesBuilderIfAbsent

      public ZoneMetadata.Builder putAvailableZonesBuilderIfAbsent(String key)
       Output only. The set of available zones in the location. The map is keyed
       by the lowercase ID of each zone, as defined by GCE. These keys can be
       specified in `location_id` or `alternative_location_id` fields when
       creating a Redis instance.
       
      map<string, .google.cloud.redis.v1.ZoneMetadata> available_zones = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];