Package io.kubernetes.client.proto
Class V2beta2Autoscaling.MetricTarget.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
io.kubernetes.client.proto.V2beta2Autoscaling.MetricTarget.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,V2beta2Autoscaling.MetricTargetOrBuilder,Cloneable
- Enclosing class:
- V2beta2Autoscaling.MetricTarget
public static final class V2beta2Autoscaling.MetricTarget.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
implements V2beta2Autoscaling.MetricTargetOrBuilder
MetricTarget defines the target value, average value, or average utilization of a specific metricProtobuf type
k8s.io.api.autoscaling.v2beta2.MetricTarget-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()averageUtilization 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.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) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) type represents whether the metric type is Utilization, Value, or AverageValuevalue is the target value of the metric (as a quantity).clone()intaverageUtilization 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.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.Descriptorcom.google.protobuf.Descriptors.DescriptorgetType()type represents whether the metric type is Utilization, Value, or AverageValuecom.google.protobuf.ByteStringtype represents whether the metric type is Utilization, Value, or AverageValuegetValue()value is the target value of the metric (as a quantity).value is the target value of the metric (as a quantity).value is the target value of the metric (as a quantity).booleanaverageUtilization 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.booleanaverageValue is the target value of the average of the metric across all relevant pods (as a quantity) +optionalbooleanhasType()type represents whether the metric type is Utilization, Value, or AverageValuebooleanhasValue()value is the target value of the metric (as a quantity).protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanaverageValue 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) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) mergeValue(Resource.Quantity value) value is the target value of the metric (as a quantity).setAverageUtilization(int value) averageUtilization 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.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) +optionalsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) type represents whether the metric type is Utilization, Value, or AverageValuesetTypeBytes(com.google.protobuf.ByteString value) type represents whether the metric type is Utilization, Value, or AverageValuesetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setValue(Resource.Quantity value) value is the target value of the metric (as a quantity).setValue(Resource.Quantity.Builder builderForValue) value is the target value of the metric (as a quantity).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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
-
setField
public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
-
clearField
public V2beta2Autoscaling.MetricTarget.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-
clearOneof
public V2beta2Autoscaling.MetricTarget.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-
setRepeatedField
public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
-
addRepeatedField
public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-
mergeFrom
public V2beta2Autoscaling.MetricTarget.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<V2beta2Autoscaling.MetricTarget.Builder>- Throws:
IOException
-
hasType
public boolean hasType()type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1;- Specified by:
hasTypein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
getType
type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1;- Specified by:
getTypein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
getTypeBytes
public com.google.protobuf.ByteString getTypeBytes()type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1;- Specified by:
getTypeBytesin interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
setType
type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1; -
clearType
type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1; -
setTypeBytes
type represents whether the metric type is Utilization, Value, or AverageValue
optional string type = 1; -
hasValue
public boolean hasValue()value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;- Specified by:
hasValuein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
getValue
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;- Specified by:
getValuein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
setValue
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; -
setValue
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; -
mergeValue
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; -
clearValue
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; -
getValueBuilder
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2; -
getValueOrBuilder
value is the target value of the metric (as a quantity). +optional
optional .k8s.io.apimachinery.pkg.api.resource.Quantity value = 2;- Specified by:
getValueOrBuilderin interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
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 = 3;- Specified by:
hasAverageValuein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
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 = 3;- Specified by:
getAverageValuein interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
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 = 3; -
setAverageValue
public V2beta2Autoscaling.MetricTarget.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 = 3; -
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 = 3; -
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 = 3; -
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 = 3; -
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 = 3;- Specified by:
getAverageValueOrBuilderin interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
hasAverageUtilization
public boolean hasAverageUtilization()averageUtilization 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. Currently only valid for Resource metric source type +optional
optional int32 averageUtilization = 4;- Specified by:
hasAverageUtilizationin interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
getAverageUtilization
public int getAverageUtilization()averageUtilization 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. Currently only valid for Resource metric source type +optional
optional int32 averageUtilization = 4;- Specified by:
getAverageUtilizationin interfaceV2beta2Autoscaling.MetricTargetOrBuilder
-
setAverageUtilization
averageUtilization 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. Currently only valid for Resource metric source type +optional
optional int32 averageUtilization = 4; -
clearAverageUtilization
averageUtilization 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. Currently only valid for Resource metric source type +optional
optional int32 averageUtilization = 4; -
setUnknownFields
public final V2beta2Autoscaling.MetricTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-
mergeUnknownFields
public final V2beta2Autoscaling.MetricTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.MetricTarget.Builder>
-