flags

package
v1.508.19 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_FlagInfo_HasNegativeFlag = bool(false)
	Default_FlagInfo_AllowsMultiple  = bool(false)
)

Default values for FlagInfo fields.

Variables

View Source
var File_bazel_flags_flags_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FlagCollection

type FlagCollection struct {
	FlagInfos []*FlagInfo `protobuf:"bytes,1,rep,name=flag_infos,json=flagInfos" json:"flag_infos,omitempty"`
	// contains filtered or unexported fields
}

func (*FlagCollection) Descriptor deprecated

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

Deprecated: Use FlagCollection.ProtoReflect.Descriptor instead.

func (*FlagCollection) GetFlagInfos

func (x *FlagCollection) GetFlagInfos() []*FlagInfo

func (*FlagCollection) ProtoMessage

func (*FlagCollection) ProtoMessage()

func (*FlagCollection) ProtoReflect

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

func (*FlagCollection) Reset

func (x *FlagCollection) Reset()

func (*FlagCollection) String

func (x *FlagCollection) String() string

type FlagInfo

type FlagInfo struct {
	Name            *string  `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
	HasNegativeFlag *bool    `protobuf:"varint,2,opt,name=has_negative_flag,json=hasNegativeFlag,def=0" json:"has_negative_flag,omitempty"`
	Documentation   *string  `protobuf:"bytes,3,opt,name=documentation" json:"documentation,omitempty"`
	Commands        []string `protobuf:"bytes,4,rep,name=commands" json:"commands,omitempty"`
	Abbreviation    *string  `protobuf:"bytes,5,opt,name=abbreviation" json:"abbreviation,omitempty"`
	AllowsMultiple  *bool    `protobuf:"varint,6,opt,name=allows_multiple,json=allowsMultiple,def=0" json:"allows_multiple,omitempty"`
	// contains filtered or unexported fields
}

func (*FlagInfo) Descriptor deprecated

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

Deprecated: Use FlagInfo.ProtoReflect.Descriptor instead.

func (*FlagInfo) GetAbbreviation

func (x *FlagInfo) GetAbbreviation() string

func (*FlagInfo) GetAllowsMultiple

func (x *FlagInfo) GetAllowsMultiple() bool

func (*FlagInfo) GetCommands

func (x *FlagInfo) GetCommands() []string

func (*FlagInfo) GetDocumentation

func (x *FlagInfo) GetDocumentation() string

func (*FlagInfo) GetHasNegativeFlag

func (x *FlagInfo) GetHasNegativeFlag() bool

func (*FlagInfo) GetName

func (x *FlagInfo) GetName() string

func (*FlagInfo) ProtoMessage

func (*FlagInfo) ProtoMessage()

func (*FlagInfo) ProtoReflect

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

func (*FlagInfo) Reset

func (x *FlagInfo) Reset()

func (*FlagInfo) String

func (x *FlagInfo) String() string

Jump to

Keyboard shortcuts

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