Class RuntimeFractionalPercent.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<RuntimeFractionalPercent.Builder>
com.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.Builder>
io.envoyproxy.envoy.config.core.v3.RuntimeFractionalPercent.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, RuntimeFractionalPercentOrBuilder, Cloneable
- Enclosing class:
RuntimeFractionalPercent
public static final class RuntimeFractionalPercent.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.Builder>
implements RuntimeFractionalPercentOrBuilder
Runtime derived FractionalPercent with defaults for when the numerator or denominator is not specified via a runtime key. .. note:: Parsing of the runtime key's data is implemented such that it may be represented as a :ref:`FractionalPercent <envoy_v3_api_msg_type.v3.FractionalPercent>` proto represented as JSON/YAML and may also be represented as an integer with the assumption that the value is an integral percentage out of 100. For instance, a runtime key lookup returning the value "42" would parse as a ``FractionalPercent`` whose numerator is 42 and denominator is HUNDRED.Protobuf type
envoy.config.core.v3.RuntimeFractionalPercent-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate FractionalPercentprivate com.google.protobuf.SingleFieldBuilder<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> private Object -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()private voidclear()Default value if the runtime value's for the numerator/denominator keys are not available.Runtime key for a YAML representation of a FractionalPercent.Default value if the runtime value's for the numerator/denominator keys are not available.Default value if the runtime value's for the numerator/denominator keys are not available.Default value if the runtime value's for the numerator/denominator keys are not available.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRuntime key for a YAML representation of a FractionalPercent.com.google.protobuf.ByteStringRuntime key for a YAML representation of a FractionalPercent.booleanDefault value if the runtime value's for the numerator/denominator keys are not available.private com.google.protobuf.SingleFieldBuilder<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> Default value if the runtime value's for the numerator/denominator keys are not available.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanprivate voidDefault value if the runtime value's for the numerator/denominator keys are not available.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setDefaultValue(FractionalPercent value) Default value if the runtime value's for the numerator/denominator keys are not available.setDefaultValue(FractionalPercent.Builder builderForValue) Default value if the runtime value's for the numerator/denominator keys are not available.setRuntimeKey(String value) Runtime key for a YAML representation of a FractionalPercent.setRuntimeKeyBytes(com.google.protobuf.ByteString value) Runtime key for a YAML representation of a FractionalPercent.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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 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
-
Field Details
-
bitField0_
private int bitField0_ -
defaultValue_
-
defaultValueBuilder_
private com.google.protobuf.SingleFieldBuilder<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> defaultValueBuilder_ -
runtimeKey_
-
-
Constructor Details
-
Builder
private Builder() -
Builder
private Builder(com.google.protobuf.AbstractMessage.BuilderParent parent)
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.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.GeneratedMessage.Builder<RuntimeFractionalPercent.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RuntimeFractionalPercent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.Builder>
-
mergeFrom
public RuntimeFractionalPercent.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<RuntimeFractionalPercent.Builder>- Throws:
IOException
-
hasDefaultValue
public boolean hasDefaultValue()Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... }- Specified by:
hasDefaultValuein interfaceRuntimeFractionalPercentOrBuilder- Returns:
- Whether the defaultValue field is set.
-
getDefaultValue
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... }- Specified by:
getDefaultValuein interfaceRuntimeFractionalPercentOrBuilder- Returns:
- The defaultValue.
-
setDefaultValue
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
setDefaultValue
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
mergeDefaultValue
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
clearDefaultValue
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
getDefaultValueBuilder
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
getDefaultValueOrBuilder
Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... }- Specified by:
getDefaultValueOrBuilderin interfaceRuntimeFractionalPercentOrBuilder
-
internalGetDefaultValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> internalGetDefaultValueFieldBuilder()Default value if the runtime value's for the numerator/denominator keys are not available.
.envoy.type.v3.FractionalPercent default_value = 1 [(.validate.rules) = { ... } -
getRuntimeKey
Runtime key for a YAML representation of a FractionalPercent.
string runtime_key = 2;- Specified by:
getRuntimeKeyin interfaceRuntimeFractionalPercentOrBuilder- Returns:
- The runtimeKey.
-
getRuntimeKeyBytes
public com.google.protobuf.ByteString getRuntimeKeyBytes()Runtime key for a YAML representation of a FractionalPercent.
string runtime_key = 2;- Specified by:
getRuntimeKeyBytesin interfaceRuntimeFractionalPercentOrBuilder- Returns:
- The bytes for runtimeKey.
-
setRuntimeKey
Runtime key for a YAML representation of a FractionalPercent.
string runtime_key = 2;- Parameters:
value- The runtimeKey to set.- Returns:
- This builder for chaining.
-
clearRuntimeKey
Runtime key for a YAML representation of a FractionalPercent.
string runtime_key = 2;- Returns:
- This builder for chaining.
-
setRuntimeKeyBytes
Runtime key for a YAML representation of a FractionalPercent.
string runtime_key = 2;- Parameters:
value- The bytes for runtimeKey to set.- Returns:
- This builder for chaining.
-