Class Config.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ConfigOrBuilder, Cloneable
    Enclosing class:
    Config

    public static final class Config.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
    implements ConfigOrBuilder
     AWS Lambda filter config
     
    Protobuf type envoy.extensions.filters.http.aws_lambda.v3.Config
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Config.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Config build()  
      Config buildPartial()  
      Config.Builder clear()  
      Config.Builder clearArn()
      The ARN of the AWS Lambda to invoke when the filter is engaged Must be in the following format: arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
      Config.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      Config.Builder clearInvocationMode()
      Determines the way to invoke the Lambda function.
      Config.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      Config.Builder clearPayloadPassthrough()
      Whether to transform the request (headers and body) to a JSON payload or pass it as is.
      Config.Builder clone()  
      String getArn()
      The ARN of the AWS Lambda to invoke when the filter is engaged Must be in the following format: arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
      com.google.protobuf.ByteString getArnBytes()
      The ARN of the AWS Lambda to invoke when the filter is engaged Must be in the following format: arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
      Config getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      Config.InvocationMode getInvocationMode()
      Determines the way to invoke the Lambda function.
      int getInvocationModeValue()
      Determines the way to invoke the Lambda function.
      boolean getPayloadPassthrough()
      Whether to transform the request (headers and body) to a JSON payload or pass it as is.
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      Config.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      Config.Builder mergeFrom​(com.google.protobuf.Message other)  
      Config.Builder mergeFrom​(Config other)  
      Config.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      Config.Builder setArn​(String value)
      The ARN of the AWS Lambda to invoke when the filter is engaged Must be in the following format: arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
      Config.Builder setArnBytes​(com.google.protobuf.ByteString value)
      The ARN of the AWS Lambda to invoke when the filter is engaged Must be in the following format: arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
      Config.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      Config.Builder setInvocationMode​(Config.InvocationMode value)
      Determines the way to invoke the Lambda function.
      Config.Builder setInvocationModeValue​(int value)
      Determines the way to invoke the Lambda function.
      Config.Builder setPayloadPassthrough​(boolean value)
      Whether to transform the request (headers and body) to a JSON payload or pass it as is.
      Config.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      Config.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, 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 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
    • 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<Config.Builder>
      • clear

        public Config.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.GeneratedMessageV3.Builder<Config.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<Config.Builder>
      • getDefaultInstanceForType

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

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

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

        public Config.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • setField

        public Config.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                       Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • clearField

        public Config.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • clearOneof

        public Config.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • setRepeatedField

        public Config.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               int index,
                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • addRepeatedField

        public Config.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Config.Builder>
      • mergeFrom

        public Config.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<Config.Builder>
      • isInitialized

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

        public Config.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<Config.Builder>
        Throws:
        IOException
      • getArn

        public String getArn()
         The ARN of the AWS Lambda to invoke when the filter is engaged
         Must be in the following format:
         arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
         
        string arn = 1 [(.validate.rules) = { ... }
        Specified by:
        getArn in interface ConfigOrBuilder
        Returns:
        The arn.
      • getArnBytes

        public com.google.protobuf.ByteString getArnBytes()
         The ARN of the AWS Lambda to invoke when the filter is engaged
         Must be in the following format:
         arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
         
        string arn = 1 [(.validate.rules) = { ... }
        Specified by:
        getArnBytes in interface ConfigOrBuilder
        Returns:
        The bytes for arn.
      • setArn

        public Config.Builder setArn​(String value)
         The ARN of the AWS Lambda to invoke when the filter is engaged
         Must be in the following format:
         arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
         
        string arn = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The arn to set.
        Returns:
        This builder for chaining.
      • clearArn

        public Config.Builder clearArn()
         The ARN of the AWS Lambda to invoke when the filter is engaged
         Must be in the following format:
         arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
         
        string arn = 1 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setArnBytes

        public Config.Builder setArnBytes​(com.google.protobuf.ByteString value)
         The ARN of the AWS Lambda to invoke when the filter is engaged
         Must be in the following format:
         arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
         
        string arn = 1 [(.validate.rules) = { ... }
        Parameters:
        value - The bytes for arn to set.
        Returns:
        This builder for chaining.
      • getPayloadPassthrough

        public boolean getPayloadPassthrough()
         Whether to transform the request (headers and body) to a JSON payload or pass it as is.
         
        bool payload_passthrough = 2;
        Specified by:
        getPayloadPassthrough in interface ConfigOrBuilder
        Returns:
        The payloadPassthrough.
      • setPayloadPassthrough

        public Config.Builder setPayloadPassthrough​(boolean value)
         Whether to transform the request (headers and body) to a JSON payload or pass it as is.
         
        bool payload_passthrough = 2;
        Parameters:
        value - The payloadPassthrough to set.
        Returns:
        This builder for chaining.
      • clearPayloadPassthrough

        public Config.Builder clearPayloadPassthrough()
         Whether to transform the request (headers and body) to a JSON payload or pass it as is.
         
        bool payload_passthrough = 2;
        Returns:
        This builder for chaining.
      • getInvocationModeValue

        public int getInvocationModeValue()
         Determines the way to invoke the Lambda function.
         
        .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
        Specified by:
        getInvocationModeValue in interface ConfigOrBuilder
        Returns:
        The enum numeric value on the wire for invocationMode.
      • setInvocationModeValue

        public Config.Builder setInvocationModeValue​(int value)
         Determines the way to invoke the Lambda function.
         
        .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The enum numeric value on the wire for invocationMode to set.
        Returns:
        This builder for chaining.
      • getInvocationMode

        public Config.InvocationMode getInvocationMode()
         Determines the way to invoke the Lambda function.
         
        .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
        Specified by:
        getInvocationMode in interface ConfigOrBuilder
        Returns:
        The invocationMode.
      • setInvocationMode

        public Config.Builder setInvocationMode​(Config.InvocationMode value)
         Determines the way to invoke the Lambda function.
         
        .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
        Parameters:
        value - The invocationMode to set.
        Returns:
        This builder for chaining.
      • clearInvocationMode

        public Config.Builder clearInvocationMode()
         Determines the way to invoke the Lambda function.
         
        .envoy.extensions.filters.http.aws_lambda.v3.Config.InvocationMode invocation_mode = 3 [(.validate.rules) = { ... }
        Returns:
        This builder for chaining.
      • setUnknownFields

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

        public final Config.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<Config.Builder>