Class 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 type envoy.config.core.v3.KeyValueAppend
    • Constructor Detail

      • Builder

        private Builder()
      • Builder

        private Builder​(com.google.protobuf.AbstractMessage.BuilderParent parent)
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
      • maybeForceBuilderInitialization

        private void maybeForceBuilderInitialization()
      • clear

        public KeyValueAppend.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<KeyValueAppend.Builder>
      • getDefaultInstanceForType

        public KeyValueAppend getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public KeyValueAppend build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public KeyValueAppend buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • buildPartial0

        private void buildPartial0​(KeyValueAppend result)
      • mergeFrom

        public KeyValueAppend.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<KeyValueAppend.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface KeyValueAppendOrBuilder
        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 interface KeyValueAppendOrBuilder
        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) = { ... }
      • 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 interface KeyValueAppendOrBuilder
        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 interface KeyValueAppendOrBuilder
        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.