Package io.kubernetes.client.proto
Class V2beta1Autoscaling.ContainerResourceMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ContainerResourceMetricSource.Builder>
io.kubernetes.client.proto.V2beta1Autoscaling.ContainerResourceMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
,Cloneable
- Enclosing class:
- V2beta1Autoscaling.ContainerResourceMetricSource
public static final class V2beta1Autoscaling.ContainerResourceMetricSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ContainerResourceMetricSource.Builder>
implements V2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
ContainerResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in 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 in to 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.v2beta1.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 targetclearField
(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 targetcom.google.protobuf.ByteString
container is the name of the container in the pods of the scaling targetstatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getName()
name is the name of the resource in question.com.google.protobuf.ByteString
name is the name of the resource in question.int
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.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.boolean
container is the name of the container in the pods of the scaling targetboolean
hasName()
name is the name of the resource in question.boolean
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.boolean
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(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 targetsetContainerBytes
(com.google.protobuf.ByteString value) container is the name of the container in the pods of the scaling targetname 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, 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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
setField
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
clearField
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
clearOneof
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
setRepeatedField
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
addRepeatedField
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ContainerResourceMetricSource.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V2beta1Autoscaling.ContainerResourceMetricSource.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta1Autoscaling.ContainerResourceMetricSource.Builder>
-
mergeFrom
public V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
- Throws:
IOException
-
hasName
public boolean hasName()name is the name of the resource in question.
optional string name = 1;
- Specified by:
hasName
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getName
name is the name of the resource in question.
optional string name = 1;
- Specified by:
getName
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()name is the name of the resource in question.
optional string name = 1;
- Specified by:
getNameBytes
in interfaceV2beta1Autoscaling.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 V2beta1Autoscaling.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:
hasTargetAverageUtilization
in interfaceV2beta1Autoscaling.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:
getTargetAverageUtilization
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setTargetAverageUtilization
public V2beta1Autoscaling.ContainerResourceMetricSource.Builder 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. +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:
hasTargetAverageValue
in interfaceV2beta1Autoscaling.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:
getTargetAverageValue
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setTargetAverageValue
public V2beta1Autoscaling.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 V2beta1Autoscaling.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 V2beta1Autoscaling.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:
getTargetAverageValueOrBuilder
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
hasContainer
public boolean hasContainer()container is the name of the container in the pods of the scaling target
optional string container = 4;
- Specified by:
hasContainer
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
getContainer
container is the name of the container in the pods of the scaling target
optional string container = 4;
- Specified by:
getContainer
in interfaceV2beta1Autoscaling.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 = 4;
- Specified by:
getContainerBytes
in interfaceV2beta1Autoscaling.ContainerResourceMetricSourceOrBuilder
-
setContainer
container is the name of the container in the pods of the scaling target
optional string container = 4;
-
clearContainer
container is the name of the container in the pods of the scaling target
optional string container = 4;
-
setContainerBytes
public V2beta1Autoscaling.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 = 4;
-
setUnknownFields
public final V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-
mergeUnknownFields
public final V2beta1Autoscaling.ContainerResourceMetricSource.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.ContainerResourceMetricSource.Builder>
-