Class Autoscaler.Builder

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

public static final class Autoscaler.Builder extends com.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder> implements AutoscalerOrBuilder
 Represents an Autoscaler resource.

 Google Compute Engine has two Autoscaler resources:

 * [Zonal](/compute/docs/reference/rest/v1/autoscalers)
 * [Regional](/compute/docs/reference/rest/v1/regionAutoscalers)

 Use autoscalers to automatically add or delete instances from a
 managed instance group according to your defined autoscaling policy.
 For more information, read Autoscaling Groups of Instances.

 For zonal managed instance groups resource, use the autoscaler
 resource.

 For regional managed instance groups, use theregionAutoscalers resource.
 
Protobuf type google.cloud.compute.v1.Autoscaler
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Autoscaler.Builder>
    • clear

      public Autoscaler.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<Autoscaler.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<Autoscaler.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Autoscaler.Builder mergeFrom(Autoscaler other)
    • isInitialized

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

      public Autoscaler.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<Autoscaler.Builder>
      Throws:
      IOException
    • hasAutoscalingPolicy

      public boolean hasAutoscalingPolicy()
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
      Specified by:
      hasAutoscalingPolicy in interface AutoscalerOrBuilder
      Returns:
      Whether the autoscalingPolicy field is set.
    • getAutoscalingPolicy

      public AutoscalingPolicy getAutoscalingPolicy()
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
      Specified by:
      getAutoscalingPolicy in interface AutoscalerOrBuilder
      Returns:
      The autoscalingPolicy.
    • setAutoscalingPolicy

      public Autoscaler.Builder setAutoscalingPolicy(AutoscalingPolicy value)
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
    • setAutoscalingPolicy

      public Autoscaler.Builder setAutoscalingPolicy(AutoscalingPolicy.Builder builderForValue)
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
    • mergeAutoscalingPolicy

      public Autoscaler.Builder mergeAutoscalingPolicy(AutoscalingPolicy value)
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
    • clearAutoscalingPolicy

      public Autoscaler.Builder clearAutoscalingPolicy()
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
    • getAutoscalingPolicyBuilder

      public AutoscalingPolicy.Builder getAutoscalingPolicyBuilder()
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
    • getAutoscalingPolicyOrBuilder

      public AutoscalingPolicyOrBuilder getAutoscalingPolicyOrBuilder()
       The configuration parameters for the autoscaling algorithm. You can define
       one or more signals for an autoscaler: cpuUtilization,customMetricUtilizations, andloadBalancingUtilization.
      
       If none of these are specified, the default will be to autoscale based oncpuUtilization to 0.6 or 60%.
       
      optional .google.cloud.compute.v1.AutoscalingPolicy autoscaling_policy = 221950041;
      Specified by:
      getAutoscalingPolicyOrBuilder in interface AutoscalerOrBuilder
    • hasCreationTimestamp

      public boolean hasCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      hasCreationTimestamp in interface AutoscalerOrBuilder
      Returns:
      Whether the creationTimestamp field is set.
    • getCreationTimestamp

      public String getCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestamp in interface AutoscalerOrBuilder
      Returns:
      The creationTimestamp.
    • getCreationTimestampBytes

      public com.google.protobuf.ByteString getCreationTimestampBytes()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Specified by:
      getCreationTimestampBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for creationTimestamp.
    • setCreationTimestamp

      public Autoscaler.Builder setCreationTimestamp(String value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The creationTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreationTimestamp

      public Autoscaler.Builder clearCreationTimestamp()
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Returns:
      This builder for chaining.
    • setCreationTimestampBytes

      public Autoscaler.Builder setCreationTimestampBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Creation timestamp inRFC3339
       text format.
       
      optional string creation_timestamp = 30525366;
      Parameters:
      value - The bytes for creationTimestamp to set.
      Returns:
      This builder for chaining.
    • hasDescription

      public boolean hasDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      hasDescription in interface AutoscalerOrBuilder
      Returns:
      Whether the description field is set.
    • getDescription

      public String getDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescription in interface AutoscalerOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Specified by:
      getDescriptionBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public Autoscaler.Builder setDescription(String value)
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public Autoscaler.Builder clearDescription()
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public Autoscaler.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       An optional description of this resource. Provide this property when you
       create the resource.
       
      optional string description = 422937596;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • hasId

      public boolean hasId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      hasId in interface AutoscalerOrBuilder
      Returns:
      Whether the id field is set.
    • getId

      public long getId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Specified by:
      getId in interface AutoscalerOrBuilder
      Returns:
      The id.
    • setId

      public Autoscaler.Builder setId(long value)
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public Autoscaler.Builder clearId()
       Output only. [Output Only] The unique identifier for the resource. This identifier is
       defined by the server.
       
      optional uint64 id = 3355;
      Returns:
      This builder for chaining.
    • hasKind

      public boolean hasKind()
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Specified by:
      hasKind in interface AutoscalerOrBuilder
      Returns:
      Whether the kind field is set.
    • getKind

      public String getKind()
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Specified by:
      getKind in interface AutoscalerOrBuilder
      Returns:
      The kind.
    • getKindBytes

      public com.google.protobuf.ByteString getKindBytes()
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Specified by:
      getKindBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for kind.
    • setKind

      public Autoscaler.Builder setKind(String value)
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Parameters:
      value - The kind to set.
      Returns:
      This builder for chaining.
    • clearKind

      public Autoscaler.Builder clearKind()
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Returns:
      This builder for chaining.
    • setKindBytes

      public Autoscaler.Builder setKindBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] Type of the resource. Always compute#autoscaler
       for autoscalers.
       
      optional string kind = 3292052;
      Parameters:
      value - The bytes for kind to set.
      Returns:
      This builder for chaining.
    • hasName

      public boolean hasName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      hasName in interface AutoscalerOrBuilder
      Returns:
      Whether the name field is set.
    • getName

      public String getName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getName in interface AutoscalerOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Specified by:
      getNameBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Autoscaler.Builder setName(String value)
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Autoscaler.Builder clearName()
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Returns:
      This builder for chaining.
    • setNameBytes

      public Autoscaler.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the resource. Provided by the client when the resource is created.
       The name must be 1-63 characters long, and comply withRFC1035.
       Specifically, the name must be 1-63 characters long and match the regular
       expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
       character must be a lowercase letter, and all following characters must
       be a dash, lowercase letter, or digit, except the last character, which
       cannot be a dash.
       
      optional string name = 3373707;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasRecommendedSize

      public boolean hasRecommendedSize()
       Output only. [Output Only] Target recommended MIG size (number of instances) computed by
       autoscaler. Autoscaler calculates the recommended MIG size even when the
       autoscaling policy mode is different from ON. This field is empty when
       autoscaler is not connected to an existing managed instance group or
       autoscaler did not generate its prediction.
       
      optional int32 recommended_size = 257915749;
      Specified by:
      hasRecommendedSize in interface AutoscalerOrBuilder
      Returns:
      Whether the recommendedSize field is set.
    • getRecommendedSize

      public int getRecommendedSize()
       Output only. [Output Only] Target recommended MIG size (number of instances) computed by
       autoscaler. Autoscaler calculates the recommended MIG size even when the
       autoscaling policy mode is different from ON. This field is empty when
       autoscaler is not connected to an existing managed instance group or
       autoscaler did not generate its prediction.
       
      optional int32 recommended_size = 257915749;
      Specified by:
      getRecommendedSize in interface AutoscalerOrBuilder
      Returns:
      The recommendedSize.
    • setRecommendedSize

      public Autoscaler.Builder setRecommendedSize(int value)
       Output only. [Output Only] Target recommended MIG size (number of instances) computed by
       autoscaler. Autoscaler calculates the recommended MIG size even when the
       autoscaling policy mode is different from ON. This field is empty when
       autoscaler is not connected to an existing managed instance group or
       autoscaler did not generate its prediction.
       
      optional int32 recommended_size = 257915749;
      Parameters:
      value - The recommendedSize to set.
      Returns:
      This builder for chaining.
    • clearRecommendedSize

      public Autoscaler.Builder clearRecommendedSize()
       Output only. [Output Only] Target recommended MIG size (number of instances) computed by
       autoscaler. Autoscaler calculates the recommended MIG size even when the
       autoscaling policy mode is different from ON. This field is empty when
       autoscaler is not connected to an existing managed instance group or
       autoscaler did not generate its prediction.
       
      optional int32 recommended_size = 257915749;
      Returns:
      This builder for chaining.
    • hasRegion

      public boolean hasRegion()
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Specified by:
      hasRegion in interface AutoscalerOrBuilder
      Returns:
      Whether the region field is set.
    • getRegion

      public String getRegion()
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Specified by:
      getRegion in interface AutoscalerOrBuilder
      Returns:
      The region.
    • getRegionBytes

      public com.google.protobuf.ByteString getRegionBytes()
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Specified by:
      getRegionBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for region.
    • setRegion

      public Autoscaler.Builder setRegion(String value)
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Parameters:
      value - The region to set.
      Returns:
      This builder for chaining.
    • clearRegion

      public Autoscaler.Builder clearRegion()
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Returns:
      This builder for chaining.
    • setRegionBytes

      public Autoscaler.Builder setRegionBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] URL of theregion
       where the instance group resides (for autoscalers living in regional
       scope).
       
      optional string region = 138946292;
      Parameters:
      value - The bytes for region to set.
      Returns:
      This builder for chaining.
    • getScalingScheduleStatusCount

      public int getScalingScheduleStatusCount()
      Description copied from interface: AutoscalerOrBuilder
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
      Specified by:
      getScalingScheduleStatusCount in interface AutoscalerOrBuilder
    • containsScalingScheduleStatus

      public boolean containsScalingScheduleStatus(String key)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
      Specified by:
      containsScalingScheduleStatus in interface AutoscalerOrBuilder
    • getScalingScheduleStatus

      @Deprecated public Map<String,ScalingScheduleStatus> getScalingScheduleStatus()
      Deprecated.
      Specified by:
      getScalingScheduleStatus in interface AutoscalerOrBuilder
    • getScalingScheduleStatusMap

      public Map<String,ScalingScheduleStatus> getScalingScheduleStatusMap()
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
      Specified by:
      getScalingScheduleStatusMap in interface AutoscalerOrBuilder
    • getScalingScheduleStatusOrDefault

      public ScalingScheduleStatus getScalingScheduleStatusOrDefault(String key, ScalingScheduleStatus defaultValue)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
      Specified by:
      getScalingScheduleStatusOrDefault in interface AutoscalerOrBuilder
    • getScalingScheduleStatusOrThrow

      public ScalingScheduleStatus getScalingScheduleStatusOrThrow(String key)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
      Specified by:
      getScalingScheduleStatusOrThrow in interface AutoscalerOrBuilder
    • clearScalingScheduleStatus

      public Autoscaler.Builder clearScalingScheduleStatus()
    • removeScalingScheduleStatus

      public Autoscaler.Builder removeScalingScheduleStatus(String key)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
    • getMutableScalingScheduleStatus

      @Deprecated public Map<String,ScalingScheduleStatus> getMutableScalingScheduleStatus()
      Deprecated.
      Use alternate mutation accessors instead.
    • putScalingScheduleStatus

      public Autoscaler.Builder putScalingScheduleStatus(String key, ScalingScheduleStatus value)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
    • putAllScalingScheduleStatus

      public Autoscaler.Builder putAllScalingScheduleStatus(Map<String,ScalingScheduleStatus> values)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
    • putScalingScheduleStatusBuilderIfAbsent

      public ScalingScheduleStatus.Builder putScalingScheduleStatusBuilderIfAbsent(String key)
       Output only. [Output Only] Status information of existing scaling schedules.
       
      map<string, .google.cloud.compute.v1.ScalingScheduleStatus> scaling_schedule_status = 465950178;
    • hasSelfLink

      public boolean hasSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      hasSelfLink in interface AutoscalerOrBuilder
      Returns:
      Whether the selfLink field is set.
    • getSelfLink

      public String getSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLink in interface AutoscalerOrBuilder
      Returns:
      The selfLink.
    • getSelfLinkBytes

      public com.google.protobuf.ByteString getSelfLinkBytes()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Specified by:
      getSelfLinkBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for selfLink.
    • setSelfLink

      public Autoscaler.Builder setSelfLink(String value)
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The selfLink to set.
      Returns:
      This builder for chaining.
    • clearSelfLink

      public Autoscaler.Builder clearSelfLink()
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Returns:
      This builder for chaining.
    • setSelfLinkBytes

      public Autoscaler.Builder setSelfLinkBytes(com.google.protobuf.ByteString value)
       [Output Only] Server-defined URL for the resource.
       
      optional string self_link = 456214797;
      Parameters:
      value - The bytes for selfLink to set.
      Returns:
      This builder for chaining.
    • hasStatus

      public boolean hasStatus()
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      hasStatus in interface AutoscalerOrBuilder
      Returns:
      Whether the status field is set.
    • getStatus

      public String getStatus()
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatus in interface AutoscalerOrBuilder
      Returns:
      The status.
    • getStatusBytes

      public com.google.protobuf.ByteString getStatusBytes()
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Specified by:
      getStatusBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for status.
    • setStatus

      public Autoscaler.Builder setStatus(String value)
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The status to set.
      Returns:
      This builder for chaining.
    • clearStatus

      public Autoscaler.Builder clearStatus()
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Returns:
      This builder for chaining.
    • setStatusBytes

      public Autoscaler.Builder setStatusBytes(com.google.protobuf.ByteString value)
       [Output Only] The status of the autoscaler configuration. Current set of
       possible values:
      
       - PENDING:
       Autoscaler backend hasn't read new/updated configuration.
       - DELETING:
       Configuration is being deleted.
       - ACTIVE:
       Configuration is acknowledged to be effective. Some warnings might
       be present in the statusDetails field.
       - ERROR:
       Configuration has errors. Actionable for users. Details are present in
       the statusDetails field.
      
      
       New values might be added in the future.
       Check the Status enum for the list of possible values.
       
      optional string status = 181260274;
      Parameters:
      value - The bytes for status to set.
      Returns:
      This builder for chaining.
    • getStatusDetailsList

      public List<AutoscalerStatusDetails> getStatusDetailsList()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
      Specified by:
      getStatusDetailsList in interface AutoscalerOrBuilder
    • getStatusDetailsCount

      public int getStatusDetailsCount()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
      Specified by:
      getStatusDetailsCount in interface AutoscalerOrBuilder
    • getStatusDetails

      public AutoscalerStatusDetails getStatusDetails(int index)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
      Specified by:
      getStatusDetails in interface AutoscalerOrBuilder
    • setStatusDetails

      public Autoscaler.Builder setStatusDetails(int index, AutoscalerStatusDetails value)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • setStatusDetails

      public Autoscaler.Builder setStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addStatusDetails

      public Autoscaler.Builder addStatusDetails(AutoscalerStatusDetails value)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addStatusDetails

      public Autoscaler.Builder addStatusDetails(int index, AutoscalerStatusDetails value)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addStatusDetails

      public Autoscaler.Builder addStatusDetails(AutoscalerStatusDetails.Builder builderForValue)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addStatusDetails

      public Autoscaler.Builder addStatusDetails(int index, AutoscalerStatusDetails.Builder builderForValue)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addAllStatusDetails

      public Autoscaler.Builder addAllStatusDetails(Iterable<? extends AutoscalerStatusDetails> values)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • clearStatusDetails

      public Autoscaler.Builder clearStatusDetails()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • removeStatusDetails

      public Autoscaler.Builder removeStatusDetails(int index)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • getStatusDetailsBuilder

      public AutoscalerStatusDetails.Builder getStatusDetailsBuilder(int index)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • getStatusDetailsOrBuilder

      public AutoscalerStatusDetailsOrBuilder getStatusDetailsOrBuilder(int index)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
      Specified by:
      getStatusDetailsOrBuilder in interface AutoscalerOrBuilder
    • getStatusDetailsOrBuilderList

      public List<? extends AutoscalerStatusDetailsOrBuilder> getStatusDetailsOrBuilderList()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
      Specified by:
      getStatusDetailsOrBuilderList in interface AutoscalerOrBuilder
    • addStatusDetailsBuilder

      public AutoscalerStatusDetails.Builder addStatusDetailsBuilder()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • addStatusDetailsBuilder

      public AutoscalerStatusDetails.Builder addStatusDetailsBuilder(int index)
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • getStatusDetailsBuilderList

      public List<AutoscalerStatusDetails.Builder> getStatusDetailsBuilderList()
       [Output Only] Human-readable details about the current state of the
       autoscaler. Read the documentation forCommonly
       returned status messages for examples of status messages you might
       encounter.
       
      repeated .google.cloud.compute.v1.AutoscalerStatusDetails status_details = 363353845;
    • hasTarget

      public boolean hasTarget()
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Specified by:
      hasTarget in interface AutoscalerOrBuilder
      Returns:
      Whether the target field is set.
    • getTarget

      public String getTarget()
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Specified by:
      getTarget in interface AutoscalerOrBuilder
      Returns:
      The target.
    • getTargetBytes

      public com.google.protobuf.ByteString getTargetBytes()
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Specified by:
      getTargetBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for target.
    • setTarget

      public Autoscaler.Builder setTarget(String value)
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Parameters:
      value - The target to set.
      Returns:
      This builder for chaining.
    • clearTarget

      public Autoscaler.Builder clearTarget()
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Returns:
      This builder for chaining.
    • setTargetBytes

      public Autoscaler.Builder setTargetBytes(com.google.protobuf.ByteString value)
       URL of the managed instance group that this autoscaler will scale. This
       field is required when creating an autoscaler.
       
      optional string target = 192835985;
      Parameters:
      value - The bytes for target to set.
      Returns:
      This builder for chaining.
    • hasZone

      public boolean hasZone()
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Specified by:
      hasZone in interface AutoscalerOrBuilder
      Returns:
      Whether the zone field is set.
    • getZone

      public String getZone()
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Specified by:
      getZone in interface AutoscalerOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      public com.google.protobuf.ByteString getZoneBytes()
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Specified by:
      getZoneBytes in interface AutoscalerOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      public Autoscaler.Builder setZone(String value)
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      public Autoscaler.Builder clearZone()
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Returns:
      This builder for chaining.
    • setZoneBytes

      public Autoscaler.Builder setZoneBytes(com.google.protobuf.ByteString value)
       Output only. [Output Only] URL of thezone
       where the instance group resides (for autoscalers living in zonal scope).
       
      optional string zone = 3744684;
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.