Documentation ¶
Index ¶
- Variables
- type AxisMessage
- type Basic
- type Color
- func (*Color) Descriptor() ([]byte, []int)deprecated
- func (x *Color) GetHSV() string
- func (x *Color) GetRGB() string
- func (x *Color) GetRGBA() string
- func (m *Color) GetValue() isColor_Value
- func (*Color) ProtoMessage()
- func (x *Color) ProtoReflect() protoreflect.Message
- func (x *Color) Reset()
- func (x *Color) String() string
- type Color_HSV
- type Color_RGB
- type Color_RGBA
- type EmbedLintedField
- type ExtendedMessage
- type ID
- type IDFields
- func (*IDFields) Descriptor() ([]byte, []int)deprecated
- func (x *IDFields) GetAPIPath() string
- func (x *IDFields) GetCustomerID() string
- func (x *IDFields) GetID() string
- func (*IDFields) ProtoMessage()
- func (x *IDFields) ProtoReflect() protoreflect.Message
- func (x *IDFields) Reset()
- func (x *IDFields) String() string
- type OneofMessage
- func (*OneofMessage) Descriptor() ([]byte, []int)deprecated
- func (m *OneofMessage) GetContents() isOneofMessage_Contents
- func (x *OneofMessage) GetID() *ID
- func (x *OneofMessage) GetURL() *URL
- func (*OneofMessage) ProtoMessage()
- func (x *OneofMessage) ProtoReflect() protoreflect.Message
- func (x *OneofMessage) Reset()
- func (x *OneofMessage) String() string
- type OneofMessage_ID
- type OneofMessage_URL
- type Outer
- type OuterFlavor
- func (OuterFlavor) Descriptor() protoreflect.EnumDescriptor
- func (x OuterFlavor) Enum() *OuterFlavor
- func (OuterFlavor) EnumDescriptor() ([]byte, []int)deprecated
- func (x OuterFlavor) Number() protoreflect.EnumNumber
- func (x OuterFlavor) String() string
- func (OuterFlavor) Type() protoreflect.EnumType
- type OuterInnerID
- type OuterInnerURL
- type Protocol
- type RGBColor
- type URL
Constants ¶
This section is empty.
Variables ¶
var ( Protocol_name = map[int32]string{ 0: "PROTOCOL_INVALID", 1: "PROTOCOL_IP", 2: "PROTOCOL_UDP", 3: "PROTOCOL_TCP", } Protocol_value = map[string]int32{ "PROTOCOL_INVALID": 0, "PROTOCOL_IP": 1, "PROTOCOL_UDP": 2, "PROTOCOL_TCP": 3, } )
Enum value maps for Protocol.
var ( Basic_name = map[int32]string{ 0: "INVALID", 1: "A", 2: "B", 3: "C", } Basic_value = map[string]int32{ "INVALID": 0, "A": 1, "B": 2, "C": 3, } )
Enum value maps for Basic.
var ( OuterFlavor_name = map[int32]string{ 0: "FLAVOR_INVALID", 1: "FLAVOR_A", 2: "FLAVOR_B", 3: "FLAVOR_C", 4: "FLAVOR_ID", 5: "FLAVOR_URL", } OuterFlavor_value = map[string]int32{ "FLAVOR_INVALID": 0, "FLAVOR_A": 1, "FLAVOR_B": 2, "FLAVOR_C": 3, "FLAVOR_ID": 4, "FLAVOR_URL": 5, } )
Enum value maps for OuterMessage_Flavor.
var ( // optional string alpha = 101; ExtAlpha = &file_tests_lint_lint_extensions_proto_extTypes[0] // optional string beta = 102; ExtBeta = &file_tests_lint_lint_extensions_proto_extTypes[1] // optional string gamma = 103; ExtGamma = &file_tests_lint_lint_extensions_proto_extTypes[2] // optional string delta = 104; ExtDelta = &file_tests_lint_lint_extensions_proto_extTypes[3] )
Extension fields to ExtendedMessage.
var File_tests_lint_lint_extensions_proto protoreflect.FileDescriptor
var File_tests_lint_lint_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AxisMessage ¶ added in v0.3.1
type AxisMessage struct { // Should use patched identifier AXIS_INVALID → AxisInvalid. Axis sub.Axis `protobuf:"varint,1,opt,name=axis,proto3,enum=tests.lint.sub.Axis" json:"axis,omitempty"` // contains filtered or unexported fields }
func (*AxisMessage) Descriptor
deprecated
added in
v0.3.1
func (*AxisMessage) Descriptor() ([]byte, []int)
Deprecated: Use AxisMessage.ProtoReflect.Descriptor instead.
func (*AxisMessage) GetAxis ¶ added in v0.3.1
func (x *AxisMessage) GetAxis() sub.Axis
func (*AxisMessage) ProtoMessage ¶ added in v0.3.1
func (*AxisMessage) ProtoMessage()
func (*AxisMessage) ProtoReflect ¶ added in v0.3.1
func (x *AxisMessage) ProtoReflect() protoreflect.Message
func (*AxisMessage) Reset ¶ added in v0.3.1
func (x *AxisMessage) Reset()
func (*AxisMessage) String ¶ added in v0.3.1
func (x *AxisMessage) String() string
type Basic ¶
type Basic int32
func (Basic) Descriptor ¶
func (Basic) Descriptor() protoreflect.EnumDescriptor
func (Basic) EnumDescriptor
deprecated
func (Basic) Number ¶
func (x Basic) Number() protoreflect.EnumNumber
func (Basic) Type ¶
func (Basic) Type() protoreflect.EnumType
type Color ¶
type Color struct { // Types that are assignable to Value: // // *Color_Rgb // *Color_Rgba // *Color_Hsv Value isColor_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*Color) Descriptor
deprecated
func (*Color) ProtoMessage ¶
func (*Color) ProtoMessage()
func (*Color) ProtoReflect ¶
func (x *Color) ProtoReflect() protoreflect.Message
type Color_HSV ¶
type Color_HSV struct { // hsv should lint to HSV. HSV string `protobuf:"bytes,3,opt,name=hsv,proto3,oneof"` }
type Color_RGB ¶
type Color_RGB struct { // rgb should lint to RGB. RGB string `protobuf:"bytes,1,opt,name=rgb,proto3,oneof"` }
type Color_RGBA ¶
type Color_RGBA struct { // rgba should lint to RGBA. RGBA string `protobuf:"bytes,2,opt,name=rgba,proto3,oneof"` }
type EmbedLintedField ¶ added in v0.4.0
type EmbedLintedField struct { *IDFields `protobuf:"bytes,1,opt,name=embedded_id_field,json=embeddedIdField,proto3" json:"embedded_id_field,omitempty"` // contains filtered or unexported fields }
func (*EmbedLintedField) Descriptor
deprecated
added in
v0.4.0
func (*EmbedLintedField) Descriptor() ([]byte, []int)
Deprecated: Use EmbedLintedField.ProtoReflect.Descriptor instead.
func (*EmbedLintedField) GetIDFields ¶ added in v0.4.0
func (x *EmbedLintedField) GetIDFields() *IDFields
func (*EmbedLintedField) ProtoMessage ¶ added in v0.4.0
func (*EmbedLintedField) ProtoMessage()
func (*EmbedLintedField) ProtoReflect ¶ added in v0.4.0
func (x *EmbedLintedField) ProtoReflect() protoreflect.Message
func (*EmbedLintedField) Reset ¶ added in v0.4.0
func (x *EmbedLintedField) Reset()
func (*EmbedLintedField) String ¶ added in v0.4.0
func (x *EmbedLintedField) String() string
type ExtendedMessage ¶
type ExtendedMessage struct {
// contains filtered or unexported fields
}
func (*ExtendedMessage) Descriptor
deprecated
func (*ExtendedMessage) Descriptor() ([]byte, []int)
Deprecated: Use ExtendedMessage.ProtoReflect.Descriptor instead.
func (*ExtendedMessage) ProtoMessage ¶
func (*ExtendedMessage) ProtoMessage()
func (*ExtendedMessage) ProtoReflect ¶
func (x *ExtendedMessage) ProtoReflect() protoreflect.Message
func (*ExtendedMessage) Reset ¶
func (x *ExtendedMessage) Reset()
func (*ExtendedMessage) String ¶
func (x *ExtendedMessage) String() string
type ID ¶
type ID struct {
// contains filtered or unexported fields
}
ID message type should lint to ID.
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type IDFields ¶ added in v0.4.0
type IDFields struct { // id field should lint to ID. ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // customer_id field should lint to CustomerID. CustomerID string `protobuf:"bytes,2,opt,name=customer_id,json=customerId,proto3" json:"customer_id,omitempty"` // api_path field should lint to APIPath. APIPath string `protobuf:"bytes,3,opt,name=api_path,json=apiPath,proto3" json:"api_path,omitempty"` // contains filtered or unexported fields }
IDFields message should lint to IDFields.
func (*IDFields) Descriptor
deprecated
added in
v0.4.0
func (*IDFields) GetAPIPath ¶ added in v0.4.0
func (*IDFields) GetCustomerID ¶ added in v0.4.0
func (*IDFields) ProtoMessage ¶ added in v0.4.0
func (*IDFields) ProtoMessage()
func (*IDFields) ProtoReflect ¶ added in v0.4.0
func (x *IDFields) ProtoReflect() protoreflect.Message
type OneofMessage ¶
type OneofMessage struct { // Types that are assignable to Contents: // // *OneofMessage_Id // *OneofMessage_Url Contents isOneofMessage_Contents `protobuf_oneof:"contents"` // contains filtered or unexported fields }
func (*OneofMessage) Descriptor
deprecated
func (*OneofMessage) Descriptor() ([]byte, []int)
Deprecated: Use OneofMessage.ProtoReflect.Descriptor instead.
func (*OneofMessage) GetContents ¶
func (m *OneofMessage) GetContents() isOneofMessage_Contents
func (*OneofMessage) GetID ¶
func (x *OneofMessage) GetID() *ID
func (*OneofMessage) GetURL ¶
func (x *OneofMessage) GetURL() *URL
func (*OneofMessage) ProtoMessage ¶
func (*OneofMessage) ProtoMessage()
func (*OneofMessage) ProtoReflect ¶
func (x *OneofMessage) ProtoReflect() protoreflect.Message
func (*OneofMessage) Reset ¶
func (x *OneofMessage) Reset()
func (*OneofMessage) String ¶
func (x *OneofMessage) String() string
type OneofMessage_ID ¶
type OneofMessage_ID struct { // ID oneof should lint to ID. ID *ID `protobuf:"bytes,1,opt,name=id,proto3,oneof"` }
type OneofMessage_URL ¶
type OneofMessage_URL struct { // URL oneof should lint to URL. URL *URL `protobuf:"bytes,2,opt,name=url,proto3,oneof"` }
type Outer ¶
type Outer struct { // id field should lint to ID. ID *OuterInnerID `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // url field should lint to URL. URL *OuterInnerURL `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // contains filtered or unexported fields }
func (*Outer) Descriptor
deprecated
func (*Outer) GetID ¶
func (x *Outer) GetID() *OuterInnerID
func (*Outer) GetURL ¶
func (x *Outer) GetURL() *OuterInnerURL
func (*Outer) ProtoMessage ¶
func (*Outer) ProtoMessage()
func (*Outer) ProtoReflect ¶
func (x *Outer) ProtoReflect() protoreflect.Message
type OuterFlavor ¶
type OuterFlavor int32
Flavor should lint to OuterFlavor.
const ( // FLAVOR_INVALID should lint to OuterFlavorInvalid. OuterFlavorInvalid OuterFlavor = 0 // FLAVOR_ID should lint to OuterFlavorA. OuterFlavorA OuterFlavor = 1 // FLAVOR_B should lint to OuterFlavorB. OuterFlavorB OuterFlavor = 2 // FLAVOR_C should lint to OuterFlavorC. OuterFlavorC OuterFlavor = 3 // FLAVOR_ID should lint to OuterFlavorID. OuterFlavorID OuterFlavor = 4 // FLAVOR_URL should lint to FlavorID, overriding the custom name. FlavorID OuterFlavor = 5 )
func (OuterFlavor) Descriptor ¶
func (OuterFlavor) Descriptor() protoreflect.EnumDescriptor
func (OuterFlavor) Enum ¶
func (x OuterFlavor) Enum() *OuterFlavor
func (OuterFlavor) EnumDescriptor
deprecated
func (OuterFlavor) EnumDescriptor() ([]byte, []int)
Deprecated: Use OuterMessage_Flavor.Descriptor instead.
func (OuterFlavor) Number ¶
func (x OuterFlavor) Number() protoreflect.EnumNumber
func (OuterFlavor) String ¶
func (x OuterFlavor) String() string
func (OuterFlavor) Type ¶
func (OuterFlavor) Type() protoreflect.EnumType
type OuterInnerID ¶
type OuterInnerID struct {
// contains filtered or unexported fields
}
InnerId message should lint to InnerID.
func (*OuterInnerID) Descriptor
deprecated
func (*OuterInnerID) Descriptor() ([]byte, []int)
Deprecated: Use OuterMessage_InnerId.ProtoReflect.Descriptor instead.
func (*OuterInnerID) ProtoMessage ¶
func (*OuterInnerID) ProtoMessage()
func (*OuterInnerID) ProtoReflect ¶
func (x *OuterInnerID) ProtoReflect() protoreflect.Message
func (*OuterInnerID) Reset ¶
func (x *OuterInnerID) Reset()
func (*OuterInnerID) String ¶
func (x *OuterInnerID) String() string
type OuterInnerURL ¶
type OuterInnerURL struct {
// contains filtered or unexported fields
}
InnerId message should lint to InnerURL.
func (*OuterInnerURL) Descriptor
deprecated
func (*OuterInnerURL) Descriptor() ([]byte, []int)
Deprecated: Use OuterMessage_InnerUrl.ProtoReflect.Descriptor instead.
func (*OuterInnerURL) ProtoMessage ¶
func (*OuterInnerURL) ProtoMessage()
func (*OuterInnerURL) ProtoReflect ¶
func (x *OuterInnerURL) ProtoReflect() protoreflect.Message
func (*OuterInnerURL) Reset ¶
func (x *OuterInnerURL) Reset()
func (*OuterInnerURL) String ¶
func (x *OuterInnerURL) String() string
type Protocol ¶
type Protocol int32
const ( // PROTOCOL_INVALID value should lint to ProtocolInvalid. ProtocolInvalid Protocol = 0 // PROTOCOL_IP value should lint to ProtocolIP. ProtocolIP Protocol = 1 // PROTOCOL_UDP value should lint to ProtocolUDP. ProtocolUDP Protocol = 2 // PROTOCOL_TCP value should lint to ProtocolTCP. ProtocolTCP Protocol = 3 )
func (Protocol) Descriptor ¶
func (Protocol) Descriptor() protoreflect.EnumDescriptor
func (Protocol) EnumDescriptor
deprecated
func (Protocol) Number ¶
func (x Protocol) Number() protoreflect.EnumNumber
func (Protocol) Type ¶
func (Protocol) Type() protoreflect.EnumType
type RGBColor ¶
type RGBColor struct {
// contains filtered or unexported fields
}
RgbColor should lint to RGBColor.
func (*RGBColor) Descriptor
deprecated
func (*RGBColor) ProtoMessage ¶
func (*RGBColor) ProtoMessage()
func (*RGBColor) ProtoReflect ¶
func (x *RGBColor) ProtoReflect() protoreflect.Message
type URL ¶
type URL struct {
// contains filtered or unexported fields
}
URL message type should lint to URL.
func (*URL) Descriptor
deprecated
func (*URL) ProtoMessage ¶
func (*URL) ProtoMessage()
func (*URL) ProtoReflect ¶
func (x *URL) ProtoReflect() protoreflect.Message