Package io.kubernetes.client.proto
Class V1Autoscaling.PodsMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
io.kubernetes.client.proto.V1Autoscaling.PodsMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Autoscaling.PodsMetricSourceOrBuilder,Cloneable
- Enclosing class:
- V1Autoscaling.PodsMetricSource
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-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) metricName is the name of the metric in questionclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) 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.targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptormetricName is the name of the metric in questioncom.google.protobuf.ByteStringmetricName is the name of the metric in questionselector 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.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.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.targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)booleanmetricName is the name of the metric in questionbooleanselector 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.booleantargetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMetricName(String value) metricName is the name of the metric in questionsetMetricNameBytes(com.google.protobuf.ByteString value) metricName is the name of the metric in questionsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.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.targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)setTargetAverageValue(Resource.Quantity.Builder builderForValue) targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
setField
public V1Autoscaling.PodsMetricSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
clearField
public V1Autoscaling.PodsMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
clearOneof
public V1Autoscaling.PodsMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
setRepeatedField
public V1Autoscaling.PodsMetricSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
addRepeatedField
public V1Autoscaling.PodsMetricSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
mergeFrom
public V1Autoscaling.PodsMetricSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.PodsMetricSource.Builder>- Throws:
IOException
-
hasMetricName
public boolean hasMetricName()metricName is the name of the metric in question
optional string metricName = 1;- Specified by:
hasMetricNamein interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
getMetricName
metricName is the name of the metric in question
optional string metricName = 1;- Specified by:
getMetricNamein interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
getMetricNameBytes
public com.google.protobuf.ByteString getMetricNameBytes()metricName is the name of the metric in question
optional string metricName = 1;- Specified by:
getMetricNameBytesin interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
setMetricName
metricName is the name of the metric in question
optional string metricName = 1; -
clearMetricName
metricName is the name of the metric in question
optional string metricName = 1; -
setMetricNameBytes
public V1Autoscaling.PodsMetricSource.Builder setMetricNameBytes(com.google.protobuf.ByteString value) metricName is the name of the metric in question
optional string metricName = 1; -
hasTargetAverageValue
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;- Specified by:
hasTargetAverageValuein interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
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;- Specified by:
getTargetAverageValuein interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
setTargetAverageValue
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; -
setTargetAverageValue
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; -
mergeTargetAverageValue
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; -
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; -
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; -
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;- Specified by:
getTargetAverageValueOrBuilderin interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
hasSelector
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;- Specified by:
hasSelectorin interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
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;- Specified by:
getSelectorin interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
setSelector
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; -
setSelector
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; -
mergeSelector
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; -
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; -
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; -
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;- Specified by:
getSelectorOrBuilderin interfaceV1Autoscaling.PodsMetricSourceOrBuilder
-
setUnknownFields
public final V1Autoscaling.PodsMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-
mergeUnknownFields
public final V1Autoscaling.PodsMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.PodsMetricSource.Builder>
-