Class VolumeConfig

  • All Implemented Interfaces:
    VolumeConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class VolumeConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements VolumeConfigOrBuilder
     Configuration parameters for a new volume.
     
    Protobuf type google.cloud.baremetalsolution.v2.VolumeConfig
    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()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • getName

        public String getName()
         Output only. The name of the volume config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface VolumeConfigOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The name of the volume config.
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for name.
      • getId

        public String getId()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getId in interface VolumeConfigOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         A transient unique identifier to identify a volume within an
         ProvisioningConfig request.
         
        string id = 2;
        Specified by:
        getIdBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for id.
      • getSnapshotsEnabled

        public boolean getSnapshotsEnabled()
         Whether snapshots should be enabled.
         
        bool snapshots_enabled = 3;
        Specified by:
        getSnapshotsEnabled in interface VolumeConfigOrBuilder
        Returns:
        The snapshotsEnabled.
      • getTypeValue

        public int getTypeValue()
         The type of this Volume.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Type type = 4;
        Specified by:
        getTypeValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • getProtocolValue

        public int getProtocolValue()
         Volume protocol.
         
        .google.cloud.baremetalsolution.v2.VolumeConfig.Protocol protocol = 5;
        Specified by:
        getProtocolValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • getSizeGb

        public int getSizeGb()
         The requested size of this volume, in GB.
         
        int32 size_gb = 6;
        Specified by:
        getSizeGb in interface VolumeConfigOrBuilder
        Returns:
        The sizeGb.
      • getLunRangesCount

        public int getLunRangesCount()
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
        Specified by:
        getLunRangesCount in interface VolumeConfigOrBuilder
      • getLunRanges

        public VolumeConfig.LunRange getLunRanges​(int index)
         LUN ranges to be configured. Set only when protocol is PROTOCOL_FC.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.LunRange lun_ranges = 7;
        Specified by:
        getLunRanges in interface VolumeConfigOrBuilder
      • getMachineIdsList

        public com.google.protobuf.ProtocolStringList getMachineIdsList()
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsList in interface VolumeConfigOrBuilder
        Returns:
        A list containing the machineIds.
      • getMachineIdsCount

        public int getMachineIdsCount()
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsCount in interface VolumeConfigOrBuilder
        Returns:
        The count of machineIds.
      • getMachineIds

        public String getMachineIds​(int index)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIds in interface VolumeConfigOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The machineIds at the given index.
      • getMachineIdsBytes

        public com.google.protobuf.ByteString getMachineIdsBytes​(int index)
         Machine ids connected to this volume. Set only when protocol is
         PROTOCOL_FC.
         
        repeated string machine_ids = 8;
        Specified by:
        getMachineIdsBytes in interface VolumeConfigOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the machineIds at the given index.
      • getNfsExportsCount

        public int getNfsExportsCount()
         NFS exports. Set only when protocol is PROTOCOL_NFS.
         
        repeated .google.cloud.baremetalsolution.v2.VolumeConfig.NfsExport nfs_exports = 9;
        Specified by:
        getNfsExportsCount in interface VolumeConfigOrBuilder
      • getUserNote

        public String getUserNote()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Specified by:
        getUserNote in interface VolumeConfigOrBuilder
        Returns:
        The userNote.
      • getUserNoteBytes

        public com.google.protobuf.ByteString getUserNoteBytes()
         User note field, it can be used by customers to add additional information
         for the BMS Ops team .
         
        string user_note = 10;
        Specified by:
        getUserNoteBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for userNote.
      • getGcpService

        public String getGcpService()
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Specified by:
        getGcpService in interface VolumeConfigOrBuilder
        Returns:
        The gcpService.
      • getGcpServiceBytes

        public com.google.protobuf.ByteString getGcpServiceBytes()
         The GCP service of the storage volume. Available gcp_service are in
         https://cloud.google.com/bare-metal/docs/bms-planning.
         
        string gcp_service = 11;
        Specified by:
        getGcpServiceBytes in interface VolumeConfigOrBuilder
        Returns:
        The bytes for gcpService.
      • getPerformanceTierValue

        public int getPerformanceTierValue()
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Specified by:
        getPerformanceTierValue in interface VolumeConfigOrBuilder
        Returns:
        The enum numeric value on the wire for performanceTier.
      • getPerformanceTier

        public VolumePerformanceTier getPerformanceTier()
         Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 12;
        Specified by:
        getPerformanceTier in interface VolumeConfigOrBuilder
        Returns:
        The performanceTier.
      • 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 VolumeConfig parseFrom​(ByteBuffer data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(ByteBuffer data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(com.google.protobuf.ByteString data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(com.google.protobuf.ByteString data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(byte[] data)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(byte[] data,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VolumeConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                      throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected VolumeConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static VolumeConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<VolumeConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<VolumeConfig> 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 VolumeConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder