Class FileShareConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FileShareConfig.Builder>
com.google.cloud.filestore.v1beta1.FileShareConfig.Builder
- All Implemented Interfaces:
FileShareConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- FileShareConfig
public static final class FileShareConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<FileShareConfig.Builder>
implements FileShareConfigOrBuilder
File share configuration for the instance.Protobuf type
google.cloud.filestore.v1beta1.FileShareConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllNfsExportOptions(Iterable<? extends NfsExportOptions> values) Nfs Export Options.addNfsExportOptions(int index, NfsExportOptions value) Nfs Export Options.addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue) Nfs Export Options.Nfs Export Options.addNfsExportOptions(NfsExportOptions.Builder builderForValue) Nfs Export Options.Nfs Export Options.addNfsExportOptionsBuilder(int index) Nfs Export Options.build()clear()File share capacity in gigabytes (GB).Required.Nfs Export Options.The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.longFile share capacity in gigabytes (GB).static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.getNfsExportOptions(int index) Nfs Export Options.getNfsExportOptionsBuilder(int index) Nfs Export Options.Nfs Export Options.intNfs Export Options.Nfs Export Options.getNfsExportOptionsOrBuilder(int index) Nfs Export Options.List<? extends NfsExportOptionsOrBuilder>Nfs Export Options.The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.com.google.protobuf.ByteStringThe resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.booleanThe resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(FileShareConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeNfsExportOptions(int index) Nfs Export Options.setCapacityGb(long value) File share capacity in gigabytes (GB).Required.setNameBytes(com.google.protobuf.ByteString value) Required.setNfsExportOptions(int index, NfsExportOptions value) Nfs Export Options.setNfsExportOptions(int index, NfsExportOptions.Builder builderForValue) Nfs Export Options.setSourceBackup(String value) The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.setSourceBackupBytes(com.google.protobuf.ByteString value) The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.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<FileShareConfig.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<FileShareConfig.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<FileShareConfig.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<FileShareConfig.Builder>
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<FileShareConfig.Builder>
-
mergeFrom
public FileShareConfig.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<FileShareConfig.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceFileShareConfigOrBuilder
-
clearSource
-
getName
Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
string name = 1;- Specified by:
getNamein interfaceFileShareConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
string name = 1;- Specified by:
getNameBytesin interfaceFileShareConfigOrBuilder- Returns:
- The bytes for name.
-
setName
Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
Required. The name of the file share. Must use 1-16 characters for the basic service tier and 1-63 characters for all other service tiers. Must use lowercase letters, numbers, or underscores `[a-z0-9_]`. Must start with a letter. Immutable.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getCapacityGb
public long getCapacityGb()File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
int64 capacity_gb = 2;- Specified by:
getCapacityGbin interfaceFileShareConfigOrBuilder- Returns:
- The capacityGb.
-
setCapacityGb
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
int64 capacity_gb = 2;- Parameters:
value- The capacityGb to set.- Returns:
- This builder for chaining.
-
clearCapacityGb
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes.
int64 capacity_gb = 2;- Returns:
- This builder for chaining.
-
hasSourceBackup
public boolean hasSourceBackup()The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Specified by:
hasSourceBackupin interfaceFileShareConfigOrBuilder- Returns:
- Whether the sourceBackup field is set.
-
getSourceBackup
The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Specified by:
getSourceBackupin interfaceFileShareConfigOrBuilder- Returns:
- The sourceBackup.
-
getSourceBackupBytes
public com.google.protobuf.ByteString getSourceBackupBytes()The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Specified by:
getSourceBackupBytesin interfaceFileShareConfigOrBuilder- Returns:
- The bytes for sourceBackup.
-
setSourceBackup
The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Parameters:
value- The sourceBackup to set.- Returns:
- This builder for chaining.
-
clearSourceBackup
The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setSourceBackupBytes
The resource name of the backup, in the format `projects/{project_id}/locations/{location_id}/backups/{backup_id}`, that this file share has been restored from.string source_backup = 9 [(.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for sourceBackup to set.- Returns:
- This builder for chaining.
-
getNfsExportOptionsList
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;- Specified by:
getNfsExportOptionsListin interfaceFileShareConfigOrBuilder
-
getNfsExportOptionsCount
public int getNfsExportOptionsCount()Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;- Specified by:
getNfsExportOptionsCountin interfaceFileShareConfigOrBuilder
-
getNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;- Specified by:
getNfsExportOptionsin interfaceFileShareConfigOrBuilder
-
setNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
setNfsExportOptions
public FileShareConfig.Builder setNfsExportOptions(int index, NfsExportOptions.Builder builderForValue) Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addNfsExportOptions
public FileShareConfig.Builder addNfsExportOptions(int index, NfsExportOptions.Builder builderForValue) Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addAllNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
clearNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
removeNfsExportOptions
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
getNfsExportOptionsBuilder
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
getNfsExportOptionsOrBuilder
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;- Specified by:
getNfsExportOptionsOrBuilderin interfaceFileShareConfigOrBuilder
-
getNfsExportOptionsOrBuilderList
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;- Specified by:
getNfsExportOptionsOrBuilderListin interfaceFileShareConfigOrBuilder
-
addNfsExportOptionsBuilder
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
addNfsExportOptionsBuilder
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8; -
getNfsExportOptionsBuilderList
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 8;
-