Class SetInstanceMachineTypeRequest.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<SetInstanceMachineTypeRequest.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<SetInstanceMachineTypeRequest.Builder>
      • getDefaultInstanceForType

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

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

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

        public SetInstanceMachineTypeRequest.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<SetInstanceMachineTypeRequest.Builder>
        Throws:
        IOException
      • 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 SetInstanceMachineTypeRequestOrBuilder
        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 SetInstanceMachineTypeRequestOrBuilder
        Returns:
        The bytes for name.
      • setName

        public SetInstanceMachineTypeRequest.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 SetInstanceMachineTypeRequest.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 SetInstanceMachineTypeRequest.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.
      • getMachineType

        public String getMachineType()
         Required. The [Compute Engine machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMachineType in interface SetInstanceMachineTypeRequestOrBuilder
        Returns:
        The machineType.
      • getMachineTypeBytes

        public com.google.protobuf.ByteString getMachineTypeBytes()
         Required. The [Compute Engine machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getMachineTypeBytes in interface SetInstanceMachineTypeRequestOrBuilder
        Returns:
        The bytes for machineType.
      • setMachineType

        public SetInstanceMachineTypeRequest.Builder setMachineType​(String value)
         Required. The [Compute Engine machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The machineType to set.
        Returns:
        This builder for chaining.
      • clearMachineType

        public SetInstanceMachineTypeRequest.Builder clearMachineType()
         Required. The [Compute Engine machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setMachineTypeBytes

        public SetInstanceMachineTypeRequest.Builder setMachineTypeBytes​(com.google.protobuf.ByteString value)
         Required. The [Compute Engine machine
         type](https://cloud.google.com/compute/docs/machine-types).
         
        string machine_type = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for machineType to set.
        Returns:
        This builder for chaining.