Class Share
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.filestore.v1beta1.Share
-
- All Implemented Interfaces:
ShareOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class Share extends com.google.protobuf.GeneratedMessageV3 implements ShareOrBuilder
A Filestore share.
Protobuf typegoogle.cloud.filestore.v1beta1.Share- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classShare.BuilderA Filestore share.static classShare.SourceCasestatic classShare.StateThe share state.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBACKUP_FIELD_NUMBERstatic intCAPACITY_GB_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intDESCRIPTION_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intMOUNT_NAME_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNFS_EXPORT_OPTIONS_FIELD_NUMBERstatic intSTATE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Resource labels to represent user provided metadata.booleanequals(Object obj)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.static SharegetDefaultInstance()SharegetDefaultInstanceForType()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.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()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.com.google.protobuf.Parser<Share>getParserForType()intgetSerializedSize()Share.SourceCasegetSourceCase()Share.StategetState()Output only.intgetStateValue()Output only.booleanhasBackup()Immutable.booleanhasCreateTime()Output only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static Share.BuildernewBuilder()static Share.BuildernewBuilder(Share prototype)Share.BuildernewBuilderForType()protected Share.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static ShareparseDelimitedFrom(InputStream input)static ShareparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShareparseFrom(byte[] data)static ShareparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShareparseFrom(com.google.protobuf.ByteString data)static ShareparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShareparseFrom(com.google.protobuf.CodedInputStream input)static ShareparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShareparseFrom(InputStream input)static ShareparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static ShareparseFrom(ByteBuffer data)static ShareparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Share>parser()Share.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MOUNT_NAME_FIELD_NUMBER
public static final int MOUNT_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CAPACITY_GB_FIELD_NUMBER
public static final int CAPACITY_GB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NFS_EXPORT_OPTIONS_FIELD_NUMBER
public static final int NFS_EXPORT_OPTIONS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BACKUP_FIELD_NUMBER
public static final int BACKUP_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSourceCase
public Share.SourceCase getSourceCase()
- Specified by:
getSourceCasein interfaceShareOrBuilder
-
getName
public 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];- Specified by:
getNamein interfaceShareOrBuilder- Returns:
- The name.
-
getNameBytes
public 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];- Specified by:
getNameBytesin interfaceShareOrBuilder- Returns:
- The bytes for name.
-
getMountName
public 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;- Specified by:
getMountNamein interfaceShareOrBuilder- Returns:
- The mountName.
-
getMountNameBytes
public 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;- Specified by:
getMountNameBytesin interfaceShareOrBuilder- Returns:
- The bytes for mountName.
-
getDescription
public String getDescription()
A description of the share with 2048 characters or less. Requests with longer descriptions will be rejected.
string description = 3;- Specified by:
getDescriptionin interfaceShareOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public 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;- Specified by:
getDescriptionBytesin interfaceShareOrBuilder- Returns:
- The bytes for description.
-
getCapacityGb
public 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;- Specified by:
getCapacityGbin interfaceShareOrBuilder- Returns:
- The capacityGb.
-
getNfsExportOptionsList
public 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;- Specified by:
getNfsExportOptionsListin interfaceShareOrBuilder
-
getNfsExportOptionsOrBuilderList
public 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;- Specified by:
getNfsExportOptionsOrBuilderListin interfaceShareOrBuilder
-
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 = 5;- Specified by:
getNfsExportOptionsCountin interfaceShareOrBuilder
-
getNfsExportOptions
public 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;- Specified by:
getNfsExportOptionsin interfaceShareOrBuilder
-
getNfsExportOptionsOrBuilder
public 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;- Specified by:
getNfsExportOptionsOrBuilderin interfaceShareOrBuilder
-
getStateValue
public int getStateValue()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceShareOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public Share.State getState()
Output only. The share state.
.google.cloud.filestore.v1beta1.Share.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceShareOrBuilder- Returns:
- The state.
-
hasCreateTime
public boolean hasCreateTime()
Output only. The time when the share was created.
.google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceShareOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public 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];- Specified by:
getCreateTimein interfaceShareOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public 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];- Specified by:
getCreateTimeOrBuilderin interfaceShareOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:ShareOrBuilderResource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsCountin interfaceShareOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
containsLabelsin interfaceShareOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceShareOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsMapin interfaceShareOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsOrDefaultin interfaceShareOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Resource labels to represent user provided metadata.
map<string, string> labels = 8;- Specified by:
getLabelsOrThrowin interfaceShareOrBuilder
-
hasBackup
public 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) = { ... }- Specified by:
hasBackupin interfaceShareOrBuilder- Returns:
- Whether the backup field is set.
-
getBackup
public 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) = { ... }- Specified by:
getBackupin interfaceShareOrBuilder- Returns:
- The backup.
-
getBackupBytes
public 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) = { ... }- Specified by:
getBackupBytesin interfaceShareOrBuilder- Returns:
- The bytes for backup.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Share parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Share parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Share parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Share parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Share parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Share parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Share parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Share.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Share.Builder newBuilder()
-
newBuilder
public static Share.Builder newBuilder(Share prototype)
-
toBuilder
public Share.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Share.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Share getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Share> parser()
-
getParserForType
public com.google.protobuf.Parser<Share> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Share getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-