Documentation
¶
Index ¶
- Variables
- type Constructor
- type Constructor_Type
- type Constructor_builder
- type Conversion
- func (x *Conversion) ClearFuncArg()
- func (x *Conversion) GetContext() Conversion_Context
- func (x *Conversion) GetDestTypeName() string
- func (x *Conversion) GetFuncArg() *FuncArg
- func (x *Conversion) HasFuncArg() bool
- func (*Conversion) ProtoMessage()
- func (x *Conversion) ProtoReflect() protoreflect.Message
- func (x *Conversion) Reset()
- func (x *Conversion) SetContext(v Conversion_Context)
- func (x *Conversion) SetDestTypeName(v string)
- func (x *Conversion) SetFuncArg(v *FuncArg)
- func (x *Conversion) String() string
- type Conversion_Context
- type Conversion_builder
- type Embedding
- type Embedding_builder
- type Entry
- func (x *Entry) ClearExpr()
- func (x *Entry) ClearLocation()
- func (x *Entry) ClearSource()
- func (x *Entry) ClearStatus()
- func (x *Entry) ClearType()
- func (x *Entry) ClearUse()
- func (x *Entry) GetExpr() *Expression
- func (x *Entry) GetLevel() RewriteLevel
- func (x *Entry) GetLocation() *Location
- func (x *Entry) GetSource() *Source
- func (x *Entry) GetStatus() *Status
- func (x *Entry) GetType() *Type
- func (x *Entry) GetUse() *Use
- func (x *Entry) HasExpr() bool
- func (x *Entry) HasLocation() bool
- func (x *Entry) HasSource() bool
- func (x *Entry) HasStatus() bool
- func (x *Entry) HasType() bool
- func (x *Entry) HasUse() bool
- func (*Entry) ProtoMessage()
- func (x *Entry) ProtoReflect() protoreflect.Message
- func (x *Entry) Reset()
- func (x *Entry) SetExpr(v *Expression)
- func (x *Entry) SetLevel(v RewriteLevel)
- func (x *Entry) SetLocation(v *Location)
- func (x *Entry) SetSource(v *Source)
- func (x *Entry) SetStatus(v *Status)
- func (x *Entry) SetType(v *Type)
- func (x *Entry) SetUse(v *Use)
- func (x *Entry) String() string
- type Entry_builder
- type Expression
- func (x *Expression) GetParentType() string
- func (x *Expression) GetType() string
- func (*Expression) ProtoMessage()
- func (x *Expression) ProtoReflect() protoreflect.Message
- func (x *Expression) Reset()
- func (x *Expression) SetParentType(v string)
- func (x *Expression) SetType(v string)
- func (x *Expression) String() string
- type Expression_builder
- type FieldAccess
- func (x *FieldAccess) ClearFieldType()
- func (x *FieldAccess) GetFieldName() string
- func (x *FieldAccess) GetFieldType() *Type
- func (x *FieldAccess) HasFieldType() bool
- func (*FieldAccess) ProtoMessage()
- func (x *FieldAccess) ProtoReflect() protoreflect.Message
- func (x *FieldAccess) Reset()
- func (x *FieldAccess) SetFieldName(v string)
- func (x *FieldAccess) SetFieldType(v *Type)
- func (x *FieldAccess) String() string
- type FieldAccess_builder
- type Frame
- func (x *Frame) GetFile() string
- func (x *Frame) GetFunction() string
- func (x *Frame) GetIndex() int64
- func (x *Frame) GetIsExported() bool
- func (x *Frame) GetLine() string
- func (x *Frame) GetPackage() string
- func (x *Frame) GetPkgIndex() int64
- func (*Frame) ProtoMessage()
- func (x *Frame) ProtoReflect() protoreflect.Message
- func (x *Frame) Reset()
- func (x *Frame) SetFile(v string)
- func (x *Frame) SetFunction(v string)
- func (x *Frame) SetIndex(v int64)
- func (x *Frame) SetIsExported(v bool)
- func (x *Frame) SetLine(v string)
- func (x *Frame) SetPackage(v string)
- func (x *Frame) SetPkgIndex(v int64)
- func (x *Frame) String() string
- type Frame_builder
- type FuncArg
- func (x *FuncArg) GetFunctionName() string
- func (x *FuncArg) GetPackagePath() string
- func (x *FuncArg) GetSignature() string
- func (*FuncArg) ProtoMessage()
- func (x *FuncArg) ProtoReflect() protoreflect.Message
- func (x *FuncArg) Reset()
- func (x *FuncArg) SetFunctionName(v string)
- func (x *FuncArg) SetPackagePath(v string)
- func (x *FuncArg) SetSignature(v string)
- func (x *FuncArg) String() string
- type FuncArg_builder
- type Location
- func (x *Location) ClearEnd()
- func (x *Location) ClearStart()
- func (x *Location) GetEnd() *Position
- func (x *Location) GetFile() string
- func (x *Location) GetIsGeneratedFile() bool
- func (x *Location) GetPackage() string
- func (x *Location) GetStart() *Position
- func (x *Location) HasEnd() bool
- func (x *Location) HasStart() bool
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) SetEnd(v *Position)
- func (x *Location) SetFile(v string)
- func (x *Location) SetIsGeneratedFile(v bool)
- func (x *Location) SetPackage(v string)
- func (x *Location) SetStart(v *Position)
- func (x *Location) String() string
- type Location_builder
- type MethodCall
- func (x *MethodCall) GetMethod() string
- func (x *MethodCall) GetType() MethodCall_Type
- func (*MethodCall) ProtoMessage()
- func (x *MethodCall) ProtoReflect() protoreflect.Message
- func (x *MethodCall) Reset()
- func (x *MethodCall) SetMethod(v string)
- func (x *MethodCall) SetType(v MethodCall_Type)
- func (x *MethodCall) String() string
- type MethodCall_Type
- type MethodCall_builder
- type Position
- type Position_builder
- type ReflectCall
- func (x *ReflectCall) ClearCaller()
- func (x *ReflectCall) ClearFn()
- func (x *ReflectCall) GetCaller() *Frame
- func (x *ReflectCall) GetFn() *Frame
- func (x *ReflectCall) GetFrames() []*Frame
- func (x *ReflectCall) HasCaller() bool
- func (x *ReflectCall) HasFn() bool
- func (*ReflectCall) ProtoMessage()
- func (x *ReflectCall) ProtoReflect() protoreflect.Message
- func (x *ReflectCall) Reset()
- func (x *ReflectCall) SetCaller(v *Frame)
- func (x *ReflectCall) SetFn(v *Frame)
- func (x *ReflectCall) SetFrames(v []*Frame)
- func (x *ReflectCall) String() string
- type ReflectCall_builder
- type RewriteLevel
- type ShallowCopy
- type ShallowCopy_Type
- type ShallowCopy_builder
- type Source
- type Source_builder
- type Status
- type Status_Type
- type Status_builder
- type Type
- type TypeAssertion
- func (x *TypeAssertion) ClearSrcType()
- func (x *TypeAssertion) GetSrcType() *Type
- func (x *TypeAssertion) HasSrcType() bool
- func (*TypeAssertion) ProtoMessage()
- func (x *TypeAssertion) ProtoReflect() protoreflect.Message
- func (x *TypeAssertion) Reset()
- func (x *TypeAssertion) SetSrcType(v *Type)
- func (x *TypeAssertion) String() string
- type TypeAssertion_builder
- type TypeDefinition
- func (x *TypeDefinition) ClearNewType()
- func (x *TypeDefinition) GetNewType() *Type
- func (x *TypeDefinition) HasNewType() bool
- func (*TypeDefinition) ProtoMessage()
- func (x *TypeDefinition) ProtoReflect() protoreflect.Message
- func (x *TypeDefinition) Reset()
- func (x *TypeDefinition) SetNewType(v *Type)
- func (x *TypeDefinition) String() string
- type TypeDefinition_builder
- type Type_builder
- type Use
- func (x *Use) ClearConstructor()
- func (x *Use) ClearConversion()
- func (x *Use) ClearDirectFieldAccess()
- func (x *Use) ClearEmbedding()
- func (x *Use) ClearFuncArg()
- func (x *Use) ClearInternalFieldAccess()
- func (x *Use) ClearMethodCall()
- func (x *Use) ClearReflectCall()
- func (x *Use) ClearShallowCopy()
- func (x *Use) ClearTypeAssertion()
- func (x *Use) ClearTypeDefinition()
- func (x *Use) GetConstructor() *Constructor
- func (x *Use) GetConversion() *Conversion
- func (x *Use) GetDirectFieldAccess() *FieldAccess
- func (x *Use) GetEmbedding() *Embedding
- func (x *Use) GetFuncArg() *FuncArg
- func (x *Use) GetInternalFieldAccess() *FieldAccess
- func (x *Use) GetMethodCall() *MethodCall
- func (x *Use) GetReflectCall() *ReflectCall
- func (x *Use) GetShallowCopy() *ShallowCopy
- func (x *Use) GetType() Use_Type
- func (x *Use) GetTypeAssertion() *TypeAssertion
- func (x *Use) GetTypeDefinition() *TypeDefinition
- func (x *Use) HasConstructor() bool
- func (x *Use) HasConversion() bool
- func (x *Use) HasDirectFieldAccess() bool
- func (x *Use) HasEmbedding() bool
- func (x *Use) HasFuncArg() bool
- func (x *Use) HasInternalFieldAccess() bool
- func (x *Use) HasMethodCall() bool
- func (x *Use) HasReflectCall() bool
- func (x *Use) HasShallowCopy() bool
- func (x *Use) HasTypeAssertion() bool
- func (x *Use) HasTypeDefinition() bool
- func (*Use) ProtoMessage()
- func (x *Use) ProtoReflect() protoreflect.Message
- func (x *Use) Reset()
- func (x *Use) SetConstructor(v *Constructor)
- func (x *Use) SetConversion(v *Conversion)
- func (x *Use) SetDirectFieldAccess(v *FieldAccess)
- func (x *Use) SetEmbedding(v *Embedding)
- func (x *Use) SetFuncArg(v *FuncArg)
- func (x *Use) SetInternalFieldAccess(v *FieldAccess)
- func (x *Use) SetMethodCall(v *MethodCall)
- func (x *Use) SetReflectCall(v *ReflectCall)
- func (x *Use) SetShallowCopy(v *ShallowCopy)
- func (x *Use) SetType(v Use_Type)
- func (x *Use) SetTypeAssertion(v *TypeAssertion)
- func (x *Use) SetTypeDefinition(v *TypeDefinition)
- func (x *Use) String() string
- type Use_Type
- type Use_builder
Constants ¶
This section is empty.
Variables ¶
var ( RewriteLevel_name = map[int32]string{ 0: "REWRITE_LEVEL_UNSPECIFIED", 1: "NONE", 2: "GREEN", 3: "YELLOW", 4: "RED", } RewriteLevel_value = map[string]int32{ "REWRITE_LEVEL_UNSPECIFIED": 0, "NONE": 1, "GREEN": 2, "YELLOW": 3, "RED": 4, } )
Enum value maps for RewriteLevel.
var ( Status_Type_name = map[int32]string{ 0: "UNSPECIFIED_TYPE", 1: "OK", 2: "SKIP", 3: "FAIL", } Status_Type_value = map[string]int32{ "UNSPECIFIED_TYPE": 0, "OK": 1, "SKIP": 2, "FAIL": 3, } )
Enum value maps for Status_Type.
var ( Use_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "DIRECT_FIELD_ACCESS", 2: "METHOD_CALL", 3: "CONSTRUCTOR", 4: "CONVERSION", 5: "TYPE_ASSERTION", 6: "TYPE_DEFINITION", 7: "EMBEDDING", 8: "INTERNAL_FIELD_ACCESS", 9: "REFLECT_CALL", 10: "SHALLOW_COPY", 11: "BUILD_DEPENDENCY", } Use_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "DIRECT_FIELD_ACCESS": 1, "METHOD_CALL": 2, "CONSTRUCTOR": 3, "CONVERSION": 4, "TYPE_ASSERTION": 5, "TYPE_DEFINITION": 6, "EMBEDDING": 7, "INTERNAL_FIELD_ACCESS": 8, "REFLECT_CALL": 9, "SHALLOW_COPY": 10, "BUILD_DEPENDENCY": 11, } )
Enum value maps for Use_Type.
var ( MethodCall_Type_name = map[int32]string{ 0: "INVALID", 1: "GET_ONEOF", 2: "GET_BUILD", } MethodCall_Type_value = map[string]int32{ "INVALID": 0, "GET_ONEOF": 1, "GET_BUILD": 2, } )
Enum value maps for MethodCall_Type.
var ( Constructor_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "EMPTY_LITERAL", 2: "NONEMPTY_LITERAL", 3: "BUILDER", } Constructor_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "EMPTY_LITERAL": 1, "NONEMPTY_LITERAL": 2, "BUILDER": 3, } )
Enum value maps for Constructor_Type.
var ( Conversion_Context_name = map[int32]string{ 0: "CONTEXT_UNSPECIFIED", 1: "CALL_ARGUMENT", 2: "RETURN_VALUE", 3: "ASSIGNMENT", 4: "EXPLICIT", 5: "COMPOSITE_LITERAL_ELEMENT", 6: "CHAN_SEND", 7: "FUNC_RET", } Conversion_Context_value = map[string]int32{ "CONTEXT_UNSPECIFIED": 0, "CALL_ARGUMENT": 1, "RETURN_VALUE": 2, "ASSIGNMENT": 3, "EXPLICIT": 4, "COMPOSITE_LITERAL_ELEMENT": 5, "CHAN_SEND": 6, "FUNC_RET": 7, } )
Enum value maps for Conversion_Context.
var ( ShallowCopy_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "ASSIGN", 2: "CALL_ARGUMENT", 3: "FUNC_RET", 4: "COMPOSITE_LITERAL_ELEMENT", 5: "CHAN_SEND", } ShallowCopy_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "ASSIGN": 1, "CALL_ARGUMENT": 2, "FUNC_RET": 3, "COMPOSITE_LITERAL_ELEMENT": 4, "CHAN_SEND": 5, } )
Enum value maps for ShallowCopy_Type.
var File_stats_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Constructor ¶
type Constructor struct { Type Constructor_Type `protobuf:"varint,1,opt,name=type,enum=net.proto2.go.open2opaque.stats.Constructor_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*Constructor) GetType ¶
func (x *Constructor) GetType() Constructor_Type
func (*Constructor) ProtoMessage ¶
func (*Constructor) ProtoMessage()
func (*Constructor) ProtoReflect ¶
func (x *Constructor) ProtoReflect() protoreflect.Message
func (*Constructor) Reset ¶
func (x *Constructor) Reset()
func (*Constructor) SetType ¶
func (x *Constructor) SetType(v Constructor_Type)
func (*Constructor) String ¶
func (x *Constructor) String() string
type Constructor_Type ¶
type Constructor_Type int32
const ( Constructor_TYPE_UNSPECIFIED Constructor_Type = 0 Constructor_EMPTY_LITERAL Constructor_Type = 1 Constructor_NONEMPTY_LITERAL Constructor_Type = 2 Constructor_BUILDER Constructor_Type = 3 )
func (Constructor_Type) Descriptor ¶
func (Constructor_Type) Descriptor() protoreflect.EnumDescriptor
func (Constructor_Type) Enum ¶
func (x Constructor_Type) Enum() *Constructor_Type
func (Constructor_Type) Number ¶
func (x Constructor_Type) Number() protoreflect.EnumNumber
func (Constructor_Type) String ¶
func (x Constructor_Type) String() string
func (Constructor_Type) Type ¶
func (Constructor_Type) Type() protoreflect.EnumType
type Constructor_builder ¶
type Constructor_builder struct { Type Constructor_Type // contains filtered or unexported fields }
func (Constructor_builder) Build ¶
func (b0 Constructor_builder) Build() *Constructor
type Conversion ¶
type Conversion struct { // The type of the conversion. For example: // // interface{} // proto.Message // unsafe.Pointer DestTypeName string `protobuf:"bytes,1,opt,name=dest_type_name,json=destTypeName" json:"dest_type_name,omitempty"` // Describes the called function. It is set if context==CALL_ARGUMENT. FuncArg *FuncArg `protobuf:"bytes,3,opt,name=func_arg,json=funcArg" json:"func_arg,omitempty"` Context Conversion_Context `protobuf:"varint,2,opt,name=context,enum=net.proto2.go.open2opaque.stats.Conversion_Context" json:"context,omitempty"` // contains filtered or unexported fields }
func (*Conversion) ClearFuncArg ¶
func (x *Conversion) ClearFuncArg()
func (*Conversion) GetContext ¶
func (x *Conversion) GetContext() Conversion_Context
func (*Conversion) GetDestTypeName ¶
func (x *Conversion) GetDestTypeName() string
func (*Conversion) GetFuncArg ¶
func (x *Conversion) GetFuncArg() *FuncArg
func (*Conversion) HasFuncArg ¶
func (x *Conversion) HasFuncArg() bool
func (*Conversion) ProtoMessage ¶
func (*Conversion) ProtoMessage()
func (*Conversion) ProtoReflect ¶
func (x *Conversion) ProtoReflect() protoreflect.Message
func (*Conversion) Reset ¶
func (x *Conversion) Reset()
func (*Conversion) SetContext ¶
func (x *Conversion) SetContext(v Conversion_Context)
func (*Conversion) SetDestTypeName ¶
func (x *Conversion) SetDestTypeName(v string)
func (*Conversion) SetFuncArg ¶
func (x *Conversion) SetFuncArg(v *FuncArg)
func (*Conversion) String ¶
func (x *Conversion) String() string
type Conversion_Context ¶
type Conversion_Context int32
const ( Conversion_CONTEXT_UNSPECIFIED Conversion_Context = 0 Conversion_CALL_ARGUMENT Conversion_Context = 1 Conversion_RETURN_VALUE Conversion_Context = 2 Conversion_ASSIGNMENT Conversion_Context = 3 Conversion_EXPLICIT Conversion_Context = 4 Conversion_COMPOSITE_LITERAL_ELEMENT Conversion_Context = 5 Conversion_CHAN_SEND Conversion_Context = 6 Conversion_FUNC_RET Conversion_Context = 7 )
func (Conversion_Context) Descriptor ¶
func (Conversion_Context) Descriptor() protoreflect.EnumDescriptor
func (Conversion_Context) Enum ¶
func (x Conversion_Context) Enum() *Conversion_Context
func (Conversion_Context) Number ¶
func (x Conversion_Context) Number() protoreflect.EnumNumber
func (Conversion_Context) String ¶
func (x Conversion_Context) String() string
func (Conversion_Context) Type ¶
func (Conversion_Context) Type() protoreflect.EnumType
type Conversion_builder ¶
type Conversion_builder struct { // The type of the conversion. For example: // // interface{} // proto.Message // unsafe.Pointer DestTypeName string // Describes the called function. It is set if context==CALL_ARGUMENT. FuncArg *FuncArg Context Conversion_Context // contains filtered or unexported fields }
func (Conversion_builder) Build ¶
func (b0 Conversion_builder) Build() *Conversion
type Embedding ¶
type Embedding struct { FieldIndex int64 `protobuf:"varint,1,opt,name=field_index,json=fieldIndex" json:"field_index,omitempty"` // contains filtered or unexported fields }
func (*Embedding) GetFieldIndex ¶
func (*Embedding) ProtoMessage ¶
func (*Embedding) ProtoMessage()
func (*Embedding) ProtoReflect ¶
func (x *Embedding) ProtoReflect() protoreflect.Message
func (*Embedding) SetFieldIndex ¶
type Embedding_builder ¶
type Embedding_builder struct { FieldIndex int64 // contains filtered or unexported fields }
func (Embedding_builder) Build ¶
func (b0 Embedding_builder) Build() *Embedding
type Entry ¶
type Entry struct { // If status is not set or empty then all other fields should be set // and describe a single usage of a protocol buffer type in Go. // // If status is not empty then: // - status.error says what went wrong, and // - location.package says which package couldn't be processed Status *Status `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` // Location in Go code. Always set. Location.package is always // non-empty. Location *Location `protobuf:"bytes,2,opt,name=location" json:"location,omitempty"` // Rewrite level after which this entry was captured. Level RewriteLevel `protobuf:"varint,3,opt,name=level,enum=net.proto2.go.open2opaque.stats.RewriteLevel" json:"level,omitempty"` // Go type representing a protocol buffer type. Type *Type `protobuf:"bytes,4,opt,name=type" json:"type,omitempty"` // Go expression which leads to this entry. Expr *Expression `protobuf:"bytes,5,opt,name=expr" json:"expr,omitempty"` // Describes how a protocol buffer is used (e.g. direct field access). Use *Use `protobuf:"bytes,6,opt,name=use" json:"use,omitempty"` // Source of the information. For debugging purposes. Source *Source `protobuf:"bytes,7,opt,name=source" json:"source,omitempty"` // contains filtered or unexported fields }
Entry represents a single usage of a proto type. For example, a single field access, method call, use as a type, etc. We collect entries and analyze them offline to generate various statistics (e.g. number of direct field accesses per package) about the migration to opaque Go protocol buffer API.
func (*Entry) ClearLocation ¶
func (x *Entry) ClearLocation()
func (*Entry) ClearSource ¶
func (x *Entry) ClearSource()
func (*Entry) ClearStatus ¶
func (x *Entry) ClearStatus()
func (*Entry) GetExpr ¶
func (x *Entry) GetExpr() *Expression
func (*Entry) GetLevel ¶
func (x *Entry) GetLevel() RewriteLevel
func (*Entry) GetLocation ¶
func (*Entry) HasLocation ¶
func (*Entry) ProtoMessage ¶
func (*Entry) ProtoMessage()
func (*Entry) ProtoReflect ¶
func (x *Entry) ProtoReflect() protoreflect.Message
func (*Entry) SetExpr ¶
func (x *Entry) SetExpr(v *Expression)
func (*Entry) SetLevel ¶
func (x *Entry) SetLevel(v RewriteLevel)
func (*Entry) SetLocation ¶
type Entry_builder ¶
type Entry_builder struct { // If status is not set or empty then all other fields should be set // and describe a single usage of a protocol buffer type in Go. // // If status is not empty then: // - status.error says what went wrong, and // - location.package says which package couldn't be processed Status *Status // Location in Go code. Always set. Location.package is always // non-empty. Location *Location // Rewrite level after which this entry was captured. Level RewriteLevel // Go type representing a protocol buffer type. Type *Type // Go expression which leads to this entry. Expr *Expression // Describes how a protocol buffer is used (e.g. direct field access). Use *Use // Source of the information. For debugging purposes. Source *Source // contains filtered or unexported fields }
func (Entry_builder) Build ¶
func (b0 Entry_builder) Build() *Entry
type Expression ¶
type Expression struct { // go/ast expression type (e.g. "*ast.Ident"). Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"` // go/ast expression type of the parent. ParentType string `protobuf:"bytes,2,opt,name=parent_type,json=parentType" json:"parent_type,omitempty"` // contains filtered or unexported fields }
Expression describes a Go expression.
func (*Expression) GetParentType ¶
func (x *Expression) GetParentType() string
func (*Expression) GetType ¶
func (x *Expression) GetType() string
func (*Expression) ProtoMessage ¶
func (*Expression) ProtoMessage()
func (*Expression) ProtoReflect ¶
func (x *Expression) ProtoReflect() protoreflect.Message
func (*Expression) Reset ¶
func (x *Expression) Reset()
func (*Expression) SetParentType ¶
func (x *Expression) SetParentType(v string)
func (*Expression) SetType ¶
func (x *Expression) SetType(v string)
func (*Expression) String ¶
func (x *Expression) String() string
type Expression_builder ¶
type Expression_builder struct { // go/ast expression type (e.g. "*ast.Ident"). Type string // go/ast expression type of the parent. ParentType string // contains filtered or unexported fields }
func (Expression_builder) Build ¶
func (b0 Expression_builder) Build() *Expression
type FieldAccess ¶
type FieldAccess struct { FieldName string `protobuf:"bytes,1,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` FieldType *Type `protobuf:"bytes,2,opt,name=field_type,json=fieldType" json:"field_type,omitempty"` // contains filtered or unexported fields }
func (*FieldAccess) ClearFieldType ¶
func (x *FieldAccess) ClearFieldType()
func (*FieldAccess) GetFieldName ¶
func (x *FieldAccess) GetFieldName() string
func (*FieldAccess) GetFieldType ¶
func (x *FieldAccess) GetFieldType() *Type
func (*FieldAccess) HasFieldType ¶
func (x *FieldAccess) HasFieldType() bool
func (*FieldAccess) ProtoMessage ¶
func (*FieldAccess) ProtoMessage()
func (*FieldAccess) ProtoReflect ¶
func (x *FieldAccess) ProtoReflect() protoreflect.Message
func (*FieldAccess) Reset ¶
func (x *FieldAccess) Reset()
func (*FieldAccess) SetFieldName ¶
func (x *FieldAccess) SetFieldName(v string)
func (*FieldAccess) SetFieldType ¶
func (x *FieldAccess) SetFieldType(v *Type)
func (*FieldAccess) String ¶
func (x *FieldAccess) String() string
type FieldAccess_builder ¶
type FieldAccess_builder struct { FieldName string FieldType *Type // contains filtered or unexported fields }
func (FieldAccess_builder) Build ¶
func (b0 FieldAccess_builder) Build() *FieldAccess
type Frame ¶
type Frame struct { // Fully qualified function name. For example: // // net/http.Error Function string `protobuf:"bytes,1,opt,name=function" json:"function,omitempty"` // true if the function is exported. IsExported bool `protobuf:"varint,6,opt,name=is_exported,json=isExported" json:"is_exported,omitempty"` // Packed in which the function is defined. Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"` // path to the source file defining the function. // // For standard-library, the path is relative to the src/ // directory (e.g. net/http/server.go). File string `protobuf:"bytes,3,opt,name=file" json:"file,omitempty"` // Line number, together with file, is the location where function // is defined. Line string `protobuf:"bytes,4,opt,name=line" json:"line,omitempty"` // index of the frame in the reflect_call.frames repeated field. // // This exists to make SQL queries easier. Index int64 `protobuf:"varint,5,opt,name=index" json:"index,omitempty"` // index of the frame across consecutive frames in the same package. // // This exists to make SQL queries easier. PkgIndex int64 `protobuf:"varint,7,opt,name=pkg_index,json=pkgIndex" json:"pkg_index,omitempty"` // contains filtered or unexported fields }
Frame represents information about a single frame in a Go stacktrace.
func (*Frame) GetFunction ¶
func (*Frame) GetIsExported ¶
func (*Frame) GetPackage ¶
func (*Frame) GetPkgIndex ¶
func (*Frame) ProtoMessage ¶
func (*Frame) ProtoMessage()
func (*Frame) ProtoReflect ¶
func (x *Frame) ProtoReflect() protoreflect.Message
func (*Frame) SetFunction ¶
func (*Frame) SetIsExported ¶
func (*Frame) SetPackage ¶
func (*Frame) SetPkgIndex ¶
type Frame_builder ¶
type Frame_builder struct { // Fully qualified function name. For example: // // net/http.Error Function string // true if the function is exported. IsExported bool // Packed in which the function is defined. Package string // path to the source file defining the function. // // For standard-library, the path is relative to the src/ // directory (e.g. net/http/server.go). File string // Line number, together with file, is the location where function // is defined. Line string // index of the frame in the reflect_call.frames repeated field. // // This exists to make SQL queries easier. Index int64 // index of the frame across consecutive frames in the same package. // // This exists to make SQL queries easier. PkgIndex int64 // contains filtered or unexported fields }
func (Frame_builder) Build ¶
func (b0 Frame_builder) Build() *Frame
type FuncArg ¶
type FuncArg struct { // The name of the called function. // For example: "Clone". // // An empty string means that analysis couldn't determine which // function is called (this could happen for indirect calls). FunctionName string `protobuf:"bytes,1,opt,name=function_name,json=functionName" json:"function_name,omitempty"` // Full package path containing the called function. // // An empty string means that analysis couldn't determine which // function is called (this could happen for indirect calls). PackagePath string `protobuf:"bytes,2,opt,name=package_path,json=packagePath" json:"package_path,omitempty"` // Signature of the called function. // For example: "func(m interface{}) interface{}". Signature string `protobuf:"bytes,3,opt,name=signature" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*FuncArg) GetFunctionName ¶
func (*FuncArg) GetPackagePath ¶
func (*FuncArg) GetSignature ¶
func (*FuncArg) ProtoMessage ¶
func (*FuncArg) ProtoMessage()
func (*FuncArg) ProtoReflect ¶
func (x *FuncArg) ProtoReflect() protoreflect.Message
func (*FuncArg) SetFunctionName ¶
func (*FuncArg) SetPackagePath ¶
func (*FuncArg) SetSignature ¶
type FuncArg_builder ¶
type FuncArg_builder struct { // The name of the called function. // For example: "Clone". // // An empty string means that analysis couldn't determine which // function is called (this could happen for indirect calls). FunctionName string // Full package path containing the called function. // // An empty string means that analysis couldn't determine which // function is called (this could happen for indirect calls). PackagePath string // Signature of the called function. // For example: "func(m interface{}) interface{}". Signature string // contains filtered or unexported fields }
func (FuncArg_builder) Build ¶
func (b0 FuncArg_builder) Build() *FuncArg
type Location ¶
type Location struct { // Full name of a Go package Package string `protobuf:"bytes,1,opt,name=package" json:"package,omitempty"` // path to a Go file File string `protobuf:"bytes,2,opt,name=file" json:"file,omitempty"` // Whether the file is a generated file. IsGeneratedFile bool `protobuf:"varint,3,opt,name=is_generated_file,json=isGeneratedFile" json:"is_generated_file,omitempty"` // Start of the expression. Start *Position `protobuf:"bytes,4,opt,name=start" json:"start,omitempty"` // End of the expression. End *Position `protobuf:"bytes,5,opt,name=end" json:"end,omitempty"` // contains filtered or unexported fields }
Location represents location of an expression in a Go file.
func (*Location) ClearStart ¶
func (x *Location) ClearStart()
func (*Location) GetIsGeneratedFile ¶
func (*Location) GetPackage ¶
func (*Location) ProtoMessage ¶
func (*Location) ProtoMessage()
func (*Location) ProtoReflect ¶
func (x *Location) ProtoReflect() protoreflect.Message
func (*Location) SetIsGeneratedFile ¶
func (*Location) SetPackage ¶
type Location_builder ¶
type Location_builder struct { // Full name of a Go package Package string // path to a Go file File string // Whether the file is a generated file. IsGeneratedFile bool // Start of the expression. Start *Position // End of the expression. End *Position // contains filtered or unexported fields }
func (Location_builder) Build ¶
func (b0 Location_builder) Build() *Location
type MethodCall ¶
type MethodCall struct { Method string `protobuf:"bytes,1,opt,name=method" json:"method,omitempty"` Type MethodCall_Type `protobuf:"varint,2,opt,name=type,enum=net.proto2.go.open2opaque.stats.MethodCall_Type" json:"type,omitempty"` // contains filtered or unexported fields }
func (*MethodCall) GetMethod ¶
func (x *MethodCall) GetMethod() string
func (*MethodCall) GetType ¶
func (x *MethodCall) GetType() MethodCall_Type
func (*MethodCall) ProtoMessage ¶
func (*MethodCall) ProtoMessage()
func (*MethodCall) ProtoReflect ¶
func (x *MethodCall) ProtoReflect() protoreflect.Message
func (*MethodCall) Reset ¶
func (x *MethodCall) Reset()
func (*MethodCall) SetMethod ¶
func (x *MethodCall) SetMethod(v string)
func (*MethodCall) SetType ¶
func (x *MethodCall) SetType(v MethodCall_Type)
func (*MethodCall) String ¶
func (x *MethodCall) String() string
type MethodCall_Type ¶
type MethodCall_Type int32
const ( MethodCall_INVALID MethodCall_Type = 0 MethodCall_GET_ONEOF MethodCall_Type = 1 MethodCall_GET_BUILD MethodCall_Type = 2 )
func (MethodCall_Type) Descriptor ¶
func (MethodCall_Type) Descriptor() protoreflect.EnumDescriptor
func (MethodCall_Type) Enum ¶
func (x MethodCall_Type) Enum() *MethodCall_Type
func (MethodCall_Type) Number ¶
func (x MethodCall_Type) Number() protoreflect.EnumNumber
func (MethodCall_Type) String ¶
func (x MethodCall_Type) String() string
func (MethodCall_Type) Type ¶
func (MethodCall_Type) Type() protoreflect.EnumType
type MethodCall_builder ¶
type MethodCall_builder struct { Method string Type MethodCall_Type // contains filtered or unexported fields }
func (MethodCall_builder) Build ¶
func (b0 MethodCall_builder) Build() *MethodCall
type Position ¶
type Position struct { Line int64 `protobuf:"varint,1,opt,name=line" json:"line,omitempty"` Column int64 `protobuf:"varint,2,opt,name=column" json:"column,omitempty"` // contains filtered or unexported fields }
Position describes a position in a Go file.
func (*Position) ProtoMessage ¶
func (*Position) ProtoMessage()
func (*Position) ProtoReflect ¶
func (x *Position) ProtoReflect() protoreflect.Message
type Position_builder ¶
func (Position_builder) Build ¶
func (b0 Position_builder) Build() *Position
type ReflectCall ¶
type ReflectCall struct { // Information about all frames leading to the reflection call. // // A callstack usually looks like: // // reflect.Value.Field // the function triggering the log // reflect.F1 // more functions // ... // in the // reflect.Fn // reflect package // import/path.Caller // (1) fn: calls into the reflect package // import/path.C1 // more functions // ... // in the same package // import/path.Cn1 // as fn // ancestor/import.Ancestor // (2) caller: calls into fn's package // ... // more frames // // The frames field has information about all frames but we also // store a few selected frames separately to make it easier to write // queries: // // (1) caller is the last function before the reflection package // (2) ancestor is the last function from a different package than caller // // The frames field contains at least one frame (a function in the // reflect package) but fn and caller may be unset. Frames []*Frame `protobuf:"bytes,1,rep,name=frames" json:"frames,omitempty"` Fn *Frame `protobuf:"bytes,2,opt,name=fn" json:"fn,omitempty"` Caller *Frame `protobuf:"bytes,3,opt,name=caller" json:"caller,omitempty"` // contains filtered or unexported fields }
ReflectCall represents a call to the Go reflection API.
func (*ReflectCall) ClearCaller ¶
func (x *ReflectCall) ClearCaller()
func (*ReflectCall) ClearFn ¶
func (x *ReflectCall) ClearFn()
func (*ReflectCall) GetCaller ¶
func (x *ReflectCall) GetCaller() *Frame
func (*ReflectCall) GetFn ¶
func (x *ReflectCall) GetFn() *Frame
func (*ReflectCall) GetFrames ¶
func (x *ReflectCall) GetFrames() []*Frame
func (*ReflectCall) HasCaller ¶
func (x *ReflectCall) HasCaller() bool
func (*ReflectCall) HasFn ¶
func (x *ReflectCall) HasFn() bool
func (*ReflectCall) ProtoMessage ¶
func (*ReflectCall) ProtoMessage()
func (*ReflectCall) ProtoReflect ¶
func (x *ReflectCall) ProtoReflect() protoreflect.Message
func (*ReflectCall) Reset ¶
func (x *ReflectCall) Reset()
func (*ReflectCall) SetCaller ¶
func (x *ReflectCall) SetCaller(v *Frame)
func (*ReflectCall) SetFn ¶
func (x *ReflectCall) SetFn(v *Frame)
func (*ReflectCall) SetFrames ¶
func (x *ReflectCall) SetFrames(v []*Frame)
func (*ReflectCall) String ¶
func (x *ReflectCall) String() string
type ReflectCall_builder ¶
type ReflectCall_builder struct { // Information about all frames leading to the reflection call. // // A callstack usually looks like: // // reflect.Value.Field // the function triggering the log // reflect.F1 // more functions // ... // in the // reflect.Fn // reflect package // import/path.Caller // (1) fn: calls into the reflect package // import/path.C1 // more functions // ... // in the same package // import/path.Cn1 // as fn // ancestor/import.Ancestor // (2) caller: calls into fn's package // ... // more frames // // The frames field has information about all frames but we also // store a few selected frames separately to make it easier to write // queries: // // (1) caller is the last function before the reflection package // (2) ancestor is the last function from a different package than caller // // The frames field contains at least one frame (a function in the // reflect package) but fn and caller may be unset. Frames []*Frame Fn *Frame Caller *Frame // contains filtered or unexported fields }
func (ReflectCall_builder) Build ¶
func (b0 ReflectCall_builder) Build() *ReflectCall
type RewriteLevel ¶
type RewriteLevel int32
RewriteLevel represents rewrite level after which entries are collected. For example, GREEN means that the tool does a green rewrite and analyzes the result to create entries.
const ( RewriteLevel_REWRITE_LEVEL_UNSPECIFIED RewriteLevel = 0 RewriteLevel_NONE RewriteLevel = 1 RewriteLevel_GREEN RewriteLevel = 2 RewriteLevel_YELLOW RewriteLevel = 3 RewriteLevel_RED RewriteLevel = 4 )
func (RewriteLevel) Descriptor ¶
func (RewriteLevel) Descriptor() protoreflect.EnumDescriptor
func (RewriteLevel) Enum ¶
func (x RewriteLevel) Enum() *RewriteLevel
func (RewriteLevel) Number ¶
func (x RewriteLevel) Number() protoreflect.EnumNumber
func (RewriteLevel) String ¶
func (x RewriteLevel) String() string
func (RewriteLevel) Type ¶
func (RewriteLevel) Type() protoreflect.EnumType
type ShallowCopy ¶
type ShallowCopy struct { Type ShallowCopy_Type `protobuf:"varint,1,opt,name=type,enum=net.proto2.go.open2opaque.stats.ShallowCopy_Type" json:"type,omitempty"` // contains filtered or unexported fields }
ShallowCopy represents a shallow copy of protocol buffers.
For example: "*m2 = *m1" for m1, m2 being protocol buffer messages (pointers to Go structs generated by the proto generor).
func (*ShallowCopy) GetType ¶
func (x *ShallowCopy) GetType() ShallowCopy_Type
func (*ShallowCopy) ProtoMessage ¶
func (*ShallowCopy) ProtoMessage()
func (*ShallowCopy) ProtoReflect ¶
func (x *ShallowCopy) ProtoReflect() protoreflect.Message
func (*ShallowCopy) Reset ¶
func (x *ShallowCopy) Reset()
func (*ShallowCopy) SetType ¶
func (x *ShallowCopy) SetType(v ShallowCopy_Type)
func (*ShallowCopy) String ¶
func (x *ShallowCopy) String() string
type ShallowCopy_Type ¶
type ShallowCopy_Type int32
const ( ShallowCopy_TYPE_UNSPECIFIED ShallowCopy_Type = 0 ShallowCopy_ASSIGN ShallowCopy_Type = 1 ShallowCopy_CALL_ARGUMENT ShallowCopy_Type = 2 ShallowCopy_FUNC_RET ShallowCopy_Type = 3 ShallowCopy_COMPOSITE_LITERAL_ELEMENT ShallowCopy_Type = 4 ShallowCopy_CHAN_SEND ShallowCopy_Type = 5 )
func (ShallowCopy_Type) Descriptor ¶
func (ShallowCopy_Type) Descriptor() protoreflect.EnumDescriptor
func (ShallowCopy_Type) Enum ¶
func (x ShallowCopy_Type) Enum() *ShallowCopy_Type
func (ShallowCopy_Type) Number ¶
func (x ShallowCopy_Type) Number() protoreflect.EnumNumber
func (ShallowCopy_Type) String ¶
func (x ShallowCopy_Type) String() string
func (ShallowCopy_Type) Type ¶
func (ShallowCopy_Type) Type() protoreflect.EnumType
type ShallowCopy_builder ¶
type ShallowCopy_builder struct { Type ShallowCopy_Type // contains filtered or unexported fields }
func (ShallowCopy_builder) Build ¶
func (b0 ShallowCopy_builder) Build() *ShallowCopy
type Source ¶
type Source struct { File string `protobuf:"bytes,1,opt,name=file" json:"file,omitempty"` // contains filtered or unexported fields }
func (*Source) ProtoMessage ¶
func (*Source) ProtoMessage()
func (*Source) ProtoReflect ¶
func (x *Source) ProtoReflect() protoreflect.Message
type Source_builder ¶
type Source_builder struct { File string // contains filtered or unexported fields }
func (Source_builder) Build ¶
func (b0 Source_builder) Build() *Source
type Status ¶
type Status struct { Type Status_Type `protobuf:"varint,1,opt,name=type,enum=net.proto2.go.open2opaque.stats.Status_Type" json:"type,omitempty"` Error string `protobuf:"bytes,2,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
Status specifies an error that occurred. Empty error indicates success.
func (*Status) GetType ¶
func (x *Status) GetType() Status_Type
func (*Status) ProtoMessage ¶
func (*Status) ProtoMessage()
func (*Status) ProtoReflect ¶
func (x *Status) ProtoReflect() protoreflect.Message
func (*Status) SetType ¶
func (x *Status) SetType(v Status_Type)
type Status_Type ¶
type Status_Type int32
const ( Status_UNSPECIFIED_TYPE Status_Type = 0 Status_OK Status_Type = 1 Status_SKIP Status_Type = 2 Status_FAIL Status_Type = 3 )
func (Status_Type) Descriptor ¶
func (Status_Type) Descriptor() protoreflect.EnumDescriptor
func (Status_Type) Enum ¶
func (x Status_Type) Enum() *Status_Type
func (Status_Type) Number ¶
func (x Status_Type) Number() protoreflect.EnumNumber
func (Status_Type) String ¶
func (x Status_Type) String() string
func (Status_Type) Type ¶
func (Status_Type) Type() protoreflect.EnumType
type Status_builder ¶
type Status_builder struct { Type Status_Type Error string // contains filtered or unexported fields }
func (Status_builder) Build ¶
func (b0 Status_builder) Build() *Status
type Type ¶
type Type struct { // The short name of the Go type representing the protocol buffer // type. For example: "qem_go_proto.QueryEventMessage". ShortName string `protobuf:"bytes,1,opt,name=short_name,json=shortName" json:"short_name,omitempty"` // A fully qualified name of the Go type representing the protocol // buffer type. LongName string `protobuf:"bytes,2,opt,name=long_name,json=longName" json:"long_name,omitempty"` // contains filtered or unexported fields }
Type represents a Go name for a protocol buffer type.
func (*Type) GetLongName ¶
func (*Type) GetShortName ¶
func (*Type) ProtoMessage ¶
func (*Type) ProtoMessage()
func (*Type) ProtoReflect ¶
func (x *Type) ProtoReflect() protoreflect.Message
func (*Type) SetLongName ¶
func (*Type) SetShortName ¶
type TypeAssertion ¶
type TypeAssertion struct { // The type of the expression whose type is being asserted. SrcType *Type `protobuf:"bytes,1,opt,name=src_type,json=srcType" json:"src_type,omitempty"` // contains filtered or unexported fields }
func (*TypeAssertion) ClearSrcType ¶
func (x *TypeAssertion) ClearSrcType()
func (*TypeAssertion) GetSrcType ¶
func (x *TypeAssertion) GetSrcType() *Type
func (*TypeAssertion) HasSrcType ¶
func (x *TypeAssertion) HasSrcType() bool
func (*TypeAssertion) ProtoMessage ¶
func (*TypeAssertion) ProtoMessage()
func (*TypeAssertion) ProtoReflect ¶
func (x *TypeAssertion) ProtoReflect() protoreflect.Message
func (*TypeAssertion) Reset ¶
func (x *TypeAssertion) Reset()
func (*TypeAssertion) SetSrcType ¶
func (x *TypeAssertion) SetSrcType(v *Type)
func (*TypeAssertion) String ¶
func (x *TypeAssertion) String() string
type TypeAssertion_builder ¶
type TypeAssertion_builder struct { // The type of the expression whose type is being asserted. SrcType *Type // contains filtered or unexported fields }
func (TypeAssertion_builder) Build ¶
func (b0 TypeAssertion_builder) Build() *TypeAssertion
type TypeDefinition ¶
type TypeDefinition struct { // new_type describes the newly defined type. NewType *Type `protobuf:"bytes,1,opt,name=new_type,json=newType" json:"new_type,omitempty"` // contains filtered or unexported fields }
func (*TypeDefinition) ClearNewType ¶
func (x *TypeDefinition) ClearNewType()
func (*TypeDefinition) GetNewType ¶
func (x *TypeDefinition) GetNewType() *Type
func (*TypeDefinition) HasNewType ¶
func (x *TypeDefinition) HasNewType() bool
func (*TypeDefinition) ProtoMessage ¶
func (*TypeDefinition) ProtoMessage()
func (*TypeDefinition) ProtoReflect ¶
func (x *TypeDefinition) ProtoReflect() protoreflect.Message
func (*TypeDefinition) Reset ¶
func (x *TypeDefinition) Reset()
func (*TypeDefinition) SetNewType ¶
func (x *TypeDefinition) SetNewType(v *Type)
func (*TypeDefinition) String ¶
func (x *TypeDefinition) String() string
type TypeDefinition_builder ¶
type TypeDefinition_builder struct { // new_type describes the newly defined type. NewType *Type // contains filtered or unexported fields }
func (TypeDefinition_builder) Build ¶
func (b0 TypeDefinition_builder) Build() *TypeDefinition
type Type_builder ¶
type Type_builder struct { // The short name of the Go type representing the protocol buffer // type. For example: "qem_go_proto.QueryEventMessage". ShortName string // A fully qualified name of the Go type representing the protocol // buffer type. LongName string // contains filtered or unexported fields }
func (Type_builder) Build ¶
func (b0 Type_builder) Build() *Type
type Use ¶
type Use struct { Type Use_Type `protobuf:"varint,1,opt,name=type,enum=net.proto2.go.open2opaque.stats.Use_Type" json:"type,omitempty"` DirectFieldAccess *FieldAccess `protobuf:"bytes,2,opt,name=direct_field_access,json=directFieldAccess" json:"direct_field_access,omitempty"` MethodCall *MethodCall `protobuf:"bytes,3,opt,name=method_call,json=methodCall" json:"method_call,omitempty"` Constructor *Constructor `protobuf:"bytes,4,opt,name=constructor" json:"constructor,omitempty"` Conversion *Conversion `protobuf:"bytes,5,opt,name=conversion" json:"conversion,omitempty"` FuncArg *FuncArg `protobuf:"bytes,6,opt,name=func_arg,json=funcArg" json:"func_arg,omitempty"` TypeAssertion *TypeAssertion `protobuf:"bytes,7,opt,name=type_assertion,json=typeAssertion" json:"type_assertion,omitempty"` TypeDefinition *TypeDefinition `protobuf:"bytes,8,opt,name=type_definition,json=typeDefinition" json:"type_definition,omitempty"` Embedding *Embedding `protobuf:"bytes,9,opt,name=embedding" json:"embedding,omitempty"` InternalFieldAccess *FieldAccess `protobuf:"bytes,10,opt,name=internal_field_access,json=internalFieldAccess" json:"internal_field_access,omitempty"` ReflectCall *ReflectCall `protobuf:"bytes,11,opt,name=reflect_call,json=reflectCall" json:"reflect_call,omitempty"` ShallowCopy *ShallowCopy `protobuf:"bytes,12,opt,name=shallow_copy,json=shallowCopy" json:"shallow_copy,omitempty"` // contains filtered or unexported fields }
Use describes a use of a protocol buffer type in Go.
func (*Use) ClearConstructor ¶
func (x *Use) ClearConstructor()
func (*Use) ClearConversion ¶
func (x *Use) ClearConversion()
func (*Use) ClearDirectFieldAccess ¶
func (x *Use) ClearDirectFieldAccess()
func (*Use) ClearEmbedding ¶
func (x *Use) ClearEmbedding()
func (*Use) ClearFuncArg ¶
func (x *Use) ClearFuncArg()
func (*Use) ClearInternalFieldAccess ¶
func (x *Use) ClearInternalFieldAccess()
func (*Use) ClearMethodCall ¶
func (x *Use) ClearMethodCall()
func (*Use) ClearReflectCall ¶
func (x *Use) ClearReflectCall()
func (*Use) ClearShallowCopy ¶
func (x *Use) ClearShallowCopy()
func (*Use) ClearTypeAssertion ¶
func (x *Use) ClearTypeAssertion()
func (*Use) ClearTypeDefinition ¶
func (x *Use) ClearTypeDefinition()
func (*Use) GetConstructor ¶
func (x *Use) GetConstructor() *Constructor
func (*Use) GetConversion ¶
func (x *Use) GetConversion() *Conversion
func (*Use) GetDirectFieldAccess ¶
func (x *Use) GetDirectFieldAccess() *FieldAccess
func (*Use) GetEmbedding ¶
func (*Use) GetFuncArg ¶
func (*Use) GetInternalFieldAccess ¶
func (x *Use) GetInternalFieldAccess() *FieldAccess
func (*Use) GetMethodCall ¶
func (x *Use) GetMethodCall() *MethodCall
func (*Use) GetReflectCall ¶
func (x *Use) GetReflectCall() *ReflectCall
func (*Use) GetShallowCopy ¶
func (x *Use) GetShallowCopy() *ShallowCopy
func (*Use) GetTypeAssertion ¶
func (x *Use) GetTypeAssertion() *TypeAssertion
func (*Use) GetTypeDefinition ¶
func (x *Use) GetTypeDefinition() *TypeDefinition
func (*Use) HasConstructor ¶
func (*Use) HasConversion ¶
func (*Use) HasDirectFieldAccess ¶
func (*Use) HasEmbedding ¶
func (*Use) HasFuncArg ¶
func (*Use) HasInternalFieldAccess ¶
func (*Use) HasMethodCall ¶
func (*Use) HasReflectCall ¶
func (*Use) HasShallowCopy ¶
func (*Use) HasTypeAssertion ¶
func (*Use) HasTypeDefinition ¶
func (*Use) ProtoMessage ¶
func (*Use) ProtoMessage()
func (*Use) ProtoReflect ¶
func (x *Use) ProtoReflect() protoreflect.Message
func (*Use) SetConstructor ¶
func (x *Use) SetConstructor(v *Constructor)
func (*Use) SetConversion ¶
func (x *Use) SetConversion(v *Conversion)
func (*Use) SetDirectFieldAccess ¶
func (x *Use) SetDirectFieldAccess(v *FieldAccess)
func (*Use) SetEmbedding ¶
func (*Use) SetFuncArg ¶
func (*Use) SetInternalFieldAccess ¶
func (x *Use) SetInternalFieldAccess(v *FieldAccess)
func (*Use) SetMethodCall ¶
func (x *Use) SetMethodCall(v *MethodCall)
func (*Use) SetReflectCall ¶
func (x *Use) SetReflectCall(v *ReflectCall)
func (*Use) SetShallowCopy ¶
func (x *Use) SetShallowCopy(v *ShallowCopy)
func (*Use) SetTypeAssertion ¶
func (x *Use) SetTypeAssertion(v *TypeAssertion)
func (*Use) SetTypeDefinition ¶
func (x *Use) SetTypeDefinition(v *TypeDefinition)
type Use_Type ¶
type Use_Type int32
const ( Use_TYPE_UNSPECIFIED Use_Type = 0 Use_DIRECT_FIELD_ACCESS Use_Type = 1 Use_METHOD_CALL Use_Type = 2 Use_CONSTRUCTOR Use_Type = 3 Use_CONVERSION Use_Type = 4 Use_TYPE_ASSERTION Use_Type = 5 Use_TYPE_DEFINITION Use_Type = 6 Use_EMBEDDING Use_Type = 7 Use_INTERNAL_FIELD_ACCESS Use_Type = 8 Use_REFLECT_CALL Use_Type = 9 Use_SHALLOW_COPY Use_Type = 10 Use_BUILD_DEPENDENCY Use_Type = 11 )
func (Use_Type) Descriptor ¶
func (Use_Type) Descriptor() protoreflect.EnumDescriptor
func (Use_Type) Number ¶
func (x Use_Type) Number() protoreflect.EnumNumber
func (Use_Type) Type ¶
func (Use_Type) Type() protoreflect.EnumType
type Use_builder ¶
type Use_builder struct { Type Use_Type DirectFieldAccess *FieldAccess MethodCall *MethodCall Constructor *Constructor Conversion *Conversion FuncArg *FuncArg TypeAssertion *TypeAssertion TypeDefinition *TypeDefinition Embedding *Embedding InternalFieldAccess *FieldAccess ReflectCall *ReflectCall ShallowCopy *ShallowCopy // contains filtered or unexported fields }
func (Use_builder) Build ¶
func (b0 Use_builder) Build() *Use