Class KeyValueAppend.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- 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
,java.lang.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 typeenvoy.config.core.v3.KeyValueAppend
-
-
Field Summary
Fields Modifier and Type Field Description private int
action_
private int
bitField0_
private KeyValue
entry_
private com.google.protobuf.SingleFieldBuilder<KeyValue,KeyValue.Builder,KeyValueOrBuilder>
entryBuilder_
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyValueAppend
build()
KeyValueAppend
buildPartial()
private void
buildPartial0(KeyValueAppend result)
KeyValueAppend.Builder
clear()
KeyValueAppend.Builder
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.KeyValueAppend.Builder
clearEntry()
Key/value pair entry that this option to append or overwrite.KeyValueAppend.KeyValueAppendAction
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.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.KeyValueAppend
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
KeyValue
getEntry()
Key/value pair entry that this option to append or overwrite.KeyValue.Builder
getEntryBuilder()
Key/value pair entry that this option to append or overwrite.private com.google.protobuf.SingleFieldBuilder<KeyValue,KeyValue.Builder,KeyValueOrBuilder>
getEntryFieldBuilder()
Key/value pair entry that this option to append or overwrite.KeyValueOrBuilder
getEntryOrBuilder()
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
internalGetFieldAccessorTable()
boolean
isInitialized()
private void
maybeForceBuilderInitialization()
KeyValueAppend.Builder
mergeEntry(KeyValue value)
Key/value pair entry that this option to append or overwrite.KeyValueAppend.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
KeyValueAppend.Builder
mergeFrom(com.google.protobuf.Message other)
KeyValueAppend.Builder
mergeFrom(KeyValueAppend other)
KeyValueAppend.Builder
setAction(KeyValueAppend.KeyValueAppendAction 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.KeyValueAppend.Builder
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.KeyValueAppend.Builder
setEntry(KeyValue value)
Key/value pair entry that this option to append or overwrite.KeyValueAppend.Builder
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
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
entry_
private KeyValue entry_
-
entryBuilder_
private com.google.protobuf.SingleFieldBuilder<KeyValue,KeyValue.Builder,KeyValueOrBuilder> entryBuilder_
-
action_
private int action_
-
-
Method Detail
-
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
public KeyValueAppend.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.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
public KeyValueAppend getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public KeyValueAppend build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public KeyValueAppend buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial0
private void buildPartial0(KeyValueAppend result)
-
mergeFrom
public KeyValueAppend.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<KeyValueAppend.Builder>
-
mergeFrom
public KeyValueAppend.Builder mergeFrom(KeyValueAppend other)
-
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 java.io.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:
java.io.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
public KeyValue 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
public KeyValueAppend.Builder setEntry(KeyValue value)
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
setEntry
public KeyValueAppend.Builder setEntry(KeyValue.Builder builderForValue)
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
mergeEntry
public KeyValueAppend.Builder mergeEntry(KeyValue value)
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
clearEntry
public KeyValueAppend.Builder clearEntry()
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
getEntryBuilder
public KeyValue.Builder getEntryBuilder()
Key/value pair entry that this option to append or overwrite.
.envoy.config.core.v3.KeyValue entry = 1 [(.validate.rules) = { ... }
-
getEntryOrBuilder
public KeyValueOrBuilder 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,KeyValueOrBuilder> getEntryFieldBuilder()
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
public KeyValueAppend.Builder 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.
.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
public KeyValueAppend.KeyValueAppendAction 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
public KeyValueAppend.Builder setAction(KeyValueAppend.KeyValueAppendAction 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.
.envoy.config.core.v3.KeyValueAppend.KeyValueAppendAction action = 2 [(.validate.rules) = { ... }
- Parameters:
value
- The action to set.- Returns:
- This builder for chaining.
-
clearAction
public KeyValueAppend.Builder 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.
-
-