Class Volume.Builder

  • All Implemented Interfaces:
    VolumeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Volume

    public static final class Volume.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
    implements VolumeOrBuilder
     A storage volume.
     
    Protobuf type google.cloud.baremetalsolution.v2.Volume
    • Method Detail

      • 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.Builder<Volume.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clear

        public Volume.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • getDefaultInstanceForType

        public Volume getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Volume build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Volume buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Volume.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setField

        public Volume.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearField

        public Volume.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • clearOneof

        public Volume.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • setRepeatedField

        public Volume.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • addRepeatedField

        public Volume.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • mergeFrom

        public Volume.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Volume.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • mergeFrom

        public Volume.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Volume.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Output only. The resource name of this `Volume`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/volumes/{volume}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getName in interface VolumeOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Output only. The resource name of this `Volume`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/volumes/{volume}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNameBytes in interface VolumeOrBuilder
        Returns:
        The bytes for name.
      • setName

        public Volume.Builder setName​(String value)
         Output only. The resource name of this `Volume`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/volumes/{volume}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public Volume.Builder clearName()
         Output only. The resource name of this `Volume`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/volumes/{volume}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNameBytes

        public Volume.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Output only. The resource name of this `Volume`.
         Resource names are schemeless URIs that follow the conventions in
         https://cloud.google.com/apis/design/resource_names.
         Format:
         `projects/{project}/locations/{location}/volumes/{volume}`
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         An identifier for the `Volume`, generated by the backend.
         
        string id = 11;
        Specified by:
        getId in interface VolumeOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         An identifier for the `Volume`, generated by the backend.
         
        string id = 11;
        Specified by:
        getIdBytes in interface VolumeOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Volume.Builder setId​(String value)
         An identifier for the `Volume`, generated by the backend.
         
        string id = 11;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public Volume.Builder clearId()
         An identifier for the `Volume`, generated by the backend.
         
        string id = 11;
        Returns:
        This builder for chaining.
      • setIdBytes

        public Volume.Builder setIdBytes​(com.google.protobuf.ByteString value)
         An identifier for the `Volume`, generated by the backend.
         
        string id = 11;
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getStorageTypeValue

        public int getStorageTypeValue()
         The storage type for this volume.
         
        .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
        Specified by:
        getStorageTypeValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for storageType.
      • setStorageTypeValue

        public Volume.Builder setStorageTypeValue​(int value)
         The storage type for this volume.
         
        .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
        Parameters:
        value - The enum numeric value on the wire for storageType to set.
        Returns:
        This builder for chaining.
      • getStorageType

        public Volume.StorageType getStorageType()
         The storage type for this volume.
         
        .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
        Specified by:
        getStorageType in interface VolumeOrBuilder
        Returns:
        The storageType.
      • setStorageType

        public Volume.Builder setStorageType​(Volume.StorageType value)
         The storage type for this volume.
         
        .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
        Parameters:
        value - The storageType to set.
        Returns:
        This builder for chaining.
      • clearStorageType

        public Volume.Builder clearStorageType()
         The storage type for this volume.
         
        .google.cloud.baremetalsolution.v2.Volume.StorageType storage_type = 2;
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.State state = 3;
        Specified by:
        getStateValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Volume.Builder setStateValue​(int value)
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.State state = 3;
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Volume.State getState()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.State state = 3;
        Specified by:
        getState in interface VolumeOrBuilder
        Returns:
        The state.
      • setState

        public Volume.Builder setState​(Volume.State value)
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.State state = 3;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Volume.Builder clearState()
         The state of this storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.State state = 3;
        Returns:
        This builder for chaining.
      • getRequestedSizeGib

        public long getRequestedSizeGib()
         The requested size of this storage volume, in GiB.
         
        int64 requested_size_gib = 4;
        Specified by:
        getRequestedSizeGib in interface VolumeOrBuilder
        Returns:
        The requestedSizeGib.
      • setRequestedSizeGib

        public Volume.Builder setRequestedSizeGib​(long value)
         The requested size of this storage volume, in GiB.
         
        int64 requested_size_gib = 4;
        Parameters:
        value - The requestedSizeGib to set.
        Returns:
        This builder for chaining.
      • clearRequestedSizeGib

        public Volume.Builder clearRequestedSizeGib()
         The requested size of this storage volume, in GiB.
         
        int64 requested_size_gib = 4;
        Returns:
        This builder for chaining.
      • getOriginallyRequestedSizeGib

        public long getOriginallyRequestedSizeGib()
         Originally requested size, in GiB.
         
        int64 originally_requested_size_gib = 16;
        Specified by:
        getOriginallyRequestedSizeGib in interface VolumeOrBuilder
        Returns:
        The originallyRequestedSizeGib.
      • setOriginallyRequestedSizeGib

        public Volume.Builder setOriginallyRequestedSizeGib​(long value)
         Originally requested size, in GiB.
         
        int64 originally_requested_size_gib = 16;
        Parameters:
        value - The originallyRequestedSizeGib to set.
        Returns:
        This builder for chaining.
      • clearOriginallyRequestedSizeGib

        public Volume.Builder clearOriginallyRequestedSizeGib()
         Originally requested size, in GiB.
         
        int64 originally_requested_size_gib = 16;
        Returns:
        This builder for chaining.
      • getCurrentSizeGib

        public long getCurrentSizeGib()
         The current size of this storage volume, in GiB, including space reserved
         for snapshots. This size might be different than the requested size if the
         storage volume has been configured with auto grow or auto shrink.
         
        int64 current_size_gib = 5;
        Specified by:
        getCurrentSizeGib in interface VolumeOrBuilder
        Returns:
        The currentSizeGib.
      • setCurrentSizeGib

        public Volume.Builder setCurrentSizeGib​(long value)
         The current size of this storage volume, in GiB, including space reserved
         for snapshots. This size might be different than the requested size if the
         storage volume has been configured with auto grow or auto shrink.
         
        int64 current_size_gib = 5;
        Parameters:
        value - The currentSizeGib to set.
        Returns:
        This builder for chaining.
      • clearCurrentSizeGib

        public Volume.Builder clearCurrentSizeGib()
         The current size of this storage volume, in GiB, including space reserved
         for snapshots. This size might be different than the requested size if the
         storage volume has been configured with auto grow or auto shrink.
         
        int64 current_size_gib = 5;
        Returns:
        This builder for chaining.
      • getEmergencySizeGib

        public long getEmergencySizeGib()
         Additional emergency size that was requested for this Volume, in GiB.
         current_size_gib includes this value.
         
        int64 emergency_size_gib = 14;
        Specified by:
        getEmergencySizeGib in interface VolumeOrBuilder
        Returns:
        The emergencySizeGib.
      • setEmergencySizeGib

        public Volume.Builder setEmergencySizeGib​(long value)
         Additional emergency size that was requested for this Volume, in GiB.
         current_size_gib includes this value.
         
        int64 emergency_size_gib = 14;
        Parameters:
        value - The emergencySizeGib to set.
        Returns:
        This builder for chaining.
      • clearEmergencySizeGib

        public Volume.Builder clearEmergencySizeGib()
         Additional emergency size that was requested for this Volume, in GiB.
         current_size_gib includes this value.
         
        int64 emergency_size_gib = 14;
        Returns:
        This builder for chaining.
      • getMaxSizeGib

        public long getMaxSizeGib()
         Maximum size volume can be expanded to in case of evergency, in GiB.
         
        int64 max_size_gib = 17;
        Specified by:
        getMaxSizeGib in interface VolumeOrBuilder
        Returns:
        The maxSizeGib.
      • setMaxSizeGib

        public Volume.Builder setMaxSizeGib​(long value)
         Maximum size volume can be expanded to in case of evergency, in GiB.
         
        int64 max_size_gib = 17;
        Parameters:
        value - The maxSizeGib to set.
        Returns:
        This builder for chaining.
      • clearMaxSizeGib

        public Volume.Builder clearMaxSizeGib()
         Maximum size volume can be expanded to in case of evergency, in GiB.
         
        int64 max_size_gib = 17;
        Returns:
        This builder for chaining.
      • getAutoGrownSizeGib

        public long getAutoGrownSizeGib()
         The size, in GiB, that this storage volume has expanded as a result of an
         auto grow policy. In the absence of auto-grow, the value is 0.
         
        int64 auto_grown_size_gib = 6;
        Specified by:
        getAutoGrownSizeGib in interface VolumeOrBuilder
        Returns:
        The autoGrownSizeGib.
      • setAutoGrownSizeGib

        public Volume.Builder setAutoGrownSizeGib​(long value)
         The size, in GiB, that this storage volume has expanded as a result of an
         auto grow policy. In the absence of auto-grow, the value is 0.
         
        int64 auto_grown_size_gib = 6;
        Parameters:
        value - The autoGrownSizeGib to set.
        Returns:
        This builder for chaining.
      • clearAutoGrownSizeGib

        public Volume.Builder clearAutoGrownSizeGib()
         The size, in GiB, that this storage volume has expanded as a result of an
         auto grow policy. In the absence of auto-grow, the value is 0.
         
        int64 auto_grown_size_gib = 6;
        Returns:
        This builder for chaining.
      • getRemainingSpaceGib

        public long getRemainingSpaceGib()
         The space remaining in the storage volume for new LUNs, in GiB, excluding
         space reserved for snapshots.
         
        int64 remaining_space_gib = 7;
        Specified by:
        getRemainingSpaceGib in interface VolumeOrBuilder
        Returns:
        The remainingSpaceGib.
      • setRemainingSpaceGib

        public Volume.Builder setRemainingSpaceGib​(long value)
         The space remaining in the storage volume for new LUNs, in GiB, excluding
         space reserved for snapshots.
         
        int64 remaining_space_gib = 7;
        Parameters:
        value - The remainingSpaceGib to set.
        Returns:
        This builder for chaining.
      • clearRemainingSpaceGib

        public Volume.Builder clearRemainingSpaceGib()
         The space remaining in the storage volume for new LUNs, in GiB, excluding
         space reserved for snapshots.
         
        int64 remaining_space_gib = 7;
        Returns:
        This builder for chaining.
      • hasSnapshotReservationDetail

        public boolean hasSnapshotReservationDetail()
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
        Specified by:
        hasSnapshotReservationDetail in interface VolumeOrBuilder
        Returns:
        Whether the snapshotReservationDetail field is set.
      • getSnapshotReservationDetail

        public Volume.SnapshotReservationDetail getSnapshotReservationDetail()
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
        Specified by:
        getSnapshotReservationDetail in interface VolumeOrBuilder
        Returns:
        The snapshotReservationDetail.
      • setSnapshotReservationDetail

        public Volume.Builder setSnapshotReservationDetail​(Volume.SnapshotReservationDetail value)
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
      • setSnapshotReservationDetail

        public Volume.Builder setSnapshotReservationDetail​(Volume.SnapshotReservationDetail.Builder builderForValue)
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
      • mergeSnapshotReservationDetail

        public Volume.Builder mergeSnapshotReservationDetail​(Volume.SnapshotReservationDetail value)
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
      • clearSnapshotReservationDetail

        public Volume.Builder clearSnapshotReservationDetail()
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
      • getSnapshotReservationDetailBuilder

        public Volume.SnapshotReservationDetail.Builder getSnapshotReservationDetailBuilder()
         Details about snapshot space reservation and usage on the storage volume.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotReservationDetail snapshot_reservation_detail = 8;
      • getSnapshotAutoDeleteBehaviorValue

        public int getSnapshotAutoDeleteBehaviorValue()
         The behavior to use when snapshot reserved space is full.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
        Specified by:
        getSnapshotAutoDeleteBehaviorValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for snapshotAutoDeleteBehavior.
      • setSnapshotAutoDeleteBehaviorValue

        public Volume.Builder setSnapshotAutoDeleteBehaviorValue​(int value)
         The behavior to use when snapshot reserved space is full.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
        Parameters:
        value - The enum numeric value on the wire for snapshotAutoDeleteBehavior to set.
        Returns:
        This builder for chaining.
      • setSnapshotAutoDeleteBehavior

        public Volume.Builder setSnapshotAutoDeleteBehavior​(Volume.SnapshotAutoDeleteBehavior value)
         The behavior to use when snapshot reserved space is full.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
        Parameters:
        value - The snapshotAutoDeleteBehavior to set.
        Returns:
        This builder for chaining.
      • clearSnapshotAutoDeleteBehavior

        public Volume.Builder clearSnapshotAutoDeleteBehavior()
         The behavior to use when snapshot reserved space is full.
         
        .google.cloud.baremetalsolution.v2.Volume.SnapshotAutoDeleteBehavior snapshot_auto_delete_behavior = 9;
        Returns:
        This builder for chaining.
      • containsLabels

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

        public Volume.Builder removeLabels​(String key)
         Labels as key value pairs.
         
        map<string, string> labels = 12;
      • getMutableLabels

        @Deprecated
        public Map<String,​String> getMutableLabels()
        Deprecated.
        Use alternate mutation accessors instead.
      • putLabels

        public Volume.Builder putLabels​(String key,
                                        String value)
         Labels as key value pairs.
         
        map<string, string> labels = 12;
      • putAllLabels

        public Volume.Builder putAllLabels​(Map<String,​String> values)
         Labels as key value pairs.
         
        map<string, string> labels = 12;
      • getSnapshotEnabled

        public boolean getSnapshotEnabled()
         Whether snapshots are enabled.
         
        bool snapshot_enabled = 13;
        Specified by:
        getSnapshotEnabled in interface VolumeOrBuilder
        Returns:
        The snapshotEnabled.
      • setSnapshotEnabled

        public Volume.Builder setSnapshotEnabled​(boolean value)
         Whether snapshots are enabled.
         
        bool snapshot_enabled = 13;
        Parameters:
        value - The snapshotEnabled to set.
        Returns:
        This builder for chaining.
      • clearSnapshotEnabled

        public Volume.Builder clearSnapshotEnabled()
         Whether snapshots are enabled.
         
        bool snapshot_enabled = 13;
        Returns:
        This builder for chaining.
      • getPod

        public String getPod()
         Immutable. Pod name.
         
        string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPod in interface VolumeOrBuilder
        Returns:
        The pod.
      • getPodBytes

        public com.google.protobuf.ByteString getPodBytes()
         Immutable. Pod name.
         
        string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPodBytes in interface VolumeOrBuilder
        Returns:
        The bytes for pod.
      • setPod

        public Volume.Builder setPod​(String value)
         Immutable. Pod name.
         
        string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The pod to set.
        Returns:
        This builder for chaining.
      • clearPod

        public Volume.Builder clearPod()
         Immutable. Pod name.
         
        string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setPodBytes

        public Volume.Builder setPodBytes​(com.google.protobuf.ByteString value)
         Immutable. Pod name.
         
        string pod = 15 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for pod to set.
        Returns:
        This builder for chaining.
      • getProtocolValue

        public int getProtocolValue()
         Output only. Storage protocol for the Volume.
         
        .google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProtocolValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for protocol.
      • setProtocolValue

        public Volume.Builder setProtocolValue​(int value)
         Output only. Storage protocol for the Volume.
         
        .google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for protocol to set.
        Returns:
        This builder for chaining.
      • getProtocol

        public Volume.Protocol getProtocol()
         Output only. Storage protocol for the Volume.
         
        .google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getProtocol in interface VolumeOrBuilder
        Returns:
        The protocol.
      • setProtocol

        public Volume.Builder setProtocol​(Volume.Protocol value)
         Output only. Storage protocol for the Volume.
         
        .google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The protocol to set.
        Returns:
        This builder for chaining.
      • clearProtocol

        public Volume.Builder clearProtocol()
         Output only. Storage protocol for the Volume.
         
        .google.cloud.baremetalsolution.v2.Volume.Protocol protocol = 18 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getBootVolume

        public boolean getBootVolume()
         Output only. Whether this volume is a boot volume. A boot volume is one
         which contains a boot LUN.
         
        bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getBootVolume in interface VolumeOrBuilder
        Returns:
        The bootVolume.
      • setBootVolume

        public Volume.Builder setBootVolume​(boolean value)
         Output only. Whether this volume is a boot volume. A boot volume is one
         which contains a boot LUN.
         
        bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bootVolume to set.
        Returns:
        This builder for chaining.
      • clearBootVolume

        public Volume.Builder clearBootVolume()
         Output only. Whether this volume is a boot volume. A boot volume is one
         which contains a boot LUN.
         
        bool boot_volume = 19 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getPerformanceTierValue

        public int getPerformanceTierValue()
         Immutable. Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPerformanceTierValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for performanceTier.
      • setPerformanceTierValue

        public Volume.Builder setPerformanceTierValue​(int value)
         Immutable. Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for performanceTier to set.
        Returns:
        This builder for chaining.
      • getPerformanceTier

        public VolumePerformanceTier getPerformanceTier()
         Immutable. Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getPerformanceTier in interface VolumeOrBuilder
        Returns:
        The performanceTier.
      • setPerformanceTier

        public Volume.Builder setPerformanceTier​(VolumePerformanceTier value)
         Immutable. Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The performanceTier to set.
        Returns:
        This builder for chaining.
      • clearPerformanceTier

        public Volume.Builder clearPerformanceTier()
         Immutable. Performance tier of the Volume.
         Default is SHARED.
         
        .google.cloud.baremetalsolution.v2.VolumePerformanceTier performance_tier = 20 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • getNotes

        public String getNotes()
         Input only. User-specified notes for new Volume.
         Used to provision Volumes that require manual intervention.
         
        string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getNotes in interface VolumeOrBuilder
        Returns:
        The notes.
      • getNotesBytes

        public com.google.protobuf.ByteString getNotesBytes()
         Input only. User-specified notes for new Volume.
         Used to provision Volumes that require manual intervention.
         
        string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getNotesBytes in interface VolumeOrBuilder
        Returns:
        The bytes for notes.
      • setNotes

        public Volume.Builder setNotes​(String value)
         Input only. User-specified notes for new Volume.
         Used to provision Volumes that require manual intervention.
         
        string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The notes to set.
        Returns:
        This builder for chaining.
      • clearNotes

        public Volume.Builder clearNotes()
         Input only. User-specified notes for new Volume.
         Used to provision Volumes that require manual intervention.
         
        string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNotesBytes

        public Volume.Builder setNotesBytes​(com.google.protobuf.ByteString value)
         Input only. User-specified notes for new Volume.
         Used to provision Volumes that require manual intervention.
         
        string notes = 21 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for notes to set.
        Returns:
        This builder for chaining.
      • getWorkloadProfileValue

        public int getWorkloadProfileValue()
         The workload profile for the volume.
         
        .google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
        Specified by:
        getWorkloadProfileValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for workloadProfile.
      • setWorkloadProfileValue

        public Volume.Builder setWorkloadProfileValue​(int value)
         The workload profile for the volume.
         
        .google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
        Parameters:
        value - The enum numeric value on the wire for workloadProfile to set.
        Returns:
        This builder for chaining.
      • getWorkloadProfile

        public Volume.WorkloadProfile getWorkloadProfile()
         The workload profile for the volume.
         
        .google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
        Specified by:
        getWorkloadProfile in interface VolumeOrBuilder
        Returns:
        The workloadProfile.
      • setWorkloadProfile

        public Volume.Builder setWorkloadProfile​(Volume.WorkloadProfile value)
         The workload profile for the volume.
         
        .google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
        Parameters:
        value - The workloadProfile to set.
        Returns:
        This builder for chaining.
      • clearWorkloadProfile

        public Volume.Builder clearWorkloadProfile()
         The workload profile for the volume.
         
        .google.cloud.baremetalsolution.v2.Volume.WorkloadProfile workload_profile = 22;
        Returns:
        This builder for chaining.
      • hasExpireTime

        public boolean hasExpireTime()
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasExpireTime in interface VolumeOrBuilder
        Returns:
        Whether the expireTime field is set.
      • getExpireTime

        public com.google.protobuf.Timestamp getExpireTime()
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTime in interface VolumeOrBuilder
        Returns:
        The expireTime.
      • setExpireTime

        public Volume.Builder setExpireTime​(com.google.protobuf.Timestamp value)
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setExpireTime

        public Volume.Builder setExpireTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeExpireTime

        public Volume.Builder mergeExpireTime​(com.google.protobuf.Timestamp value)
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearExpireTime

        public Volume.Builder clearExpireTime()
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getExpireTimeBuilder

        public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getExpireTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
         Output only. Time after which volume will be fully deleted.
         It is filled only for volumes in COOLOFF state.
         
        .google.protobuf.Timestamp expire_time = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getExpireTimeOrBuilder in interface VolumeOrBuilder
      • getInstancesList

        public com.google.protobuf.ProtocolStringList getInstancesList()
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesList in interface VolumeOrBuilder
        Returns:
        A list containing the instances.
      • getInstancesCount

        public int getInstancesCount()
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesCount in interface VolumeOrBuilder
        Returns:
        The count of instances.
      • getInstances

        public String getInstances​(int index)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstances in interface VolumeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The instances at the given index.
      • getInstancesBytes

        public com.google.protobuf.ByteString getInstancesBytes​(int index)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getInstancesBytes in interface VolumeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the instances at the given index.
      • setInstances

        public Volume.Builder setInstances​(int index,
                                           String value)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        index - The index to set the value at.
        value - The instances to set.
        Returns:
        This builder for chaining.
      • addInstances

        public Volume.Builder addInstances​(String value)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The instances to add.
        Returns:
        This builder for chaining.
      • addAllInstances

        public Volume.Builder addAllInstances​(Iterable<String> values)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        values - The instances to add.
        Returns:
        This builder for chaining.
      • clearInstances

        public Volume.Builder clearInstances()
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • addInstancesBytes

        public Volume.Builder addInstancesBytes​(com.google.protobuf.ByteString value)
         Output only. Instances this Volume is attached to.
         This field is set only in Get requests.
         
        repeated string instances = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes of the instances to add.
        Returns:
        This builder for chaining.
      • getAttached

        public boolean getAttached()
         Output only. Is the Volume attached at at least one instance.
         This field is a lightweight counterpart of `instances` field.
         It is filled in List responses as well.
         
        bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getAttached in interface VolumeOrBuilder
        Returns:
        The attached.
      • setAttached

        public Volume.Builder setAttached​(boolean value)
         Output only. Is the Volume attached at at least one instance.
         This field is a lightweight counterpart of `instances` field.
         It is filled in List responses as well.
         
        bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The attached to set.
        Returns:
        This builder for chaining.
      • clearAttached

        public Volume.Builder clearAttached()
         Output only. Is the Volume attached at at least one instance.
         This field is a lightweight counterpart of `instances` field.
         It is filled in List responses as well.
         
        bool attached = 26 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Volume.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>
      • mergeUnknownFields

        public final Volume.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Volume.Builder>