Package io.kubernetes.client.proto
Class V2beta2Autoscaling.ObjectMetricSource.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.ObjectMetricSource.Builder>
io.kubernetes.client.proto.V2beta2Autoscaling.ObjectMetricSource.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,V2beta2Autoscaling.ObjectMetricSourceOrBuilder
,Cloneable
- Enclosing class:
- V2beta2Autoscaling.ObjectMetricSource
public static final class V2beta2Autoscaling.ObjectMetricSource.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.ObjectMetricSource.Builder>
implements V2beta2Autoscaling.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.v2beta2.ObjectMetricSource
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) metric identifies the target metric by name and selectorclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) target specifies the target value for the given metricclone()
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
metric identifies the target metric by name and selectormetric identifies the target metric by name and selectormetric identifies the target metric by name and selectortarget specifies the target value for the given metrictarget specifies the target value for the given metrictarget specifies the target value for the given metricboolean
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
boolean
metric identifies the target metric by name and selectorboolean
target specifies the target value for the given metricprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) metric identifies the target metric by name and selectortarget specifies the target value for the given metricmergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
setDescribedObject
(V2beta2Autoscaling.CrossVersionObjectReference.Builder builderForValue) optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
metric identifies the target metric by name and selectorsetMetric
(V2beta2Autoscaling.MetricIdentifier.Builder builderForValue) metric identifies the target metric by name and selectorsetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) target specifies the target value for the given metricsetTarget
(V2beta2Autoscaling.MetricTarget.Builder builderForValue) target specifies the target value for the given metricsetUnknownFields
(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<V2beta2Autoscaling.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<V2beta2Autoscaling.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<V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
setField
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
clearField
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
clearOneof
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
setRepeatedField
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
addRepeatedField
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
public V2beta2Autoscaling.ObjectMetricSource.Builder mergeFrom(V2beta2Autoscaling.ObjectMetricSource other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
mergeFrom
public V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
- Throws:
IOException
-
hasDescribedObject
public boolean hasDescribedObject()optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
- Specified by:
hasDescribedObject
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
getDescribedObject
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
- Specified by:
getDescribedObject
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
setDescribedObject
public V2beta2Autoscaling.ObjectMetricSource.Builder setDescribedObject(V2beta2Autoscaling.CrossVersionObjectReference value) optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
-
setDescribedObject
public V2beta2Autoscaling.ObjectMetricSource.Builder setDescribedObject(V2beta2Autoscaling.CrossVersionObjectReference.Builder builderForValue) optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
-
mergeDescribedObject
public V2beta2Autoscaling.ObjectMetricSource.Builder mergeDescribedObject(V2beta2Autoscaling.CrossVersionObjectReference value) optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
-
clearDescribedObject
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
-
getDescribedObjectBuilder
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
-
getDescribedObjectOrBuilder
optional .k8s.io.api.autoscaling.v2beta2.CrossVersionObjectReference describedObject = 1;
- Specified by:
getDescribedObjectOrBuilder
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
hasTarget
public boolean hasTarget()target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
- Specified by:
hasTarget
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
getTarget
target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
- Specified by:
getTarget
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
setTarget
public V2beta2Autoscaling.ObjectMetricSource.Builder setTarget(V2beta2Autoscaling.MetricTarget value) target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
-
setTarget
public V2beta2Autoscaling.ObjectMetricSource.Builder setTarget(V2beta2Autoscaling.MetricTarget.Builder builderForValue) target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
-
mergeTarget
public V2beta2Autoscaling.ObjectMetricSource.Builder mergeTarget(V2beta2Autoscaling.MetricTarget value) target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
-
clearTarget
target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
-
getTargetBuilder
target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
-
getTargetOrBuilder
target specifies the target value for the given metric
optional .k8s.io.api.autoscaling.v2beta2.MetricTarget target = 2;
- Specified by:
getTargetOrBuilder
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
hasMetric
public boolean hasMetric()metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
- Specified by:
hasMetric
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
getMetric
metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
- Specified by:
getMetric
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
setMetric
public V2beta2Autoscaling.ObjectMetricSource.Builder setMetric(V2beta2Autoscaling.MetricIdentifier value) metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
-
setMetric
public V2beta2Autoscaling.ObjectMetricSource.Builder setMetric(V2beta2Autoscaling.MetricIdentifier.Builder builderForValue) metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
-
mergeMetric
public V2beta2Autoscaling.ObjectMetricSource.Builder mergeMetric(V2beta2Autoscaling.MetricIdentifier value) metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
-
clearMetric
metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
-
getMetricBuilder
metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
-
getMetricOrBuilder
metric identifies the target metric by name and selector
optional .k8s.io.api.autoscaling.v2beta2.MetricIdentifier metric = 3;
- Specified by:
getMetricOrBuilder
in interfaceV2beta2Autoscaling.ObjectMetricSourceOrBuilder
-
setUnknownFields
public final V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-
mergeUnknownFields
public final V2beta2Autoscaling.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<V2beta2Autoscaling.ObjectMetricSource.Builder>
-