Class InstanceGroupManagerVersion

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.compute.v1.InstanceGroupManagerVersion
All Implemented Interfaces:
InstanceGroupManagerVersionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class InstanceGroupManagerVersion extends com.google.protobuf.GeneratedMessage implements InstanceGroupManagerVersionOrBuilder
 
Protobuf type google.cloud.compute.v1.InstanceGroupManagerVersion
See Also:
  • Field Details

    • INSTANCE_TEMPLATE_FIELD_NUMBER

      public static final int INSTANCE_TEMPLATE_FIELD_NUMBER
      See Also:
    • NAME_FIELD_NUMBER

      public static final int NAME_FIELD_NUMBER
      See Also:
    • TARGET_SIZE_FIELD_NUMBER

      public static final int TARGET_SIZE_FIELD_NUMBER
      See Also:
  • 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
    • hasInstanceTemplate

      public boolean hasInstanceTemplate()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create new instances in
       the managed instance group until the `targetSize` for this version is
       reached. The templates for existing instances in the group do not change
       unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE; in those cases,
       existing instances are updated until the `targetSize` for this version is
       reached.
       
      optional string instance_template = 309248228;
      Specified by:
      hasInstanceTemplate in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      Whether the instanceTemplate field is set.
    • getInstanceTemplate

      public String getInstanceTemplate()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create new instances in
       the managed instance group until the `targetSize` for this version is
       reached. The templates for existing instances in the group do not change
       unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE; in those cases,
       existing instances are updated until the `targetSize` for this version is
       reached.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplate in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      The instanceTemplate.
    • getInstanceTemplateBytes

      public com.google.protobuf.ByteString getInstanceTemplateBytes()
       The URL of the instance template that is specified for this managed
       instance group. The group uses this template to create new instances in
       the managed instance group until the `targetSize` for this version is
       reached. The templates for existing instances in the group do not change
       unless you run recreateInstances, runapplyUpdatesToInstances, or set the group'supdatePolicy.type to PROACTIVE; in those cases,
       existing instances are updated until the `targetSize` for this version is
       reached.
       
      optional string instance_template = 309248228;
      Specified by:
      getInstanceTemplateBytes in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      The bytes for instanceTemplate.
    • hasName

      public boolean hasName()
       Name of the version. Unique among all versions in the scope of this
       managed instance group.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the version. Unique among all versions in the scope of this
       managed instance group.
       
      optional string name = 3373707;
      Specified by:
      getName in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the version. Unique among all versions in the scope of this
       managed instance group.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      The bytes for name.
    • hasTargetSize

      public boolean hasTargetSize()
       Specifies the intended number of instances to be created from theinstanceTemplate. The final number of instances created
       from the template will be equal to:
      
      
       - If expressed as a fixed number, the minimum of either
       targetSize.fixed or
       instanceGroupManager.targetSize is used.
       - if expressed as a percent, the targetSize
       would be (targetSize.percent/100 *
       InstanceGroupManager.targetSize) If there is a remainder, the
       number is rounded.
      
       If unset, this version will update any remaining instances not
       updated by another version. ReadStarting
       a canary update for more information.
       
      optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
      Specified by:
      hasTargetSize in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      Whether the targetSize field is set.
    • getTargetSize

      public FixedOrPercent getTargetSize()
       Specifies the intended number of instances to be created from theinstanceTemplate. The final number of instances created
       from the template will be equal to:
      
      
       - If expressed as a fixed number, the minimum of either
       targetSize.fixed or
       instanceGroupManager.targetSize is used.
       - if expressed as a percent, the targetSize
       would be (targetSize.percent/100 *
       InstanceGroupManager.targetSize) If there is a remainder, the
       number is rounded.
      
       If unset, this version will update any remaining instances not
       updated by another version. ReadStarting
       a canary update for more information.
       
      optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
      Specified by:
      getTargetSize in interface InstanceGroupManagerVersionOrBuilder
      Returns:
      The targetSize.
    • getTargetSizeOrBuilder

      public FixedOrPercentOrBuilder getTargetSizeOrBuilder()
       Specifies the intended number of instances to be created from theinstanceTemplate. The final number of instances created
       from the template will be equal to:
      
      
       - If expressed as a fixed number, the minimum of either
       targetSize.fixed or
       instanceGroupManager.targetSize is used.
       - if expressed as a percent, the targetSize
       would be (targetSize.percent/100 *
       InstanceGroupManager.targetSize) If there is a remainder, the
       number is rounded.
      
       If unset, this version will update any remaining instances not
       updated by another version. ReadStarting
       a canary update for more information.
       
      optional .google.cloud.compute.v1.FixedOrPercent target_size = 62880239;
      Specified by:
      getTargetSizeOrBuilder in interface InstanceGroupManagerVersionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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 InstanceGroupManagerVersion parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static InstanceGroupManagerVersion parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstanceGroupManagerVersion parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstanceGroupManagerVersion parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static InstanceGroupManagerVersion parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstanceGroupManagerVersion parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static InstanceGroupManagerVersion parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static InstanceGroupManagerVersion.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected InstanceGroupManagerVersion.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static InstanceGroupManagerVersion getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<InstanceGroupManagerVersion> parser()
    • getParserForType

      public com.google.protobuf.Parser<InstanceGroupManagerVersion> 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.GeneratedMessage
    • getDefaultInstanceForType

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