Class NewBucketConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NewBucketConfig.Builder>
com.google.cloud.hypercomputecluster.v1.NewBucketConfig.Builder
- All Implemented Interfaces:
NewBucketConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- NewBucketConfig
public static final class NewBucketConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<NewBucketConfig.Builder>
implements NewBucketConfigOrBuilder
When set in a [StorageResourceConfig][google.cloud.hypercomputecluster.v1.StorageResourceConfig], indicates that a new [Google Cloud Storage](https://cloud.google.com/storage) bucket should be created.Protobuf type
google.cloud.hypercomputecluster.v1.NewBucketConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Required.Optional.Optional.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.Optional.Optional.Optional.intOptional.booleanOptional.booleanOptional.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeAutoclass(GcsAutoclassConfig value) Optional.mergeFrom(NewBucketConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setAutoclass(GcsAutoclassConfig value) Optional.setAutoclass(GcsAutoclassConfig.Builder builderForValue) Optional.Required.setBucketBytes(com.google.protobuf.ByteString value) Required.Optional.setHierarchicalNamespace(GcsHierarchicalNamespaceConfig.Builder builderForValue) Optional.Optional.setStorageClassValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<NewBucketConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<NewBucketConfig.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.GeneratedMessage.Builder<NewBucketConfig.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
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<NewBucketConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<NewBucketConfig.Builder>
-
mergeFrom
public NewBucketConfig.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<NewBucketConfig.Builder>- Throws:
IOException
-
getOptionCase
- Specified by:
getOptionCasein interfaceNewBucketConfigOrBuilder
-
clearOption
-
hasAutoclass
public boolean hasAutoclass()Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasAutoclassin interfaceNewBucketConfigOrBuilder- Returns:
- Whether the autoclass field is set.
-
getAutoclass
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getAutoclassin interfaceNewBucketConfigOrBuilder- Returns:
- The autoclass.
-
setAutoclass
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
setAutoclass
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
mergeAutoclass
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
clearAutoclass
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
getAutoclassBuilder
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
getAutoclassOrBuilder
Optional. Immutable. If set, indicates that the bucket should use [Autoclass](https://cloud.google.com/storage/docs/autoclass).
.google.cloud.hypercomputecluster.v1.GcsAutoclassConfig autoclass = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getAutoclassOrBuilderin interfaceNewBucketConfigOrBuilder
-
hasStorageClass
public boolean hasStorageClass()Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasStorageClassin interfaceNewBucketConfigOrBuilder- Returns:
- Whether the storageClass field is set.
-
getStorageClassValue
public int getStorageClassValue()Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getStorageClassValuein interfaceNewBucketConfigOrBuilder- Returns:
- The enum numeric value on the wire for storageClass.
-
setStorageClassValue
Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The enum numeric value on the wire for storageClass to set.- Returns:
- This builder for chaining.
-
getStorageClass
Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getStorageClassin interfaceNewBucketConfigOrBuilder- Returns:
- The storageClass.
-
setStorageClass
Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Parameters:
value- The storageClass to set.- Returns:
- This builder for chaining.
-
clearStorageClass
Optional. Immutable. If set, uses the provided storage class as the bucket's default storage class.
.google.cloud.hypercomputecluster.v1.NewBucketConfig.StorageClass storage_class = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Returns:
- This builder for chaining.
-
getBucket
Required. Immutable. Name of the Cloud Storage bucket to create.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBucketin interfaceNewBucketConfigOrBuilder- Returns:
- The bucket.
-
getBucketBytes
public com.google.protobuf.ByteString getBucketBytes()Required. Immutable. Name of the Cloud Storage bucket to create.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Specified by:
getBucketBytesin interfaceNewBucketConfigOrBuilder- Returns:
- The bytes for bucket.
-
setBucket
Required. Immutable. Name of the Cloud Storage bucket to create.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bucket to set.- Returns:
- This builder for chaining.
-
clearBucket
Required. Immutable. Name of the Cloud Storage bucket to create.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setBucketBytes
Required. Immutable. Name of the Cloud Storage bucket to create.
string bucket = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for bucket to set.- Returns:
- This builder for chaining.
-
hasHierarchicalNamespace
public boolean hasHierarchicalNamespace()Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
hasHierarchicalNamespacein interfaceNewBucketConfigOrBuilder- Returns:
- Whether the hierarchicalNamespace field is set.
-
getHierarchicalNamespace
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHierarchicalNamespacein interfaceNewBucketConfigOrBuilder- Returns:
- The hierarchicalNamespace.
-
setHierarchicalNamespace
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
setHierarchicalNamespace
public NewBucketConfig.Builder setHierarchicalNamespace(GcsHierarchicalNamespaceConfig.Builder builderForValue) Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
mergeHierarchicalNamespace
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
clearHierarchicalNamespace
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
getHierarchicalNamespaceBuilder
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE]; -
getHierarchicalNamespaceOrBuilder
Optional. Immutable. If set, indicates that the bucket should use [hierarchical namespaces](https://cloud.google.com/storage/docs/hns-overview).
.google.cloud.hypercomputecluster.v1.GcsHierarchicalNamespaceConfig hierarchical_namespace = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getHierarchicalNamespaceOrBuilderin interfaceNewBucketConfigOrBuilder
-