public final class Lua extends com.google.protobuf.GeneratedMessageV3 implements LuaOrBuilder
envoy.extensions.filters.http.lua.v3.Lua| Modifier and Type | Class and Description |
|---|---|
static class |
Lua.Builder
Protobuf type
envoy.extensions.filters.http.lua.v3.Lua |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
INLINE_CODE_FIELD_NUMBER |
static int |
SOURCE_CODES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsSourceCodes(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
boolean |
equals(Object obj) |
static Lua |
getDefaultInstance() |
Lua |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
String |
getInlineCode()
The Lua code that Envoy will execute.
|
com.google.protobuf.ByteString |
getInlineCodeBytes()
The Lua code that Envoy will execute.
|
com.google.protobuf.Parser<Lua> |
getParserForType() |
int |
getSerializedSize() |
Map<String,DataSource> |
getSourceCodes()
Deprecated.
|
int |
getSourceCodesCount()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
Map<String,DataSource> |
getSourceCodesMap()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
DataSource |
getSourceCodesOrDefault(String key,
DataSource defaultValue)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
DataSource |
getSourceCodesOrThrow(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
protected com.google.protobuf.MapField |
internalGetMapField(int number) |
boolean |
isInitialized() |
static Lua.Builder |
newBuilder() |
static Lua.Builder |
newBuilder(Lua prototype) |
Lua.Builder |
newBuilderForType() |
protected Lua.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static Lua |
parseDelimitedFrom(InputStream input) |
static Lua |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Lua |
parseFrom(byte[] data) |
static Lua |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Lua |
parseFrom(ByteBuffer data) |
static Lua |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Lua |
parseFrom(com.google.protobuf.ByteString data) |
static Lua |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Lua |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Lua |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Lua |
parseFrom(InputStream input) |
static Lua |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Lua> |
parser() |
Lua.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int INLINE_CODE_FIELD_NUMBER
public static final int SOURCE_CODES_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField in class com.google.protobuf.GeneratedMessageV3protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getInlineCode()
The Lua code that Envoy will execute. This can be a very small script that further loads code from disk if desired. Note that if JSON configuration is used, the code must be properly escaped. YAML configuration may be easier to read since YAML supports multi-line strings so complex scripts can be easily expressed inline in the configuration.
string inline_code = 1 [(.validate.rules) = { ... }getInlineCode in interface LuaOrBuilderpublic com.google.protobuf.ByteString getInlineCodeBytes()
The Lua code that Envoy will execute. This can be a very small script that further loads code from disk if desired. Note that if JSON configuration is used, the code must be properly escaped. YAML configuration may be easier to read since YAML supports multi-line strings so complex scripts can be easily expressed inline in the configuration.
string inline_code = 1 [(.validate.rules) = { ... }getInlineCodeBytes in interface LuaOrBuilderpublic int getSourceCodesCount()
LuaOrBuilder
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;getSourceCodesCount in interface LuaOrBuilderpublic boolean containsSourceCodes(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;containsSourceCodes in interface LuaOrBuilder@Deprecated public Map<String,DataSource> getSourceCodes()
getSourceCodesMap() instead.getSourceCodes in interface LuaOrBuilderpublic Map<String,DataSource> getSourceCodesMap()
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;getSourceCodesMap in interface LuaOrBuilderpublic DataSource getSourceCodesOrDefault(String key, DataSource defaultValue)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;getSourceCodesOrDefault in interface LuaOrBuilderpublic DataSource getSourceCodesOrThrow(String key)
Map of named Lua source codes that can be referenced in :ref:`LuaPerRoute
<envoy_v3_api_msg_extensions.filters.http.lua.v3.LuaPerRoute>`. The Lua source codes can be
loaded from inline string or local files.
Example:
.. code-block:: yaml
source_codes:
hello.lua:
inline_string: |
function envoy_on_response(response_handle)
-- Do something.
end
world.lua:
filename: /etc/lua/world.lua
map<string, .envoy.config.core.v3.DataSource> source_codes = 2;getSourceCodesOrThrow in interface LuaOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static Lua parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Lua parseFrom(InputStream input) throws IOException
IOExceptionpublic static Lua parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Lua parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Lua parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Lua parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Lua parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Lua.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Lua.Builder newBuilder()
public static Lua.Builder newBuilder(Lua prototype)
public Lua.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Lua.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Lua getDefaultInstance()
public static com.google.protobuf.Parser<Lua> parser()
public com.google.protobuf.Parser<Lua> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Lua getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.