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 int
private FractionalPercent
private com.google.protobuf.SingleFieldBuilder
<FractionalPercent, FractionalPercent.Builder, FractionalPercentOrBuilder> private Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
clear()
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.Descriptor
com.google.protobuf.Descriptors.Descriptor
Runtime key for a YAML representation of a FractionalPercent.com.google.protobuf.ByteString
Runtime key for a YAML representation of a FractionalPercent.boolean
Default 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.FieldAccessorTable
final boolean
private void
Default 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, 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
-
Field Details
-
bitField0_
private int bitField0_ -
defaultValue_
-
defaultValueBuilder_
private com.google.protobuf.SingleFieldBuilder<FractionalPercent,FractionalPercent.Builder, defaultValueBuilder_FractionalPercentOrBuilder> -
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<RuntimeFractionalPercent.Builder>
-
maybeForceBuilderInitialization
private void maybeForceBuilderInitialization() -
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.GeneratedMessage.Builder<RuntimeFractionalPercent.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.GeneratedMessage.Builder<RuntimeFractionalPercent.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
-
buildPartial0
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RuntimeFractionalPercent.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasDefaultValue
in 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:
getDefaultValue
in 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:
getDefaultValueOrBuilder
in interfaceRuntimeFractionalPercentOrBuilder
-
internalGetDefaultValueFieldBuilder
private com.google.protobuf.SingleFieldBuilder<FractionalPercent,FractionalPercent.Builder, internalGetDefaultValueFieldBuilder()FractionalPercentOrBuilder> 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:
getRuntimeKey
in 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:
getRuntimeKeyBytes
in 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.
-