Class NfsShare.Builder

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

    public static final class NfsShare.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<NfsShare.Builder>
    implements NfsShareOrBuilder
     An NFS share.
     
    Protobuf type google.cloud.baremetalsolution.v2.NfsShare
    • 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<NfsShare.Builder>
      • internalGetMutableMapField

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

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

        public NfsShare.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<NfsShare.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<NfsShare.Builder>
      • getDefaultInstanceForType

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

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

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

        public NfsShare.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<NfsShare.Builder>
      • setField

        public NfsShare.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<NfsShare.Builder>
      • clearField

        public NfsShare.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<NfsShare.Builder>
      • clearOneof

        public NfsShare.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<NfsShare.Builder>
      • setRepeatedField

        public NfsShare.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<NfsShare.Builder>
      • addRepeatedField

        public NfsShare.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<NfsShare.Builder>
      • mergeFrom

        public NfsShare.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<NfsShare.Builder>
      • isInitialized

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

        public NfsShare.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<NfsShare.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         Immutable. The name of the NFS share.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getName in interface NfsShareOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Immutable. The name of the NFS share.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getNameBytes in interface NfsShareOrBuilder
        Returns:
        The bytes for name.
      • setName

        public NfsShare.Builder setName​(String value)
         Immutable. The name of the NFS share.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public NfsShare.Builder clearName()
         Immutable. The name of the NFS share.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setNameBytes

        public NfsShare.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Immutable. The name of the NFS share.
         
        string name = 1 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getNfsShareId

        public String getNfsShareId()
         Output only. An identifier for the NFS share, generated by the backend.
         This field will be deprecated in the future, use `id` instead.
         
        string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNfsShareId in interface NfsShareOrBuilder
        Returns:
        The nfsShareId.
      • getNfsShareIdBytes

        public com.google.protobuf.ByteString getNfsShareIdBytes()
         Output only. An identifier for the NFS share, generated by the backend.
         This field will be deprecated in the future, use `id` instead.
         
        string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getNfsShareIdBytes in interface NfsShareOrBuilder
        Returns:
        The bytes for nfsShareId.
      • setNfsShareId

        public NfsShare.Builder setNfsShareId​(String value)
         Output only. An identifier for the NFS share, generated by the backend.
         This field will be deprecated in the future, use `id` instead.
         
        string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The nfsShareId to set.
        Returns:
        This builder for chaining.
      • clearNfsShareId

        public NfsShare.Builder clearNfsShareId()
         Output only. An identifier for the NFS share, generated by the backend.
         This field will be deprecated in the future, use `id` instead.
         
        string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setNfsShareIdBytes

        public NfsShare.Builder setNfsShareIdBytes​(com.google.protobuf.ByteString value)
         Output only. An identifier for the NFS share, generated by the backend.
         This field will be deprecated in the future, use `id` instead.
         
        string nfs_share_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for nfsShareId to set.
        Returns:
        This builder for chaining.
      • getId

        public String getId()
         Output only. An identifier for the NFS share, generated by the backend.
         This is the same value as nfs_share_id and will replace it in the future.
         
        string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getId in interface NfsShareOrBuilder
        Returns:
        The id.
      • getIdBytes

        public com.google.protobuf.ByteString getIdBytes()
         Output only. An identifier for the NFS share, generated by the backend.
         This is the same value as nfs_share_id and will replace it in the future.
         
        string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getIdBytes in interface NfsShareOrBuilder
        Returns:
        The bytes for id.
      • setId

        public NfsShare.Builder setId​(String value)
         Output only. An identifier for the NFS share, generated by the backend.
         This is the same value as nfs_share_id and will replace it in the future.
         
        string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public NfsShare.Builder clearId()
         Output only. An identifier for the NFS share, generated by the backend.
         This is the same value as nfs_share_id and will replace it in the future.
         
        string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • setIdBytes

        public NfsShare.Builder setIdBytes​(com.google.protobuf.ByteString value)
         Output only. An identifier for the NFS share, generated by the backend.
         This is the same value as nfs_share_id and will replace it in the future.
         
        string id = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The bytes for id to set.
        Returns:
        This builder for chaining.
      • getStateValue

        public int getStateValue()
         Output only. The state of the NFS share.
         
        .google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getStateValue in interface NfsShareOrBuilder
        Returns:
        The enum numeric value on the wire for state.
      • setStateValue

        public NfsShare.Builder setStateValue​(int value)
         Output only. The state of the NFS share.
         
        .google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.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 NfsShare.State getState()
         Output only. The state of the NFS share.
         
        .google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getState in interface NfsShareOrBuilder
        Returns:
        The state.
      • setState

        public NfsShare.Builder setState​(NfsShare.State value)
         Output only. The state of the NFS share.
         
        .google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public NfsShare.Builder clearState()
         Output only. The state of the NFS share.
         
        .google.cloud.baremetalsolution.v2.NfsShare.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getVolume

        public String getVolume()
         Output only. The underlying volume of the share. Created automatically
         during provisioning.
         
        string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getVolume in interface NfsShareOrBuilder
        Returns:
        The volume.
      • getVolumeBytes

        public com.google.protobuf.ByteString getVolumeBytes()
         Output only. The underlying volume of the share. Created automatically
         during provisioning.
         
        string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Specified by:
        getVolumeBytes in interface NfsShareOrBuilder
        Returns:
        The bytes for volume.
      • setVolume

        public NfsShare.Builder setVolume​(String value)
         Output only. The underlying volume of the share. Created automatically
         during provisioning.
         
        string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The volume to set.
        Returns:
        This builder for chaining.
      • clearVolume

        public NfsShare.Builder clearVolume()
         Output only. The underlying volume of the share. Created automatically
         during provisioning.
         
        string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setVolumeBytes

        public NfsShare.Builder setVolumeBytes​(com.google.protobuf.ByteString value)
         Output only. The underlying volume of the share. Created automatically
         during provisioning.
         
        string volume = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for volume to set.
        Returns:
        This builder for chaining.
      • getAllowedClientsCount

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

        public NfsShare.Builder setAllowedClients​(int index,
                                                  NfsShare.AllowedClient value)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • setAllowedClients

        public NfsShare.Builder setAllowedClients​(int index,
                                                  NfsShare.AllowedClient.Builder builderForValue)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClients

        public NfsShare.Builder addAllowedClients​(NfsShare.AllowedClient value)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClients

        public NfsShare.Builder addAllowedClients​(int index,
                                                  NfsShare.AllowedClient value)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClients

        public NfsShare.Builder addAllowedClients​(NfsShare.AllowedClient.Builder builderForValue)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClients

        public NfsShare.Builder addAllowedClients​(int index,
                                                  NfsShare.AllowedClient.Builder builderForValue)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllAllowedClients

        public NfsShare.Builder addAllAllowedClients​(Iterable<? extends NfsShare.AllowedClient> values)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • clearAllowedClients

        public NfsShare.Builder clearAllowedClients()
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • removeAllowedClients

        public NfsShare.Builder removeAllowedClients​(int index)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • getAllowedClientsBuilder

        public NfsShare.AllowedClient.Builder getAllowedClientsBuilder​(int index)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClientsBuilder

        public NfsShare.AllowedClient.Builder addAllowedClientsBuilder()
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • addAllowedClientsBuilder

        public NfsShare.AllowedClient.Builder addAllowedClientsBuilder​(int index)
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • getAllowedClientsBuilderList

        public List<NfsShare.AllowedClient.Builder> getAllowedClientsBuilderList()
         List of allowed access points.
         
        repeated .google.cloud.baremetalsolution.v2.NfsShare.AllowedClient allowed_clients = 5;
      • containsLabels

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

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

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

        public long getRequestedSizeGib()
         The requested size, in GiB.
         
        int64 requested_size_gib = 7;
        Specified by:
        getRequestedSizeGib in interface NfsShareOrBuilder
        Returns:
        The requestedSizeGib.
      • setRequestedSizeGib

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

        public NfsShare.Builder clearRequestedSizeGib()
         The requested size, in GiB.
         
        int64 requested_size_gib = 7;
        Returns:
        This builder for chaining.
      • getStorageTypeValue

        public int getStorageTypeValue()
         Immutable. The storage type of the underlying volume.
         
        .google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStorageTypeValue in interface NfsShareOrBuilder
        Returns:
        The enum numeric value on the wire for storageType.
      • setStorageTypeValue

        public NfsShare.Builder setStorageTypeValue​(int value)
         Immutable. The storage type of the underlying volume.
         
        .google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The enum numeric value on the wire for storageType to set.
        Returns:
        This builder for chaining.
      • getStorageType

        public NfsShare.StorageType getStorageType()
         Immutable. The storage type of the underlying volume.
         
        .google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Specified by:
        getStorageType in interface NfsShareOrBuilder
        Returns:
        The storageType.
      • setStorageType

        public NfsShare.Builder setStorageType​(NfsShare.StorageType value)
         Immutable. The storage type of the underlying volume.
         
        .google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Parameters:
        value - The storageType to set.
        Returns:
        This builder for chaining.
      • clearStorageType

        public NfsShare.Builder clearStorageType()
         Immutable. The storage type of the underlying volume.
         
        .google.cloud.baremetalsolution.v2.NfsShare.StorageType storage_type = 9 [(.google.api.field_behavior) = IMMUTABLE];
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final NfsShare.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<NfsShare.Builder>
      • mergeUnknownFields

        public final NfsShare.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<NfsShare.Builder>