Package io.kubernetes.client.proto
Class V1Autoscaling.ContainerResourceMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
io.kubernetes.client.proto.V1Autoscaling.ContainerResourceMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V1Autoscaling.ContainerResourceMetricSourceOrBuilder,Cloneable
- Enclosing class:
- V1Autoscaling.ContainerResourceMetricSource
public static final class V1Autoscaling.ContainerResourceMetricSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
implements V1Autoscaling.ContainerResourceMetricSourceOrBuilder
ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in the requests and limits, describing a single container in each of the pods of the current scale target(e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built into Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the "pods" source. Only one "target" type should be set.Protobuf type
k8s.io.api.autoscaling.v1.ContainerResourceMetricSource-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()container is the name of the container in the pods of the scaling target.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) name is the name of the resource in question.clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.clone()container is the name of the container in the pods of the scaling target.com.google.protobuf.ByteStringcontainer is the name of the container in the pods of the scaling target.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()name is the name of the resource in question.com.google.protobuf.ByteStringname is the name of the resource in question.inttargetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.booleancontainer is the name of the container in the pods of the scaling target.booleanhasName()name is the name of the resource in question.booleantargetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.booleantargetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setContainer(String value) container is the name of the container in the pods of the scaling target.setContainerBytes(com.google.protobuf.ByteString value) container is the name of the container in the pods of the scaling target.name is the name of the resource in question.setNameBytes(com.google.protobuf.ByteString value) name is the name of the resource in question.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTargetAverageUtilization(int value) targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.setTargetAverageValue(Resource.Quantity.Builder builderForValue) targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type.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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
setField
public V1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
clearField
public V1Autoscaling.ContainerResourceMetricSource.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-
clearOneof
public V1Autoscaling.ContainerResourceMetricSource.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-
setRepeatedField
public V1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
addRepeatedField
public V1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
mergeFrom
public V1Autoscaling.ContainerResourceMetricSource.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-
mergeFrom
public V1Autoscaling.ContainerResourceMetricSource.Builder mergeFrom(V1Autoscaling.ContainerResourceMetricSource other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-
mergeFrom
public V1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>- Throws:
IOException
-
hasName
public boolean hasName()name is the name of the resource in question.
optional string name = 1;- Specified by:
hasNamein interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getName
name is the name of the resource in question.
optional string name = 1;- Specified by:
getNamein interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name is the name of the resource in question.
optional string name = 1;- Specified by:
getNameBytesin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setName
name is the name of the resource in question.
optional string name = 1; -
clearName
name is the name of the resource in question.
optional string name = 1; -
setNameBytes
public V1Autoscaling.ContainerResourceMetricSource.Builder setNameBytes(com.google.protobuf.ByteString value) name is the name of the resource in question.
optional string name = 1; -
hasTargetAverageUtilization
public boolean hasTargetAverageUtilization()targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional
optional int32 targetAverageUtilization = 2;- Specified by:
hasTargetAverageUtilizationin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getTargetAverageUtilization
public int getTargetAverageUtilization()targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional
optional int32 targetAverageUtilization = 2;- Specified by:
getTargetAverageUtilizationin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setTargetAverageUtilization
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional
optional int32 targetAverageUtilization = 2; -
clearTargetAverageUtilization
targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional
optional int32 targetAverageUtilization = 2; -
hasTargetAverageValue
public boolean hasTargetAverageValue()targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;- Specified by:
hasTargetAverageValuein interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getTargetAverageValue
targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;- Specified by:
getTargetAverageValuein interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setTargetAverageValue
public V1Autoscaling.ContainerResourceMetricSource.Builder setTargetAverageValue(Resource.Quantity value) targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -
setTargetAverageValue
public V1Autoscaling.ContainerResourceMetricSource.Builder setTargetAverageValue(Resource.Quantity.Builder builderForValue) targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -
mergeTargetAverageValue
public V1Autoscaling.ContainerResourceMetricSource.Builder mergeTargetAverageValue(Resource.Quantity value) targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -
clearTargetAverageValue
targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -
getTargetAverageValueBuilder
targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3; -
getTargetAverageValueOrBuilder
targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the "pods" metric source type. +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity targetAverageValue = 3;- Specified by:
getTargetAverageValueOrBuilderin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
hasContainer
public boolean hasContainer()container is the name of the container in the pods of the scaling target.
optional string container = 5;- Specified by:
hasContainerin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getContainer
container is the name of the container in the pods of the scaling target.
optional string container = 5;- Specified by:
getContainerin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getContainerBytes
public com.google.protobuf.ByteString getContainerBytes()container is the name of the container in the pods of the scaling target.
optional string container = 5;- Specified by:
getContainerBytesin interfaceV1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setContainer
container is the name of the container in the pods of the scaling target.
optional string container = 5; -
clearContainer
container is the name of the container in the pods of the scaling target.
optional string container = 5; -
setContainerBytes
public V1Autoscaling.ContainerResourceMetricSource.Builder setContainerBytes(com.google.protobuf.ByteString value) container is the name of the container in the pods of the scaling target.
optional string container = 5; -
setUnknownFields
public final V1Autoscaling.ContainerResourceMetricSource.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-
mergeUnknownFields
public final V1Autoscaling.ContainerResourceMetricSource.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V1Autoscaling.ContainerResourceMetricSource.Builder>
-