pb

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Configuration_LayoutDirection_name = map[int32]string{
		0: "LAYOUT_DIRECTION_UNSET",
		1: "LAYOUT_DIRECTION_LTR",
		2: "LAYOUT_DIRECTION_RTL",
	}
	Configuration_LayoutDirection_value = map[string]int32{
		"LAYOUT_DIRECTION_UNSET": 0,
		"LAYOUT_DIRECTION_LTR":   1,
		"LAYOUT_DIRECTION_RTL":   2,
	}
)

Enum value maps for Configuration_LayoutDirection.

View Source
var (
	Configuration_ScreenLayoutSize_name = map[int32]string{
		0: "SCREEN_LAYOUT_SIZE_UNSET",
		1: "SCREEN_LAYOUT_SIZE_SMALL",
		2: "SCREEN_LAYOUT_SIZE_NORMAL",
		3: "SCREEN_LAYOUT_SIZE_LARGE",
		4: "SCREEN_LAYOUT_SIZE_XLARGE",
	}
	Configuration_ScreenLayoutSize_value = map[string]int32{
		"SCREEN_LAYOUT_SIZE_UNSET":  0,
		"SCREEN_LAYOUT_SIZE_SMALL":  1,
		"SCREEN_LAYOUT_SIZE_NORMAL": 2,
		"SCREEN_LAYOUT_SIZE_LARGE":  3,
		"SCREEN_LAYOUT_SIZE_XLARGE": 4,
	}
)

Enum value maps for Configuration_ScreenLayoutSize.

View Source
var (
	Configuration_ScreenLayoutLong_name = map[int32]string{
		0: "SCREEN_LAYOUT_LONG_UNSET",
		1: "SCREEN_LAYOUT_LONG_LONG",
		2: "SCREEN_LAYOUT_LONG_NOTLONG",
	}
	Configuration_ScreenLayoutLong_value = map[string]int32{
		"SCREEN_LAYOUT_LONG_UNSET":   0,
		"SCREEN_LAYOUT_LONG_LONG":    1,
		"SCREEN_LAYOUT_LONG_NOTLONG": 2,
	}
)

Enum value maps for Configuration_ScreenLayoutLong.

View Source
var (
	Configuration_ScreenRound_name = map[int32]string{
		0: "SCREEN_ROUND_UNSET",
		1: "SCREEN_ROUND_ROUND",
		2: "SCREEN_ROUND_NOTROUND",
	}
	Configuration_ScreenRound_value = map[string]int32{
		"SCREEN_ROUND_UNSET":    0,
		"SCREEN_ROUND_ROUND":    1,
		"SCREEN_ROUND_NOTROUND": 2,
	}
)

Enum value maps for Configuration_ScreenRound.

View Source
var (
	Configuration_WideColorGamut_name = map[int32]string{
		0: "WIDE_COLOR_GAMUT_UNSET",
		1: "WIDE_COLOR_GAMUT_WIDECG",
		2: "WIDE_COLOR_GAMUT_NOWIDECG",
	}
	Configuration_WideColorGamut_value = map[string]int32{
		"WIDE_COLOR_GAMUT_UNSET":    0,
		"WIDE_COLOR_GAMUT_WIDECG":   1,
		"WIDE_COLOR_GAMUT_NOWIDECG": 2,
	}
)

Enum value maps for Configuration_WideColorGamut.

View Source
var (
	Configuration_Hdr_name = map[int32]string{
		0: "HDR_UNSET",
		1: "HDR_HIGHDR",
		2: "HDR_LOWDR",
	}
	Configuration_Hdr_value = map[string]int32{
		"HDR_UNSET":  0,
		"HDR_HIGHDR": 1,
		"HDR_LOWDR":  2,
	}
)

Enum value maps for Configuration_Hdr.

View Source
var (
	Configuration_Orientation_name = map[int32]string{
		0: "ORIENTATION_UNSET",
		1: "ORIENTATION_PORT",
		2: "ORIENTATION_LAND",
		3: "ORIENTATION_SQUARE",
	}
	Configuration_Orientation_value = map[string]int32{
		"ORIENTATION_UNSET":  0,
		"ORIENTATION_PORT":   1,
		"ORIENTATION_LAND":   2,
		"ORIENTATION_SQUARE": 3,
	}
)

Enum value maps for Configuration_Orientation.

View Source
var (
	Configuration_UiModeType_name = map[int32]string{
		0: "UI_MODE_TYPE_UNSET",
		1: "UI_MODE_TYPE_NORMAL",
		2: "UI_MODE_TYPE_DESK",
		3: "UI_MODE_TYPE_CAR",
		4: "UI_MODE_TYPE_TELEVISION",
		5: "UI_MODE_TYPE_APPLIANCE",
		6: "UI_MODE_TYPE_WATCH",
		7: "UI_MODE_TYPE_VRHEADSET",
	}
	Configuration_UiModeType_value = map[string]int32{
		"UI_MODE_TYPE_UNSET":      0,
		"UI_MODE_TYPE_NORMAL":     1,
		"UI_MODE_TYPE_DESK":       2,
		"UI_MODE_TYPE_CAR":        3,
		"UI_MODE_TYPE_TELEVISION": 4,
		"UI_MODE_TYPE_APPLIANCE":  5,
		"UI_MODE_TYPE_WATCH":      6,
		"UI_MODE_TYPE_VRHEADSET":  7,
	}
)

Enum value maps for Configuration_UiModeType.

View Source
var (
	Configuration_UiModeNight_name = map[int32]string{
		0: "UI_MODE_NIGHT_UNSET",
		1: "UI_MODE_NIGHT_NIGHT",
		2: "UI_MODE_NIGHT_NOTNIGHT",
	}
	Configuration_UiModeNight_value = map[string]int32{
		"UI_MODE_NIGHT_UNSET":    0,
		"UI_MODE_NIGHT_NIGHT":    1,
		"UI_MODE_NIGHT_NOTNIGHT": 2,
	}
)

Enum value maps for Configuration_UiModeNight.

View Source
var (
	Configuration_Touchscreen_name = map[int32]string{
		0: "TOUCHSCREEN_UNSET",
		1: "TOUCHSCREEN_NOTOUCH",
		2: "TOUCHSCREEN_STYLUS",
		3: "TOUCHSCREEN_FINGER",
	}
	Configuration_Touchscreen_value = map[string]int32{
		"TOUCHSCREEN_UNSET":   0,
		"TOUCHSCREEN_NOTOUCH": 1,
		"TOUCHSCREEN_STYLUS":  2,
		"TOUCHSCREEN_FINGER":  3,
	}
)

Enum value maps for Configuration_Touchscreen.

View Source
var (
	Configuration_KeysHidden_name = map[int32]string{
		0: "KEYS_HIDDEN_UNSET",
		1: "KEYS_HIDDEN_KEYSEXPOSED",
		2: "KEYS_HIDDEN_KEYSHIDDEN",
		3: "KEYS_HIDDEN_KEYSSOFT",
	}
	Configuration_KeysHidden_value = map[string]int32{
		"KEYS_HIDDEN_UNSET":       0,
		"KEYS_HIDDEN_KEYSEXPOSED": 1,
		"KEYS_HIDDEN_KEYSHIDDEN":  2,
		"KEYS_HIDDEN_KEYSSOFT":    3,
	}
)

Enum value maps for Configuration_KeysHidden.

View Source
var (
	Configuration_Keyboard_name = map[int32]string{
		0: "KEYBOARD_UNSET",
		1: "KEYBOARD_NOKEYS",
		2: "KEYBOARD_QWERTY",
		3: "KEYBOARD_TWELVEKEY",
	}
	Configuration_Keyboard_value = map[string]int32{
		"KEYBOARD_UNSET":     0,
		"KEYBOARD_NOKEYS":    1,
		"KEYBOARD_QWERTY":    2,
		"KEYBOARD_TWELVEKEY": 3,
	}
)

Enum value maps for Configuration_Keyboard.

View Source
var (
	Configuration_NavHidden_name = map[int32]string{
		0: "NAV_HIDDEN_UNSET",
		1: "NAV_HIDDEN_NAVEXPOSED",
		2: "NAV_HIDDEN_NAVHIDDEN",
	}
	Configuration_NavHidden_value = map[string]int32{
		"NAV_HIDDEN_UNSET":      0,
		"NAV_HIDDEN_NAVEXPOSED": 1,
		"NAV_HIDDEN_NAVHIDDEN":  2,
	}
)

Enum value maps for Configuration_NavHidden.

View Source
var (
	Configuration_Navigation_name = map[int32]string{
		0: "NAVIGATION_UNSET",
		1: "NAVIGATION_NONAV",
		2: "NAVIGATION_DPAD",
		3: "NAVIGATION_TRACKBALL",
		4: "NAVIGATION_WHEEL",
	}
	Configuration_Navigation_value = map[string]int32{
		"NAVIGATION_UNSET":     0,
		"NAVIGATION_NONAV":     1,
		"NAVIGATION_DPAD":      2,
		"NAVIGATION_TRACKBALL": 3,
		"NAVIGATION_WHEEL":     4,
	}
)

Enum value maps for Configuration_Navigation.

View Source
var (
	Visibility_Level_name = map[int32]string{
		0: "UNKNOWN",
		1: "PRIVATE",
		2: "PUBLIC",
	}
	Visibility_Level_value = map[string]int32{
		"UNKNOWN": 0,
		"PRIVATE": 1,
		"PUBLIC":  2,
	}
)

Enum value maps for Visibility_Level.

View Source
var (
	OverlayableItem_Policy_name = map[int32]string{
		0: "NONE",
		1: "PUBLIC",
		2: "SYSTEM",
		3: "VENDOR",
		4: "PRODUCT",
		5: "SIGNATURE",
		6: "ODM",
		7: "OEM",
	}
	OverlayableItem_Policy_value = map[string]int32{
		"NONE":      0,
		"PUBLIC":    1,
		"SYSTEM":    2,
		"VENDOR":    3,
		"PRODUCT":   4,
		"SIGNATURE": 5,
		"ODM":       6,
		"OEM":       7,
	}
)

Enum value maps for OverlayableItem_Policy.

View Source
var (
	Reference_Type_name = map[int32]string{
		0: "REFERENCE",
		1: "ATTRIBUTE",
	}
	Reference_Type_value = map[string]int32{
		"REFERENCE": 0,
		"ATTRIBUTE": 1,
	}
)

Enum value maps for Reference_Type.

View Source
var (
	FileReference_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "PNG",
		2: "BINARY_XML",
		3: "PROTO_XML",
	}
	FileReference_Type_value = map[string]int32{
		"UNKNOWN":    0,
		"PNG":        1,
		"BINARY_XML": 2,
		"PROTO_XML":  3,
	}
)

Enum value maps for FileReference_Type.

View Source
var (
	Attribute_FormatFlags_name = map[int32]string{
		0:      "NONE",
		65535:  "ANY",
		1:      "REFERENCE",
		2:      "STRING",
		4:      "INTEGER",
		8:      "BOOLEAN",
		16:     "COLOR",
		32:     "FLOAT",
		64:     "DIMENSION",
		128:    "FRACTION",
		65536:  "ENUM",
		131072: "FLAGS",
	}
	Attribute_FormatFlags_value = map[string]int32{
		"NONE":      0,
		"ANY":       65535,
		"REFERENCE": 1,
		"STRING":    2,
		"INTEGER":   4,
		"BOOLEAN":   8,
		"COLOR":     16,
		"FLOAT":     32,
		"DIMENSION": 64,
		"FRACTION":  128,
		"ENUM":      65536,
		"FLAGS":     131072,
	}
)

Enum value maps for Attribute_FormatFlags.

View Source
var (
	Plural_Arity_name = map[int32]string{
		0: "ZERO",
		1: "ONE",
		2: "TWO",
		3: "FEW",
		4: "MANY",
		5: "OTHER",
	}
	Plural_Arity_value = map[string]int32{
		"ZERO":  0,
		"ONE":   1,
		"TWO":   2,
		"FEW":   3,
		"MANY":  4,
		"OTHER": 5,
	}
)

Enum value maps for Plural_Arity.

View Source
var File_proto_Configuration_proto protoreflect.FileDescriptor
View Source
var File_proto_Resources_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllowNew

type AllowNew struct {

	// Where this was defined in source.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comment associated with the declaration.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

Whether a resource comes from a compile-time overlay and is explicitly allowed to not overlay an existing resource.

func (*AllowNew) Descriptor deprecated

func (*AllowNew) Descriptor() ([]byte, []int)

Deprecated: Use AllowNew.ProtoReflect.Descriptor instead.

func (*AllowNew) GetComment

func (x *AllowNew) GetComment() string

func (*AllowNew) GetSource

func (x *AllowNew) GetSource() *Source

func (*AllowNew) ProtoMessage

func (*AllowNew) ProtoMessage()

func (*AllowNew) ProtoReflect

func (x *AllowNew) ProtoReflect() protoreflect.Message

func (*AllowNew) Reset

func (x *AllowNew) Reset()

func (*AllowNew) String

func (x *AllowNew) String() string

type Array

type Array struct {

	// The list of array elements.
	Element []*Array_Element `protobuf:"bytes,1,rep,name=element,proto3" json:"element,omitempty"`
	// contains filtered or unexported fields
}

A value that represents an array of resource values.

func (*Array) Descriptor deprecated

func (*Array) Descriptor() ([]byte, []int)

Deprecated: Use Array.ProtoReflect.Descriptor instead.

func (*Array) GetElement

func (x *Array) GetElement() []*Array_Element

func (*Array) ProtoMessage

func (*Array) ProtoMessage()

func (*Array) ProtoReflect

func (x *Array) ProtoReflect() protoreflect.Message

func (*Array) Reset

func (x *Array) Reset()

func (*Array) String

func (x *Array) String() string

type Array_Element

type Array_Element struct {

	// Where the element was defined.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comments associated with the element.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// The value assigned to this element.
	Item *Item `protobuf:"bytes,3,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

A single element of the array.

func (*Array_Element) Descriptor deprecated

func (*Array_Element) Descriptor() ([]byte, []int)

Deprecated: Use Array_Element.ProtoReflect.Descriptor instead.

func (*Array_Element) GetComment

func (x *Array_Element) GetComment() string

func (*Array_Element) GetItem

func (x *Array_Element) GetItem() *Item

func (*Array_Element) GetSource

func (x *Array_Element) GetSource() *Source

func (*Array_Element) ProtoMessage

func (*Array_Element) ProtoMessage()

func (*Array_Element) ProtoReflect

func (x *Array_Element) ProtoReflect() protoreflect.Message

func (*Array_Element) Reset

func (x *Array_Element) Reset()

func (*Array_Element) String

func (x *Array_Element) String() string

type Attribute

type Attribute struct {

	// A bitmask of types that this XML attribute accepts. Corresponds to the flags in the
	// enum FormatFlags.
	FormatFlags uint32 `protobuf:"varint,1,opt,name=format_flags,json=formatFlags,proto3" json:"format_flags,omitempty"`
	// The smallest integer allowed for this XML attribute. Only makes sense if the format includes
	// FormatFlags::INTEGER.
	MinInt int32 `protobuf:"varint,2,opt,name=min_int,json=minInt,proto3" json:"min_int,omitempty"`
	// The largest integer allowed for this XML attribute. Only makes sense if the format includes
	// FormatFlags::INTEGER.
	MaxInt int32 `protobuf:"varint,3,opt,name=max_int,json=maxInt,proto3" json:"max_int,omitempty"`
	// The set of enums/flags defined in this attribute. Only makes sense if the format includes
	// either FormatFlags::ENUM or FormatFlags::FLAGS. Having both is an error.
	Symbol []*Attribute_Symbol `protobuf:"bytes,4,rep,name=symbol,proto3" json:"symbol,omitempty"`
	// contains filtered or unexported fields
}

A value that represents an XML attribute and what values it accepts.

func (*Attribute) Descriptor deprecated

func (*Attribute) Descriptor() ([]byte, []int)

Deprecated: Use Attribute.ProtoReflect.Descriptor instead.

func (*Attribute) GetFormatFlags

func (x *Attribute) GetFormatFlags() uint32

func (*Attribute) GetMaxInt

func (x *Attribute) GetMaxInt() int32

func (*Attribute) GetMinInt

func (x *Attribute) GetMinInt() int32

func (*Attribute) GetSymbol

func (x *Attribute) GetSymbol() []*Attribute_Symbol

func (*Attribute) ProtoMessage

func (*Attribute) ProtoMessage()

func (*Attribute) ProtoReflect

func (x *Attribute) ProtoReflect() protoreflect.Message

func (*Attribute) Reset

func (x *Attribute) Reset()

func (*Attribute) String

func (x *Attribute) String() string

type Attribute_FormatFlags

type Attribute_FormatFlags int32

Bitmask of formats allowed for an attribute.

const (
	Attribute_NONE      Attribute_FormatFlags = 0     // Proto3 requires a default of 0.
	Attribute_ANY       Attribute_FormatFlags = 65535 // Allows any type except ENUM and FLAGS.
	Attribute_REFERENCE Attribute_FormatFlags = 1     // Allows Reference values.
	Attribute_STRING    Attribute_FormatFlags = 2     // Allows String/StyledString values.
	Attribute_INTEGER   Attribute_FormatFlags = 4     // Allows any integer BinaryPrimitive values.
	Attribute_BOOLEAN   Attribute_FormatFlags = 8     // Allows any boolean BinaryPrimitive values.
	Attribute_COLOR     Attribute_FormatFlags = 16    // Allows any color BinaryPrimitive values.
	Attribute_FLOAT     Attribute_FormatFlags = 32    // Allows any float BinaryPrimitive values.
	Attribute_DIMENSION Attribute_FormatFlags = 64    // Allows any dimension BinaryPrimitive values.
	Attribute_FRACTION  Attribute_FormatFlags = 128   // Allows any fraction BinaryPrimitive values.
	Attribute_ENUM      Attribute_FormatFlags = 65536 // Allows enums that are defined in the Attribute's symbols.
	// ENUM and FLAGS cannot BOTH be set.
	Attribute_FLAGS Attribute_FormatFlags = 131072 // Allows flags that are defined in the Attribute's symbols.
)

func (Attribute_FormatFlags) Descriptor

func (Attribute_FormatFlags) Enum

func (Attribute_FormatFlags) EnumDescriptor deprecated

func (Attribute_FormatFlags) EnumDescriptor() ([]byte, []int)

Deprecated: Use Attribute_FormatFlags.Descriptor instead.

func (Attribute_FormatFlags) Number

func (Attribute_FormatFlags) String

func (x Attribute_FormatFlags) String() string

func (Attribute_FormatFlags) Type

type Attribute_Symbol

type Attribute_Symbol struct {

	// Where the enum/flag item was defined.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comments associated with the enum or flag.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// The name of the enum/flag as a reference. Enums/flag items are generated as ID resource
	// values.
	Name *Reference `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The value of the enum/flag.
	Value uint32 `protobuf:"varint,4,opt,name=value,proto3" json:"value,omitempty"`
	// The data type of the enum/flag as defined in android::Res_value.
	Type uint32 `protobuf:"varint,5,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

A Symbol used to represent an enum or a flag.

func (*Attribute_Symbol) Descriptor deprecated

func (*Attribute_Symbol) Descriptor() ([]byte, []int)

Deprecated: Use Attribute_Symbol.ProtoReflect.Descriptor instead.

func (*Attribute_Symbol) GetComment

func (x *Attribute_Symbol) GetComment() string

func (*Attribute_Symbol) GetName

func (x *Attribute_Symbol) GetName() *Reference

func (*Attribute_Symbol) GetSource

func (x *Attribute_Symbol) GetSource() *Source

func (*Attribute_Symbol) GetType

func (x *Attribute_Symbol) GetType() uint32

func (*Attribute_Symbol) GetValue

func (x *Attribute_Symbol) GetValue() uint32

func (*Attribute_Symbol) ProtoMessage

func (*Attribute_Symbol) ProtoMessage()

func (*Attribute_Symbol) ProtoReflect

func (x *Attribute_Symbol) ProtoReflect() protoreflect.Message

func (*Attribute_Symbol) Reset

func (x *Attribute_Symbol) Reset()

func (*Attribute_Symbol) String

func (x *Attribute_Symbol) String() string

type CompoundValue

type CompoundValue struct {

	// Types that are assignable to Value:
	//
	//	*CompoundValue_Attr
	//	*CompoundValue_Style
	//	*CompoundValue_Styleable
	//	*CompoundValue_Array
	//	*CompoundValue_Plural
	Value isCompoundValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

A CompoundValue is an abstract type. It represents a value that is a made of other values. These can only usually appear as top-level resources. The concrete type is one of the types below. Only one can be set.

func (*CompoundValue) Descriptor deprecated

func (*CompoundValue) Descriptor() ([]byte, []int)

Deprecated: Use CompoundValue.ProtoReflect.Descriptor instead.

func (*CompoundValue) GetArray

func (x *CompoundValue) GetArray() *Array

func (*CompoundValue) GetAttr

func (x *CompoundValue) GetAttr() *Attribute

func (*CompoundValue) GetPlural

func (x *CompoundValue) GetPlural() *Plural

func (*CompoundValue) GetStyle

func (x *CompoundValue) GetStyle() *Style

func (*CompoundValue) GetStyleable

func (x *CompoundValue) GetStyleable() *Styleable

func (*CompoundValue) GetValue

func (m *CompoundValue) GetValue() isCompoundValue_Value

func (*CompoundValue) ProtoMessage

func (*CompoundValue) ProtoMessage()

func (*CompoundValue) ProtoReflect

func (x *CompoundValue) ProtoReflect() protoreflect.Message

func (*CompoundValue) Reset

func (x *CompoundValue) Reset()

func (*CompoundValue) String

func (x *CompoundValue) String() string

type CompoundValue_Array

type CompoundValue_Array struct {
	Array *Array `protobuf:"bytes,4,opt,name=array,proto3,oneof"`
}

type CompoundValue_Attr

type CompoundValue_Attr struct {
	Attr *Attribute `protobuf:"bytes,1,opt,name=attr,proto3,oneof"`
}

type CompoundValue_Plural

type CompoundValue_Plural struct {
	Plural *Plural `protobuf:"bytes,5,opt,name=plural,proto3,oneof"`
}

type CompoundValue_Style

type CompoundValue_Style struct {
	Style *Style `protobuf:"bytes,2,opt,name=style,proto3,oneof"`
}

type CompoundValue_Styleable

type CompoundValue_Styleable struct {
	Styleable *Styleable `protobuf:"bytes,3,opt,name=styleable,proto3,oneof"`
}

type ConfigValue

type ConfigValue struct {
	Config *Configuration `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
	Value  *Value         `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A Configuration/Value pair.

func (*ConfigValue) Descriptor deprecated

func (*ConfigValue) Descriptor() ([]byte, []int)

Deprecated: Use ConfigValue.ProtoReflect.Descriptor instead.

func (*ConfigValue) GetConfig

func (x *ConfigValue) GetConfig() *Configuration

func (*ConfigValue) GetValue

func (x *ConfigValue) GetValue() *Value

func (*ConfigValue) ProtoMessage

func (*ConfigValue) ProtoMessage()

func (*ConfigValue) ProtoReflect

func (x *ConfigValue) ProtoReflect() protoreflect.Message

func (*ConfigValue) Reset

func (x *ConfigValue) Reset()

func (*ConfigValue) String

func (x *ConfigValue) String() string

type Configuration

type Configuration struct {

	// Axis/dimensions that are understood by the runtime.
	//
	// Mobile country code.
	Mcc uint32 `protobuf:"varint,1,opt,name=mcc,proto3" json:"mcc,omitempty"`
	// Mobile network code.
	Mnc uint32 `protobuf:"varint,2,opt,name=mnc,proto3" json:"mnc,omitempty"`
	// BCP-47 locale tag.
	Locale string `protobuf:"bytes,3,opt,name=locale,proto3" json:"locale,omitempty"`
	// Left-to-right, right-to-left...
	LayoutDirection Configuration_LayoutDirection `` /* 150-byte string literal not displayed */
	// Screen width in pixels. Prefer screen_width_dp.
	ScreenWidth uint32 `protobuf:"varint,5,opt,name=screen_width,json=screenWidth,proto3" json:"screen_width,omitempty"`
	// Screen height in pixels. Prefer screen_height_dp.
	ScreenHeight uint32 `protobuf:"varint,6,opt,name=screen_height,json=screenHeight,proto3" json:"screen_height,omitempty"`
	// Screen width in density independent pixels (dp).
	ScreenWidthDp uint32 `protobuf:"varint,7,opt,name=screen_width_dp,json=screenWidthDp,proto3" json:"screen_width_dp,omitempty"`
	// Screen height in density independent pixels (dp).
	ScreenHeightDp uint32 `protobuf:"varint,8,opt,name=screen_height_dp,json=screenHeightDp,proto3" json:"screen_height_dp,omitempty"`
	// The smallest screen dimension, regardless of orientation, in dp.
	SmallestScreenWidthDp uint32 `` /* 129-byte string literal not displayed */
	// Whether the device screen is classified as small, normal, large, xlarge.
	ScreenLayoutSize Configuration_ScreenLayoutSize `` /* 157-byte string literal not displayed */
	// Whether the device screen is long.
	ScreenLayoutLong Configuration_ScreenLayoutLong `` /* 157-byte string literal not displayed */
	// Whether the screen is round (Android Wear).
	ScreenRound Configuration_ScreenRound `` /* 135-byte string literal not displayed */
	// Whether the screen supports wide color gamut.
	WideColorGamut Configuration_WideColorGamut `` /* 149-byte string literal not displayed */
	// Whether the screen has high dynamic range.
	Hdr Configuration_Hdr `protobuf:"varint,14,opt,name=hdr,proto3,enum=aapt.pb.Configuration_Hdr" json:"hdr,omitempty"`
	// Which orientation the device is in (portrait, landscape).
	Orientation Configuration_Orientation `protobuf:"varint,15,opt,name=orientation,proto3,enum=aapt.pb.Configuration_Orientation" json:"orientation,omitempty"`
	// Which type of UI mode the device is in (television, car, etc.).
	UiModeType Configuration_UiModeType `` /* 133-byte string literal not displayed */
	// Whether the device is in night mode.
	UiModeNight Configuration_UiModeNight `` /* 137-byte string literal not displayed */
	// The device's screen density in dots-per-inch (dpi).
	Density uint32 `protobuf:"varint,18,opt,name=density,proto3" json:"density,omitempty"`
	// Whether a touchscreen exists, supports a stylus, or finger.
	Touchscreen Configuration_Touchscreen `protobuf:"varint,19,opt,name=touchscreen,proto3,enum=aapt.pb.Configuration_Touchscreen" json:"touchscreen,omitempty"`
	// Whether the keyboard hardware keys are currently hidden, exposed, or
	// if the keyboard is a software keyboard.
	KeysHidden Configuration_KeysHidden `` /* 131-byte string literal not displayed */
	// The type of keyboard present (none, QWERTY, 12-key).
	Keyboard Configuration_Keyboard `protobuf:"varint,21,opt,name=keyboard,proto3,enum=aapt.pb.Configuration_Keyboard" json:"keyboard,omitempty"`
	// Whether the navigation is exposed or hidden.
	NavHidden Configuration_NavHidden `` /* 127-byte string literal not displayed */
	// The type of navigation present on the device
	// (trackball, wheel, dpad, etc.).
	Navigation Configuration_Navigation `protobuf:"varint,23,opt,name=navigation,proto3,enum=aapt.pb.Configuration_Navigation" json:"navigation,omitempty"`
	// The minimum SDK version of the device.
	SdkVersion uint32 `protobuf:"varint,24,opt,name=sdk_version,json=sdkVersion,proto3" json:"sdk_version,omitempty"`
	// Build-time only dimensions.
	Product string `protobuf:"bytes,25,opt,name=product,proto3" json:"product,omitempty"`
	// contains filtered or unexported fields
}

A description of the requirements a device must have in order for a resource to be matched and selected.

func (*Configuration) Descriptor deprecated

func (*Configuration) Descriptor() ([]byte, []int)

Deprecated: Use Configuration.ProtoReflect.Descriptor instead.

func (*Configuration) GetDensity

func (x *Configuration) GetDensity() uint32

func (*Configuration) GetHdr

func (x *Configuration) GetHdr() Configuration_Hdr

func (*Configuration) GetKeyboard

func (x *Configuration) GetKeyboard() Configuration_Keyboard

func (*Configuration) GetKeysHidden

func (x *Configuration) GetKeysHidden() Configuration_KeysHidden

func (*Configuration) GetLayoutDirection

func (x *Configuration) GetLayoutDirection() Configuration_LayoutDirection

func (*Configuration) GetLocale

func (x *Configuration) GetLocale() string

func (*Configuration) GetMcc

func (x *Configuration) GetMcc() uint32

func (*Configuration) GetMnc

func (x *Configuration) GetMnc() uint32

func (*Configuration) GetNavHidden

func (x *Configuration) GetNavHidden() Configuration_NavHidden

func (*Configuration) GetNavigation

func (x *Configuration) GetNavigation() Configuration_Navigation

func (*Configuration) GetOrientation

func (x *Configuration) GetOrientation() Configuration_Orientation

func (*Configuration) GetProduct

func (x *Configuration) GetProduct() string

func (*Configuration) GetScreenHeight

func (x *Configuration) GetScreenHeight() uint32

func (*Configuration) GetScreenHeightDp

func (x *Configuration) GetScreenHeightDp() uint32

func (*Configuration) GetScreenLayoutLong

func (x *Configuration) GetScreenLayoutLong() Configuration_ScreenLayoutLong

func (*Configuration) GetScreenLayoutSize

func (x *Configuration) GetScreenLayoutSize() Configuration_ScreenLayoutSize

func (*Configuration) GetScreenRound

func (x *Configuration) GetScreenRound() Configuration_ScreenRound

func (*Configuration) GetScreenWidth

func (x *Configuration) GetScreenWidth() uint32

func (*Configuration) GetScreenWidthDp

func (x *Configuration) GetScreenWidthDp() uint32

func (*Configuration) GetSdkVersion

func (x *Configuration) GetSdkVersion() uint32

func (*Configuration) GetSmallestScreenWidthDp

func (x *Configuration) GetSmallestScreenWidthDp() uint32

func (*Configuration) GetTouchscreen

func (x *Configuration) GetTouchscreen() Configuration_Touchscreen

func (*Configuration) GetUiModeNight

func (x *Configuration) GetUiModeNight() Configuration_UiModeNight

func (*Configuration) GetUiModeType

func (x *Configuration) GetUiModeType() Configuration_UiModeType

func (*Configuration) GetWideColorGamut

func (x *Configuration) GetWideColorGamut() Configuration_WideColorGamut

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) ProtoReflect

func (x *Configuration) ProtoReflect() protoreflect.Message

func (*Configuration) Reset

func (x *Configuration) Reset()

func (*Configuration) String

func (x *Configuration) String() string

type Configuration_Hdr

type Configuration_Hdr int32
const (
	Configuration_HDR_UNSET  Configuration_Hdr = 0
	Configuration_HDR_HIGHDR Configuration_Hdr = 1
	Configuration_HDR_LOWDR  Configuration_Hdr = 2
)

func (Configuration_Hdr) Descriptor

func (Configuration_Hdr) Enum

func (Configuration_Hdr) EnumDescriptor deprecated

func (Configuration_Hdr) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_Hdr.Descriptor instead.

func (Configuration_Hdr) Number

func (Configuration_Hdr) String

func (x Configuration_Hdr) String() string

func (Configuration_Hdr) Type

type Configuration_Keyboard

type Configuration_Keyboard int32
const (
	Configuration_KEYBOARD_UNSET     Configuration_Keyboard = 0
	Configuration_KEYBOARD_NOKEYS    Configuration_Keyboard = 1
	Configuration_KEYBOARD_QWERTY    Configuration_Keyboard = 2
	Configuration_KEYBOARD_TWELVEKEY Configuration_Keyboard = 3
)

func (Configuration_Keyboard) Descriptor

func (Configuration_Keyboard) Enum

func (Configuration_Keyboard) EnumDescriptor deprecated

func (Configuration_Keyboard) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_Keyboard.Descriptor instead.

func (Configuration_Keyboard) Number

func (Configuration_Keyboard) String

func (x Configuration_Keyboard) String() string

func (Configuration_Keyboard) Type

type Configuration_KeysHidden

type Configuration_KeysHidden int32
const (
	Configuration_KEYS_HIDDEN_UNSET       Configuration_KeysHidden = 0
	Configuration_KEYS_HIDDEN_KEYSEXPOSED Configuration_KeysHidden = 1
	Configuration_KEYS_HIDDEN_KEYSHIDDEN  Configuration_KeysHidden = 2
	Configuration_KEYS_HIDDEN_KEYSSOFT    Configuration_KeysHidden = 3
)

func (Configuration_KeysHidden) Descriptor

func (Configuration_KeysHidden) Enum

func (Configuration_KeysHidden) EnumDescriptor deprecated

func (Configuration_KeysHidden) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_KeysHidden.Descriptor instead.

func (Configuration_KeysHidden) Number

func (Configuration_KeysHidden) String

func (x Configuration_KeysHidden) String() string

func (Configuration_KeysHidden) Type

type Configuration_LayoutDirection

type Configuration_LayoutDirection int32
const (
	Configuration_LAYOUT_DIRECTION_UNSET Configuration_LayoutDirection = 0
	Configuration_LAYOUT_DIRECTION_LTR   Configuration_LayoutDirection = 1
	Configuration_LAYOUT_DIRECTION_RTL   Configuration_LayoutDirection = 2
)

func (Configuration_LayoutDirection) Descriptor

func (Configuration_LayoutDirection) Enum

func (Configuration_LayoutDirection) EnumDescriptor deprecated

func (Configuration_LayoutDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_LayoutDirection.Descriptor instead.

func (Configuration_LayoutDirection) Number

func (Configuration_LayoutDirection) String

func (Configuration_LayoutDirection) Type

type Configuration_NavHidden

type Configuration_NavHidden int32
const (
	Configuration_NAV_HIDDEN_UNSET      Configuration_NavHidden = 0
	Configuration_NAV_HIDDEN_NAVEXPOSED Configuration_NavHidden = 1
	Configuration_NAV_HIDDEN_NAVHIDDEN  Configuration_NavHidden = 2
)

func (Configuration_NavHidden) Descriptor

func (Configuration_NavHidden) Enum

func (Configuration_NavHidden) EnumDescriptor deprecated

func (Configuration_NavHidden) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_NavHidden.Descriptor instead.

func (Configuration_NavHidden) Number

func (Configuration_NavHidden) String

func (x Configuration_NavHidden) String() string

func (Configuration_NavHidden) Type

type Configuration_Navigation

type Configuration_Navigation int32
const (
	Configuration_NAVIGATION_UNSET     Configuration_Navigation = 0
	Configuration_NAVIGATION_NONAV     Configuration_Navigation = 1
	Configuration_NAVIGATION_DPAD      Configuration_Navigation = 2
	Configuration_NAVIGATION_TRACKBALL Configuration_Navigation = 3
	Configuration_NAVIGATION_WHEEL     Configuration_Navigation = 4
)

func (Configuration_Navigation) Descriptor

func (Configuration_Navigation) Enum

func (Configuration_Navigation) EnumDescriptor deprecated

func (Configuration_Navigation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_Navigation.Descriptor instead.

func (Configuration_Navigation) Number

func (Configuration_Navigation) String

func (x Configuration_Navigation) String() string

func (Configuration_Navigation) Type

type Configuration_Orientation

type Configuration_Orientation int32
const (
	Configuration_ORIENTATION_UNSET  Configuration_Orientation = 0
	Configuration_ORIENTATION_PORT   Configuration_Orientation = 1
	Configuration_ORIENTATION_LAND   Configuration_Orientation = 2
	Configuration_ORIENTATION_SQUARE Configuration_Orientation = 3
)

func (Configuration_Orientation) Descriptor

func (Configuration_Orientation) Enum

func (Configuration_Orientation) EnumDescriptor deprecated

func (Configuration_Orientation) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_Orientation.Descriptor instead.

func (Configuration_Orientation) Number

func (Configuration_Orientation) String

func (x Configuration_Orientation) String() string

func (Configuration_Orientation) Type

type Configuration_ScreenLayoutLong

type Configuration_ScreenLayoutLong int32
const (
	Configuration_SCREEN_LAYOUT_LONG_UNSET   Configuration_ScreenLayoutLong = 0
	Configuration_SCREEN_LAYOUT_LONG_LONG    Configuration_ScreenLayoutLong = 1
	Configuration_SCREEN_LAYOUT_LONG_NOTLONG Configuration_ScreenLayoutLong = 2
)

func (Configuration_ScreenLayoutLong) Descriptor

func (Configuration_ScreenLayoutLong) Enum

func (Configuration_ScreenLayoutLong) EnumDescriptor deprecated

func (Configuration_ScreenLayoutLong) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_ScreenLayoutLong.Descriptor instead.

func (Configuration_ScreenLayoutLong) Number

func (Configuration_ScreenLayoutLong) String

func (Configuration_ScreenLayoutLong) Type

type Configuration_ScreenLayoutSize

type Configuration_ScreenLayoutSize int32
const (
	Configuration_SCREEN_LAYOUT_SIZE_UNSET  Configuration_ScreenLayoutSize = 0
	Configuration_SCREEN_LAYOUT_SIZE_SMALL  Configuration_ScreenLayoutSize = 1
	Configuration_SCREEN_LAYOUT_SIZE_NORMAL Configuration_ScreenLayoutSize = 2
	Configuration_SCREEN_LAYOUT_SIZE_LARGE  Configuration_ScreenLayoutSize = 3
	Configuration_SCREEN_LAYOUT_SIZE_XLARGE Configuration_ScreenLayoutSize = 4
)

func (Configuration_ScreenLayoutSize) Descriptor

func (Configuration_ScreenLayoutSize) Enum

func (Configuration_ScreenLayoutSize) EnumDescriptor deprecated

func (Configuration_ScreenLayoutSize) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_ScreenLayoutSize.Descriptor instead.

func (Configuration_ScreenLayoutSize) Number

func (Configuration_ScreenLayoutSize) String

func (Configuration_ScreenLayoutSize) Type

type Configuration_ScreenRound

type Configuration_ScreenRound int32
const (
	Configuration_SCREEN_ROUND_UNSET    Configuration_ScreenRound = 0
	Configuration_SCREEN_ROUND_ROUND    Configuration_ScreenRound = 1
	Configuration_SCREEN_ROUND_NOTROUND Configuration_ScreenRound = 2
)

func (Configuration_ScreenRound) Descriptor

func (Configuration_ScreenRound) Enum

func (Configuration_ScreenRound) EnumDescriptor deprecated

func (Configuration_ScreenRound) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_ScreenRound.Descriptor instead.

func (Configuration_ScreenRound) Number

func (Configuration_ScreenRound) String

func (x Configuration_ScreenRound) String() string

func (Configuration_ScreenRound) Type

type Configuration_Touchscreen

type Configuration_Touchscreen int32
const (
	Configuration_TOUCHSCREEN_UNSET   Configuration_Touchscreen = 0
	Configuration_TOUCHSCREEN_NOTOUCH Configuration_Touchscreen = 1
	Configuration_TOUCHSCREEN_STYLUS  Configuration_Touchscreen = 2
	Configuration_TOUCHSCREEN_FINGER  Configuration_Touchscreen = 3
)

func (Configuration_Touchscreen) Descriptor

func (Configuration_Touchscreen) Enum

func (Configuration_Touchscreen) EnumDescriptor deprecated

func (Configuration_Touchscreen) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_Touchscreen.Descriptor instead.

func (Configuration_Touchscreen) Number

func (Configuration_Touchscreen) String

func (x Configuration_Touchscreen) String() string

func (Configuration_Touchscreen) Type

type Configuration_UiModeNight

type Configuration_UiModeNight int32
const (
	Configuration_UI_MODE_NIGHT_UNSET    Configuration_UiModeNight = 0
	Configuration_UI_MODE_NIGHT_NIGHT    Configuration_UiModeNight = 1
	Configuration_UI_MODE_NIGHT_NOTNIGHT Configuration_UiModeNight = 2
)

func (Configuration_UiModeNight) Descriptor

func (Configuration_UiModeNight) Enum

func (Configuration_UiModeNight) EnumDescriptor deprecated

func (Configuration_UiModeNight) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_UiModeNight.Descriptor instead.

func (Configuration_UiModeNight) Number

func (Configuration_UiModeNight) String

func (x Configuration_UiModeNight) String() string

func (Configuration_UiModeNight) Type

type Configuration_UiModeType

type Configuration_UiModeType int32
const (
	Configuration_UI_MODE_TYPE_UNSET      Configuration_UiModeType = 0
	Configuration_UI_MODE_TYPE_NORMAL     Configuration_UiModeType = 1
	Configuration_UI_MODE_TYPE_DESK       Configuration_UiModeType = 2
	Configuration_UI_MODE_TYPE_CAR        Configuration_UiModeType = 3
	Configuration_UI_MODE_TYPE_TELEVISION Configuration_UiModeType = 4
	Configuration_UI_MODE_TYPE_APPLIANCE  Configuration_UiModeType = 5
	Configuration_UI_MODE_TYPE_WATCH      Configuration_UiModeType = 6
	Configuration_UI_MODE_TYPE_VRHEADSET  Configuration_UiModeType = 7
)

func (Configuration_UiModeType) Descriptor

func (Configuration_UiModeType) Enum

func (Configuration_UiModeType) EnumDescriptor deprecated

func (Configuration_UiModeType) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_UiModeType.Descriptor instead.

func (Configuration_UiModeType) Number

func (Configuration_UiModeType) String

func (x Configuration_UiModeType) String() string

func (Configuration_UiModeType) Type

type Configuration_WideColorGamut

type Configuration_WideColorGamut int32
const (
	Configuration_WIDE_COLOR_GAMUT_UNSET    Configuration_WideColorGamut = 0
	Configuration_WIDE_COLOR_GAMUT_WIDECG   Configuration_WideColorGamut = 1
	Configuration_WIDE_COLOR_GAMUT_NOWIDECG Configuration_WideColorGamut = 2
)

func (Configuration_WideColorGamut) Descriptor

func (Configuration_WideColorGamut) Enum

func (Configuration_WideColorGamut) EnumDescriptor deprecated

func (Configuration_WideColorGamut) EnumDescriptor() ([]byte, []int)

Deprecated: Use Configuration_WideColorGamut.Descriptor instead.

func (Configuration_WideColorGamut) Number

func (Configuration_WideColorGamut) String

func (Configuration_WideColorGamut) Type

type Entry

type Entry struct {

	// The ID of this entry. Together with the package ID and type ID, this forms a full resource ID
	// of the form 0xPPTTEEEE, where PP is the package ID, TT is the type ID, and EEEE is the entry
	// ID.
	// This may not be set if no ID was assigned.
	EntryId *EntryId `protobuf:"bytes,1,opt,name=entry_id,json=entryId,proto3" json:"entry_id,omitempty"`
	// The name of this entry. This corresponds to the 'entry' part of a full resource name of the
	// form package:type/entry.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The visibility of this entry (public, private, undefined).
	Visibility *Visibility `protobuf:"bytes,3,opt,name=visibility,proto3" json:"visibility,omitempty"`
	// Whether this resource, when originating from a compile-time overlay, is allowed to NOT overlay
	// any existing resources.
	AllowNew *AllowNew `protobuf:"bytes,4,opt,name=allow_new,json=allowNew,proto3" json:"allow_new,omitempty"`
	// Whether this resource can be overlaid by a runtime resource overlay (RRO).
	OverlayableItem *OverlayableItem `protobuf:"bytes,5,opt,name=overlayable_item,json=overlayableItem,proto3" json:"overlayable_item,omitempty"`
	// The set of values defined for this entry, each corresponding to a different
	// configuration/variant.
	ConfigValue []*ConfigValue `protobuf:"bytes,6,rep,name=config_value,json=configValue,proto3" json:"config_value,omitempty"`
	// contains filtered or unexported fields
}

An entry declaration. An entry has a full resource ID that is the combination of package ID, type ID, and its own entry ID. An entry on its own has no value, but values are defined for various configurations/variants.

func (*Entry) Descriptor deprecated

func (*Entry) Descriptor() ([]byte, []int)

Deprecated: Use Entry.ProtoReflect.Descriptor instead.

func (*Entry) GetAllowNew

func (x *Entry) GetAllowNew() *AllowNew

func (*Entry) GetConfigValue

func (x *Entry) GetConfigValue() []*ConfigValue

func (*Entry) GetEntryId

func (x *Entry) GetEntryId() *EntryId

func (*Entry) GetName

func (x *Entry) GetName() string

func (*Entry) GetOverlayableItem

func (x *Entry) GetOverlayableItem() *OverlayableItem

func (*Entry) GetVisibility

func (x *Entry) GetVisibility() *Visibility

func (*Entry) ProtoMessage

func (*Entry) ProtoMessage()

func (*Entry) ProtoReflect

func (x *Entry) ProtoReflect() protoreflect.Message

func (*Entry) Reset

func (x *Entry) Reset()

func (*Entry) String

func (x *Entry) String() string

type EntryId

type EntryId struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

An entry ID in the range [0x0000, 0xffff].

func (*EntryId) Descriptor deprecated

func (*EntryId) Descriptor() ([]byte, []int)

Deprecated: Use EntryId.ProtoReflect.Descriptor instead.

func (*EntryId) GetId

func (x *EntryId) GetId() uint32

func (*EntryId) ProtoMessage

func (*EntryId) ProtoMessage()

func (*EntryId) ProtoReflect

func (x *EntryId) ProtoReflect() protoreflect.Message

func (*EntryId) Reset

func (x *EntryId) Reset()

func (*EntryId) String

func (x *EntryId) String() string

type FileReference

type FileReference struct {

	// Path to a file within the APK (typically res/type-config/entry.ext).
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// The type of file this path points to. For UAM bundle, this cannot be
	// BINARY_XML.
	Type FileReference_Type `protobuf:"varint,2,opt,name=type,proto3,enum=aapt.pb.FileReference_Type" json:"type,omitempty"`
	// contains filtered or unexported fields
}

A value that is a reference to an external entity, like an XML file or a PNG.

func (*FileReference) Descriptor deprecated

func (*FileReference) Descriptor() ([]byte, []int)

Deprecated: Use FileReference.ProtoReflect.Descriptor instead.

func (*FileReference) GetPath

func (x *FileReference) GetPath() string

func (*FileReference) GetType

func (x *FileReference) GetType() FileReference_Type

func (*FileReference) ProtoMessage

func (*FileReference) ProtoMessage()

func (*FileReference) ProtoReflect

func (x *FileReference) ProtoReflect() protoreflect.Message

func (*FileReference) Reset

func (x *FileReference) Reset()

func (*FileReference) String

func (x *FileReference) String() string

type FileReference_Type

type FileReference_Type int32
const (
	FileReference_UNKNOWN    FileReference_Type = 0
	FileReference_PNG        FileReference_Type = 1
	FileReference_BINARY_XML FileReference_Type = 2
	FileReference_PROTO_XML  FileReference_Type = 3
)

func (FileReference_Type) Descriptor

func (FileReference_Type) Enum

func (FileReference_Type) EnumDescriptor deprecated

func (FileReference_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use FileReference_Type.Descriptor instead.

func (FileReference_Type) Number

func (FileReference_Type) String

func (x FileReference_Type) String() string

func (FileReference_Type) Type

type Id

type Id struct {
	// contains filtered or unexported fields
}

A value that represents an ID. This is just a placeholder, as ID values are used to occupy a resource ID (0xPPTTEEEE) as a unique identifier. Their value is unimportant.

func (*Id) Descriptor deprecated

func (*Id) Descriptor() ([]byte, []int)

Deprecated: Use Id.ProtoReflect.Descriptor instead.

func (*Id) ProtoMessage

func (*Id) ProtoMessage()

func (*Id) ProtoReflect

func (x *Id) ProtoReflect() protoreflect.Message

func (*Id) Reset

func (x *Id) Reset()

func (*Id) String

func (x *Id) String() string

type Item

type Item struct {

	// Types that are assignable to Value:
	//
	//	*Item_Ref
	//	*Item_Str
	//	*Item_RawStr
	//	*Item_StyledStr
	//	*Item_File
	//	*Item_Id
	//	*Item_Prim
	Value isItem_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

An Item is an abstract type. It represents a value that can appear inline in many places, such as XML attribute values or on the right hand side of style attribute definitions. The concrete type is one of the types below. Only one can be set.

func (*Item) Descriptor deprecated

func (*Item) Descriptor() ([]byte, []int)

Deprecated: Use Item.ProtoReflect.Descriptor instead.

func (*Item) GetFile

func (x *Item) GetFile() *FileReference

func (*Item) GetId

func (x *Item) GetId() *Id

func (*Item) GetPrim

func (x *Item) GetPrim() *Primitive

func (*Item) GetRawStr

func (x *Item) GetRawStr() *RawString

func (*Item) GetRef

func (x *Item) GetRef() *Reference

func (*Item) GetStr

func (x *Item) GetStr() *String

func (*Item) GetStyledStr

func (x *Item) GetStyledStr() *StyledString

func (*Item) GetValue

func (m *Item) GetValue() isItem_Value

func (*Item) ProtoMessage

func (*Item) ProtoMessage()

func (*Item) ProtoReflect

func (x *Item) ProtoReflect() protoreflect.Message

func (*Item) Reset

func (x *Item) Reset()

func (*Item) String

func (x *Item) String() string

type Item_File

type Item_File struct {
	File *FileReference `protobuf:"bytes,5,opt,name=file,proto3,oneof"`
}

type Item_Id

type Item_Id struct {
	Id *Id `protobuf:"bytes,6,opt,name=id,proto3,oneof"`
}

type Item_Prim

type Item_Prim struct {
	Prim *Primitive `protobuf:"bytes,7,opt,name=prim,proto3,oneof"`
}

type Item_RawStr

type Item_RawStr struct {
	RawStr *RawString `protobuf:"bytes,3,opt,name=raw_str,json=rawStr,proto3,oneof"`
}

type Item_Ref

type Item_Ref struct {
	Ref *Reference `protobuf:"bytes,1,opt,name=ref,proto3,oneof"`
}

type Item_Str

type Item_Str struct {
	Str *String `protobuf:"bytes,2,opt,name=str,proto3,oneof"`
}

type Item_StyledStr

type Item_StyledStr struct {
	StyledStr *StyledString `protobuf:"bytes,4,opt,name=styled_str,json=styledStr,proto3,oneof"`
}

type Overlayable

type Overlayable struct {

	// The name of the <overlayable>.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The location of the <overlayable> declaration in the source.
	Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The component responsible for enabling and disabling overlays targeting this <overlayable>.
	Actor string `protobuf:"bytes,3,opt,name=actor,proto3" json:"actor,omitempty"`
	// contains filtered or unexported fields
}

Represents a set of overlayable resources.

func (*Overlayable) Descriptor deprecated

func (*Overlayable) Descriptor() ([]byte, []int)

Deprecated: Use Overlayable.ProtoReflect.Descriptor instead.

func (*Overlayable) GetActor

func (x *Overlayable) GetActor() string

func (*Overlayable) GetName

func (x *Overlayable) GetName() string

func (*Overlayable) GetSource

func (x *Overlayable) GetSource() *Source

func (*Overlayable) ProtoMessage

func (*Overlayable) ProtoMessage()

func (*Overlayable) ProtoReflect

func (x *Overlayable) ProtoReflect() protoreflect.Message

func (*Overlayable) Reset

func (x *Overlayable) Reset()

func (*Overlayable) String

func (x *Overlayable) String() string

type OverlayableItem

type OverlayableItem struct {

	// The location of the <item> declaration in source.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comment associated with the declaration.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// The policy defined by the enclosing <policy> tag of this <item>.
	Policy []OverlayableItem_Policy `protobuf:"varint,3,rep,packed,name=policy,proto3,enum=aapt.pb.OverlayableItem_Policy" json:"policy,omitempty"`
	// The index into overlayable list that points to the <overlayable> tag that contains
	// this <item>.
	OverlayableIdx uint32 `protobuf:"varint,4,opt,name=overlayable_idx,json=overlayableIdx,proto3" json:"overlayable_idx,omitempty"`
	// contains filtered or unexported fields
}

Represents an overlayable <item> declaration within an <overlayable> tag.

func (*OverlayableItem) Descriptor deprecated

func (*OverlayableItem) Descriptor() ([]byte, []int)

Deprecated: Use OverlayableItem.ProtoReflect.Descriptor instead.

func (*OverlayableItem) GetComment

func (x *OverlayableItem) GetComment() string

func (*OverlayableItem) GetOverlayableIdx

func (x *OverlayableItem) GetOverlayableIdx() uint32

func (*OverlayableItem) GetPolicy

func (x *OverlayableItem) GetPolicy() []OverlayableItem_Policy

func (*OverlayableItem) GetSource

func (x *OverlayableItem) GetSource() *Source

func (*OverlayableItem) ProtoMessage

func (*OverlayableItem) ProtoMessage()

func (*OverlayableItem) ProtoReflect

func (x *OverlayableItem) ProtoReflect() protoreflect.Message

func (*OverlayableItem) Reset

func (x *OverlayableItem) Reset()

func (*OverlayableItem) String

func (x *OverlayableItem) String() string

type OverlayableItem_Policy

type OverlayableItem_Policy int32
const (
	OverlayableItem_NONE      OverlayableItem_Policy = 0
	OverlayableItem_PUBLIC    OverlayableItem_Policy = 1
	OverlayableItem_SYSTEM    OverlayableItem_Policy = 2
	OverlayableItem_VENDOR    OverlayableItem_Policy = 3
	OverlayableItem_PRODUCT   OverlayableItem_Policy = 4
	OverlayableItem_SIGNATURE OverlayableItem_Policy = 5
	OverlayableItem_ODM       OverlayableItem_Policy = 6
	OverlayableItem_OEM       OverlayableItem_Policy = 7
)

func (OverlayableItem_Policy) Descriptor

func (OverlayableItem_Policy) Enum

func (OverlayableItem_Policy) EnumDescriptor deprecated

func (OverlayableItem_Policy) EnumDescriptor() ([]byte, []int)

Deprecated: Use OverlayableItem_Policy.Descriptor instead.

func (OverlayableItem_Policy) Number

func (OverlayableItem_Policy) String

func (x OverlayableItem_Policy) String() string

func (OverlayableItem_Policy) Type

type Package

type Package struct {

	// The package ID of this package, in the range [0x00, 0xff].
	// - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
	// - ID 0x01 is reserved for the 'android' package (framework).
	// - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
	// - ID 0x7f is reserved for the application package.
	// - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
	// This may not be set if no ID was assigned.
	PackageId *PackageId `protobuf:"bytes,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
	// The Java compatible Android package name of the app.
	PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
	// The series of types defined by the package.
	Type []*Type `protobuf:"bytes,3,rep,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

Defines resources for an Android package.

func (*Package) Descriptor deprecated

func (*Package) Descriptor() ([]byte, []int)

Deprecated: Use Package.ProtoReflect.Descriptor instead.

func (*Package) GetPackageId

func (x *Package) GetPackageId() *PackageId

func (*Package) GetPackageName

func (x *Package) GetPackageName() string

func (*Package) GetType

func (x *Package) GetType() []*Type

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) ProtoReflect

func (x *Package) ProtoReflect() protoreflect.Message

func (*Package) Reset

func (x *Package) Reset()

func (*Package) String

func (x *Package) String() string

type PackageId

type PackageId struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A package ID in the range [0x00, 0xff].

func (*PackageId) Descriptor deprecated

func (*PackageId) Descriptor() ([]byte, []int)

Deprecated: Use PackageId.ProtoReflect.Descriptor instead.

func (*PackageId) GetId

func (x *PackageId) GetId() uint32

func (*PackageId) ProtoMessage

func (*PackageId) ProtoMessage()

func (*PackageId) ProtoReflect

func (x *PackageId) ProtoReflect() protoreflect.Message

func (*PackageId) Reset

func (x *PackageId) Reset()

func (*PackageId) String

func (x *PackageId) String() string

type Plural

type Plural struct {

	// The set of arity/plural mappings.
	Entry []*Plural_Entry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

A value that represents a string and its many variations based on plurality.

func (*Plural) Descriptor deprecated

func (*Plural) Descriptor() ([]byte, []int)

Deprecated: Use Plural.ProtoReflect.Descriptor instead.

func (*Plural) GetEntry

func (x *Plural) GetEntry() []*Plural_Entry

func (*Plural) ProtoMessage

func (*Plural) ProtoMessage()

func (*Plural) ProtoReflect

func (x *Plural) ProtoReflect() protoreflect.Message

func (*Plural) Reset

func (x *Plural) Reset()

func (*Plural) String

func (x *Plural) String() string

type Plural_Arity

type Plural_Arity int32

The arity of the plural.

const (
	Plural_ZERO  Plural_Arity = 0
	Plural_ONE   Plural_Arity = 1
	Plural_TWO   Plural_Arity = 2
	Plural_FEW   Plural_Arity = 3
	Plural_MANY  Plural_Arity = 4
	Plural_OTHER Plural_Arity = 5
)

func (Plural_Arity) Descriptor

func (Plural_Arity) Enum

func (x Plural_Arity) Enum() *Plural_Arity

func (Plural_Arity) EnumDescriptor deprecated

func (Plural_Arity) EnumDescriptor() ([]byte, []int)

Deprecated: Use Plural_Arity.Descriptor instead.

func (Plural_Arity) Number

func (Plural_Arity) String

func (x Plural_Arity) String() string

func (Plural_Arity) Type

type Plural_Entry

type Plural_Entry struct {

	// Where the plural was defined.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comments associated with the plural.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// The arity of the plural.
	Arity Plural_Arity `protobuf:"varint,3,opt,name=arity,proto3,enum=aapt.pb.Plural_Arity" json:"arity,omitempty"`
	// The value assigned to this plural.
	Item *Item `protobuf:"bytes,4,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

The plural value for a given arity.

func (*Plural_Entry) Descriptor deprecated

func (*Plural_Entry) Descriptor() ([]byte, []int)

Deprecated: Use Plural_Entry.ProtoReflect.Descriptor instead.

func (*Plural_Entry) GetArity

func (x *Plural_Entry) GetArity() Plural_Arity

func (*Plural_Entry) GetComment

func (x *Plural_Entry) GetComment() string

func (*Plural_Entry) GetItem

func (x *Plural_Entry) GetItem() *Item

func (*Plural_Entry) GetSource

func (x *Plural_Entry) GetSource() *Source

func (*Plural_Entry) ProtoMessage

func (*Plural_Entry) ProtoMessage()

func (*Plural_Entry) ProtoReflect

func (x *Plural_Entry) ProtoReflect() protoreflect.Message

func (*Plural_Entry) Reset

func (x *Plural_Entry) Reset()

func (*Plural_Entry) String

func (x *Plural_Entry) String() string

type Primitive

type Primitive struct {

	// Types that are assignable to OneofValue:
	//
	//	*Primitive_NullValue
	//	*Primitive_EmptyValue
	//	*Primitive_FloatValue
	//	*Primitive_DimensionValue
	//	*Primitive_FractionValue
	//	*Primitive_IntDecimalValue
	//	*Primitive_IntHexadecimalValue
	//	*Primitive_BooleanValue
	//	*Primitive_ColorArgb8Value
	//	*Primitive_ColorRgb8Value
	//	*Primitive_ColorArgb4Value
	//	*Primitive_ColorRgb4Value
	//	*Primitive_DimensionValueDeprecated
	//	*Primitive_FractionValueDeprecated
	OneofValue isPrimitive_OneofValue `protobuf_oneof:"oneof_value"`
	// contains filtered or unexported fields
}

A value that represents a primitive data type (float, int, boolean, etc.). Refer to Res_value in ResourceTypes.h for info on types and formatting

func (*Primitive) Descriptor deprecated

func (*Primitive) Descriptor() ([]byte, []int)

Deprecated: Use Primitive.ProtoReflect.Descriptor instead.

func (*Primitive) GetBooleanValue

func (x *Primitive) GetBooleanValue() bool

func (*Primitive) GetColorArgb4Value

func (x *Primitive) GetColorArgb4Value() uint32

func (*Primitive) GetColorArgb8Value

func (x *Primitive) GetColorArgb8Value() uint32

func (*Primitive) GetColorRgb4Value

func (x *Primitive) GetColorRgb4Value() uint32

func (*Primitive) GetColorRgb8Value

func (x *Primitive) GetColorRgb8Value() uint32

func (*Primitive) GetDimensionValue

func (x *Primitive) GetDimensionValue() uint32

func (*Primitive) GetDimensionValueDeprecated deprecated

func (x *Primitive) GetDimensionValueDeprecated() float32

Deprecated: Marked as deprecated in proto/Resources.proto.

func (*Primitive) GetEmptyValue

func (x *Primitive) GetEmptyValue() *Primitive_EmptyType

func (*Primitive) GetFloatValue

func (x *Primitive) GetFloatValue() float32

func (*Primitive) GetFractionValue

func (x *Primitive) GetFractionValue() uint32

func (*Primitive) GetFractionValueDeprecated deprecated

func (x *Primitive) GetFractionValueDeprecated() float32

Deprecated: Marked as deprecated in proto/Resources.proto.

func (*Primitive) GetIntDecimalValue

func (x *Primitive) GetIntDecimalValue() int32

func (*Primitive) GetIntHexadecimalValue

func (x *Primitive) GetIntHexadecimalValue() uint32

func (*Primitive) GetNullValue

func (x *Primitive) GetNullValue() *Primitive_NullType

func (*Primitive) GetOneofValue

func (m *Primitive) GetOneofValue() isPrimitive_OneofValue

func (*Primitive) ProtoMessage

func (*Primitive) ProtoMessage()

func (*Primitive) ProtoReflect

func (x *Primitive) ProtoReflect() protoreflect.Message

func (*Primitive) Reset

func (x *Primitive) Reset()

func (*Primitive) String

func (x *Primitive) String() string

type Primitive_BooleanValue

type Primitive_BooleanValue struct {
	BooleanValue bool `protobuf:"varint,8,opt,name=boolean_value,json=booleanValue,proto3,oneof"`
}

type Primitive_ColorArgb4Value

type Primitive_ColorArgb4Value struct {
	ColorArgb4Value uint32 `protobuf:"varint,11,opt,name=color_argb4_value,json=colorArgb4Value,proto3,oneof"`
}

type Primitive_ColorArgb8Value

type Primitive_ColorArgb8Value struct {
	ColorArgb8Value uint32 `protobuf:"varint,9,opt,name=color_argb8_value,json=colorArgb8Value,proto3,oneof"`
}

type Primitive_ColorRgb4Value

type Primitive_ColorRgb4Value struct {
	ColorRgb4Value uint32 `protobuf:"varint,12,opt,name=color_rgb4_value,json=colorRgb4Value,proto3,oneof"`
}

type Primitive_ColorRgb8Value

type Primitive_ColorRgb8Value struct {
	ColorRgb8Value uint32 `protobuf:"varint,10,opt,name=color_rgb8_value,json=colorRgb8Value,proto3,oneof"`
}

type Primitive_DimensionValue

type Primitive_DimensionValue struct {
	DimensionValue uint32 `protobuf:"varint,13,opt,name=dimension_value,json=dimensionValue,proto3,oneof"`
}

type Primitive_DimensionValueDeprecated

type Primitive_DimensionValueDeprecated struct {
	// Deprecated: Marked as deprecated in proto/Resources.proto.
	DimensionValueDeprecated float32 `protobuf:"fixed32,4,opt,name=dimension_value_deprecated,json=dimensionValueDeprecated,proto3,oneof"`
}

type Primitive_EmptyType

type Primitive_EmptyType struct {
	// contains filtered or unexported fields
}

func (*Primitive_EmptyType) Descriptor deprecated

func (*Primitive_EmptyType) Descriptor() ([]byte, []int)

Deprecated: Use Primitive_EmptyType.ProtoReflect.Descriptor instead.

func (*Primitive_EmptyType) ProtoMessage

func (*Primitive_EmptyType) ProtoMessage()

func (*Primitive_EmptyType) ProtoReflect

func (x *Primitive_EmptyType) ProtoReflect() protoreflect.Message

func (*Primitive_EmptyType) Reset

func (x *Primitive_EmptyType) Reset()

func (*Primitive_EmptyType) String

func (x *Primitive_EmptyType) String() string

type Primitive_EmptyValue

type Primitive_EmptyValue struct {
	EmptyValue *Primitive_EmptyType `protobuf:"bytes,2,opt,name=empty_value,json=emptyValue,proto3,oneof"`
}

type Primitive_FloatValue

type Primitive_FloatValue struct {
	FloatValue float32 `protobuf:"fixed32,3,opt,name=float_value,json=floatValue,proto3,oneof"`
}

type Primitive_FractionValue

type Primitive_FractionValue struct {
	FractionValue uint32 `protobuf:"varint,14,opt,name=fraction_value,json=fractionValue,proto3,oneof"`
}

type Primitive_FractionValueDeprecated

type Primitive_FractionValueDeprecated struct {
	// Deprecated: Marked as deprecated in proto/Resources.proto.
	FractionValueDeprecated float32 `protobuf:"fixed32,5,opt,name=fraction_value_deprecated,json=fractionValueDeprecated,proto3,oneof"`
}

type Primitive_IntDecimalValue

type Primitive_IntDecimalValue struct {
	IntDecimalValue int32 `protobuf:"varint,6,opt,name=int_decimal_value,json=intDecimalValue,proto3,oneof"`
}

type Primitive_IntHexadecimalValue

type Primitive_IntHexadecimalValue struct {
	IntHexadecimalValue uint32 `protobuf:"varint,7,opt,name=int_hexadecimal_value,json=intHexadecimalValue,proto3,oneof"`
}

type Primitive_NullType

type Primitive_NullType struct {
	// contains filtered or unexported fields
}

func (*Primitive_NullType) Descriptor deprecated

func (*Primitive_NullType) Descriptor() ([]byte, []int)

Deprecated: Use Primitive_NullType.ProtoReflect.Descriptor instead.

func (*Primitive_NullType) ProtoMessage

func (*Primitive_NullType) ProtoMessage()

func (*Primitive_NullType) ProtoReflect

func (x *Primitive_NullType) ProtoReflect() protoreflect.Message

func (*Primitive_NullType) Reset

func (x *Primitive_NullType) Reset()

func (*Primitive_NullType) String

func (x *Primitive_NullType) String() string

type Primitive_NullValue

type Primitive_NullValue struct {
	NullValue *Primitive_NullType `protobuf:"bytes,1,opt,name=null_value,json=nullValue,proto3,oneof"`
}

type RawString

type RawString struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A value that is a raw string, which is unescaped/uninterpreted. This is typically used to represent the value of a style attribute before the attribute is compiled and the set of allowed values is known.

func (*RawString) Descriptor deprecated

func (*RawString) Descriptor() ([]byte, []int)

Deprecated: Use RawString.ProtoReflect.Descriptor instead.

func (*RawString) GetValue

func (x *RawString) GetValue() string

func (*RawString) ProtoMessage

func (*RawString) ProtoMessage()

func (*RawString) ProtoReflect

func (x *RawString) ProtoReflect() protoreflect.Message

func (*RawString) Reset

func (x *RawString) Reset()

func (*RawString) String

func (x *RawString) String() string

type Reference

type Reference struct {
	Type Reference_Type `protobuf:"varint,1,opt,name=type,proto3,enum=aapt.pb.Reference_Type" json:"type,omitempty"`
	// The resource ID (0xPPTTEEEE) of the resource being referred. This is optional.
	Id uint32 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	// The name of the resource being referred. This is optional if the resource ID is set.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// Whether this reference is referencing a private resource (@*package:type/entry).
	Private bool `protobuf:"varint,4,opt,name=private,proto3" json:"private,omitempty"`
	// contains filtered or unexported fields
}

A value that is a reference to another resource. This reference can be by name or resource ID.

func (*Reference) Descriptor deprecated

func (*Reference) Descriptor() ([]byte, []int)

Deprecated: Use Reference.ProtoReflect.Descriptor instead.

func (*Reference) GetId

func (x *Reference) GetId() uint32

func (*Reference) GetName

func (x *Reference) GetName() string

func (*Reference) GetPrivate

func (x *Reference) GetPrivate() bool

func (*Reference) GetType

func (x *Reference) GetType() Reference_Type

func (*Reference) ProtoMessage

func (*Reference) ProtoMessage()

func (*Reference) ProtoReflect

func (x *Reference) ProtoReflect() protoreflect.Message

func (*Reference) Reset

func (x *Reference) Reset()

func (*Reference) String

func (x *Reference) String() string

type Reference_Type

type Reference_Type int32
const (
	// A plain reference (@package:type/entry).
	Reference_REFERENCE Reference_Type = 0
	// A reference to a theme attribute (?package:type/entry).
	Reference_ATTRIBUTE Reference_Type = 1
)

func (Reference_Type) Descriptor

func (Reference_Type) Enum

func (x Reference_Type) Enum() *Reference_Type

func (Reference_Type) EnumDescriptor deprecated

func (Reference_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use Reference_Type.Descriptor instead.

func (Reference_Type) Number

func (Reference_Type) String

func (x Reference_Type) String() string

func (Reference_Type) Type

type ResourceTable

type ResourceTable struct {

	// The string pool containing source paths referenced throughout the resource table. This does
	// not end up in the final binary ARSC file.
	SourcePool *StringPool `protobuf:"bytes,1,opt,name=source_pool,json=sourcePool,proto3" json:"source_pool,omitempty"`
	// Resource definitions corresponding to an Android package.
	Package []*Package `protobuf:"bytes,2,rep,name=package,proto3" json:"package,omitempty"`
	// The <overlayable> declarations within the resource table.
	Overlayable []*Overlayable `protobuf:"bytes,3,rep,name=overlayable,proto3" json:"overlayable,omitempty"`
	// The version fingerprints of the tools that built the resource table.
	ToolFingerprint []*ToolFingerprint `protobuf:"bytes,4,rep,name=tool_fingerprint,json=toolFingerprint,proto3" json:"tool_fingerprint,omitempty"`
	// contains filtered or unexported fields
}

Top level message representing a resource table.

func (*ResourceTable) Descriptor deprecated

func (*ResourceTable) Descriptor() ([]byte, []int)

Deprecated: Use ResourceTable.ProtoReflect.Descriptor instead.

func (*ResourceTable) GetOverlayable

func (x *ResourceTable) GetOverlayable() []*Overlayable

func (*ResourceTable) GetPackage

func (x *ResourceTable) GetPackage() []*Package

func (*ResourceTable) GetSourcePool

func (x *ResourceTable) GetSourcePool() *StringPool

func (*ResourceTable) GetToolFingerprint

func (x *ResourceTable) GetToolFingerprint() []*ToolFingerprint

func (*ResourceTable) ProtoMessage

func (*ResourceTable) ProtoMessage()

func (*ResourceTable) ProtoReflect

func (x *ResourceTable) ProtoReflect() protoreflect.Message

func (*ResourceTable) Reset

func (x *ResourceTable) Reset()

func (*ResourceTable) String

func (x *ResourceTable) String() string

type Source

type Source struct {

	// The index of the string path within the source string pool of a ResourceTable.
	PathIdx  uint32          `protobuf:"varint,1,opt,name=path_idx,json=pathIdx,proto3" json:"path_idx,omitempty"`
	Position *SourcePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
	// contains filtered or unexported fields
}

Developer friendly source file information for an entity in the resource table.

func (*Source) Descriptor deprecated

func (*Source) Descriptor() ([]byte, []int)

Deprecated: Use Source.ProtoReflect.Descriptor instead.

func (*Source) GetPathIdx

func (x *Source) GetPathIdx() uint32

func (*Source) GetPosition

func (x *Source) GetPosition() *SourcePosition

func (*Source) ProtoMessage

func (*Source) ProtoMessage()

func (*Source) ProtoReflect

func (x *Source) ProtoReflect() protoreflect.Message

func (*Source) Reset

func (x *Source) Reset()

func (*Source) String

func (x *Source) String() string

type SourcePosition

type SourcePosition struct {
	LineNumber   uint32 `protobuf:"varint,1,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
	ColumnNumber uint32 `protobuf:"varint,2,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
	// contains filtered or unexported fields
}

The position of a declared entity within a file.

func (*SourcePosition) Descriptor deprecated

func (*SourcePosition) Descriptor() ([]byte, []int)

Deprecated: Use SourcePosition.ProtoReflect.Descriptor instead.

func (*SourcePosition) GetColumnNumber

func (x *SourcePosition) GetColumnNumber() uint32

func (*SourcePosition) GetLineNumber

func (x *SourcePosition) GetLineNumber() uint32

func (*SourcePosition) ProtoMessage

func (*SourcePosition) ProtoMessage()

func (*SourcePosition) ProtoReflect

func (x *SourcePosition) ProtoReflect() protoreflect.Message

func (*SourcePosition) Reset

func (x *SourcePosition) Reset()

func (*SourcePosition) String

func (x *SourcePosition) String() string

type String

type String struct {
	Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

A value that is a string.

func (*String) Descriptor deprecated

func (*String) Descriptor() ([]byte, []int)

Deprecated: Use String.ProtoReflect.Descriptor instead.

func (*String) GetValue

func (x *String) GetValue() string

func (*String) ProtoMessage

func (*String) ProtoMessage()

func (*String) ProtoReflect

func (x *String) ProtoReflect() protoreflect.Message

func (*String) Reset

func (x *String) Reset()

func (*String) String

func (x *String) String() string

type StringPool

type StringPool struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

A string pool that wraps the binary form of the C++ class android::ResStringPool.

func (*StringPool) Descriptor deprecated

func (*StringPool) Descriptor() ([]byte, []int)

Deprecated: Use StringPool.ProtoReflect.Descriptor instead.

func (*StringPool) GetData

func (x *StringPool) GetData() []byte

func (*StringPool) ProtoMessage

func (*StringPool) ProtoMessage()

func (*StringPool) ProtoReflect

func (x *StringPool) ProtoReflect() protoreflect.Message

func (*StringPool) Reset

func (x *StringPool) Reset()

func (*StringPool) String

func (x *StringPool) String() string

type Style

type Style struct {

	// The optinal style from which this style inherits attributes.
	Parent *Reference `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
	// The source file information of the parent inheritance declaration.
	ParentSource *Source `protobuf:"bytes,2,opt,name=parent_source,json=parentSource,proto3" json:"parent_source,omitempty"`
	// The set of XML attribute/value pairs for this style.
	Entry []*Style_Entry `protobuf:"bytes,3,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

A value that represents a style.

func (*Style) Descriptor deprecated

func (*Style) Descriptor() ([]byte, []int)

Deprecated: Use Style.ProtoReflect.Descriptor instead.

func (*Style) GetEntry

func (x *Style) GetEntry() []*Style_Entry

func (*Style) GetParent

func (x *Style) GetParent() *Reference

func (*Style) GetParentSource

func (x *Style) GetParentSource() *Source

func (*Style) ProtoMessage

func (*Style) ProtoMessage()

func (*Style) ProtoReflect

func (x *Style) ProtoReflect() protoreflect.Message

func (*Style) Reset

func (x *Style) Reset()

func (*Style) String

func (x *Style) String() string

type Style_Entry

type Style_Entry struct {

	// Where the entry was defined.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comments associated with the entry.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// A reference to the XML attribute.
	Key *Reference `protobuf:"bytes,3,opt,name=key,proto3" json:"key,omitempty"`
	// The Item defined for this XML attribute.
	Item *Item `protobuf:"bytes,4,opt,name=item,proto3" json:"item,omitempty"`
	// contains filtered or unexported fields
}

An XML attribute/value pair defined in the style.

func (*Style_Entry) Descriptor deprecated

func (*Style_Entry) Descriptor() ([]byte, []int)

Deprecated: Use Style_Entry.ProtoReflect.Descriptor instead.

func (*Style_Entry) GetComment

func (x *Style_Entry) GetComment() string

func (*Style_Entry) GetItem

func (x *Style_Entry) GetItem() *Item

func (*Style_Entry) GetKey

func (x *Style_Entry) GetKey() *Reference

func (*Style_Entry) GetSource

func (x *Style_Entry) GetSource() *Source

func (*Style_Entry) ProtoMessage

func (*Style_Entry) ProtoMessage()

func (*Style_Entry) ProtoReflect

func (x *Style_Entry) ProtoReflect() protoreflect.Message

func (*Style_Entry) Reset

func (x *Style_Entry) Reset()

func (*Style_Entry) String

func (x *Style_Entry) String() string

type Styleable

type Styleable struct {

	// The set of attribute declarations.
	Entry []*Styleable_Entry `protobuf:"bytes,1,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

A value that represents a <declare-styleable> XML resource. These are not real resources and only end up as Java fields in the generated R.java. They do not end up in the binary ARSC file.

func (*Styleable) Descriptor deprecated

func (*Styleable) Descriptor() ([]byte, []int)

Deprecated: Use Styleable.ProtoReflect.Descriptor instead.

func (*Styleable) GetEntry

func (x *Styleable) GetEntry() []*Styleable_Entry

func (*Styleable) ProtoMessage

func (*Styleable) ProtoMessage()

func (*Styleable) ProtoReflect

func (x *Styleable) ProtoReflect() protoreflect.Message

func (*Styleable) Reset

func (x *Styleable) Reset()

func (*Styleable) String

func (x *Styleable) String() string

type Styleable_Entry

type Styleable_Entry struct {

	// Where the attribute was defined within the <declare-styleable> block.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comments associated with the declaration.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// The reference to the attribute.
	Attr *Reference `protobuf:"bytes,3,opt,name=attr,proto3" json:"attr,omitempty"`
	// contains filtered or unexported fields
}

An attribute defined for this styleable.

func (*Styleable_Entry) Descriptor deprecated

func (*Styleable_Entry) Descriptor() ([]byte, []int)

Deprecated: Use Styleable_Entry.ProtoReflect.Descriptor instead.

func (*Styleable_Entry) GetAttr

func (x *Styleable_Entry) GetAttr() *Reference

func (*Styleable_Entry) GetComment

func (x *Styleable_Entry) GetComment() string

func (*Styleable_Entry) GetSource

func (x *Styleable_Entry) GetSource() *Source

func (*Styleable_Entry) ProtoMessage

func (*Styleable_Entry) ProtoMessage()

func (*Styleable_Entry) ProtoReflect

func (x *Styleable_Entry) ProtoReflect() protoreflect.Message

func (*Styleable_Entry) Reset

func (x *Styleable_Entry) Reset()

func (*Styleable_Entry) String

func (x *Styleable_Entry) String() string

type StyledString

type StyledString struct {

	// The raw text of the string.
	Value string               `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	Span  []*StyledString_Span `protobuf:"bytes,2,rep,name=span,proto3" json:"span,omitempty"`
	// contains filtered or unexported fields
}

A string with styling information, like html tags that specify boldness, italics, etc.

func (*StyledString) Descriptor deprecated

func (*StyledString) Descriptor() ([]byte, []int)

Deprecated: Use StyledString.ProtoReflect.Descriptor instead.

func (*StyledString) GetSpan

func (x *StyledString) GetSpan() []*StyledString_Span

func (*StyledString) GetValue

func (x *StyledString) GetValue() string

func (*StyledString) ProtoMessage

func (*StyledString) ProtoMessage()

func (*StyledString) ProtoReflect

func (x *StyledString) ProtoReflect() protoreflect.Message

func (*StyledString) Reset

func (x *StyledString) Reset()

func (*StyledString) String

func (x *StyledString) String() string

type StyledString_Span

type StyledString_Span struct {

	// The name of the tag, and its attributes, encoded as follows:
	// tag_name;attr1=value1;attr2=value2;[...]
	Tag string `protobuf:"bytes,1,opt,name=tag,proto3" json:"tag,omitempty"`
	// The first character position this span applies to, in UTF-16 offset.
	FirstChar uint32 `protobuf:"varint,2,opt,name=first_char,json=firstChar,proto3" json:"first_char,omitempty"`
	// The last character position this span applies to, in UTF-16 offset.
	LastChar uint32 `protobuf:"varint,3,opt,name=last_char,json=lastChar,proto3" json:"last_char,omitempty"`
	// contains filtered or unexported fields
}

A Span marks a region of the string text that is styled.

func (*StyledString_Span) Descriptor deprecated

func (*StyledString_Span) Descriptor() ([]byte, []int)

Deprecated: Use StyledString_Span.ProtoReflect.Descriptor instead.

func (*StyledString_Span) GetFirstChar

func (x *StyledString_Span) GetFirstChar() uint32

func (*StyledString_Span) GetLastChar

func (x *StyledString_Span) GetLastChar() uint32

func (*StyledString_Span) GetTag

func (x *StyledString_Span) GetTag() string

func (*StyledString_Span) ProtoMessage

func (*StyledString_Span) ProtoMessage()

func (*StyledString_Span) ProtoReflect

func (x *StyledString_Span) ProtoReflect() protoreflect.Message

func (*StyledString_Span) Reset

func (x *StyledString_Span) Reset()

func (*StyledString_Span) String

func (x *StyledString_Span) String() string

type ToolFingerprint

type ToolFingerprint struct {
	Tool    string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

The name and version fingerprint of a build tool.

func (*ToolFingerprint) Descriptor deprecated

func (*ToolFingerprint) Descriptor() ([]byte, []int)

Deprecated: Use ToolFingerprint.ProtoReflect.Descriptor instead.

func (*ToolFingerprint) GetTool

func (x *ToolFingerprint) GetTool() string

func (*ToolFingerprint) GetVersion

func (x *ToolFingerprint) GetVersion() string

func (*ToolFingerprint) ProtoMessage

func (*ToolFingerprint) ProtoMessage()

func (*ToolFingerprint) ProtoReflect

func (x *ToolFingerprint) ProtoReflect() protoreflect.Message

func (*ToolFingerprint) Reset

func (x *ToolFingerprint) Reset()

func (*ToolFingerprint) String

func (x *ToolFingerprint) String() string

type Type

type Type struct {

	// The ID of the type. This may not be set if no ID was assigned.
	TypeId *TypeId `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
	// The name of the type. This corresponds to the 'type' part of a full resource name of the form
	// package:type/entry. The set of legal type names is listed in Resource.cpp.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// The entries defined for this type.
	Entry []*Entry `protobuf:"bytes,3,rep,name=entry,proto3" json:"entry,omitempty"`
	// contains filtered or unexported fields
}

A set of resources grouped under a common type. Such types include string, layout, xml, dimen, attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).

func (*Type) Descriptor deprecated

func (*Type) Descriptor() ([]byte, []int)

Deprecated: Use Type.ProtoReflect.Descriptor instead.

func (*Type) GetEntry

func (x *Type) GetEntry() []*Entry

func (*Type) GetName

func (x *Type) GetName() string

func (*Type) GetTypeId

func (x *Type) GetTypeId() *TypeId

func (*Type) ProtoMessage

func (*Type) ProtoMessage()

func (*Type) ProtoReflect

func (x *Type) ProtoReflect() protoreflect.Message

func (*Type) Reset

func (x *Type) Reset()

func (*Type) String

func (x *Type) String() string

type TypeId

type TypeId struct {
	Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

A type ID in the range [0x01, 0xff].

func (*TypeId) Descriptor deprecated

func (*TypeId) Descriptor() ([]byte, []int)

Deprecated: Use TypeId.ProtoReflect.Descriptor instead.

func (*TypeId) GetId

func (x *TypeId) GetId() uint32

func (*TypeId) ProtoMessage

func (*TypeId) ProtoMessage()

func (*TypeId) ProtoReflect

func (x *TypeId) ProtoReflect() protoreflect.Message

func (*TypeId) Reset

func (x *TypeId) Reset()

func (*TypeId) String

func (x *TypeId) String() string

type Value

type Value struct {

	// Where the value was defined.
	Source *Source `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	// Any comment associated with the value.
	Comment string `protobuf:"bytes,2,opt,name=comment,proto3" json:"comment,omitempty"`
	// Whether the value can be overridden.
	Weak bool `protobuf:"varint,3,opt,name=weak,proto3" json:"weak,omitempty"`
	// The value is either an Item or a CompoundValue.
	//
	// Types that are assignable to Value:
	//
	//	*Value_Item
	//	*Value_CompoundValue
	Value isValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

The generic meta-data for every value in a resource table.

func (*Value) Descriptor deprecated

func (*Value) Descriptor() ([]byte, []int)

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetComment

func (x *Value) GetComment() string

func (*Value) GetCompoundValue

func (x *Value) GetCompoundValue() *CompoundValue

func (*Value) GetItem

func (x *Value) GetItem() *Item

func (*Value) GetSource

func (x *Value) GetSource() *Source

func (*Value) GetValue

func (m *Value) GetValue() isValue_Value

func (*Value) GetWeak

func (x *Value) GetWeak() bool

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

func (x *Value) ProtoReflect() protoreflect.Message

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

type Value_CompoundValue

type Value_CompoundValue struct {
	CompoundValue *CompoundValue `protobuf:"bytes,5,opt,name=compound_value,json=compoundValue,proto3,oneof"`
}

type Value_Item

type Value_Item struct {
	Item *Item `protobuf:"bytes,4,opt,name=item,proto3,oneof"`
}

type Visibility

type Visibility struct {
	Level Visibility_Level `protobuf:"varint,1,opt,name=level,proto3,enum=aapt.pb.Visibility_Level" json:"level,omitempty"`
	// The path at which this entry's visibility was defined (eg. public.xml).
	Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// The comment associated with the <public> tag.
	Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
	// contains filtered or unexported fields
}

The Visibility of a symbol/entry (public, private, undefined).

func (*Visibility) Descriptor deprecated

func (*Visibility) Descriptor() ([]byte, []int)

Deprecated: Use Visibility.ProtoReflect.Descriptor instead.

func (*Visibility) GetComment

func (x *Visibility) GetComment() string

func (*Visibility) GetLevel

func (x *Visibility) GetLevel() Visibility_Level

func (*Visibility) GetSource

func (x *Visibility) GetSource() *Source

func (*Visibility) ProtoMessage

func (*Visibility) ProtoMessage()

func (*Visibility) ProtoReflect

func (x *Visibility) ProtoReflect() protoreflect.Message

func (*Visibility) Reset

func (x *Visibility) Reset()

func (*Visibility) String

func (x *Visibility) String() string

type Visibility_Level

type Visibility_Level int32

The visibility of the resource outside of its package.

const (
	// No visibility was explicitly specified. This is typically treated as private.
	// The distinction is important when two separate R.java files are generated: a public and
	// private one. An unknown visibility, in this case, would cause the resource to be omitted
	// from either R.java.
	Visibility_UNKNOWN Visibility_Level = 0
	// A resource was explicitly marked as private. This means the resource can not be accessed
	// outside of its package unless the @*package:type/entry notation is used (the asterisk being
	// the private accessor). If two R.java files are generated (private + public), the resource
	// will only be emitted to the private R.java file.
	Visibility_PRIVATE Visibility_Level = 1
	// A resource was explicitly marked as public. This means the resource can be accessed
	// from any package, and is emitted into all R.java files, public and private.
	Visibility_PUBLIC Visibility_Level = 2
)

func (Visibility_Level) Descriptor

func (Visibility_Level) Enum

func (Visibility_Level) EnumDescriptor deprecated

func (Visibility_Level) EnumDescriptor() ([]byte, []int)

Deprecated: Use Visibility_Level.Descriptor instead.

func (Visibility_Level) Number

func (Visibility_Level) String

func (x Visibility_Level) String() string

func (Visibility_Level) Type

type XmlAttribute

type XmlAttribute struct {
	NamespaceUri string `protobuf:"bytes,1,opt,name=namespace_uri,json=namespaceUri,proto3" json:"namespace_uri,omitempty"`
	Name         string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Value        string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
	// Source line and column info.
	Source *SourcePosition `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	// The optional resource ID (0xPPTTEEEE) of the attribute.
	ResourceId uint32 `protobuf:"varint,5,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"`
	// The optional interpreted/compiled version of the `value` string.
	CompiledItem *Item `protobuf:"bytes,6,opt,name=compiled_item,json=compiledItem,proto3" json:"compiled_item,omitempty"`
	// contains filtered or unexported fields
}

An attribute defined on an XmlElement (android:text="...").

func (*XmlAttribute) Descriptor deprecated

func (*XmlAttribute) Descriptor() ([]byte, []int)

Deprecated: Use XmlAttribute.ProtoReflect.Descriptor instead.

func (*XmlAttribute) GetCompiledItem

func (x *XmlAttribute) GetCompiledItem() *Item

func (*XmlAttribute) GetName

func (x *XmlAttribute) GetName() string

func (*XmlAttribute) GetNamespaceUri

func (x *XmlAttribute) GetNamespaceUri() string

func (*XmlAttribute) GetResourceId

func (x *XmlAttribute) GetResourceId() uint32

func (*XmlAttribute) GetSource

func (x *XmlAttribute) GetSource() *SourcePosition

func (*XmlAttribute) GetValue

func (x *XmlAttribute) GetValue() string

func (*XmlAttribute) ProtoMessage

func (*XmlAttribute) ProtoMessage()

func (*XmlAttribute) ProtoReflect

func (x *XmlAttribute) ProtoReflect() protoreflect.Message

func (*XmlAttribute) Reset

func (x *XmlAttribute) Reset()

func (*XmlAttribute) String

func (x *XmlAttribute) String() string

type XmlElement

type XmlElement struct {

	// Namespaces defined on this element.
	NamespaceDeclaration []*XmlNamespace `protobuf:"bytes,1,rep,name=namespace_declaration,json=namespaceDeclaration,proto3" json:"namespace_declaration,omitempty"`
	// The namespace URI of this element.
	NamespaceUri string `protobuf:"bytes,2,opt,name=namespace_uri,json=namespaceUri,proto3" json:"namespace_uri,omitempty"`
	// The name of this element.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// The attributes of this element.
	Attribute []*XmlAttribute `protobuf:"bytes,4,rep,name=attribute,proto3" json:"attribute,omitempty"`
	// The children of this element.
	Child []*XmlNode `protobuf:"bytes,5,rep,name=child,proto3" json:"child,omitempty"`
	// contains filtered or unexported fields
}

An <element> in an XML document.

func (*XmlElement) Descriptor deprecated

func (*XmlElement) Descriptor() ([]byte, []int)

Deprecated: Use XmlElement.ProtoReflect.Descriptor instead.

func (*XmlElement) GetAttribute

func (x *XmlElement) GetAttribute() []*XmlAttribute

func (*XmlElement) GetChild

func (x *XmlElement) GetChild() []*XmlNode

func (*XmlElement) GetName

func (x *XmlElement) GetName() string

func (*XmlElement) GetNamespaceDeclaration

func (x *XmlElement) GetNamespaceDeclaration() []*XmlNamespace

func (*XmlElement) GetNamespaceUri

func (x *XmlElement) GetNamespaceUri() string

func (*XmlElement) ProtoMessage

func (*XmlElement) ProtoMessage()

func (*XmlElement) ProtoReflect

func (x *XmlElement) ProtoReflect() protoreflect.Message

func (*XmlElement) Reset

func (x *XmlElement) Reset()

func (*XmlElement) String

func (x *XmlElement) String() string

type XmlNamespace

type XmlNamespace struct {
	Prefix string `protobuf:"bytes,1,opt,name=prefix,proto3" json:"prefix,omitempty"`
	Uri    string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
	// Source line and column info.
	Source *SourcePosition `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

A namespace declaration on an XmlElement (xmlns:android="http://...").

func (*XmlNamespace) Descriptor deprecated

func (*XmlNamespace) Descriptor() ([]byte, []int)

Deprecated: Use XmlNamespace.ProtoReflect.Descriptor instead.

func (*XmlNamespace) GetPrefix

func (x *XmlNamespace) GetPrefix() string

func (*XmlNamespace) GetSource

func (x *XmlNamespace) GetSource() *SourcePosition

func (*XmlNamespace) GetUri

func (x *XmlNamespace) GetUri() string

func (*XmlNamespace) ProtoMessage

func (*XmlNamespace) ProtoMessage()

func (*XmlNamespace) ProtoReflect

func (x *XmlNamespace) ProtoReflect() protoreflect.Message

func (*XmlNamespace) Reset

func (x *XmlNamespace) Reset()

func (*XmlNamespace) String

func (x *XmlNamespace) String() string

type XmlNode

type XmlNode struct {

	// Types that are assignable to Node:
	//
	//	*XmlNode_Element
	//	*XmlNode_Text
	Node isXmlNode_Node `protobuf_oneof:"node"`
	// Source line and column info.
	Source *SourcePosition `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

Defines an abstract XmlNode that must be either an XmlElement, or a text node represented by a string.

func (*XmlNode) Descriptor deprecated

func (*XmlNode) Descriptor() ([]byte, []int)

Deprecated: Use XmlNode.ProtoReflect.Descriptor instead.

func (*XmlNode) GetElement

func (x *XmlNode) GetElement() *XmlElement

func (*XmlNode) GetNode

func (m *XmlNode) GetNode() isXmlNode_Node

func (*XmlNode) GetSource

func (x *XmlNode) GetSource() *SourcePosition

func (*XmlNode) GetText

func (x *XmlNode) GetText() string

func (*XmlNode) ProtoMessage

func (*XmlNode) ProtoMessage()

func (*XmlNode) ProtoReflect

func (x *XmlNode) ProtoReflect() protoreflect.Message

func (*XmlNode) Reset

func (x *XmlNode) Reset()

func (*XmlNode) String

func (x *XmlNode) String() string

type XmlNode_Element

type XmlNode_Element struct {
	Element *XmlElement `protobuf:"bytes,1,opt,name=element,proto3,oneof"`
}

type XmlNode_Text

type XmlNode_Text struct {
	Text string `protobuf:"bytes,2,opt,name=text,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL