Documentation ¶
Index ¶
- Variables
- type Mode
- type Specification
- func (*Specification) Descriptor() ([]byte, []int)deprecated
- func (x *Specification) GetMode() Mode
- func (x *Specification) GetPackages() []string
- func (*Specification) ProtoMessage()
- func (x *Specification) ProtoReflect() protoreflect.Message
- func (x *Specification) Reset()
- func (x *Specification) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Mode_name = map[int32]string{ 0: "MODE_UNSPECIFIED", 1: "MODE_PUBLIC", 2: "MODE_SUBPACKAGES", 3: "MODE_PACKAGE", 4: "MODE_FILE", } Mode_value = map[string]int32{ "MODE_UNSPECIFIED": 0, "MODE_PUBLIC": 1, "MODE_SUBPACKAGES": 2, "MODE_PACKAGE": 3, "MODE_FILE": 4, } )
Enum value maps for Mode.
View Source
var ( // EnumRules defines the visibility Specification for an enum. // // optional visibility.v1.Specification enum_rules = 128064; E_EnumRules = &file_visibility_v1_visibility_proto_extTypes[2] // 👀 )
Extension fields to descriptorpb.EnumOptions.
View Source
var ( // FileRules defines the visibility Specification for the entire file. All // entities in the file inherit these rules unless otherwise specified. // // optional visibility.v1.Specification file_rules = 128064; E_FileRules = &file_visibility_v1_visibility_proto_extTypes[0] // 👀 )
Extension fields to descriptorpb.FileOptions.
View Source
var ( // MessageRules defines the visibility Specification for a message. All // messages or enums nested in the message inherit these rules unless // otherwise specified. // // optional visibility.v1.Specification message_rules = 128064; E_MessageRules = &file_visibility_v1_visibility_proto_extTypes[1] // 👀 )
Extension fields to descriptorpb.MessageOptions.
View Source
var File_visibility_v1_visibility_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Mode ¶
type Mode int32
Mode controls what may depend on a particular entity.
const ( // MODE_UNSPECIFIED defaults to MODE_PUBLIC. Mode_MODE_UNSPECIFIED Mode = 0 // MODE_PUBLIC is the default visibility of entities. Any other entity may // import and use this entity. Mode_MODE_PUBLIC Mode = 1 // MODE_SUBPACKAGES limits visibility of the entity to its package and any // subpackages thereof. Permissions may be expanded in the Specification. Mode_MODE_SUBPACKAGES Mode = 2 // MODE_PACKAGE limits direct visibility of the entity to its package, // exclusively. Permissions may be expanded in the Specification. Mode_MODE_PACKAGE Mode = 3 // MODE_FILE mode limits direct visibility of the entity to its containing file, // exclusively. Permissions may be expanded in the Specification. Mode_MODE_FILE Mode = 4 )
func (Mode) Descriptor ¶
func (Mode) Descriptor() protoreflect.EnumDescriptor
func (Mode) EnumDescriptor
deprecated
func (Mode) Number ¶
func (x Mode) Number() protoreflect.EnumNumber
func (Mode) Type ¶
func (Mode) Type() protoreflect.EnumType
type Specification ¶
type Specification struct { // Mode applies the general visibility rule for this entity. Mode Mode `protobuf:"varint,1,opt,name=mode,proto3,enum=visibility.v1.Mode" json:"mode,omitempty"` // Packages are package names that can explicitly access this entity. A // package name suffixed with '.*' will include that package and any // subpackages. Packages []string `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"` // contains filtered or unexported fields }
Specification describes the visibility rules that govern an entity. Specifications are inherited from parent entities unless overridden.
func (*Specification) Descriptor
deprecated
func (*Specification) Descriptor() ([]byte, []int)
Deprecated: Use Specification.ProtoReflect.Descriptor instead.
func (*Specification) GetMode ¶
func (x *Specification) GetMode() Mode
func (*Specification) GetPackages ¶
func (x *Specification) GetPackages() []string
func (*Specification) ProtoMessage ¶
func (*Specification) ProtoMessage()
func (*Specification) ProtoReflect ¶
func (x *Specification) ProtoReflect() protoreflect.Message
func (*Specification) Reset ¶
func (x *Specification) Reset()
func (*Specification) String ¶
func (x *Specification) String() string
Click to show internal directories.
Click to hide internal directories.