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 class
NfsShare.AllowedClient
Represents an 'access point' for the share.static interface
NfsShare.AllowedClientOrBuilder
static class
NfsShare.Builder
An NFS share.static class
NfsShare.MountPermissions
The possible mount permissions.static class
NfsShare.State
The possible states for this NFS share.static class
NfsShare.StorageType
The 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 int
ALLOWED_CLIENTS_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
LABELS_FIELD_NUMBER
static int
NAME_FIELD_NUMBER
static int
NFS_SHARE_ID_FIELD_NUMBER
static int
REQUESTED_SIZE_GIB_FIELD_NUMBER
static int
STATE_FIELD_NUMBER
static int
STORAGE_TYPE_FIELD_NUMBER
static int
VOLUME_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
containsLabels(String key)
Labels as key value pairs.boolean
equals(Object obj)
NfsShare.AllowedClient
getAllowedClients(int index)
List of allowed access points.int
getAllowedClientsCount()
List of allowed access points.List<NfsShare.AllowedClient>
getAllowedClientsList()
List of allowed access points.NfsShare.AllowedClientOrBuilder
getAllowedClientsOrBuilder(int index)
List of allowed access points.List<? extends NfsShare.AllowedClientOrBuilder>
getAllowedClientsOrBuilderList()
List of allowed access points.static NfsShare
getDefaultInstance()
NfsShare
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
String
getId()
Output only.com.google.protobuf.ByteString
getIdBytes()
Output only.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
Labels as key value pairs.Map<String,String>
getLabelsMap()
Labels as key value pairs.String
getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.String
getLabelsOrThrow(String key)
Labels as key value pairs.String
getName()
Immutable.com.google.protobuf.ByteString
getNameBytes()
Immutable.String
getNfsShareId()
Output only.com.google.protobuf.ByteString
getNfsShareIdBytes()
Output only.com.google.protobuf.Parser<NfsShare>
getParserForType()
long
getRequestedSizeGib()
The requested size, in GiB.int
getSerializedSize()
NfsShare.State
getState()
Output only.int
getStateValue()
Output only.NfsShare.StorageType
getStorageType()
Immutable.int
getStorageTypeValue()
Immutable.String
getVolume()
Output only.com.google.protobuf.ByteString
getVolumeBytes()
Output only.int
hashCode()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
boolean
isInitialized()
static NfsShare.Builder
newBuilder()
static NfsShare.Builder
newBuilder(NfsShare prototype)
NfsShare.Builder
newBuilderForType()
protected NfsShare.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static NfsShare
parseDelimitedFrom(InputStream input)
static NfsShare
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NfsShare
parseFrom(byte[] data)
static NfsShare
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NfsShare
parseFrom(com.google.protobuf.ByteString data)
static NfsShare
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NfsShare
parseFrom(com.google.protobuf.CodedInputStream input)
static NfsShare
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NfsShare
parseFrom(InputStream input)
static NfsShare
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static NfsShare
parseFrom(ByteBuffer data)
static NfsShare
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<NfsShare>
parser()
NfsShare.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in 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:
getName
in 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:
getNameBytes
in 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:
getNfsShareId
in 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:
getNfsShareIdBytes
in 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:
getId
in 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:
getIdBytes
in 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:
getStateValue
in 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:
getState
in 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:
getVolume
in 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:
getVolumeBytes
in 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:
getAllowedClientsList
in 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:
getAllowedClientsOrBuilderList
in interfaceNfsShareOrBuilder
-
getAllowedClientsCount
public int getAllowedClientsCount()
List of allowed access points.
repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
- Specified by:
getAllowedClientsCount
in 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:
getAllowedClients
in 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:
getAllowedClientsOrBuilder
in interfaceNfsShareOrBuilder
-
getLabelsCount
public int getLabelsCount()
Description copied from interface:NfsShareOrBuilder
Labels as key value pairs.
map<string, string> labels = 6;
- Specified by:
getLabelsCount
in interfaceNfsShareOrBuilder
-
containsLabels
public boolean containsLabels(String key)
Labels as key value pairs.
map<string, string> labels = 6;
- Specified by:
containsLabels
in interfaceNfsShareOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in interfaceNfsShareOrBuilder
-
getLabelsMap
public Map<String,String> getLabelsMap()
Labels as key value pairs.
map<string, string> labels = 6;
- Specified by:
getLabelsMap
in interfaceNfsShareOrBuilder
-
getLabelsOrDefault
public String getLabelsOrDefault(String key, String defaultValue)
Labels as key value pairs.
map<string, string> labels = 6;
- Specified by:
getLabelsOrDefault
in interfaceNfsShareOrBuilder
-
getLabelsOrThrow
public String getLabelsOrThrow(String key)
Labels as key value pairs.
map<string, string> labels = 6;
- Specified by:
getLabelsOrThrow
in interfaceNfsShareOrBuilder
-
getRequestedSizeGib
public long getRequestedSizeGib()
The requested size, in GiB.
int64 requested_size_gib = 7;
- Specified by:
getRequestedSizeGib
in 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:
getStorageTypeValue
in 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:
getStorageType
in interfaceNfsShareOrBuilder
- Returns:
- The storageType.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected NfsShare.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public NfsShare getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-