common

package
v0.0.0-...-72d0ca0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FieldDescriptorProto_Type_name = map[int32]string{
		1:  "TYPE_DOUBLE",
		2:  "TYPE_FLOAT",
		3:  "TYPE_INT64",
		4:  "TYPE_UINT64",
		5:  "TYPE_INT32",
		6:  "TYPE_FIXED64",
		7:  "TYPE_FIXED32",
		8:  "TYPE_BOOL",
		9:  "TYPE_STRING",
		10: "TYPE_GROUP",
		11: "TYPE_MESSAGE",
		12: "TYPE_BYTES",
		13: "TYPE_UINT32",
		14: "TYPE_ENUM",
		15: "TYPE_SFIXED32",
		16: "TYPE_SFIXED64",
		17: "TYPE_SINT32",
		18: "TYPE_SINT64",
	}
	FieldDescriptorProto_Type_value = map[string]int32{
		"TYPE_DOUBLE":   1,
		"TYPE_FLOAT":    2,
		"TYPE_INT64":    3,
		"TYPE_UINT64":   4,
		"TYPE_INT32":    5,
		"TYPE_FIXED64":  6,
		"TYPE_FIXED32":  7,
		"TYPE_BOOL":     8,
		"TYPE_STRING":   9,
		"TYPE_GROUP":    10,
		"TYPE_MESSAGE":  11,
		"TYPE_BYTES":    12,
		"TYPE_UINT32":   13,
		"TYPE_ENUM":     14,
		"TYPE_SFIXED32": 15,
		"TYPE_SFIXED64": 16,
		"TYPE_SINT32":   17,
		"TYPE_SINT64":   18,
	}
)

Enum value maps for FieldDescriptorProto_Type.

View Source
var (
	FieldDescriptorProto_Label_name = map[int32]string{
		1: "LABEL_OPTIONAL",
		2: "LABEL_REQUIRED",
		3: "LABEL_REPEATED",
	}
	FieldDescriptorProto_Label_value = map[string]int32{
		"LABEL_OPTIONAL": 1,
		"LABEL_REQUIRED": 2,
		"LABEL_REPEATED": 3,
	}
)

Enum value maps for FieldDescriptorProto_Label.

View Source
var File_protos_perfetto_common_descriptor_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DescriptorProto

type DescriptorProto struct {
	Name          *string                          `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Field         []*FieldDescriptorProto          `protobuf:"bytes,2,rep,name=field" json:"field,omitempty"`
	Extension     []*FieldDescriptorProto          `protobuf:"bytes,6,rep,name=extension" json:"extension,omitempty"`
	NestedType    []*DescriptorProto               `protobuf:"bytes,3,rep,name=nested_type,json=nestedType" json:"nested_type,omitempty"`
	EnumType      []*EnumDescriptorProto           `protobuf:"bytes,4,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
	OneofDecl     []*OneofDescriptorProto          `protobuf:"bytes,8,rep,name=oneof_decl,json=oneofDecl" json:"oneof_decl,omitempty"`
	ReservedRange []*DescriptorProto_ReservedRange `protobuf:"bytes,9,rep,name=reserved_range,json=reservedRange" json:"reserved_range,omitempty"`
	// Reserved field names, which may not be used by fields in the same message.
	// A given name may only be reserved once.
	ReservedName []string `protobuf:"bytes,10,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
	// contains filtered or unexported fields
}

Describes a message type.

func (*DescriptorProto) Descriptor deprecated

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

Deprecated: Use DescriptorProto.ProtoReflect.Descriptor instead.

func (*DescriptorProto) GetEnumType

func (x *DescriptorProto) GetEnumType() []*EnumDescriptorProto

func (*DescriptorProto) GetExtension

func (x *DescriptorProto) GetExtension() []*FieldDescriptorProto

func (*DescriptorProto) GetField

func (x *DescriptorProto) GetField() []*FieldDescriptorProto

func (*DescriptorProto) GetName

func (x *DescriptorProto) GetName() string

func (*DescriptorProto) GetNestedType

func (x *DescriptorProto) GetNestedType() []*DescriptorProto

func (*DescriptorProto) GetOneofDecl

func (x *DescriptorProto) GetOneofDecl() []*OneofDescriptorProto

func (*DescriptorProto) GetReservedName

func (x *DescriptorProto) GetReservedName() []string

func (*DescriptorProto) GetReservedRange

func (x *DescriptorProto) GetReservedRange() []*DescriptorProto_ReservedRange

func (*DescriptorProto) ProtoMessage

func (*DescriptorProto) ProtoMessage()

func (*DescriptorProto) ProtoReflect

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

func (*DescriptorProto) Reset

func (x *DescriptorProto) Reset()

func (*DescriptorProto) String

func (x *DescriptorProto) String() string

type DescriptorProto_ReservedRange

type DescriptorProto_ReservedRange struct {

	// Inclusive.
	Start *int32 `protobuf:"varint,1,opt,name=start" json:"start,omitempty"`
	// Exclusive.
	End *int32 `protobuf:"varint,2,opt,name=end" json:"end,omitempty"`
	// contains filtered or unexported fields
}

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

func (*DescriptorProto_ReservedRange) Descriptor deprecated

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

Deprecated: Use DescriptorProto_ReservedRange.ProtoReflect.Descriptor instead.

func (*DescriptorProto_ReservedRange) GetEnd

func (*DescriptorProto_ReservedRange) GetStart

func (x *DescriptorProto_ReservedRange) GetStart() int32

func (*DescriptorProto_ReservedRange) ProtoMessage

func (*DescriptorProto_ReservedRange) ProtoMessage()

func (*DescriptorProto_ReservedRange) ProtoReflect

func (*DescriptorProto_ReservedRange) Reset

func (x *DescriptorProto_ReservedRange) Reset()

func (*DescriptorProto_ReservedRange) String

type EnumDescriptorProto

type EnumDescriptorProto struct {
	Name  *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Value []*EnumValueDescriptorProto `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
	// Reserved enum value names, which may not be reused. A given name may only
	// be reserved once.
	ReservedName []string `protobuf:"bytes,5,rep,name=reserved_name,json=reservedName" json:"reserved_name,omitempty"`
	// contains filtered or unexported fields
}

Describes an enum type.

func (*EnumDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumDescriptorProto) GetName

func (x *EnumDescriptorProto) GetName() string

func (*EnumDescriptorProto) GetReservedName

func (x *EnumDescriptorProto) GetReservedName() []string

func (*EnumDescriptorProto) GetValue

func (*EnumDescriptorProto) ProtoMessage

func (*EnumDescriptorProto) ProtoMessage()

func (*EnumDescriptorProto) ProtoReflect

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

func (*EnumDescriptorProto) Reset

func (x *EnumDescriptorProto) Reset()

func (*EnumDescriptorProto) String

func (x *EnumDescriptorProto) String() string

type EnumValueDescriptorProto

type EnumValueDescriptorProto struct {
	Name   *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Number *int32  `protobuf:"varint,2,opt,name=number" json:"number,omitempty"`
	// contains filtered or unexported fields
}

Describes a value within an enum.

func (*EnumValueDescriptorProto) Descriptor deprecated

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

Deprecated: Use EnumValueDescriptorProto.ProtoReflect.Descriptor instead.

func (*EnumValueDescriptorProto) GetName

func (x *EnumValueDescriptorProto) GetName() string

func (*EnumValueDescriptorProto) GetNumber

func (x *EnumValueDescriptorProto) GetNumber() int32

func (*EnumValueDescriptorProto) ProtoMessage

func (*EnumValueDescriptorProto) ProtoMessage()

func (*EnumValueDescriptorProto) ProtoReflect

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

func (*EnumValueDescriptorProto) Reset

func (x *EnumValueDescriptorProto) Reset()

func (*EnumValueDescriptorProto) String

func (x *EnumValueDescriptorProto) String() string

type FieldDescriptorProto

type FieldDescriptorProto struct {
	Name   *string                     `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Number *int32                      `protobuf:"varint,3,opt,name=number" json:"number,omitempty"`
	Label  *FieldDescriptorProto_Label `protobuf:"varint,4,opt,name=label,enum=perfetto.protos.FieldDescriptorProto_Label" json:"label,omitempty"`
	// If type_name is set, this need not be set.  If both this and type_name
	// are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
	Type *FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=type,enum=perfetto.protos.FieldDescriptorProto_Type" json:"type,omitempty"`
	// For message and enum types, this is the name of the type.  If the name
	// starts with a '.', it is fully-qualified.  Otherwise, C++-like scoping
	// rules are used to find the type (i.e. first the nested types within this
	// message are searched, then within the parent, on up to the root
	// namespace).
	TypeName *string `protobuf:"bytes,6,opt,name=type_name,json=typeName" json:"type_name,omitempty"`
	// For extensions, this is the name of the type being extended.  It is
	// resolved in the same manner as type_name.
	Extendee *string `protobuf:"bytes,2,opt,name=extendee" json:"extendee,omitempty"`
	// For numeric types, contains the original text representation of the value.
	// For booleans, "true" or "false".
	// For strings, contains the default text contents (not escaped in any way).
	// For bytes, contains the C escaped value.  All bytes >= 128 are escaped.
	// TODO(kenton):  Base-64 encode?
	DefaultValue *string `protobuf:"bytes,7,opt,name=default_value,json=defaultValue" json:"default_value,omitempty"`
	// If set, gives the index of a oneof in the containing type's oneof_decl
	// list.  This field is a member of that oneof.
	OneofIndex *int32 `protobuf:"varint,9,opt,name=oneof_index,json=oneofIndex" json:"oneof_index,omitempty"`
	// contains filtered or unexported fields
}

Describes a field within a message.

func (*FieldDescriptorProto) Descriptor deprecated

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

Deprecated: Use FieldDescriptorProto.ProtoReflect.Descriptor instead.

func (*FieldDescriptorProto) GetDefaultValue

func (x *FieldDescriptorProto) GetDefaultValue() string

func (*FieldDescriptorProto) GetExtendee

func (x *FieldDescriptorProto) GetExtendee() string

func (*FieldDescriptorProto) GetLabel

func (*FieldDescriptorProto) GetName

func (x *FieldDescriptorProto) GetName() string

func (*FieldDescriptorProto) GetNumber

func (x *FieldDescriptorProto) GetNumber() int32

func (*FieldDescriptorProto) GetOneofIndex

func (x *FieldDescriptorProto) GetOneofIndex() int32

func (*FieldDescriptorProto) GetType

func (*FieldDescriptorProto) GetTypeName

func (x *FieldDescriptorProto) GetTypeName() string

func (*FieldDescriptorProto) ProtoMessage

func (*FieldDescriptorProto) ProtoMessage()

func (*FieldDescriptorProto) ProtoReflect

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

func (*FieldDescriptorProto) Reset

func (x *FieldDescriptorProto) Reset()

func (*FieldDescriptorProto) String

func (x *FieldDescriptorProto) String() string

type FieldDescriptorProto_Label

type FieldDescriptorProto_Label int32
const (
	// 0 is reserved for errors
	FieldDescriptorProto_LABEL_OPTIONAL FieldDescriptorProto_Label = 1
	FieldDescriptorProto_LABEL_REQUIRED FieldDescriptorProto_Label = 2
	FieldDescriptorProto_LABEL_REPEATED FieldDescriptorProto_Label = 3
)

func (FieldDescriptorProto_Label) Descriptor

func (FieldDescriptorProto_Label) Enum

func (FieldDescriptorProto_Label) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptorProto_Label.Descriptor instead.

func (FieldDescriptorProto_Label) Number

func (FieldDescriptorProto_Label) String

func (FieldDescriptorProto_Label) Type

func (*FieldDescriptorProto_Label) UnmarshalJSON deprecated

func (x *FieldDescriptorProto_Label) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FieldDescriptorProto_Type

type FieldDescriptorProto_Type int32
const (
	// 0 is reserved for errors.
	// Order is weird for historical reasons.
	FieldDescriptorProto_TYPE_DOUBLE FieldDescriptorProto_Type = 1
	FieldDescriptorProto_TYPE_FLOAT  FieldDescriptorProto_Type = 2
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT64 if
	// negative values are likely.
	FieldDescriptorProto_TYPE_INT64  FieldDescriptorProto_Type = 3
	FieldDescriptorProto_TYPE_UINT64 FieldDescriptorProto_Type = 4
	// Not ZigZag encoded.  Negative numbers take 10 bytes.  Use TYPE_SINT32 if
	// negative values are likely.
	FieldDescriptorProto_TYPE_INT32   FieldDescriptorProto_Type = 5
	FieldDescriptorProto_TYPE_FIXED64 FieldDescriptorProto_Type = 6
	FieldDescriptorProto_TYPE_FIXED32 FieldDescriptorProto_Type = 7
	FieldDescriptorProto_TYPE_BOOL    FieldDescriptorProto_Type = 8
	FieldDescriptorProto_TYPE_STRING  FieldDescriptorProto_Type = 9
	// Tag-delimited aggregate.
	// Group type is deprecated and not supported in proto3. However, Proto3
	// implementations should still be able to parse the group wire format and
	// treat group fields as unknown fields.
	FieldDescriptorProto_TYPE_GROUP FieldDescriptorProto_Type = 10
	// Length-delimited aggregate.
	FieldDescriptorProto_TYPE_MESSAGE FieldDescriptorProto_Type = 11
	// New in version 2.
	FieldDescriptorProto_TYPE_BYTES    FieldDescriptorProto_Type = 12
	FieldDescriptorProto_TYPE_UINT32   FieldDescriptorProto_Type = 13
	FieldDescriptorProto_TYPE_ENUM     FieldDescriptorProto_Type = 14
	FieldDescriptorProto_TYPE_SFIXED32 FieldDescriptorProto_Type = 15
	FieldDescriptorProto_TYPE_SFIXED64 FieldDescriptorProto_Type = 16
	// Uses ZigZag encoding.
	FieldDescriptorProto_TYPE_SINT32 FieldDescriptorProto_Type = 17
	// Uses ZigZag encoding.
	FieldDescriptorProto_TYPE_SINT64 FieldDescriptorProto_Type = 18
)

func (FieldDescriptorProto_Type) Descriptor

func (FieldDescriptorProto_Type) Enum

func (FieldDescriptorProto_Type) EnumDescriptor deprecated

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

Deprecated: Use FieldDescriptorProto_Type.Descriptor instead.

func (FieldDescriptorProto_Type) Number

func (FieldDescriptorProto_Type) String

func (x FieldDescriptorProto_Type) String() string

func (FieldDescriptorProto_Type) Type

func (*FieldDescriptorProto_Type) UnmarshalJSON deprecated

func (x *FieldDescriptorProto_Type) UnmarshalJSON(b []byte) error

Deprecated: Do not use.

type FileDescriptorProto

type FileDescriptorProto struct {

	// file name, relative to root of source tree
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// e.g. "foo", "foo.bar", etc.
	Package *string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
	// Names of files imported by this file.
	Dependency []string `protobuf:"bytes,3,rep,name=dependency" json:"dependency,omitempty"`
	// Indexes of the public imported files in the dependency list above.
	PublicDependency []int32 `protobuf:"varint,10,rep,name=public_dependency,json=publicDependency" json:"public_dependency,omitempty"`
	// Indexes of the weak imported files in the dependency list.
	// For Google-internal migration only. Do not use.
	WeakDependency []int32 `protobuf:"varint,11,rep,name=weak_dependency,json=weakDependency" json:"weak_dependency,omitempty"`
	// All top-level definitions in this file.
	MessageType []*DescriptorProto      `protobuf:"bytes,4,rep,name=message_type,json=messageType" json:"message_type,omitempty"`
	EnumType    []*EnumDescriptorProto  `protobuf:"bytes,5,rep,name=enum_type,json=enumType" json:"enum_type,omitempty"`
	Extension   []*FieldDescriptorProto `protobuf:"bytes,7,rep,name=extension" json:"extension,omitempty"`
	// contains filtered or unexported fields
}

Describes a complete .proto file.

func (*FileDescriptorProto) Descriptor deprecated

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

Deprecated: Use FileDescriptorProto.ProtoReflect.Descriptor instead.

func (*FileDescriptorProto) GetDependency

func (x *FileDescriptorProto) GetDependency() []string

func (*FileDescriptorProto) GetEnumType

func (x *FileDescriptorProto) GetEnumType() []*EnumDescriptorProto

func (*FileDescriptorProto) GetExtension

func (x *FileDescriptorProto) GetExtension() []*FieldDescriptorProto

func (*FileDescriptorProto) GetMessageType

func (x *FileDescriptorProto) GetMessageType() []*DescriptorProto

func (*FileDescriptorProto) GetName

func (x *FileDescriptorProto) GetName() string

func (*FileDescriptorProto) GetPackage

func (x *FileDescriptorProto) GetPackage() string

func (*FileDescriptorProto) GetPublicDependency

func (x *FileDescriptorProto) GetPublicDependency() []int32

func (*FileDescriptorProto) GetWeakDependency

func (x *FileDescriptorProto) GetWeakDependency() []int32

func (*FileDescriptorProto) ProtoMessage

func (*FileDescriptorProto) ProtoMessage()

func (*FileDescriptorProto) ProtoReflect

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

func (*FileDescriptorProto) Reset

func (x *FileDescriptorProto) Reset()

func (*FileDescriptorProto) String

func (x *FileDescriptorProto) String() string

type FileDescriptorSet

type FileDescriptorSet struct {
	File []*FileDescriptorProto `protobuf:"bytes,1,rep,name=file" json:"file,omitempty"`
	// contains filtered or unexported fields
}

The protocol compiler can output a FileDescriptorSet containing the .proto files it parses.

func (*FileDescriptorSet) Descriptor deprecated

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

Deprecated: Use FileDescriptorSet.ProtoReflect.Descriptor instead.

func (*FileDescriptorSet) GetFile

func (x *FileDescriptorSet) GetFile() []*FileDescriptorProto

func (*FileDescriptorSet) ProtoMessage

func (*FileDescriptorSet) ProtoMessage()

func (*FileDescriptorSet) ProtoReflect

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

func (*FileDescriptorSet) Reset

func (x *FileDescriptorSet) Reset()

func (*FileDescriptorSet) String

func (x *FileDescriptorSet) String() string

type OneofDescriptorProto

type OneofDescriptorProto struct {
	Name    *string       `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	Options *OneofOptions `protobuf:"bytes,2,opt,name=options" json:"options,omitempty"`
	// contains filtered or unexported fields
}

Describes a oneof.

func (*OneofDescriptorProto) Descriptor deprecated

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

Deprecated: Use OneofDescriptorProto.ProtoReflect.Descriptor instead.

func (*OneofDescriptorProto) GetName

func (x *OneofDescriptorProto) GetName() string

func (*OneofDescriptorProto) GetOptions

func (x *OneofDescriptorProto) GetOptions() *OneofOptions

func (*OneofDescriptorProto) ProtoMessage

func (*OneofDescriptorProto) ProtoMessage()

func (*OneofDescriptorProto) ProtoReflect

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

func (*OneofDescriptorProto) Reset

func (x *OneofDescriptorProto) Reset()

func (*OneofDescriptorProto) String

func (x *OneofDescriptorProto) String() string

type OneofOptions

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

func (*OneofOptions) Descriptor deprecated

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

Deprecated: Use OneofOptions.ProtoReflect.Descriptor instead.

func (*OneofOptions) ExtensionRangeArray deprecated

func (*OneofOptions) ExtensionRangeArray() []protoiface.ExtensionRangeV1

Deprecated: Use OneofOptions.ProtoReflect.Descriptor.ExtensionRanges instead.

func (*OneofOptions) ProtoMessage

func (*OneofOptions) ProtoMessage()

func (*OneofOptions) ProtoReflect

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

func (*OneofOptions) Reset

func (x *OneofOptions) Reset()

func (*OneofOptions) String

func (x *OneofOptions) String() string

Jump to

Keyboard shortcuts

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