Class Bucket.CustomPlacementConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Bucket.CustomPlacementConfig.Builder>
com.google.storage.v2.Bucket.CustomPlacementConfig.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Bucket.CustomPlacementConfigOrBuilder, Cloneable
Enclosing class:
Bucket.CustomPlacementConfig

public static final class Bucket.CustomPlacementConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Bucket.CustomPlacementConfig.Builder> implements Bucket.CustomPlacementConfigOrBuilder
 Configuration for [configurable dual-
 regions](https://cloud.google.com/storage/docs/locations#configurable). It
 should specify precisely two eligible regions within the same multi-region.
 For details, see
 [locations](https://cloud.google.com/storage/docs/locations).
 
Protobuf type google.storage.v2.Bucket.CustomPlacementConfig
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Bucket.CustomPlacementConfig.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<Bucket.CustomPlacementConfig.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<Bucket.CustomPlacementConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

      public Bucket.CustomPlacementConfig.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<Bucket.CustomPlacementConfig.Builder>
    • mergeFrom

    • isInitialized

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

      public Bucket.CustomPlacementConfig.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<Bucket.CustomPlacementConfig.Builder>
      Throws:
      IOException
    • getDataLocationsList

      public com.google.protobuf.ProtocolStringList getDataLocationsList()
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataLocationsList in interface Bucket.CustomPlacementConfigOrBuilder
      Returns:
      A list containing the dataLocations.
    • getDataLocationsCount

      public int getDataLocationsCount()
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataLocationsCount in interface Bucket.CustomPlacementConfigOrBuilder
      Returns:
      The count of dataLocations.
    • getDataLocations

      public String getDataLocations(int index)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataLocations in interface Bucket.CustomPlacementConfigOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The dataLocations at the given index.
    • getDataLocationsBytes

      public com.google.protobuf.ByteString getDataLocationsBytes(int index)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDataLocationsBytes in interface Bucket.CustomPlacementConfigOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the dataLocations at the given index.
    • setDataLocations

      public Bucket.CustomPlacementConfig.Builder setDataLocations(int index, String value)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The dataLocations to set.
      Returns:
      This builder for chaining.
    • addDataLocations

      public Bucket.CustomPlacementConfig.Builder addDataLocations(String value)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The dataLocations to add.
      Returns:
      This builder for chaining.
    • addAllDataLocations

      public Bucket.CustomPlacementConfig.Builder addAllDataLocations(Iterable<String> values)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The dataLocations to add.
      Returns:
      This builder for chaining.
    • clearDataLocations

      public Bucket.CustomPlacementConfig.Builder clearDataLocations()
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addDataLocationsBytes

      public Bucket.CustomPlacementConfig.Builder addDataLocationsBytes(com.google.protobuf.ByteString value)
       Optional. List of locations to use for data placement.
       
      repeated string data_locations = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the dataLocations to add.
      Returns:
      This builder for chaining.