Class LocalDiskInitializeParams

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

    public final class LocalDiskInitializeParams
    extends com.google.protobuf.GeneratedMessageV3
    implements LocalDiskInitializeParamsOrBuilder
     Input only. Specifies the parameters for a new disk that will be created
     alongside the new instance. Use initialization parameters to create boot
     disks or local SSDs attached to the new runtime.
     This property is mutually exclusive with the source property; you can only
     define one or the other, but not both.
     
    Protobuf type google.cloud.notebooks.v1.LocalDiskInitializeParams
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3
      • internalGetFieldAccessorTable

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

        public String getDescription()
         Optional. Provide this property when creating the disk.
         
        string description = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescription in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The description.
      • getDescriptionBytes

        public com.google.protobuf.ByteString getDescriptionBytes()
         Optional. Provide this property when creating the disk.
         
        string description = 1 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDescriptionBytes in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The bytes for description.
      • getDiskName

        public String getDiskName()
         Optional. Specifies the disk name. If not specified, the default is to use the name
         of the instance. If the disk with the instance name exists already in the
         given zone/region, a new name will be automatically generated.
         
        string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskName in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The diskName.
      • getDiskNameBytes

        public com.google.protobuf.ByteString getDiskNameBytes()
         Optional. Specifies the disk name. If not specified, the default is to use the name
         of the instance. If the disk with the instance name exists already in the
         given zone/region, a new name will be automatically generated.
         
        string disk_name = 2 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskNameBytes in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The bytes for diskName.
      • getDiskSizeGb

        public long getDiskSizeGb()
         Optional. Specifies the size of the disk in base-2 GB. If not specified, the disk
         will be the same size as the image (usually 10GB). If specified, the size
         must be equal to or larger than 10GB. Default 100 GB.
         
        int64 disk_size_gb = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getDiskSizeGb in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The diskSizeGb.
      • getDiskTypeValue

        public int getDiskTypeValue()
         Input only. The type of the boot disk attached to this instance, defaults to
         standard persistent disk (`PD_STANDARD`).
         
        .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getDiskTypeValue in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The enum numeric value on the wire for diskType.
      • getDiskType

        public LocalDiskInitializeParams.DiskType getDiskType()
         Input only. The type of the boot disk attached to this instance, defaults to
         standard persistent disk (`PD_STANDARD`).
         
        .google.cloud.notebooks.v1.LocalDiskInitializeParams.DiskType disk_type = 4 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getDiskType in interface LocalDiskInitializeParamsOrBuilder
        Returns:
        The diskType.
      • getLabelsCount

        public int getLabelsCount()
        Description copied from interface: LocalDiskInitializeParamsOrBuilder
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsCount in interface LocalDiskInitializeParamsOrBuilder
      • containsLabels

        public boolean containsLabels​(String key)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        containsLabels in interface LocalDiskInitializeParamsOrBuilder
      • getLabelsMap

        public Map<String,​String> getLabelsMap()
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsMap in interface LocalDiskInitializeParamsOrBuilder
      • getLabelsOrDefault

        public String getLabelsOrDefault​(String key,
                                         String defaultValue)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrDefault in interface LocalDiskInitializeParamsOrBuilder
      • getLabelsOrThrow

        public String getLabelsOrThrow​(String key)
         Optional. Labels to apply to this disk. These can be later modified by the
         disks.setLabels method. This field is only applicable for persistent disks.
         
        map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getLabelsOrThrow in interface LocalDiskInitializeParamsOrBuilder
      • isInitialized

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

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

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

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

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<LocalDiskInitializeParams> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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