package gofeaturespb
import "google.golang.org/protobuf/types/gofeaturespb"
Index ¶
- Variables
- type GoFeatures
- func (*GoFeatures) Descriptor() ([]byte, []int)
- func (x *GoFeatures) GetApiLevel() GoFeatures_APILevel
- func (x *GoFeatures) GetLegacyUnmarshalJsonEnum() bool
- func (x *GoFeatures) GetStripEnumPrefix() GoFeatures_StripEnumPrefix
- func (*GoFeatures) ProtoMessage()
- func (x *GoFeatures) ProtoReflect() protoreflect.Message
- func (x *GoFeatures) Reset()
- func (x *GoFeatures) String() string
- type GoFeatures_APILevel
- func (GoFeatures_APILevel) Descriptor() protoreflect.EnumDescriptor
- func (x GoFeatures_APILevel) Enum() *GoFeatures_APILevel
- func (GoFeatures_APILevel) EnumDescriptor() ([]byte, []int)
- func (x GoFeatures_APILevel) Number() protoreflect.EnumNumber
- func (x GoFeatures_APILevel) String() string
- func (GoFeatures_APILevel) Type() protoreflect.EnumType
- func (x *GoFeatures_APILevel) UnmarshalJSON(b []byte) error
- type GoFeatures_StripEnumPrefix
- func (GoFeatures_StripEnumPrefix) Descriptor() protoreflect.EnumDescriptor
- func (x GoFeatures_StripEnumPrefix) Enum() *GoFeatures_StripEnumPrefix
- func (GoFeatures_StripEnumPrefix) EnumDescriptor() ([]byte, []int)
- func (x GoFeatures_StripEnumPrefix) Number() protoreflect.EnumNumber
- func (x GoFeatures_StripEnumPrefix) String() string
- func (GoFeatures_StripEnumPrefix) Type() protoreflect.EnumType
- func (x *GoFeatures_StripEnumPrefix) UnmarshalJSON(b []byte) error
Variables ¶
var ( GoFeatures_APILevel_name = map[int32]string{ 0: "API_LEVEL_UNSPECIFIED", 1: "API_OPEN", 2: "API_HYBRID", 3: "API_OPAQUE", } GoFeatures_APILevel_value = map[string]int32{ "API_LEVEL_UNSPECIFIED": 0, "API_OPEN": 1, "API_HYBRID": 2, "API_OPAQUE": 3, } )
Enum value maps for GoFeatures_APILevel.
var ( GoFeatures_StripEnumPrefix_name = map[int32]string{ 0: "STRIP_ENUM_PREFIX_UNSPECIFIED", 1: "STRIP_ENUM_PREFIX_KEEP", 2: "STRIP_ENUM_PREFIX_GENERATE_BOTH", 3: "STRIP_ENUM_PREFIX_STRIP", } GoFeatures_StripEnumPrefix_value = map[string]int32{ "STRIP_ENUM_PREFIX_UNSPECIFIED": 0, "STRIP_ENUM_PREFIX_KEEP": 1, "STRIP_ENUM_PREFIX_GENERATE_BOTH": 2, "STRIP_ENUM_PREFIX_STRIP": 3, } )
Enum value maps for GoFeatures_StripEnumPrefix.
var ( // optional pb.GoFeatures go = 1002; E_Go = &file_google_protobuf_go_features_proto_extTypes[0] )
Extension fields to descriptorpb.FeatureSet.
var File_google_protobuf_go_features_proto protoreflect.FileDescriptor
Types ¶
type GoFeatures ¶
type GoFeatures struct { // Whether or not to generate the deprecated UnmarshalJSON method for enums. // Can only be true for proto using the Open Struct api. LegacyUnmarshalJsonEnum *bool `protobuf:"varint,1,opt,name=legacy_unmarshal_json_enum,json=legacyUnmarshalJsonEnum" json:"legacy_unmarshal_json_enum,omitempty"` // One of OPEN, HYBRID or OPAQUE. ApiLevel *GoFeatures_APILevel `protobuf:"varint,2,opt,name=api_level,json=apiLevel,enum=pb.GoFeatures_APILevel" json:"api_level,omitempty"` StripEnumPrefix *GoFeatures_StripEnumPrefix `protobuf:"varint,3,opt,name=strip_enum_prefix,json=stripEnumPrefix,enum=pb.GoFeatures_StripEnumPrefix" json:"strip_enum_prefix,omitempty"` // contains filtered or unexported fields }
func (*GoFeatures) Descriptor ¶
func (*GoFeatures) Descriptor() ([]byte, []int)
Deprecated: Use GoFeatures.ProtoReflect.Descriptor instead.
func (*GoFeatures) GetApiLevel ¶
func (x *GoFeatures) GetApiLevel() GoFeatures_APILevel
func (*GoFeatures) GetLegacyUnmarshalJsonEnum ¶
func (x *GoFeatures) GetLegacyUnmarshalJsonEnum() bool
func (*GoFeatures) GetStripEnumPrefix ¶
func (x *GoFeatures) GetStripEnumPrefix() GoFeatures_StripEnumPrefix
func (*GoFeatures) ProtoMessage ¶
func (*GoFeatures) ProtoMessage()
func (*GoFeatures) ProtoReflect ¶
func (x *GoFeatures) ProtoReflect() protoreflect.Message
func (*GoFeatures) Reset ¶
func (x *GoFeatures) Reset()
func (*GoFeatures) String ¶
func (x *GoFeatures) String() string
type GoFeatures_APILevel ¶
type GoFeatures_APILevel int32
const ( // API_LEVEL_UNSPECIFIED results in selecting the OPEN API, // but needs to be a separate value to distinguish between // an explicitly set api level or a missing api level. GoFeatures_API_LEVEL_UNSPECIFIED GoFeatures_APILevel = 0 GoFeatures_API_OPEN GoFeatures_APILevel = 1 GoFeatures_API_HYBRID GoFeatures_APILevel = 2 GoFeatures_API_OPAQUE GoFeatures_APILevel = 3 )
func (GoFeatures_APILevel) Descriptor ¶
func (GoFeatures_APILevel) Descriptor() protoreflect.EnumDescriptor
func (GoFeatures_APILevel) Enum ¶
func (x GoFeatures_APILevel) Enum() *GoFeatures_APILevel
func (GoFeatures_APILevel) EnumDescriptor ¶
func (GoFeatures_APILevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use GoFeatures_APILevel.Descriptor instead.
func (GoFeatures_APILevel) Number ¶
func (x GoFeatures_APILevel) Number() protoreflect.EnumNumber
func (GoFeatures_APILevel) String ¶
func (x GoFeatures_APILevel) String() string
func (GoFeatures_APILevel) Type ¶
func (GoFeatures_APILevel) Type() protoreflect.EnumType
func (*GoFeatures_APILevel) UnmarshalJSON ¶
func (x *GoFeatures_APILevel) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type GoFeatures_StripEnumPrefix ¶
type GoFeatures_StripEnumPrefix int32
const ( GoFeatures_STRIP_ENUM_PREFIX_UNSPECIFIED GoFeatures_StripEnumPrefix = 0 GoFeatures_STRIP_ENUM_PREFIX_KEEP GoFeatures_StripEnumPrefix = 1 GoFeatures_STRIP_ENUM_PREFIX_GENERATE_BOTH GoFeatures_StripEnumPrefix = 2 GoFeatures_STRIP_ENUM_PREFIX_STRIP GoFeatures_StripEnumPrefix = 3 )
func (GoFeatures_StripEnumPrefix) Descriptor ¶
func (GoFeatures_StripEnumPrefix) Descriptor() protoreflect.EnumDescriptor
func (GoFeatures_StripEnumPrefix) Enum ¶
func (x GoFeatures_StripEnumPrefix) Enum() *GoFeatures_StripEnumPrefix
func (GoFeatures_StripEnumPrefix) EnumDescriptor ¶
func (GoFeatures_StripEnumPrefix) EnumDescriptor() ([]byte, []int)
Deprecated: Use GoFeatures_StripEnumPrefix.Descriptor instead.
func (GoFeatures_StripEnumPrefix) Number ¶
func (x GoFeatures_StripEnumPrefix) Number() protoreflect.EnumNumber
func (GoFeatures_StripEnumPrefix) String ¶
func (x GoFeatures_StripEnumPrefix) String() string
func (GoFeatures_StripEnumPrefix) Type ¶
func (GoFeatures_StripEnumPrefix) Type() protoreflect.EnumType
func (*GoFeatures_StripEnumPrefix) UnmarshalJSON ¶
func (x *GoFeatures_StripEnumPrefix) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
Source Files ¶
go_features.pb.go
- Version
- v1.36.6 (latest)
- Published
- Mar 24, 2025
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 6 hours ago –
Tools for package owners.