Class KeyValueAppend.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<KeyValueAppend.Builder>
com.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
io.envoyproxy.envoy.config.core.v3.KeyValueAppend.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,KeyValueAppendOrBuilder
,Cloneable
- Enclosing class:
KeyValueAppend
public static final class KeyValueAppend.Builder
extends com.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
implements KeyValueAppendOrBuilder
Key/value pair plus option to control append behavior. This is used to specify key/value pairs that should be appended to a set of existing key/value pairs.Protobuf type
envoy.config.core.v3.KeyValueAppend
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private int
private KeyValue
private com.google.protobuf.SingleFieldBuilder
<KeyValue, KeyValue.Builder, KeyValueOrBuilder> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
private void
buildPartial0
(KeyValueAppend result) clear()
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.Key/value pair entry that this option to append or overwrite.Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.int
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEntry()
Key/value pair entry that this option to append or overwrite.Key/value pair entry that this option to append or overwrite.private com.google.protobuf.SingleFieldBuilder
<KeyValue, KeyValue.Builder, KeyValueOrBuilder> Key/value pair entry that this option to append or overwrite.Key/value pair entry that this option to append or overwrite.boolean
hasEntry()
Key/value pair entry that this option to append or overwrite.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
private void
mergeEntry
(KeyValue value) Key/value pair entry that this option to append or overwrite.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(KeyValueAppend other) Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.setActionValue
(int value) Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.Key/value pair entry that this option to append or overwrite.setEntry
(KeyValue.Builder builderForValue) Key/value pair entry that this option to append or overwrite.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_ -
entry_
-
entryBuilder_
private com.google.protobuf.SingleFieldBuilder<KeyValue,KeyValue.Builder, entryBuilder_KeyValueOrBuilder> -
action_
private int action_
-
-
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<KeyValueAppend.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<KeyValueAppend.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<KeyValueAppend.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<KeyValueAppend.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
-
mergeFrom
public KeyValueAppend.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<KeyValueAppend.Builder>
- Throws:
IOException
-
hasEntry
public boolean hasEntry()Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
- Specified by:
hasEntry
in interfaceKeyValueAppendOrBuilder
- Returns:
- Whether the entry field is set.
-
getEntry
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
- Specified by:
getEntry
in interfaceKeyValueAppendOrBuilder
- Returns:
- The entry.
-
setEntry
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
setEntry
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
mergeEntry
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
clearEntry
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
getEntryBuilder
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
getEntryOrBuilder
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
- Specified by:
getEntryOrBuilder
in interfaceKeyValueAppendOrBuilder
-
getEntryFieldBuilder
private com.google.protobuf.SingleFieldBuilder<KeyValue,KeyValue.Builder, getEntryFieldBuilder()KeyValueOrBuilder> Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
getActionValue
public int getActionValue()Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Specified by:
getActionValue
in interfaceKeyValueAppendOrBuilder
- Returns:
- The enum numeric value on the wire for action.
-
setActionValue
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for action to set.- Returns:
- This builder for chaining.
-
getAction
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Specified by:
getAction
in interfaceKeyValueAppendOrBuilder
- Returns:
- The action.
-
setAction
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The action to set.- Returns:
- This builder for chaining.
-
clearAction
Describes the action taken to append/overwrite the given value for an existing key or to only add this key if it's absent.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-