JavaScriptOrBuilder

interface JavaScriptOrBuilder : MessageOrBuilder

Inheritors

Properties

Link copied to clipboard
val Context.Scripts.JavaScriptOrBuilder.uriOrNull: TrustedResourceUrlProto?

Functions

Link copied to clipboard
Link copied to clipboard
abstract fun getAllFields(): Map<Descriptors.FieldDescriptor, Any>
Link copied to clipboard
abstract fun getAsync(): Boolean
Whether to add the `async` flag to a script.
bool async = 4;
Link copied to clipboard
abstract fun getDefaultInstanceForType(): MessageLite
abstract fun getDefaultInstanceForType(): Message
Link copied to clipboard
abstract fun getDefer(): Boolean
Whether to add the `defer` flag to a script.
bool defer = 3;
Link copied to clipboard
abstract fun getDescriptorForType(): Descriptors.Descriptor
Link copied to clipboard
abstract fun getField(field: Descriptors.FieldDescriptor): Any
Link copied to clipboard
abstract fun getId(): String
ID at which to attach the script tag in the DOM.
string id = 2;
Link copied to clipboard
abstract fun getIdBytes(): ByteString
ID at which to attach the script tag in the DOM.
string id = 2;
Link copied to clipboard
Link copied to clipboard
abstract fun getModule(): Boolean
Whether to add the `module` flag to a script.
bool module = 5;
Link copied to clipboard
abstract fun getNoModule(): Boolean
Whether to add the `nomodule` flag to a script.
bool no_module = 6;
Link copied to clipboard
abstract fun getOneofFieldDescriptor(oneof: Descriptors.OneofDescriptor): Descriptors.FieldDescriptor
Link copied to clipboard
abstract fun getPrefetch(): Boolean
Whether to pre-fetch this asset, as applicable.
bool prefetch = 7;
Link copied to clipboard
abstract fun getPreload(): Boolean
Whether to pre-load this asset, as applicable.
bool preload = 8;
Link copied to clipboard
abstract fun getPush(): Boolean
Whether to proactively push this asset, as applicable.
bool push = 9;
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 getUnknownFields(): UnknownFieldSet
Link copied to clipboard
abstract fun getUri(): TrustedResourceUrlProto
URI to a given script asset.
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
abstract fun getUriOrBuilder(): TrustedResourceUrlProtoOrBuilder
URI to a given script asset.
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
abstract fun hasField(field: Descriptors.FieldDescriptor): Boolean
Link copied to clipboard
abstract fun hasOneof(oneof: Descriptors.OneofDescriptor): Boolean
Link copied to clipboard
abstract fun hasUri(): Boolean
URI to a given script asset.
.webutil.html.types.TrustedResourceUrlProto uri = 1;
Link copied to clipboard
abstract fun isInitialized(): Boolean