sourcecontextpb

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_source_context_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type SourceContext

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 deprecated

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

Deprecated: Use SourceContext.ProtoReflect.Descriptor instead.

func (*SourceContext) GetFileName

func (x *SourceContext) GetFileName() string

func (*SourceContext) ProtoMessage

func (*SourceContext) ProtoMessage()

func (*SourceContext) ProtoReflect

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

func (*SourceContext) Reset

func (x *SourceContext) Reset()

func (*SourceContext) String

func (x *SourceContext) String() string

func (*SourceContext) Validate

func (m *SourceContext) Validate() error

Validate checks the field values on SourceContext with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SourceContext) ValidateAll

func (m *SourceContext) ValidateAll() error

ValidateAll checks the field values on SourceContext with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SourceContextMultiError, or nil if none found.

type SourceContextMultiError

type SourceContextMultiError []error

SourceContextMultiError is an error wrapping multiple validation errors returned by SourceContext.ValidateAll() if the designated constraints aren't met.

func (SourceContextMultiError) AllErrors

func (m SourceContextMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SourceContextMultiError) Error

func (m SourceContextMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SourceContextValidationError

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

SourceContextValidationError is the validation error returned by SourceContext.Validate if the designated constraints aren't met.

func (SourceContextValidationError) Cause

Cause function returns cause value.

func (SourceContextValidationError) Error

Error satisfies the builtin error interface

func (SourceContextValidationError) ErrorName

func (e SourceContextValidationError) ErrorName() string

ErrorName returns error name.

func (SourceContextValidationError) Field

Field function returns field value.

func (SourceContextValidationError) Key

Key function returns key value.

func (SourceContextValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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