Package com.google.storage.control.v2
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Output only.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) Output only.Output only.Output only.Output only.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.Output only.Output only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.getName()Output only.com.google.protobuf.ByteStringOutput only.booleanOutput only.booleanOutput only.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeFrom(StorageLayout other) Output only.final StorageLayout.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Output only.setCustomPlacementConfig(StorageLayout.CustomPlacementConfig.Builder builderForValue) Output only.Output only.setHierarchicalNamespace(StorageLayout.HierarchicalNamespace.Builder builderForValue) Output only.setLocation(String value) Output only.setLocationBytes(com.google.protobuf.ByteString value) Output only.setLocationType(String value) Output only.setLocationTypeBytes(com.google.protobuf.ByteString value) Output only.Output only.setNameBytes(com.google.protobuf.ByteString value) Output only.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) final StorageLayout.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
setField
public StorageLayout.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
setRepeatedField
public StorageLayout.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
addRepeatedField
public StorageLayout.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageLayout.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StorageLayout.Builder>- Throws:
IOException
-
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:
getNamein interfaceStorageLayoutOrBuilder- 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:
getNameBytesin interfaceStorageLayoutOrBuilder- Returns:
- The bytes for name.
-
setName
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
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
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
Output only. The location of the bucket.
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLocationin interfaceStorageLayoutOrBuilder- 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:
getLocationBytesin interfaceStorageLayoutOrBuilder- Returns:
- The bytes for location.
-
setLocation
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
Output only. The location of the bucket.
string location = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setLocationBytes
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
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:
getLocationTypein interfaceStorageLayoutOrBuilder- 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:
getLocationTypeBytesin interfaceStorageLayoutOrBuilder- Returns:
- The bytes for locationType.
-
setLocationType
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
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
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:
hasCustomPlacementConfigin interfaceStorageLayoutOrBuilder- Returns:
- Whether the customPlacementConfig field is set.
-
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:
getCustomPlacementConfigin interfaceStorageLayoutOrBuilder- Returns:
- The customPlacementConfig.
-
setCustomPlacementConfig
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
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
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
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
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:
getCustomPlacementConfigOrBuilderin interfaceStorageLayoutOrBuilder
-
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:
hasHierarchicalNamespacein interfaceStorageLayoutOrBuilder- Returns:
- Whether the hierarchicalNamespace field is set.
-
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:
getHierarchicalNamespacein interfaceStorageLayoutOrBuilder- Returns:
- The hierarchicalNamespace.
-
setHierarchicalNamespace
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
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
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
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
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:
getHierarchicalNamespaceOrBuilderin interfaceStorageLayoutOrBuilder
-
setUnknownFields
public final StorageLayout.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-
mergeUnknownFields
public final StorageLayout.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StorageLayout.Builder>
-