Class StorageLayout.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
com.google.storage.control.v2.StorageLayout.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, StorageLayoutOrBuilder, Cloneable
Enclosing class:
StorageLayout

public static final class StorageLayout.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder> implements StorageLayoutOrBuilder
 The storage layout configuration of a bucket.
 
Protobuf type google.storage.control.v2.StorageLayout
  • Method Details

    • getDescriptor

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

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

      public StorageLayout.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.GeneratedMessageV3.Builder<StorageLayout.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.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • getDefaultInstanceForType

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

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

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

      public StorageLayout.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • setField

      public StorageLayout.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • clearField

      public StorageLayout.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • clearOneof

      public StorageLayout.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • setRepeatedField

      public StorageLayout.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • addRepeatedField

      public StorageLayout.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • mergeFrom

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

      public StorageLayout.Builder mergeFrom(StorageLayout other)
    • isInitialized

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

      public StorageLayout.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<StorageLayout.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The name of the StorageLayout resource.
       Format: `projects/{project}/buckets/{bucket}/storageLayout`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface StorageLayoutOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the StorageLayout resource.
       Format: `projects/{project}/buckets/{bucket}/storageLayout`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface StorageLayoutOrBuilder
      Returns:
      The bytes for name.
    • setName

      public StorageLayout.Builder setName(String value)
       Output only. The name of the StorageLayout resource.
       Format: `projects/{project}/buckets/{bucket}/storageLayout`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public StorageLayout.Builder clearName()
       Output only. The name of the StorageLayout resource.
       Format: `projects/{project}/buckets/{bucket}/storageLayout`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public StorageLayout.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the StorageLayout resource.
       Format: `projects/{project}/buckets/{bucket}/storageLayout`
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getLocation

      public String getLocation()
       Output only. The location of the bucket.
       
      string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocation in interface StorageLayoutOrBuilder
      Returns:
      The location.
    • getLocationBytes

      public com.google.protobuf.ByteString getLocationBytes()
       Output only. The location of the bucket.
       
      string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationBytes in interface StorageLayoutOrBuilder
      Returns:
      The bytes for location.
    • setLocation

      public StorageLayout.Builder setLocation(String value)
       Output only. The location of the bucket.
       
      string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The location to set.
      Returns:
      This builder for chaining.
    • clearLocation

      public StorageLayout.Builder clearLocation()
       Output only. The location of the bucket.
       
      string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationBytes

      public StorageLayout.Builder setLocationBytes(com.google.protobuf.ByteString value)
       Output only. The location of the bucket.
       
      string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for location to set.
      Returns:
      This builder for chaining.
    • getLocationType

      public String getLocationType()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationType in interface StorageLayoutOrBuilder
      Returns:
      The locationType.
    • getLocationTypeBytes

      public com.google.protobuf.ByteString getLocationTypeBytes()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getLocationTypeBytes in interface StorageLayoutOrBuilder
      Returns:
      The bytes for locationType.
    • setLocationType

      public StorageLayout.Builder setLocationType(String value)
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The locationType to set.
      Returns:
      This builder for chaining.
    • clearLocationType

      public StorageLayout.Builder clearLocationType()
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setLocationTypeBytes

      public StorageLayout.Builder setLocationTypeBytes(com.google.protobuf.ByteString value)
       Output only. The location type of the bucket (region, dual-region,
       multi-region, etc).
       
      string location_type = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for locationType to set.
      Returns:
      This builder for chaining.
    • hasCustomPlacementConfig

      public boolean hasCustomPlacementConfig()
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCustomPlacementConfig in interface StorageLayoutOrBuilder
      Returns:
      Whether the customPlacementConfig field is set.
    • getCustomPlacementConfig

      public StorageLayout.CustomPlacementConfig getCustomPlacementConfig()
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCustomPlacementConfig in interface StorageLayoutOrBuilder
      Returns:
      The customPlacementConfig.
    • setCustomPlacementConfig

      public StorageLayout.Builder setCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCustomPlacementConfig

      public StorageLayout.Builder setCustomPlacementConfig(StorageLayout.CustomPlacementConfig.Builder builderForValue)
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCustomPlacementConfig

      public StorageLayout.Builder mergeCustomPlacementConfig(StorageLayout.CustomPlacementConfig value)
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCustomPlacementConfig

      public StorageLayout.Builder clearCustomPlacementConfig()
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCustomPlacementConfigBuilder

      public StorageLayout.CustomPlacementConfig.Builder getCustomPlacementConfigBuilder()
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCustomPlacementConfigOrBuilder

      public StorageLayout.CustomPlacementConfigOrBuilder getCustomPlacementConfigOrBuilder()
       Output only. The data placement configuration for custom dual region. If
       there is no configuration, this is not a custom dual region bucket.
       
      .google.storage.control.v2.StorageLayout.CustomPlacementConfig custom_placement_config = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCustomPlacementConfigOrBuilder in interface StorageLayoutOrBuilder
    • hasHierarchicalNamespace

      public boolean hasHierarchicalNamespace()
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasHierarchicalNamespace in interface StorageLayoutOrBuilder
      Returns:
      Whether the hierarchicalNamespace field is set.
    • getHierarchicalNamespace

      public StorageLayout.HierarchicalNamespace getHierarchicalNamespace()
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHierarchicalNamespace in interface StorageLayoutOrBuilder
      Returns:
      The hierarchicalNamespace.
    • setHierarchicalNamespace

      public StorageLayout.Builder setHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setHierarchicalNamespace

      public StorageLayout.Builder setHierarchicalNamespace(StorageLayout.HierarchicalNamespace.Builder builderForValue)
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeHierarchicalNamespace

      public StorageLayout.Builder mergeHierarchicalNamespace(StorageLayout.HierarchicalNamespace value)
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearHierarchicalNamespace

      public StorageLayout.Builder clearHierarchicalNamespace()
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHierarchicalNamespaceBuilder

      public StorageLayout.HierarchicalNamespace.Builder getHierarchicalNamespaceBuilder()
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getHierarchicalNamespaceOrBuilder

      public StorageLayout.HierarchicalNamespaceOrBuilder getHierarchicalNamespaceOrBuilder()
       Output only. The bucket's hierarchical namespace configuration. If there is
       no configuration, the hierarchical namespace is disabled.
       
      .google.storage.control.v2.StorageLayout.HierarchicalNamespace hierarchical_namespace = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getHierarchicalNamespaceOrBuilder in interface StorageLayoutOrBuilder
    • setUnknownFields

      public final StorageLayout.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
    • mergeUnknownFields

      public final StorageLayout.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>