Class 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 type google.cloud.baremetalsolution.v2.NfsShare
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.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 class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        Returns:
        The bytes for volume.
      • getAllowedClientsCount

        public int getAllowedClientsCount()
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
        Specified by:
        getAllowedClientsCount in interface NfsShareOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 6;
        Specified by:
        containsLabels in interface NfsShareOrBuilder
      • getRequestedSizeGib

        public long getRequestedSizeGib()
         The requested size, in GiB.
         
        int64 requested_size_gib = 7;
        Specified by:
        getRequestedSizeGib in interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        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 interface NfsShareOrBuilder
        Returns:
        The storageType.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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​(com.google.protobuf.CodedInputStream input,
                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                  throws IOException
        Throws:
        IOException
      • newBuilderForType

        public NfsShare.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public NfsShare.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected NfsShare.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.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 interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public NfsShare getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder