Class InstancesSetMachineTypeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<InstancesSetMachineTypeRequest.Builder>
com.google.cloud.compute.v1.InstancesSetMachineTypeRequest.Builder
All Implemented Interfaces:
InstancesSetMachineTypeRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
InstancesSetMachineTypeRequest

public static final class InstancesSetMachineTypeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<InstancesSetMachineTypeRequest.Builder> implements InstancesSetMachineTypeRequestOrBuilder
 
Protobuf type google.cloud.compute.v1.InstancesSetMachineTypeRequest
  • Method Details

    • getDescriptor

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public InstancesSetMachineTypeRequest.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<InstancesSetMachineTypeRequest.Builder>
      Throws:
      IOException
    • hasMachineType

      public boolean hasMachineType()
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Specified by:
      hasMachineType in interface InstancesSetMachineTypeRequestOrBuilder
      Returns:
      Whether the machineType field is set.
    • getMachineType

      public String getMachineType()
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineType in interface InstancesSetMachineTypeRequestOrBuilder
      Returns:
      The machineType.
    • getMachineTypeBytes

      public com.google.protobuf.ByteString getMachineTypeBytes()
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Specified by:
      getMachineTypeBytes in interface InstancesSetMachineTypeRequestOrBuilder
      Returns:
      The bytes for machineType.
    • setMachineType

      public InstancesSetMachineTypeRequest.Builder setMachineType(String value)
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Parameters:
      value - The machineType to set.
      Returns:
      This builder for chaining.
    • clearMachineType

      public InstancesSetMachineTypeRequest.Builder clearMachineType()
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Returns:
      This builder for chaining.
    • setMachineTypeBytes

      public InstancesSetMachineTypeRequest.Builder setMachineTypeBytes(com.google.protobuf.ByteString value)
       Full or partial URL of the machine type resource. See Machine Types for a full list of
       machine types. For example:zones/us-central1-f/machineTypes/n1-standard-1
       
      optional string machine_type = 227711026;
      Parameters:
      value - The bytes for machineType to set.
      Returns:
      This builder for chaining.