protobuf: google.golang.org/protobuf/types/known/sourcecontextpb Index | Files

package sourcecontextpb

import "google.golang.org/protobuf/types/known/sourcecontextpb"

Index

Package Files

source_context.pb.go

Variables

var File_google_protobuf_source_context_proto protoreflect.FileDescriptor

type SourceContext Uses

type SourceContext struct {

    // The path-qualified name of the .proto file that contained the associated
    // protobuf element.  For example: `"google/protobuf/source_context.proto"`.
    FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
    // contains filtered or unexported fields
}

`SourceContext` represents information about the source of a protobuf element, like the file in which it is defined.

func (*SourceContext) Descriptor Uses

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

Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.

func (*SourceContext) GetFileName Uses

func (x *SourceContext) GetFileName() string

func (*SourceContext) ProtoMessage Uses

func (*SourceContext) ProtoMessage()

func (*SourceContext) ProtoReflect Uses

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

func (*SourceContext) Reset Uses

func (x *SourceContext) Reset()

func (*SourceContext) String Uses

func (x *SourceContext) String() string

Package sourcecontextpb imports 4 packages (graph) and is imported by 7 packages. Updated 2020-09-09. Refresh now. Tools for package owners.