Package io.kubernetes.client.proto
Class V2beta1Autoscaling.ObjectMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
io.kubernetes.client.proto.V2beta1Autoscaling.ObjectMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V2beta1Autoscaling.ObjectMetricSourceOrBuilder
,Cloneable
- Enclosing class:
- V2beta1Autoscaling.ObjectMetricSource
public static final class V2beta1Autoscaling.ObjectMetricSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
implements V2beta1Autoscaling.ObjectMetricSourceOrBuilder
ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).Protobuf type
k8s.io.api.autoscaling.v2beta1.ObjectMetricSource
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalclearField
(com.google.protobuf.Descriptors.FieldDescriptor field) metricName is the name of the metric in question.clearOneof
(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.target is the described Kubernetes object.targetValue is the target value of the metric (as a quantity).clone()
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalaverageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalaverageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
metricName is the name of the metric in question.com.google.protobuf.ByteString
metricName is the name of the metric in question.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.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.target is the described Kubernetes object.target is the described Kubernetes object.target is the described Kubernetes object.targetValue is the target value of the metric (as a quantity).targetValue is the target value of the metric (as a quantity).targetValue is the target value of the metric (as a quantity).boolean
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalboolean
metricName is the name of the metric in question.boolean
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
target is the described Kubernetes object.boolean
targetValue is the target value of the metric (as a quantity).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalmergeFrom
(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.target is the described Kubernetes object.targetValue is the target value of the metric (as a quantity).mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAverageValue
(Resource.Quantity value) averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalsetAverageValue
(Resource.Quantity.Builder builderForValue) averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalsetMetricName
(String value) metricName is the name of the metric in question.setMetricNameBytes
(com.google.protobuf.ByteString value) metricName is the name of the metric in question.setRepeatedField
(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.target is the described Kubernetes object.setTarget
(V2beta1Autoscaling.CrossVersionObjectReference.Builder builderForValue) target is the described Kubernetes object.setTargetValue
(Resource.Quantity value) targetValue is the target value of the metric (as a quantity).setTargetValue
(Resource.Quantity.Builder builderForValue) targetValue is the target value of the metric (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, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
setField
public V2beta1Autoscaling.ObjectMetricSource.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
clearField
public V2beta1Autoscaling.ObjectMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
clearOneof
public V2beta1Autoscaling.ObjectMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
setRepeatedField
public V2beta1Autoscaling.ObjectMetricSource.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
addRepeatedField
public V2beta1Autoscaling.ObjectMetricSource.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ObjectMetricSource.Builder mergeFrom(V2beta1Autoscaling.ObjectMetricSource other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ObjectMetricSource.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
- Throws:
IOException
-
hasTarget
public boolean hasTarget()target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
- Specified by:
hasTarget
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
getTarget
target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
- Specified by:
getTarget
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
setTarget
public V2beta1Autoscaling.ObjectMetricSource.Builder setTarget(V2beta1Autoscaling.CrossVersionObjectReference value) target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
-
setTarget
public V2beta1Autoscaling.ObjectMetricSource.Builder setTarget(V2beta1Autoscaling.CrossVersionObjectReference.Builder builderForValue) target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
-
mergeTarget
public V2beta1Autoscaling.ObjectMetricSource.Builder mergeTarget(V2beta1Autoscaling.CrossVersionObjectReference value) target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
-
clearTarget
target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
-
getTargetBuilder
target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
-
getTargetOrBuilder
target is the described Kubernetes object.
optional .k8s.io.api.autoscaling.v2beta1.CrossVersionObjectReference target = 1;
- Specified by:
getTargetOrBuilder
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
hasMetricName
public boolean hasMetricName()metricName is the name of the metric in question.
optional string metricName = 2;
- Specified by:
hasMetricName
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
getMetricName
metricName is the name of the metric in question.
optional string metricName = 2;
- Specified by:
getMetricName
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
getMetricNameBytes
public com.google.protobuf.ByteString getMetricNameBytes()metricName is the name of the metric in question.
optional string metricName = 2;
- Specified by:
getMetricNameBytes
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
setMetricName
metricName is the name of the metric in question.
optional string metricName = 2;
-
clearMetricName
metricName is the name of the metric in question.
optional string metricName = 2;
-
setMetricNameBytes
public V2beta1Autoscaling.ObjectMetricSource.Builder setMetricNameBytes(com.google.protobuf.ByteString value) metricName is the name of the metric in question.
optional string metricName = 2;
-
hasTargetValue
public boolean hasTargetValue()targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
- Specified by:
hasTargetValue
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
getTargetValue
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
- Specified by:
getTargetValue
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
setTargetValue
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
-
setTargetValue
public V2beta1Autoscaling.ObjectMetricSource.Builder setTargetValue(Resource.Quantity.Builder builderForValue) targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
-
mergeTargetValue
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
-
clearTargetValue
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
-
getTargetValueBuilder
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
-
getTargetValueOrBuilder
targetValue is the target value of the metric (as a quantity).
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;
- Specified by:
getTargetValueOrBuilder
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
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 = 4;
- Specified by:
hasSelector
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
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 = 4;
- Specified by:
getSelector
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
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 = 4;
-
setSelector
public V2beta1Autoscaling.ObjectMetricSource.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 = 4;
-
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 = 4;
-
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 = 4;
-
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 = 4;
-
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 = 4;
- Specified by:
getSelectorOrBuilder
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
hasAverageValue
public boolean hasAverageValue()averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
- Specified by:
hasAverageValue
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
getAverageValue
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
- Specified by:
getAverageValue
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
setAverageValue
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
-
setAverageValue
public V2beta1Autoscaling.ObjectMetricSource.Builder setAverageValue(Resource.Quantity.Builder builderForValue) averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
-
mergeAverageValue
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
-
clearAverageValue
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
-
getAverageValueBuilder
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
-
getAverageValueOrBuilder
averageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity averageValue = 5;
- Specified by:
getAverageValueOrBuilder
in interfaceV2beta1Autoscaling.ObjectMetricSourceOrBuilder
-
setUnknownFields
public final V2beta1Autoscaling.ObjectMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-
mergeUnknownFields
public final V2beta1Autoscaling.ObjectMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ObjectMetricSource.Builder>
-