Class UpgradeInstanceInternalRequest.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<UpgradeInstanceInternalRequest.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<UpgradeInstanceInternalRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public String getName()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getName in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getNameBytes in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public UpgradeInstanceInternalRequest.Builder setName​(String value)
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public UpgradeInstanceInternalRequest.Builder clearName()
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setNameBytes

        public UpgradeInstanceInternalRequest.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Required. Format:
         `projects/{project_id}/locations/{location}/instances/{instance_id}`
         
        string name = 1 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getVmId

        public String getVmId()
         Required. The VM hardware token for authenticating the VM.
         https://cloud.google.com/compute/docs/instances/verifying-instance-identity
         
        string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVmId in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The vmId.
      • getVmIdBytes

        public com.google.protobuf.ByteString getVmIdBytes()
         Required. The VM hardware token for authenticating the VM.
         https://cloud.google.com/compute/docs/instances/verifying-instance-identity
         
        string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getVmIdBytes in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The bytes for vmId.
      • setVmId

        public UpgradeInstanceInternalRequest.Builder setVmId​(String value)
         Required. The VM hardware token for authenticating the VM.
         https://cloud.google.com/compute/docs/instances/verifying-instance-identity
         
        string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The vmId to set.
        Returns:
        This builder for chaining.
      • clearVmId

        public UpgradeInstanceInternalRequest.Builder clearVmId()
         Required. The VM hardware token for authenticating the VM.
         https://cloud.google.com/compute/docs/instances/verifying-instance-identity
         
        string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setVmIdBytes

        public UpgradeInstanceInternalRequest.Builder setVmIdBytes​(com.google.protobuf.ByteString value)
         Required. The VM hardware token for authenticating the VM.
         https://cloud.google.com/compute/docs/instances/verifying-instance-identity
         
        string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for vmId to set.
        Returns:
        This builder for chaining.
      • getTypeValue

        public int getTypeValue()
         Optional. The optional UpgradeType. Setting this field will search for additional
         compute images to upgrade this instance.
         
        .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getTypeValue in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public UpgradeInstanceInternalRequest.Builder setTypeValue​(int value)
         Optional. The optional UpgradeType. Setting this field will search for additional
         compute images to upgrade this instance.
         
        .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public UpgradeType getType()
         Optional. The optional UpgradeType. Setting this field will search for additional
         compute images to upgrade this instance.
         
        .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getType in interface UpgradeInstanceInternalRequestOrBuilder
        Returns:
        The type.
      • setType

        public UpgradeInstanceInternalRequest.Builder setType​(UpgradeType value)
         Optional. The optional UpgradeType. Setting this field will search for additional
         compute images to upgrade this instance.
         
        .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public UpgradeInstanceInternalRequest.Builder clearType()
         Optional. The optional UpgradeType. Setting this field will search for additional
         compute images to upgrade this instance.
         
        .google.cloud.notebooks.v1.UpgradeType type = 3 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.