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
     Volume provides a filesystem that you can mount.
     
    Protobuf type google.cloud.netapp.v1.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. Name of the 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. Name of the 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. Name of the 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. Name of the 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. Name of the volume
         
        string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. State of the volume
         
        .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public Volume.Builder setStateValue​(int value)
         Output only. State of the volume
         
        .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for state to set.
        Returns:
        This builder for chaining.
      • getState

        public Volume.State getState()
         Output only. State of the volume
         
        .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface VolumeOrBuilder
        Returns:
        The state.
      • setState

        public Volume.Builder setState​(Volume.State value)
         Output only. State of the volume
         
        .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public Volume.Builder clearState()
         Output only. State of the volume
         
        .google.cloud.netapp.v1.Volume.State state = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getStateDetails

        public String getStateDetails()
         Output only. State details of the volume
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetails in interface VolumeOrBuilder
        Returns:
        The stateDetails.
      • getStateDetailsBytes

        public com.google.protobuf.ByteString getStateDetailsBytes()
         Output only. State details of the volume
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateDetailsBytes in interface VolumeOrBuilder
        Returns:
        The bytes for stateDetails.
      • setStateDetails

        public Volume.Builder setStateDetails​(String value)
         Output only. State details of the volume
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The stateDetails to set.
        Returns:
        This builder for chaining.
      • clearStateDetails

        public Volume.Builder clearStateDetails()
         Output only. State details of the volume
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setStateDetailsBytes

        public Volume.Builder setStateDetailsBytes​(com.google.protobuf.ByteString value)
         Output only. State details of the volume
         
        string state_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for stateDetails to set.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        hasCreateTime in interface VolumeOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTime in interface VolumeOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Volume.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setCreateTime

        public Volume.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • mergeCreateTime

        public Volume.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearCreateTime

        public Volume.Builder clearCreateTime()
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         Output only. Create time of the volume
         
        .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getCreateTimeOrBuilder in interface VolumeOrBuilder
      • getShareName

        public String getShareName()
         Required. Share name of the volume
         
        string share_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getShareName in interface VolumeOrBuilder
        Returns:
        The shareName.
      • getShareNameBytes

        public com.google.protobuf.ByteString getShareNameBytes()
         Required. Share name of the volume
         
        string share_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getShareNameBytes in interface VolumeOrBuilder
        Returns:
        The bytes for shareName.
      • setShareName

        public Volume.Builder setShareName​(String value)
         Required. Share name of the volume
         
        string share_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The shareName to set.
        Returns:
        This builder for chaining.
      • clearShareName

        public Volume.Builder clearShareName()
         Required. Share name of the volume
         
        string share_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setShareNameBytes

        public Volume.Builder setShareNameBytes​(com.google.protobuf.ByteString value)
         Required. Share name of the volume
         
        string share_name = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for shareName to set.
        Returns:
        This builder for chaining.
      • getPsaRange

        public String getPsaRange()
         Output only. Name of the Private Service Access allocated range. This is
         optional. If not provided, any available range will be chosen.
         
        string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPsaRange in interface VolumeOrBuilder
        Returns:
        The psaRange.
      • getPsaRangeBytes

        public com.google.protobuf.ByteString getPsaRangeBytes()
         Output only. Name of the Private Service Access allocated range. This is
         optional. If not provided, any available range will be chosen.
         
        string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getPsaRangeBytes in interface VolumeOrBuilder
        Returns:
        The bytes for psaRange.
      • setPsaRange

        public Volume.Builder setPsaRange​(String value)
         Output only. Name of the Private Service Access allocated range. This is
         optional. If not provided, any available range will be chosen.
         
        string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The psaRange to set.
        Returns:
        This builder for chaining.
      • clearPsaRange

        public Volume.Builder clearPsaRange()
         Output only. Name of the Private Service Access allocated range. This is
         optional. If not provided, any available range will be chosen.
         
        string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setPsaRangeBytes

        public Volume.Builder setPsaRangeBytes​(com.google.protobuf.ByteString value)
         Output only. Name of the Private Service Access allocated range. This is
         optional. If not provided, any available range will be chosen.
         
        string psa_range = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for psaRange to set.
        Returns:
        This builder for chaining.
      • getStoragePool

        public String getStoragePool()
         Required. StoragePool name of the volume
         
        string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getStoragePool in interface VolumeOrBuilder
        Returns:
        The storagePool.
      • getStoragePoolBytes

        public com.google.protobuf.ByteString getStoragePoolBytes()
         Required. StoragePool name of the volume
         
        string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getStoragePoolBytes in interface VolumeOrBuilder
        Returns:
        The bytes for storagePool.
      • setStoragePool

        public Volume.Builder setStoragePool​(String value)
         Required. StoragePool name of the volume
         
        string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The storagePool to set.
        Returns:
        This builder for chaining.
      • clearStoragePool

        public Volume.Builder clearStoragePool()
         Required. StoragePool name of the volume
         
        string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setStoragePoolBytes

        public Volume.Builder setStoragePoolBytes​(com.google.protobuf.ByteString value)
         Required. StoragePool name of the volume
         
        string storage_pool = 7 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for storagePool to set.
        Returns:
        This builder for chaining.
      • getNetwork

        public String getNetwork()
         Output only. VPC Network name.
         Format: projects/{project}/global/networks/{network}
         
        string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetwork in interface VolumeOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Output only. VPC Network name.
         Format: projects/{project}/global/networks/{network}
         
        string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetworkBytes in interface VolumeOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public Volume.Builder setNetwork​(String value)
         Output only. VPC Network name.
         Format: projects/{project}/global/networks/{network}
         
        string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public Volume.Builder clearNetwork()
         Output only. VPC Network name.
         Format: projects/{project}/global/networks/{network}
         
        string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public Volume.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         Output only. VPC Network name.
         Format: projects/{project}/global/networks/{network}
         
        string network = 8 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getServiceLevelValue

        public int getServiceLevelValue()
         Output only. Service level of the volume
         
        .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceLevelValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for serviceLevel.
      • setServiceLevelValue

        public Volume.Builder setServiceLevelValue​(int value)
         Output only. Service level of the volume
         
        .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for serviceLevel to set.
        Returns:
        This builder for chaining.
      • getServiceLevel

        public ServiceLevel getServiceLevel()
         Output only. Service level of the volume
         
        .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getServiceLevel in interface VolumeOrBuilder
        Returns:
        The serviceLevel.
      • setServiceLevel

        public Volume.Builder setServiceLevel​(ServiceLevel value)
         Output only. Service level of the volume
         
        .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The serviceLevel to set.
        Returns:
        This builder for chaining.
      • clearServiceLevel

        public Volume.Builder clearServiceLevel()
         Output only. Service level of the volume
         
        .google.cloud.netapp.v1.ServiceLevel service_level = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getCapacityGib

        public long getCapacityGib()
         Required. Capacity in GIB of the volume
         
        int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCapacityGib in interface VolumeOrBuilder
        Returns:
        The capacityGib.
      • setCapacityGib

        public Volume.Builder setCapacityGib​(long value)
         Required. Capacity in GIB of the volume
         
        int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The capacityGib to set.
        Returns:
        This builder for chaining.
      • clearCapacityGib

        public Volume.Builder clearCapacityGib()
         Required. Capacity in GIB of the volume
         
        int64 capacity_gib = 10 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • hasExportPolicy

        public boolean hasExportPolicy()
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasExportPolicy in interface VolumeOrBuilder
        Returns:
        Whether the exportPolicy field is set.
      • getExportPolicy

        public ExportPolicy getExportPolicy()
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getExportPolicy in interface VolumeOrBuilder
        Returns:
        The exportPolicy.
      • setExportPolicy

        public Volume.Builder setExportPolicy​(ExportPolicy value)
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
      • setExportPolicy

        public Volume.Builder setExportPolicy​(ExportPolicy.Builder builderForValue)
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
      • mergeExportPolicy

        public Volume.Builder mergeExportPolicy​(ExportPolicy value)
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
      • clearExportPolicy

        public Volume.Builder clearExportPolicy()
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getExportPolicyBuilder

        public ExportPolicy.Builder getExportPolicyBuilder()
         Optional. Export policy of the volume
         
        .google.cloud.netapp.v1.ExportPolicy export_policy = 11 [(.google.api.field_behavior) = OPTIONAL];
      • getProtocolsList

        public List<Protocols> getProtocolsList()
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProtocolsList in interface VolumeOrBuilder
        Returns:
        A list containing the protocols.
      • getProtocolsCount

        public int getProtocolsCount()
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProtocolsCount in interface VolumeOrBuilder
        Returns:
        The count of protocols.
      • getProtocols

        public Protocols getProtocols​(int index)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProtocols in interface VolumeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The protocols at the given index.
      • setProtocols

        public Volume.Builder setProtocols​(int index,
                                           Protocols value)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The protocols to set.
        Returns:
        This builder for chaining.
      • addProtocols

        public Volume.Builder addProtocols​(Protocols value)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The protocols to add.
        Returns:
        This builder for chaining.
      • addAllProtocols

        public Volume.Builder addAllProtocols​(Iterable<? extends Protocols> values)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The protocols to add.
        Returns:
        This builder for chaining.
      • clearProtocols

        public Volume.Builder clearProtocols()
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • getProtocolsValueList

        public List<Integer> getProtocolsValueList()
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProtocolsValueList in interface VolumeOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for protocols.
      • getProtocolsValue

        public int getProtocolsValue​(int index)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getProtocolsValue in interface VolumeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of protocols at the given index.
      • setProtocolsValue

        public Volume.Builder setProtocolsValue​(int index,
                                                int value)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for protocols to set.
        Returns:
        This builder for chaining.
      • addProtocolsValue

        public Volume.Builder addProtocolsValue​(int value)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The enum numeric value on the wire for protocols to add.
        Returns:
        This builder for chaining.
      • addAllProtocolsValue

        public Volume.Builder addAllProtocolsValue​(Iterable<Integer> values)
         Required. Protocols required for the volume
         
        repeated .google.cloud.netapp.v1.Protocols protocols = 12 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        values - The enum numeric values on the wire for protocols to add.
        Returns:
        This builder for chaining.
      • getSmbSettingsList

        public List<SMBSettings> getSmbSettingsList()
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmbSettingsList in interface VolumeOrBuilder
        Returns:
        A list containing the smbSettings.
      • getSmbSettingsCount

        public int getSmbSettingsCount()
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmbSettingsCount in interface VolumeOrBuilder
        Returns:
        The count of smbSettings.
      • getSmbSettings

        public SMBSettings getSmbSettings​(int index)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmbSettings in interface VolumeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The smbSettings at the given index.
      • setSmbSettings

        public Volume.Builder setSmbSettings​(int index,
                                             SMBSettings value)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The smbSettings to set.
        Returns:
        This builder for chaining.
      • addSmbSettings

        public Volume.Builder addSmbSettings​(SMBSettings value)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The smbSettings to add.
        Returns:
        This builder for chaining.
      • addAllSmbSettings

        public Volume.Builder addAllSmbSettings​(Iterable<? extends SMBSettings> values)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The smbSettings to add.
        Returns:
        This builder for chaining.
      • clearSmbSettings

        public Volume.Builder clearSmbSettings()
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getSmbSettingsValueList

        public List<Integer> getSmbSettingsValueList()
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmbSettingsValueList in interface VolumeOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for smbSettings.
      • getSmbSettingsValue

        public int getSmbSettingsValue​(int index)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSmbSettingsValue in interface VolumeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of smbSettings at the given index.
      • setSmbSettingsValue

        public Volume.Builder setSmbSettingsValue​(int index,
                                                  int value)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for smbSettings to set.
        Returns:
        This builder for chaining.
      • addSmbSettingsValue

        public Volume.Builder addSmbSettingsValue​(int value)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for smbSettings to add.
        Returns:
        This builder for chaining.
      • addAllSmbSettingsValue

        public Volume.Builder addAllSmbSettingsValue​(Iterable<Integer> values)
         Optional. SMB share settings for the volume.
         
        repeated .google.cloud.netapp.v1.SMBSettings smb_settings = 13 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for smbSettings to add.
        Returns:
        This builder for chaining.
      • getMountOptionsList

        public List<MountOption> getMountOptionsList()
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMountOptionsList in interface VolumeOrBuilder
      • getMountOptionsCount

        public int getMountOptionsCount()
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMountOptionsCount in interface VolumeOrBuilder
      • getMountOptions

        public MountOption getMountOptions​(int index)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMountOptions in interface VolumeOrBuilder
      • setMountOptions

        public Volume.Builder setMountOptions​(int index,
                                              MountOption value)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • setMountOptions

        public Volume.Builder setMountOptions​(int index,
                                              MountOption.Builder builderForValue)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addMountOptions

        public Volume.Builder addMountOptions​(MountOption value)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addMountOptions

        public Volume.Builder addMountOptions​(int index,
                                              MountOption value)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addMountOptions

        public Volume.Builder addMountOptions​(MountOption.Builder builderForValue)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addMountOptions

        public Volume.Builder addMountOptions​(int index,
                                              MountOption.Builder builderForValue)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addAllMountOptions

        public Volume.Builder addAllMountOptions​(Iterable<? extends MountOption> values)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • clearMountOptions

        public Volume.Builder clearMountOptions()
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • removeMountOptions

        public Volume.Builder removeMountOptions​(int index)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMountOptionsBuilder

        public MountOption.Builder getMountOptionsBuilder​(int index)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMountOptionsOrBuilder

        public MountOptionOrBuilder getMountOptionsOrBuilder​(int index)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getMountOptionsOrBuilder in interface VolumeOrBuilder
      • addMountOptionsBuilder

        public MountOption.Builder addMountOptionsBuilder()
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • addMountOptionsBuilder

        public MountOption.Builder addMountOptionsBuilder​(int index)
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getMountOptionsBuilderList

        public List<MountOption.Builder> getMountOptionsBuilderList()
         Output only. Mount options of this volume
         
        repeated .google.cloud.netapp.v1.MountOption mount_options = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
      • getUnixPermissions

        public String getUnixPermissions()
         Optional. Default unix style permission (e.g. 777) the mount point will be
         created with. Applicable for NFS protocol types only.
         
        string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUnixPermissions in interface VolumeOrBuilder
        Returns:
        The unixPermissions.
      • getUnixPermissionsBytes

        public com.google.protobuf.ByteString getUnixPermissionsBytes()
         Optional. Default unix style permission (e.g. 777) the mount point will be
         created with. Applicable for NFS protocol types only.
         
        string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getUnixPermissionsBytes in interface VolumeOrBuilder
        Returns:
        The bytes for unixPermissions.
      • setUnixPermissions

        public Volume.Builder setUnixPermissions​(String value)
         Optional. Default unix style permission (e.g. 777) the mount point will be
         created with. Applicable for NFS protocol types only.
         
        string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The unixPermissions to set.
        Returns:
        This builder for chaining.
      • clearUnixPermissions

        public Volume.Builder clearUnixPermissions()
         Optional. Default unix style permission (e.g. 777) the mount point will be
         created with. Applicable for NFS protocol types only.
         
        string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setUnixPermissionsBytes

        public Volume.Builder setUnixPermissionsBytes​(com.google.protobuf.ByteString value)
         Optional. Default unix style permission (e.g. 777) the mount point will be
         created with. Applicable for NFS protocol types only.
         
        string unix_permissions = 15 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for unixPermissions to set.
        Returns:
        This builder for chaining.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: VolumeOrBuilder
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface VolumeOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface VolumeOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface VolumeOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface VolumeOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface VolumeOrBuilder
      • removeLabels

        public Volume.Builder removeLabels​(String key)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      • getMutableLabels

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

        public Volume.Builder putLabels​(String key,
                                        String value)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      • putAllLabels

        public Volume.Builder putAllLabels​(Map<String,​String> values)
         Optional. Labels as key value pairs
         
        map<string, string> labels = 16 [(.google.api.field_behavior) = OPTIONAL];
      • getDescription

        public String getDescription()
         Optional. Description of the volume
         
        string description = 17 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface VolumeOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Description of the volume
         
        string description = 17 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface VolumeOrBuilder
        Returns:
        The bytes for description.
      • setDescription

        public Volume.Builder setDescription​(String value)
         Optional. Description of the volume
         
        string description = 17 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Volume.Builder clearDescription()
         Optional. Description of the volume
         
        string description = 17 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Volume.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         Optional. Description of the volume
         
        string description = 17 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • hasSnapshotPolicy

        public boolean hasSnapshotPolicy()
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasSnapshotPolicy in interface VolumeOrBuilder
        Returns:
        Whether the snapshotPolicy field is set.
      • getSnapshotPolicy

        public SnapshotPolicy getSnapshotPolicy()
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSnapshotPolicy in interface VolumeOrBuilder
        Returns:
        The snapshotPolicy.
      • setSnapshotPolicy

        public Volume.Builder setSnapshotPolicy​(SnapshotPolicy value)
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
      • setSnapshotPolicy

        public Volume.Builder setSnapshotPolicy​(SnapshotPolicy.Builder builderForValue)
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
      • mergeSnapshotPolicy

        public Volume.Builder mergeSnapshotPolicy​(SnapshotPolicy value)
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
      • clearSnapshotPolicy

        public Volume.Builder clearSnapshotPolicy()
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
      • getSnapshotPolicyBuilder

        public SnapshotPolicy.Builder getSnapshotPolicyBuilder()
         Optional. SnapshotPolicy for a volume.
         
        .google.cloud.netapp.v1.SnapshotPolicy snapshot_policy = 18 [(.google.api.field_behavior) = OPTIONAL];
      • getSnapReserve

        public double getSnapReserve()
         Optional. Snap_reserve specifies percentage of volume storage reserved for
         snapshot storage. Default is 0 percent.
         
        double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSnapReserve in interface VolumeOrBuilder
        Returns:
        The snapReserve.
      • setSnapReserve

        public Volume.Builder setSnapReserve​(double value)
         Optional. Snap_reserve specifies percentage of volume storage reserved for
         snapshot storage. Default is 0 percent.
         
        double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The snapReserve to set.
        Returns:
        This builder for chaining.
      • clearSnapReserve

        public Volume.Builder clearSnapReserve()
         Optional. Snap_reserve specifies percentage of volume storage reserved for
         snapshot storage. Default is 0 percent.
         
        double snap_reserve = 19 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getSnapshotDirectory

        public boolean getSnapshotDirectory()
         Optional. Snapshot_directory if enabled (true) the volume will contain a
         read-only .snapshot directory which provides access to each of the volume's
         snapshots.
         
        bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSnapshotDirectory in interface VolumeOrBuilder
        Returns:
        The snapshotDirectory.
      • setSnapshotDirectory

        public Volume.Builder setSnapshotDirectory​(boolean value)
         Optional. Snapshot_directory if enabled (true) the volume will contain a
         read-only .snapshot directory which provides access to each of the volume's
         snapshots.
         
        bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The snapshotDirectory to set.
        Returns:
        This builder for chaining.
      • clearSnapshotDirectory

        public Volume.Builder clearSnapshotDirectory()
         Optional. Snapshot_directory if enabled (true) the volume will contain a
         read-only .snapshot directory which provides access to each of the volume's
         snapshots.
         
        bool snapshot_directory = 20 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getUsedGib

        public long getUsedGib()
         Output only. Used capacity in GIB of the volume. This is computed
         periodically and it does not represent the realtime usage.
         
        int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getUsedGib in interface VolumeOrBuilder
        Returns:
        The usedGib.
      • setUsedGib

        public Volume.Builder setUsedGib​(long value)
         Output only. Used capacity in GIB of the volume. This is computed
         periodically and it does not represent the realtime usage.
         
        int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The usedGib to set.
        Returns:
        This builder for chaining.
      • clearUsedGib

        public Volume.Builder clearUsedGib()
         Output only. Used capacity in GIB of the volume. This is computed
         periodically and it does not represent the realtime usage.
         
        int64 used_gib = 21 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getSecurityStyleValue

        public int getSecurityStyleValue()
         Optional. Security Style of the Volume
         
        .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSecurityStyleValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for securityStyle.
      • setSecurityStyleValue

        public Volume.Builder setSecurityStyleValue​(int value)
         Optional. Security Style of the Volume
         
        .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for securityStyle to set.
        Returns:
        This builder for chaining.
      • getSecurityStyle

        public SecurityStyle getSecurityStyle()
         Optional. Security Style of the Volume
         
        .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getSecurityStyle in interface VolumeOrBuilder
        Returns:
        The securityStyle.
      • setSecurityStyle

        public Volume.Builder setSecurityStyle​(SecurityStyle value)
         Optional. Security Style of the Volume
         
        .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The securityStyle to set.
        Returns:
        This builder for chaining.
      • clearSecurityStyle

        public Volume.Builder clearSecurityStyle()
         Optional. Security Style of the Volume
         
        .google.cloud.netapp.v1.SecurityStyle security_style = 22 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getKerberosEnabled

        public boolean getKerberosEnabled()
         Optional. Flag indicating if the volume is a kerberos volume or not, export
         policy rules control kerberos security modes (krb5, krb5i, krb5p).
         
        bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getKerberosEnabled in interface VolumeOrBuilder
        Returns:
        The kerberosEnabled.
      • setKerberosEnabled

        public Volume.Builder setKerberosEnabled​(boolean value)
         Optional. Flag indicating if the volume is a kerberos volume or not, export
         policy rules control kerberos security modes (krb5, krb5i, krb5p).
         
        bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The kerberosEnabled to set.
        Returns:
        This builder for chaining.
      • clearKerberosEnabled

        public Volume.Builder clearKerberosEnabled()
         Optional. Flag indicating if the volume is a kerberos volume or not, export
         policy rules control kerberos security modes (krb5, krb5i, krb5p).
         
        bool kerberos_enabled = 23 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getLdapEnabled

        public boolean getLdapEnabled()
         Output only. Flag indicating if the volume is NFS LDAP enabled or not.
         
        bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getLdapEnabled in interface VolumeOrBuilder
        Returns:
        The ldapEnabled.
      • setLdapEnabled

        public Volume.Builder setLdapEnabled​(boolean value)
         Output only. Flag indicating if the volume is NFS LDAP enabled or not.
         
        bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The ldapEnabled to set.
        Returns:
        This builder for chaining.
      • clearLdapEnabled

        public Volume.Builder clearLdapEnabled()
         Output only. Flag indicating if the volume is NFS LDAP enabled or not.
         
        bool ldap_enabled = 24 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getActiveDirectory

        public String getActiveDirectory()
         Output only. Specifies the ActiveDirectory name of a SMB volume.
         
        string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getActiveDirectory in interface VolumeOrBuilder
        Returns:
        The activeDirectory.
      • getActiveDirectoryBytes

        public com.google.protobuf.ByteString getActiveDirectoryBytes()
         Output only. Specifies the ActiveDirectory name of a SMB volume.
         
        string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getActiveDirectoryBytes in interface VolumeOrBuilder
        Returns:
        The bytes for activeDirectory.
      • setActiveDirectory

        public Volume.Builder setActiveDirectory​(String value)
         Output only. Specifies the ActiveDirectory name of a SMB volume.
         
        string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The activeDirectory to set.
        Returns:
        This builder for chaining.
      • clearActiveDirectory

        public Volume.Builder clearActiveDirectory()
         Output only. Specifies the ActiveDirectory name of a SMB volume.
         
        string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setActiveDirectoryBytes

        public Volume.Builder setActiveDirectoryBytes​(com.google.protobuf.ByteString value)
         Output only. Specifies the ActiveDirectory name of a SMB volume.
         
        string active_directory = 25 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for activeDirectory to set.
        Returns:
        This builder for chaining.
      • hasRestoreParameters

        public boolean hasRestoreParameters()
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        hasRestoreParameters in interface VolumeOrBuilder
        Returns:
        Whether the restoreParameters field is set.
      • getRestoreParameters

        public RestoreParameters getRestoreParameters()
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestoreParameters in interface VolumeOrBuilder
        Returns:
        The restoreParameters.
      • setRestoreParameters

        public Volume.Builder setRestoreParameters​(RestoreParameters value)
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
      • setRestoreParameters

        public Volume.Builder setRestoreParameters​(RestoreParameters.Builder builderForValue)
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
      • mergeRestoreParameters

        public Volume.Builder mergeRestoreParameters​(RestoreParameters value)
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
      • clearRestoreParameters

        public Volume.Builder clearRestoreParameters()
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
      • getRestoreParametersBuilder

        public RestoreParameters.Builder getRestoreParametersBuilder()
         Optional. Specifies the source of the volume to be created from.
         
        .google.cloud.netapp.v1.RestoreParameters restore_parameters = 26 [(.google.api.field_behavior) = OPTIONAL];
      • getKmsConfig

        public String getKmsConfig()
         Output only. Specifies the KMS config to be used for volume encryption.
         
        string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getKmsConfig in interface VolumeOrBuilder
        Returns:
        The kmsConfig.
      • getKmsConfigBytes

        public com.google.protobuf.ByteString getKmsConfigBytes()
         Output only. Specifies the KMS config to be used for volume encryption.
         
        string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getKmsConfigBytes in interface VolumeOrBuilder
        Returns:
        The bytes for kmsConfig.
      • setKmsConfig

        public Volume.Builder setKmsConfig​(String value)
         Output only. Specifies the KMS config to be used for volume encryption.
         
        string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The kmsConfig to set.
        Returns:
        This builder for chaining.
      • clearKmsConfig

        public Volume.Builder clearKmsConfig()
         Output only. Specifies the KMS config to be used for volume encryption.
         
        string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setKmsConfigBytes

        public Volume.Builder setKmsConfigBytes​(com.google.protobuf.ByteString value)
         Output only. Specifies the KMS config to be used for volume encryption.
         
        string kms_config = 27 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for kmsConfig to set.
        Returns:
        This builder for chaining.
      • getEncryptionTypeValue

        public int getEncryptionTypeValue()
         Output only. Specified the current volume encryption key source.
         
        .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionTypeValue in interface VolumeOrBuilder
        Returns:
        The enum numeric value on the wire for encryptionType.
      • setEncryptionTypeValue

        public Volume.Builder setEncryptionTypeValue​(int value)
         Output only. Specified the current volume encryption key source.
         
        .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for encryptionType to set.
        Returns:
        This builder for chaining.
      • getEncryptionType

        public EncryptionType getEncryptionType()
         Output only. Specified the current volume encryption key source.
         
        .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getEncryptionType in interface VolumeOrBuilder
        Returns:
        The encryptionType.
      • setEncryptionType

        public Volume.Builder setEncryptionType​(EncryptionType value)
         Output only. Specified the current volume encryption key source.
         
        .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The encryptionType to set.
        Returns:
        This builder for chaining.
      • clearEncryptionType

        public Volume.Builder clearEncryptionType()
         Output only. Specified the current volume encryption key source.
         
        .google.cloud.netapp.v1.EncryptionType encryption_type = 28 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getHasReplication

        public boolean getHasReplication()
         Output only. Indicates whether the volume is part of a replication
         relationship.
         
        bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getHasReplication in interface VolumeOrBuilder
        Returns:
        The hasReplication.
      • setHasReplication

        public Volume.Builder setHasReplication​(boolean value)
         Output only. Indicates whether the volume is part of a replication
         relationship.
         
        bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The hasReplication to set.
        Returns:
        This builder for chaining.
      • clearHasReplication

        public Volume.Builder clearHasReplication()
         Output only. Indicates whether the volume is part of a replication
         relationship.
         
        bool has_replication = 29 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getRestrictedActionsList

        public List<RestrictedAction> getRestrictedActionsList()
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestrictedActionsList in interface VolumeOrBuilder
        Returns:
        A list containing the restrictedActions.
      • getRestrictedActionsCount

        public int getRestrictedActionsCount()
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestrictedActionsCount in interface VolumeOrBuilder
        Returns:
        The count of restrictedActions.
      • getRestrictedActions

        public RestrictedAction getRestrictedActions​(int index)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestrictedActions in interface VolumeOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The restrictedActions at the given index.
      • setRestrictedActions

        public Volume.Builder setRestrictedActions​(int index,
                                                   RestrictedAction value)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The restrictedActions to set.
        Returns:
        This builder for chaining.
      • addRestrictedActions

        public Volume.Builder addRestrictedActions​(RestrictedAction value)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The restrictedActions to add.
        Returns:
        This builder for chaining.
      • addAllRestrictedActions

        public Volume.Builder addAllRestrictedActions​(Iterable<? extends RestrictedAction> values)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The restrictedActions to add.
        Returns:
        This builder for chaining.
      • clearRestrictedActions

        public Volume.Builder clearRestrictedActions()
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • getRestrictedActionsValueList

        public List<Integer> getRestrictedActionsValueList()
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestrictedActionsValueList in interface VolumeOrBuilder
        Returns:
        A list containing the enum numeric values on the wire for restrictedActions.
      • getRestrictedActionsValue

        public int getRestrictedActionsValue​(int index)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getRestrictedActionsValue in interface VolumeOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The enum numeric value on the wire of restrictedActions at the given index.
      • setRestrictedActionsValue

        public Volume.Builder setRestrictedActionsValue​(int index,
                                                        int value)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        index - The index to set the value at.
        value - The enum numeric value on the wire for restrictedActions to set.
        Returns:
        This builder for chaining.
      • addRestrictedActionsValue

        public Volume.Builder addRestrictedActionsValue​(int value)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for restrictedActions to add.
        Returns:
        This builder for chaining.
      • addAllRestrictedActionsValue

        public Volume.Builder addAllRestrictedActionsValue​(Iterable<Integer> values)
         Optional. List of actions that are restricted on this volume.
         
        repeated .google.cloud.netapp.v1.RestrictedAction restricted_actions = 31 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        values - The enum numeric values on the wire for restrictedActions to add.
        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>