public static final class V1Autoscaling.PodsMetricSource.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder> implements V1Autoscaling.PodsMetricSourceOrBuilder
PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.Protobuf type
k8s.io.api.autoscaling.v1.PodsMetricSource
Modifier and Type | Method and Description |
---|---|
V1Autoscaling.PodsMetricSource.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.PodsMetricSource |
build() |
V1Autoscaling.PodsMetricSource |
buildPartial() |
V1Autoscaling.PodsMetricSource.Builder |
clear() |
V1Autoscaling.PodsMetricSource.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
V1Autoscaling.PodsMetricSource.Builder |
clearMetricName()
metricName is the name of the metric in question
|
V1Autoscaling.PodsMetricSource.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
V1Autoscaling.PodsMetricSource.Builder |
clearSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
V1Autoscaling.PodsMetricSource.Builder |
clearTargetAverageValue()
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
V1Autoscaling.PodsMetricSource.Builder |
clone() |
V1Autoscaling.PodsMetricSource |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getMetricName()
metricName is the name of the metric in question
|
com.google.protobuf.ByteString |
getMetricNameBytes()
metricName is the name of the metric in question
|
Meta.LabelSelector |
getSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
Meta.LabelSelector.Builder |
getSelectorBuilder()
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
Meta.LabelSelectorOrBuilder |
getSelectorOrBuilder()
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
Resource.Quantity |
getTargetAverageValue()
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
Resource.Quantity.Builder |
getTargetAverageValueBuilder()
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
Resource.QuantityOrBuilder |
getTargetAverageValueOrBuilder()
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
boolean |
hasMetricName()
metricName is the name of the metric in question
|
boolean |
hasSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
boolean |
hasTargetAverageValue()
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
V1Autoscaling.PodsMetricSource.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
V1Autoscaling.PodsMetricSource.Builder |
mergeFrom(com.google.protobuf.Message other) |
V1Autoscaling.PodsMetricSource.Builder |
mergeFrom(V1Autoscaling.PodsMetricSource other) |
V1Autoscaling.PodsMetricSource.Builder |
mergeSelector(Meta.LabelSelector value)
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
V1Autoscaling.PodsMetricSource.Builder |
mergeTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
V1Autoscaling.PodsMetricSource.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
V1Autoscaling.PodsMetricSource.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
V1Autoscaling.PodsMetricSource.Builder |
setMetricName(String value)
metricName is the name of the metric in question
|
V1Autoscaling.PodsMetricSource.Builder |
setMetricNameBytes(com.google.protobuf.ByteString value)
metricName is the name of the metric in question
|
V1Autoscaling.PodsMetricSource.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
V1Autoscaling.PodsMetricSource.Builder |
setSelector(Meta.LabelSelector.Builder builderForValue)
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
V1Autoscaling.PodsMetricSource.Builder |
setSelector(Meta.LabelSelector value)
selector is the string-encoded form of a standard kubernetes label selector for the given metric
When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping
When unset, just the metricName will be used to gather metrics.
|
V1Autoscaling.PodsMetricSource.Builder |
setTargetAverageValue(Resource.Quantity.Builder builderForValue)
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
V1Autoscaling.PodsMetricSource.Builder |
setTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target value of the average of the
metric across all relevant pods (as a quantity)
|
V1Autoscaling.PodsMetricSource.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public V1Autoscaling.PodsMetricSource build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public V1Autoscaling.PodsMetricSource buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public V1Autoscaling.PodsMetricSource.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder mergeFrom(V1Autoscaling.PodsMetricSource other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public V1Autoscaling.PodsMetricSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<V1Autoscaling.PodsMetricSource.Builder>
IOException
public boolean hasMetricName()
metricName is the name of the metric in question
optional string metricName = 1;
hasMetricName
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public String getMetricName()
metricName is the name of the metric in question
optional string metricName = 1;
getMetricName
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public com.google.protobuf.ByteString getMetricNameBytes()
metricName is the name of the metric in question
optional string metricName = 1;
getMetricNameBytes
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public V1Autoscaling.PodsMetricSource.Builder setMetricName(String value)
metricName is the name of the metric in question
optional string metricName = 1;
public V1Autoscaling.PodsMetricSource.Builder clearMetricName()
metricName is the name of the metric in question
optional string metricName = 1;
public V1Autoscaling.PodsMetricSource.Builder setMetricNameBytes(com.google.protobuf.ByteString value)
metricName is the name of the metric in question
optional string metricName = 1;
public boolean hasTargetAverageValue()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
hasTargetAverageValue
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public Resource.Quantity getTargetAverageValue()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
getTargetAverageValue
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public V1Autoscaling.PodsMetricSource.Builder setTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
public V1Autoscaling.PodsMetricSource.Builder setTargetAverageValue(Resource.Quantity.Builder builderForValue)
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
public V1Autoscaling.PodsMetricSource.Builder mergeTargetAverageValue(Resource.Quantity value)
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
public V1Autoscaling.PodsMetricSource.Builder clearTargetAverageValue()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
public Resource.Quantity.Builder getTargetAverageValueBuilder()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
public Resource.QuantityOrBuilder getTargetAverageValueOrBuilder()
targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 2;
getTargetAverageValueOrBuilder
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public boolean hasSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
hasSelector
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public Meta.LabelSelector getSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
getSelector
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public V1Autoscaling.PodsMetricSource.Builder setSelector(Meta.LabelSelector value)
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
public V1Autoscaling.PodsMetricSource.Builder setSelector(Meta.LabelSelector.Builder builderForValue)
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
public V1Autoscaling.PodsMetricSource.Builder mergeSelector(Meta.LabelSelector value)
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
public V1Autoscaling.PodsMetricSource.Builder clearSelector()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
public Meta.LabelSelector.Builder getSelectorBuilder()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 3;
getSelectorOrBuilder
in interface V1Autoscaling.PodsMetricSourceOrBuilder
public final V1Autoscaling.PodsMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
public final V1Autoscaling.PodsMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
Copyright © 2021. All rights reserved.