Interface ShareOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Share,Share.Builder
public interface ShareOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Resource labels to represent user provided metadata.StringgetBackup()Immutable.com.google.protobuf.ByteStringgetBackupBytes()Immutable.longgetCapacityGb()File share capacity in gigabytes (GB).com.google.protobuf.TimestampgetCreateTime()Output only.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()Output only.StringgetDescription()A description of the share with 2048 characters or less.com.google.protobuf.ByteStringgetDescriptionBytes()A description of the share with 2048 characters or less.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Resource labels to represent user provided metadata.Map<String,String>getLabelsMap()Resource labels to represent user provided metadata.StringgetLabelsOrDefault(String key, String defaultValue)Resource labels to represent user provided metadata.StringgetLabelsOrThrow(String key)Resource labels to represent user provided metadata.StringgetMountName()The mount name of the share.com.google.protobuf.ByteStringgetMountNameBytes()The mount name of the share.StringgetName()Output only.com.google.protobuf.ByteStringgetNameBytes()Output only.NfsExportOptionsgetNfsExportOptions(int index)Nfs Export Options.intgetNfsExportOptionsCount()Nfs Export Options.List<NfsExportOptions>getNfsExportOptionsList()Nfs Export Options.NfsExportOptionsOrBuildergetNfsExportOptionsOrBuilder(int index)Nfs Export Options.List<? extends NfsExportOptionsOrBuilder>getNfsExportOptionsOrBuilderList()Nfs Export Options.Share.SourceCasegetSourceCase()Share.StategetState()Output only.intgetStateValue()Output only.booleanhasBackup()Immutable.booleanhasCreateTime()Output only.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getName
String getName()
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The name.
-
getNameBytes
com.google.protobuf.ByteString getNameBytes()
Output only. The resource name of the share, in the format `projects/{project_id}/locations/{location_id}/instances/{instance_id}/shares/{share_id}`.string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The bytes for name.
-
getMountName
String getMountName()
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Returns:
- The mountName.
-
getMountNameBytes
com.google.protobuf.ByteString getMountNameBytes()
The mount name of the share. Must be 63 characters or less and consist of uppercase or lowercase letters, numbers, and underscores.
string mount_name = 2;- Returns:
- The bytes for mountName.
-
getDescription
String getDescription()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Returns:
- The description.
-
getDescriptionBytes
com.google.protobuf.ByteString getDescriptionBytes()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Returns:
- The bytes for description.
-
getCapacityGb
long getCapacityGb()
File share capacity in gigabytes (GB). Filestore defines 1 GB as 1024^3 bytes. Must be greater than 0.
int64 capacity_gb = 4;- Returns:
- The capacityGb.
-
getNfsExportOptionsList
List<NfsExportOptions> getNfsExportOptionsList()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptions
NfsExportOptions getNfsExportOptions(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptionsCount
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 = 5;
-
getNfsExportOptionsOrBuilderList
List<? extends NfsExportOptionsOrBuilder> getNfsExportOptionsOrBuilderList()
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getNfsExportOptionsOrBuilder
NfsExportOptionsOrBuilder getNfsExportOptionsOrBuilder(int index)
Nfs Export Options. There is a limit of 10 export options per file share.
repeated .google.cloud.filestore.v1beta1.NfsExportOptions nfs_export_options = 5;
-
getStateValue
int getStateValue()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The enum numeric value on the wire for state.
-
getState
Share.State getState()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The state.
-
hasCreateTime
boolean hasCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
com.google.protobuf.Timestamp getCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
-
getLabelsCount
int getLabelsCount()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
containsLabels
boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
getLabels
@Deprecated Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.
-
getLabelsMap
Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
getLabelsOrDefault
String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
getLabelsOrThrow
String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;
-
hasBackup
boolean hasBackup()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- Whether the backup field is set.
-
getBackup
String getBackup()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The backup.
-
getBackupBytes
com.google.protobuf.ByteString getBackupBytes()
Immutable. Full name of the Cloud Filestore Backup resource that this Share is restored from, in the format of projects/{project_id}/locations/{location_id}/backups/{backup_id}. Empty, if the Share is created from scratch and not restored from a backup.string backup = 9 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }- Returns:
- The bytes for backup.
-
getSourceCase
Share.SourceCase getSourceCase()
-
-