public static final class BackendCustomMetric.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder> implements BackendCustomMetricOrBuilder
Custom Metrics are used for CUSTOM_METRICS balancing_mode.Protobuf type
google.cloud.compute.v1.BackendCustomMetric| Modifier and Type | Method and Description |
|---|---|
BackendCustomMetric.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackendCustomMetric |
build() |
BackendCustomMetric |
buildPartial() |
BackendCustomMetric.Builder |
clear() |
BackendCustomMetric.Builder |
clearDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
|
BackendCustomMetric.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
BackendCustomMetric.Builder |
clearMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode.
|
BackendCustomMetric.Builder |
clearName()
Name of a custom utilization signal.
|
BackendCustomMetric.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
BackendCustomMetric.Builder |
clone() |
BackendCustomMetric |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
boolean |
getDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
|
float |
getMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode.
|
String |
getName()
Name of a custom utilization signal.
|
com.google.protobuf.ByteString |
getNameBytes()
Name of a custom utilization signal.
|
boolean |
hasDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
|
boolean |
hasMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode.
|
boolean |
hasName()
Name of a custom utilization signal.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
BackendCustomMetric.Builder |
mergeFrom(BackendCustomMetric other) |
BackendCustomMetric.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
BackendCustomMetric.Builder |
mergeFrom(com.google.protobuf.Message other) |
BackendCustomMetric.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
BackendCustomMetric.Builder |
setDryRun(boolean value)
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
|
BackendCustomMetric.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
BackendCustomMetric.Builder |
setMaxUtilization(float value)
Optional parameter to define a target utilization for the Custom Metrics balancing mode.
|
BackendCustomMetric.Builder |
setName(String value)
Name of a custom utilization signal.
|
BackendCustomMetric.Builder |
setNameBytes(com.google.protobuf.ByteString value)
Name of a custom utilization signal.
|
BackendCustomMetric.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
BackendCustomMetric.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic BackendCustomMetric build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic BackendCustomMetric buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic BackendCustomMetric.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder mergeFrom(BackendCustomMetric other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public BackendCustomMetric.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<BackendCustomMetric.Builder>IOExceptionpublic boolean hasDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
optional bool dry_run = 323854839;hasDryRun in interface BackendCustomMetricOrBuilderpublic boolean getDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
optional bool dry_run = 323854839;getDryRun in interface BackendCustomMetricOrBuilderpublic BackendCustomMetric.Builder setDryRun(boolean value)
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
optional bool dry_run = 323854839;value - The dryRun to set.public BackendCustomMetric.Builder clearDryRun()
If true, the metric data is collected and reported to Cloud Monitoring, but is not used for load balancing.
optional bool dry_run = 323854839;public boolean hasMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].
optional float max_utilization = 148192199;hasMaxUtilization in interface BackendCustomMetricOrBuilderpublic float getMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].
optional float max_utilization = 148192199;getMaxUtilization in interface BackendCustomMetricOrBuilderpublic BackendCustomMetric.Builder setMaxUtilization(float value)
Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].
optional float max_utilization = 148192199;value - The maxUtilization to set.public BackendCustomMetric.Builder clearMaxUtilization()
Optional parameter to define a target utilization for the Custom Metrics balancing mode. The valid range is [0.0, 1.0].
optional float max_utilization = 148192199;public boolean hasName()
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;hasName in interface BackendCustomMetricOrBuilderpublic String getName()
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;getName in interface BackendCustomMetricOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;getNameBytes in interface BackendCustomMetricOrBuilderpublic BackendCustomMetric.Builder setName(String value)
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;value - The name to set.public BackendCustomMetric.Builder clearName()
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;public BackendCustomMetric.Builder setNameBytes(com.google.protobuf.ByteString value)
Name of a custom utilization signal. The name must be 1-64 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, period, underscore, lowercase letter, or digit, except the last character, which cannot be a dash, period, or underscore. For usage guidelines, see Custom Metrics balancing mode. This field can only be used for a global or regional backend service with the loadBalancingScheme set to EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
optional string name = 3373707;value - The bytes for name to set.public final BackendCustomMetric.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>public final BackendCustomMetric.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<BackendCustomMetric.Builder>Copyright © 2025 Google LLC. All rights reserved.