Package io.kubernetes.client.proto
Class V2beta1Autoscaling.ExternalMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
io.kubernetes.client.proto.V2beta1Autoscaling.ExternalMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta1Autoscaling.ExternalMetricSourceOrBuilder,Cloneable
- Enclosing class:
- V2beta1Autoscaling.ExternalMetricSource
public static final class V2beta1Autoscaling.ExternalMetricSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
implements V2beta1Autoscaling.ExternalMetricSourceOrBuilder
ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one "target" type should be set.Protobuf type
k8s.io.api.autoscaling.v2beta1.ExternalMetricSource-
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 question.metricSelector is used to identify a specific time series within a given metric.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) targetAverageValue is the target per-pod value of global metric (as a quantity).targetValue is the target value of the metric (as a quantity).clone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptormetricName is the name of the metric in question.com.google.protobuf.ByteStringmetricName is the name of the metric in question.metricSelector is used to identify a specific time series within a given metric.metricSelector is used to identify a specific time series within a given metric.metricSelector is used to identify a specific time series within a given metric.targetAverageValue is the target per-pod value of global metric (as a quantity).targetAverageValue is the target per-pod value of global metric (as a quantity).targetAverageValue is the target per-pod value of global 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).targetValue is the target value of the metric (as a quantity).booleanmetricName is the name of the metric in question.booleanmetricSelector is used to identify a specific time series within a given metric.booleantargetAverageValue is the target per-pod value of global metric (as a quantity).booleantargetValue is the target value of the metric (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) metricSelector is used to identify a specific time series within a given metric.targetAverageValue is the target per-pod value of global metric (as a quantity).targetValue is the target value of the metric (as a quantity).mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setMetricName(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.metricSelector is used to identify a specific time series within a given metric.setMetricSelector(Meta.LabelSelector.Builder builderForValue) metricSelector is used to identify a specific time series within a given metric.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) targetAverageValue is the target per-pod value of global metric (as a quantity).setTargetAverageValue(Resource.Quantity.Builder builderForValue) targetAverageValue is the target per-pod value of global metric (as a quantity).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, 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<V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
setField
public V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
clearField
public V2beta1Autoscaling.ExternalMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
clearOneof
public V2beta1Autoscaling.ExternalMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
setRepeatedField
public V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
addRepeatedField
public V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ExternalMetricSource.Builder mergeFrom(V2beta1Autoscaling.ExternalMetricSource other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ExternalMetricSource.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<V2beta1Autoscaling.ExternalMetricSource.Builder>- Throws:
IOException
-
hasMetricName
public boolean hasMetricName()metricName is the name of the metric in question.
optional string metricName = 1;- Specified by:
hasMetricNamein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
getMetricName
metricName is the name of the metric in question.
optional string metricName = 1;- Specified by:
getMetricNamein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
getMetricNameBytes
public com.google.protobuf.ByteString getMetricNameBytes()metricName is the name of the metric in question.
optional string metricName = 1;- Specified by:
getMetricNameBytesin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
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 V2beta1Autoscaling.ExternalMetricSource.Builder setMetricNameBytes(com.google.protobuf.ByteString value) metricName is the name of the metric in question.
optional string metricName = 1; -
hasMetricSelector
public boolean hasMetricSelector()metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2;- Specified by:
hasMetricSelectorin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
getMetricSelector
metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2;- Specified by:
getMetricSelectorin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
setMetricSelector
metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; -
setMetricSelector
public V2beta1Autoscaling.ExternalMetricSource.Builder setMetricSelector(Meta.LabelSelector.Builder builderForValue) metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; -
mergeMetricSelector
public V2beta1Autoscaling.ExternalMetricSource.Builder mergeMetricSelector(Meta.LabelSelector value) metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; -
clearMetricSelector
metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; -
getMetricSelectorBuilder
metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2; -
getMetricSelectorOrBuilder
metricSelector is used to identify a specific time series within a given metric. +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector metricSelector = 2;- Specified by:
getMetricSelectorOrBuilderin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
hasTargetValue
public boolean hasTargetValue()targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;- Specified by:
hasTargetValuein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
getTargetValue
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;- Specified by:
getTargetValuein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
setTargetValue
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; -
setTargetValue
public V2beta1Autoscaling.ExternalMetricSource.Builder setTargetValue(Resource.Quantity.Builder builderForValue) targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; -
mergeTargetValue
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; -
clearTargetValue
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; -
getTargetValueBuilder
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3; -
getTargetValueOrBuilder
targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetValue = 3;- Specified by:
getTargetValueOrBuilderin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
hasTargetAverageValue
public boolean hasTargetAverageValue()targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4;- Specified by:
hasTargetAverageValuein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
getTargetAverageValue
targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4;- Specified by:
getTargetAverageValuein interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
setTargetAverageValue
public V2beta1Autoscaling.ExternalMetricSource.Builder setTargetAverageValue(Resource.Quantity value) targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -
setTargetAverageValue
public V2beta1Autoscaling.ExternalMetricSource.Builder setTargetAverageValue(Resource.Quantity.Builder builderForValue) targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -
mergeTargetAverageValue
public V2beta1Autoscaling.ExternalMetricSource.Builder mergeTargetAverageValue(Resource.Quantity value) targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -
clearTargetAverageValue
targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -
getTargetAverageValueBuilder
targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4; -
getTargetAverageValueOrBuilder
targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 4;- Specified by:
getTargetAverageValueOrBuilderin interfaceV2beta1Autoscaling.ExternalMetricSourceOrBuilder
-
setUnknownFields
public final V2beta1Autoscaling.ExternalMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-
mergeUnknownFields
public final V2beta1Autoscaling.ExternalMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ExternalMetricSource.Builder>
-