Class ManagedInstanceVersion.Builder

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

public static final class ManagedInstanceVersion.Builder extends com.google.protobuf.GeneratedMessage.Builder<ManagedInstanceVersion.Builder> implements ManagedInstanceVersionOrBuilder
 
Protobuf type google.cloud.compute.v1.ManagedInstanceVersion
  • 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<ManagedInstanceVersion.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<ManagedInstanceVersion.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<ManagedInstanceVersion.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public ManagedInstanceVersion.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<ManagedInstanceVersion.Builder>
      Throws:
      IOException
    • hasInstanceTemplate

      public boolean hasInstanceTemplate()
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Specified by:
      hasInstanceTemplate in interface ManagedInstanceVersionOrBuilder
      Returns:
      Whether the instanceTemplate field is set.
    • getInstanceTemplate

      public String getInstanceTemplate()
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplate in interface ManagedInstanceVersionOrBuilder
      Returns:
      The instanceTemplate.
    • getInstanceTemplateBytes

      public com.google.protobuf.ByteString getInstanceTemplateBytes()
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplateBytes in interface ManagedInstanceVersionOrBuilder
      Returns:
      The bytes for instanceTemplate.
    • setInstanceTemplate

      public ManagedInstanceVersion.Builder setInstanceTemplate(String value)
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Parameters:
      value - The instanceTemplate to set.
      Returns:
      This builder for chaining.
    • clearInstanceTemplate

      public ManagedInstanceVersion.Builder clearInstanceTemplate()
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Returns:
      This builder for chaining.
    • setInstanceTemplateBytes

      public ManagedInstanceVersion.Builder setInstanceTemplateBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] The intended template of the instance. This field is empty
       when current_action is one of { DELETING, ABANDONING }.
       
      optional string instance_template = 309248228;
      Parameters:
      value - The bytes for instanceTemplate to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface ManagedInstanceVersionOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Specified by:
      getName in interface ManagedInstanceVersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface ManagedInstanceVersionOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ManagedInstanceVersion.Builder setName(String value)
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ManagedInstanceVersion.Builder clearName()
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ManagedInstanceVersion.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Name of the version.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.