Class NfsShare
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.baremetalsolution.v2.NfsShare
-
- All Implemented Interfaces:
NfsShareOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class NfsShare extends com.google.protobuf.GeneratedMessageV3 implements NfsShareOrBuilder
An NFS share.
Protobuf typegoogle.cloud.baremetalsolution.v2.NfsShare- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNfsShare.AllowedClientRepresents an 'access point' for the share.static interfaceNfsShare.AllowedClientOrBuilderstatic classNfsShare.BuilderAn NFS share.static classNfsShare.MountPermissionsThe possible mount permissions.static classNfsShare.StateThe possible states for this NFS share.static classNfsShare.StorageTypeThe storage type for a volume.-
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 intALLOWED_CLIENTS_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intLABELS_FIELD_NUMBERstatic intNAME_FIELD_NUMBERstatic intNFS_SHARE_ID_FIELD_NUMBERstatic intREQUESTED_SIZE_GIB_FIELD_NUMBERstatic intSTATE_FIELD_NUMBERstatic intSTORAGE_TYPE_FIELD_NUMBERstatic intVOLUME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsLabels(String key)Labels as key value pairs.booleanequals(Object obj)NfsShare.AllowedClientgetAllowedClients(int index)List of allowed access points.intgetAllowedClientsCount()List of allowed access points.List<NfsShare.AllowedClient>getAllowedClientsList()List of allowed access points.NfsShare.AllowedClientOrBuildergetAllowedClientsOrBuilder(int index)List of allowed access points.List<? extends NfsShare.AllowedClientOrBuilder>getAllowedClientsOrBuilderList()List of allowed access points.static NfsSharegetDefaultInstance()NfsSharegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()StringgetId()Output only.com.google.protobuf.ByteStringgetIdBytes()Output only.Map<String,String>getLabels()Deprecated.intgetLabelsCount()Labels as key value pairs.Map<String,String>getLabelsMap()Labels as key value pairs.StringgetLabelsOrDefault(String key, String defaultValue)Labels as key value pairs.StringgetLabelsOrThrow(String key)Labels as key value pairs.StringgetName()Immutable.com.google.protobuf.ByteStringgetNameBytes()Immutable.StringgetNfsShareId()Output only.com.google.protobuf.ByteStringgetNfsShareIdBytes()Output only.com.google.protobuf.Parser<NfsShare>getParserForType()longgetRequestedSizeGib()The requested size, in GiB.intgetSerializedSize()NfsShare.StategetState()Output only.intgetStateValue()Output only.NfsShare.StorageTypegetStorageType()Immutable.intgetStorageTypeValue()Immutable.StringgetVolume()Output only.com.google.protobuf.ByteStringgetVolumeBytes()Output only.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)booleanisInitialized()static NfsShare.BuildernewBuilder()static NfsShare.BuildernewBuilder(NfsShare prototype)NfsShare.BuildernewBuilderForType()protected NfsShare.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static NfsShareparseDelimitedFrom(InputStream input)static NfsShareparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NfsShareparseFrom(byte[] data)static NfsShareparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NfsShareparseFrom(com.google.protobuf.ByteString data)static NfsShareparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NfsShareparseFrom(com.google.protobuf.CodedInputStream input)static NfsShareparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NfsShareparseFrom(InputStream input)static NfsShareparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static NfsShareparseFrom(ByteBuffer data)static NfsShareparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<NfsShare>parser()NfsShare.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
-
NFS_SHARE_ID_FIELD_NUMBER
public static final int NFS_SHARE_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VOLUME_FIELD_NUMBER
public static final int VOLUME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOWED_CLIENTS_FIELD_NUMBER
public static final int ALLOWED_CLIENTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REQUESTED_SIZE_GIB_FIELD_NUMBER
public static final int REQUESTED_SIZE_GIB_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STORAGE_TYPE_FIELD_NUMBER
public static final int STORAGE_TYPE_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
-
getName
public String getName()
Immutable. The name of the NFS share.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceNfsShareOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
Immutable. The name of the NFS share.
string name = 1 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceNfsShareOrBuilder- Returns:
- The bytes for name.
-
getNfsShareId
public String getNfsShareId()
Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use `id` instead.
string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNfsShareIdin interfaceNfsShareOrBuilder- Returns:
- The nfsShareId.
-
getNfsShareIdBytes
public com.google.protobuf.ByteString getNfsShareIdBytes()
Output only. An identifier for the NFS share, generated by the backend. This field will be deprecated in the future, use `id` instead.
string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getNfsShareIdBytesin interfaceNfsShareOrBuilder- Returns:
- The bytes for nfsShareId.
-
getId
public String getId()
Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdin interfaceNfsShareOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()
Output only. An identifier for the NFS share, generated by the backend. This is the same value as nfs_share_id and will replace it in the future.
string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getIdBytesin interfaceNfsShareOrBuilder- Returns:
- The bytes for id.
-
getStateValue
public int getStateValue()
Output only. The state of the NFS share.
.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceNfsShareOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
getState
public NfsShare.State getState()
Output only. The state of the NFS share.
.google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceNfsShareOrBuilder- Returns:
- The state.
-
getVolume
public String getVolume()
Output only. The underlying volume of the share. Created automatically during provisioning.
string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getVolumein interfaceNfsShareOrBuilder- Returns:
- The volume.
-
getVolumeBytes
public com.google.protobuf.ByteString getVolumeBytes()
Output only. The underlying volume of the share. Created automatically during provisioning.
string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }- Specified by:
getVolumeBytesin interfaceNfsShareOrBuilder- Returns:
- The bytes for volume.
-
getAllowedClientsList
public List<NfsShare.AllowedClient> getAllowedClientsList()
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;- Specified by:
getAllowedClientsListin interfaceNfsShareOrBuilder
-
getAllowedClientsOrBuilderList
public List<? extends NfsShare.AllowedClientOrBuilder> getAllowedClientsOrBuilderList()
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;- Specified by:
getAllowedClientsOrBuilderListin interfaceNfsShareOrBuilder
-
getAllowedClientsCount
public int getAllowedClientsCount()
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;- Specified by:
getAllowedClientsCountin interfaceNfsShareOrBuilder
-
getAllowedClients
public NfsShare.AllowedClient getAllowedClients(int index)
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;- Specified by:
getAllowedClientsin interfaceNfsShareOrBuilder
-
getAllowedClientsOrBuilder
public NfsShare.AllowedClientOrBuilder getAllowedClientsOrBuilder(int index)
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;- Specified by:
getAllowedClientsOrBuilderin interfaceNfsShareOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NfsShareOrBuilderLabels as key value pairs.
map<string, string> labels = 6;- Specified by:
getLabelsCountin interfaceNfsShareOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 6;- Specified by:
containsLabelsin interfaceNfsShareOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceNfsShareOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 6;- Specified by:
getLabelsMapin interfaceNfsShareOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 6;- Specified by:
getLabelsOrDefaultin interfaceNfsShareOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 6;- Specified by:
getLabelsOrThrowin interfaceNfsShareOrBuilder
-
getRequestedSizeGib
public long getRequestedSizeGib()
The requested size, in GiB.
int64 requested_size_gib = 7;- Specified by:
getRequestedSizeGibin interfaceNfsShareOrBuilder- Returns:
- The requestedSizeGib.
-
getStorageTypeValue
public int getStorageTypeValue()
Immutable. The storage type of the underlying volume.
.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getStorageTypeValuein interfaceNfsShareOrBuilder- Returns:
- The enum numeric value on the wire for storageType.
-
getStorageType
public NfsShare.StorageType getStorageType()
Immutable. The storage type of the underlying volume.
.google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];- Specified by:
getStorageTypein interfaceNfsShareOrBuilder- Returns:
- The storageType.
-
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 NfsShare parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static NfsShare parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NfsShare parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NfsShare parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static NfsShare parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static NfsShare parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static NfsShare parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public NfsShare.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static NfsShare.Builder newBuilder()
-
newBuilder
public static NfsShare.Builder newBuilder(NfsShare prototype)
-
toBuilder
public NfsShare.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NfsShare.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static NfsShare getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<NfsShare> parser()
-
getParserForType
public com.google.protobuf.Parser<NfsShare> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NfsShare getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-