GuestPolicyOrBuilder

interface GuestPolicyOrBuilder : MessageOrBuilder

Inheritors

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun getAllFields(): Map<Descriptors.FieldDescriptor, Any>
Link copied to clipboard
abstract fun getAllowAll(): Boolean
## Policies: Allow-all.

Allows all host access for the guest language. This means the guest language can load classes, access I/O, and
perform other potentially sensitive or dangerous operations. Exercise extreme caution enabling this policy.
bool allow_all = 1;
Link copied to clipboard
abstract fun getAllowNative(): Boolean
Whether to allow the guest language to call native code. Defaults to `false`.
bool allow_native = 5;
Link copied to clipboard
abstract fun getDefaultInstanceForType(): MessageLite
abstract fun getDefaultInstanceForType(): Message
Link copied to clipboard
abstract fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
abstract fun getExecutionTime(): Long
Maximum execution time to allow for execution within this guest; there is a sensible Elide-wide default if
unspecified. Expressed in a count of milliseconds. `0` disables the restriction.
uint64 execution_time = 11;
Link copied to clipboard
abstract fun getField(field: Descriptors.FieldDescriptor): Any
Link copied to clipboard
abstract fun getHostEnv(): Boolean
Whether to allow the guest language to access host-side environment. Defaults to `false`.
bool host_env = 8;
Link copied to clipboard
abstract fun getHostIo(): Boolean
Whether to allow the guest language to access host-side I/O. Defaults to `false`.
bool host_io = 6;
Link copied to clipboard
abstract fun getHostNet(): Boolean
Whether to allow the guest language to access host-side networking. Defaults to `false`.
bool host_net = 7;
Link copied to clipboard
Link copied to clipboard
abstract fun getIntegrated(): Boolean
## Policies: Integrated.

Allows some host access for the guest language; this includes values shared in callbacks and invocation bindings.
The guest language can only load certain classes, cannot access host I/O (by default), and is *allowed* to call
native code; this mode should be used when all executing code is under the developer's control.
bool integrated = 2;
Link copied to clipboard
abstract fun getIsolated(): Boolean
## Policies: Isolated.

Allows no host access for the guest language. This means the guest language cannot load classes, access host I/O,
or perform other potentially sensitive or dangerous operations. Resources used by guest languages can be capped
or otherwise controlled.
bool isolated = 3;
Link copied to clipboard
abstract fun getMaxMemory(): Int
Maximum memory to allow for allocation within this guest language; there is a sensible Elide-wide default if
unspecified. Expressed as a count of bytes. `0` disables the restriction.
uint32 max_memory = 9;
Link copied to clipboard
abstract fun getOneofFieldDescriptor(oneof: Descriptors.OneofDescriptor): Descriptors.FieldDescriptor
Link copied to clipboard
Link copied to clipboard
abstract fun getProcesses(): Boolean
Whether to allow process control for the guest; the guest will be able to launch OS-native processes if this flag
is activated. In most secure operating modes this flag defaults to being off.
bool processes = 12;
Link copied to clipboard
abstract fun getRepeatedField(field: Descriptors.FieldDescriptor, index: Int): Any
Link copied to clipboard
abstract fun getRepeatedFieldCount(field: Descriptors.FieldDescriptor): Int
Link copied to clipboard
abstract fun getSandbox(): Boolean
## Policies: Sandbox.

Like the `ISOLATED` policy, but applies a stronger sandbox; allows no host access for the guest language. This
means the guest language cannot load classes, access host I/O, or perform other potentially sensitive or
dangerous operations. Resources used by guest languages can be capped or otherwise controlled.

If available, hardware isolation is used; otherwise, software isolation is used.
bool sandbox = 4;
Link copied to clipboard
abstract fun getStackDepth(): Int
Maximum stack depth to allow for execution within this guest; there is a sensible Elide-wide default if
unspecified. Specified as a numeric count. `0` disables the restriction.
uint32 stack_depth = 10;
Link copied to clipboard
abstract fun getThreads(): Boolean
Whether to allow thread control for the guest; the guest will be able to launch OS-native threads if this flag is
activated. In most secure operating modes this flag defaults to being off.
bool threads = 13;
Link copied to clipboard
abstract fun getUnknownFields(): UnknownFieldSet
Link copied to clipboard
abstract fun hasAllowAll(): Boolean
## Policies: Allow-all.

Allows all host access for the guest language. This means the guest language can load classes, access I/O, and
perform other potentially sensitive or dangerous operations. Exercise extreme caution enabling this policy.
bool allow_all = 1;
Link copied to clipboard
abstract fun hasField(field: Descriptors.FieldDescriptor): Boolean
Link copied to clipboard
abstract fun hasIntegrated(): Boolean
## Policies: Integrated.

Allows some host access for the guest language; this includes values shared in callbacks and invocation bindings.
The guest language can only load certain classes, cannot access host I/O (by default), and is *allowed* to call
native code; this mode should be used when all executing code is under the developer's control.
bool integrated = 2;
Link copied to clipboard
abstract fun hasIsolated(): Boolean
## Policies: Isolated.

Allows no host access for the guest language. This means the guest language cannot load classes, access host I/O,
or perform other potentially sensitive or dangerous operations. Resources used by guest languages can be capped
or otherwise controlled.
bool isolated = 3;
Link copied to clipboard
abstract fun hasOneof(oneof: Descriptors.OneofDescriptor): Boolean
Link copied to clipboard
abstract fun hasSandbox(): Boolean
## Policies: Sandbox.

Like the `ISOLATED` policy, but applies a stronger sandbox; allows no host access for the guest language. This
means the guest language cannot load classes, access host I/O, or perform other potentially sensitive or
dangerous operations. Resources used by guest languages can be capped or otherwise controlled.

If available, hardware isolation is used; otherwise, software isolation is used.
bool sandbox = 4;
Link copied to clipboard
abstract fun isInitialized(): Boolean