Class JsonToMetadata.KeyValuePair.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.KeyValuePair.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.GeneratedMessageV3.Builder<JsonToMetadata.KeyValuePair.Builder>
      • getDefaultInstanceForType

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

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

        public JsonToMetadata.KeyValuePair buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.KeyValuePair.Builder>
      • mergeFrom

        public JsonToMetadata.KeyValuePair.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                      throws 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<JsonToMetadata.KeyValuePair.Builder>
        Throws:
        IOException
      • getMetadataNamespaceBytes

        public com.google.protobuf.ByteString getMetadataNamespaceBytes()
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Specified by:
        getMetadataNamespaceBytes in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        The bytes for metadataNamespace.
      • setMetadataNamespace

        public JsonToMetadata.KeyValuePair.Builder setMetadataNamespace​(String value)
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Parameters:
        value - The metadataNamespace to set.
        Returns:
        This builder for chaining.
      • clearMetadataNamespace

        public JsonToMetadata.KeyValuePair.Builder clearMetadataNamespace()
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Returns:
        This builder for chaining.
      • setMetadataNamespaceBytes

        public JsonToMetadata.KeyValuePair.Builder setMetadataNamespaceBytes​(com.google.protobuf.ByteString value)
         The namespace — if this is empty, the filter's namespace will be used.
         
        string metadata_namespace = 1;
        Parameters:
        value - The bytes for metadataNamespace to set.
        Returns:
        This builder for chaining.
      • getKeyBytes

        public com.google.protobuf.ByteString getKeyBytes()
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Specified by:
        getKeyBytes in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        The bytes for key.
      • setKey

        public JsonToMetadata.KeyValuePair.Builder setKey​(String value)
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • clearKey

        public JsonToMetadata.KeyValuePair.Builder clearKey()
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setKeyBytes

        public JsonToMetadata.KeyValuePair.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         The key to use within the namespace.
         
        string key = 2 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • hasValue

        public boolean hasValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
        Specified by:
        hasValue in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        Whether the value field is set.
      • getValue

        public com.google.protobuf.Value getValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
        Specified by:
        getValue in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        The value.
      • setValue

        public JsonToMetadata.KeyValuePair.Builder setValue​(com.google.protobuf.Value value)
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
      • setValue

        public JsonToMetadata.KeyValuePair.Builder setValue​(com.google.protobuf.Value.Builder builderForValue)
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
      • mergeValue

        public JsonToMetadata.KeyValuePair.Builder mergeValue​(com.google.protobuf.Value value)
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
      • clearValue

        public JsonToMetadata.KeyValuePair.Builder clearValue()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
      • getValueBuilder

        public com.google.protobuf.Value.Builder getValueBuilder()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
      • getValueOrBuilder

        public com.google.protobuf.ValueOrBuilder getValueOrBuilder()
         The value to pair with the given key.
         When used for on_present case, if value is non-empty it'll be used instead
         of the the value of the JSON key. If both are empty, the the value of the
         JSON key is used as-is.
         When used for on_missing/on_error case, a non-empty value
         must be provided.
         It ignores ValueType, i.e., not type casting.
         
        .google.protobuf.Value value = 3;
        Specified by:
        getValueOrBuilder in interface JsonToMetadata.KeyValuePairOrBuilder
      • getTypeValue

        public int getTypeValue()
         The value's type — defaults to protobuf.Value.
         
        .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.ValueType type = 4 [(.validate.rules) = { ... }
        Specified by:
        getTypeValue in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public JsonToMetadata.KeyValuePair.Builder setTypeValue​(int value)
         The value's type — defaults to protobuf.Value.
         
        .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.ValueType type = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public JsonToMetadata.KeyValuePair.Builder setType​(JsonToMetadata.ValueType value)
         The value's type — defaults to protobuf.Value.
         
        .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.ValueType type = 4 [(.validate.rules) = { ... }
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public JsonToMetadata.KeyValuePair.Builder clearType()
         The value's type — defaults to protobuf.Value.
         
        .envoy.extensions.filters.http.json_to_metadata.v3.JsonToMetadata.ValueType type = 4 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • getPreserveExistingMetadataValue

        public boolean getPreserveExistingMetadataValue()
         False if we want to overwrite the existing metadata value. Default to false.
         
        bool preserve_existing_metadata_value = 5;
        Specified by:
        getPreserveExistingMetadataValue in interface JsonToMetadata.KeyValuePairOrBuilder
        Returns:
        The preserveExistingMetadataValue.
      • setPreserveExistingMetadataValue

        public JsonToMetadata.KeyValuePair.Builder setPreserveExistingMetadataValue​(boolean value)
         False if we want to overwrite the existing metadata value. Default to false.
         
        bool preserve_existing_metadata_value = 5;
        Parameters:
        value - The preserveExistingMetadataValue to set.
        Returns:
        This builder for chaining.
      • clearPreserveExistingMetadataValue

        public JsonToMetadata.KeyValuePair.Builder clearPreserveExistingMetadataValue()
         False if we want to overwrite the existing metadata value. Default to false.
         
        bool preserve_existing_metadata_value = 5;
        Returns:
        This builder for chaining.
      • mergeUnknownFields

        public final JsonToMetadata.KeyValuePair.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<JsonToMetadata.KeyValuePair.Builder>