Documentation ¶
Index ¶
- Variables
- type ClosedEnum
- type ConstValues
- func (*ConstValues) Descriptor() ([]byte, []int)deprecated
- func (x *ConstValues) GetDependency() []string
- func (x *ConstValues) GetName() string
- func (x *ConstValues) GetOptions() *descriptorpb.FileOptions
- func (x *ConstValues) GetPackage() string
- func (x *ConstValues) GetValues() map[string]*anypb.Any
- func (*ConstValues) ProtoMessage()
- func (x *ConstValues) ProtoReflect() protoreflect.Message
- func (x *ConstValues) Reset()
- func (x *ConstValues) String() string
- type EditionsTest
- func (*EditionsTest) Descriptor() ([]byte, []int)deprecated
- func (x *EditionsTest) GetEnum() OpenEnum
- func (x *EditionsTest) GetName() string
- func (x *EditionsTest) GetNested() *EditionsTest_Nested
- func (*EditionsTest) ProtoMessage()
- func (x *EditionsTest) ProtoReflect() protoreflect.Message
- func (x *EditionsTest) Reset()
- func (x *EditionsTest) String() string
- type EditionsTest_Nested
- func (*EditionsTest_Nested) Descriptor() ([]byte, []int)deprecated
- func (x *EditionsTest_Nested) GetIds() []int64
- func (*EditionsTest_Nested) ProtoMessage()
- func (x *EditionsTest_Nested) ProtoReflect() protoreflect.Message
- func (x *EditionsTest_Nested) Reset()
- func (x *EditionsTest_Nested) String() string
- type OpenEnum
- type Proto2Test
- type Proto2TestValue
- func (*Proto2TestValue) Descriptor() ([]byte, []int)deprecated
- func (x *Proto2TestValue) GetOneofInt32Value() int32
- func (x *Proto2TestValue) GetOneofStringValue() string
- func (m *Proto2TestValue) GetOneofValue() isProto2TestValue_OneofValue
- func (*Proto2TestValue) ProtoMessage()
- func (x *Proto2TestValue) ProtoReflect() protoreflect.Message
- func (x *Proto2TestValue) Reset()
- func (x *Proto2TestValue) String() string
- type Proto2TestValue_OneofInt32Value
- type Proto2TestValue_OneofStringValue
- type Proto3Test
- type ValidateTest
- type ValidateTestCase
- func (*ValidateTestCase) Descriptor() ([]byte, []int)deprecated
- func (x *ValidateTestCase) GetDynamic() *anypb.Any
- func (x *ValidateTestCase) GetFloatGtLt() float32
- func (x *ValidateTestCase) GetStringMap() map[string]string
- func (*ValidateTestCase) ProtoMessage()
- func (x *ValidateTestCase) ProtoReflect() protoreflect.Message
- func (x *ValidateTestCase) Reset()
- func (x *ValidateTestCase) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( OpenEnum_name = map[int32]string{ 0: "OPEN_ENUM_UNSPECIFIED", } OpenEnum_value = map[string]int32{ "OPEN_ENUM_UNSPECIFIED": 0, } )
Enum value maps for OpenEnum.
View Source
var ( ClosedEnum_name = map[int32]string{ 0: "CLOSED_ENUM_UNSPECIFIED", } ClosedEnum_value = map[string]int32{ "CLOSED_ENUM_UNSPECIFIED": 0, } )
Enum value maps for ClosedEnum.
View Source
var ( // optional string p2t_string_ext = 100; E_P2TStringExt = &file_buf_protoyaml_test_v1_pb2_proto_extTypes[0] // repeated string p2t_repeated_string_ext = 101; E_P2TRepeatedStringExt = &file_buf_protoyaml_test_v1_pb2_proto_extTypes[1] )
Extension fields to Proto2Test.
View Source
var File_buf_protoyaml_test_v1_const_proto protoreflect.FileDescriptor
View Source
var File_buf_protoyaml_test_v1_editions_proto protoreflect.FileDescriptor
View Source
var File_buf_protoyaml_test_v1_pb2_proto protoreflect.FileDescriptor
View Source
var File_buf_protoyaml_test_v1_pb3_proto protoreflect.FileDescriptor
View Source
var File_buf_protoyaml_test_v1_validate_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type ClosedEnum ¶
type ClosedEnum int32
const (
ClosedEnum_CLOSED_ENUM_UNSPECIFIED ClosedEnum = 0
)
func (ClosedEnum) Descriptor ¶
func (ClosedEnum) Descriptor() protoreflect.EnumDescriptor
func (ClosedEnum) Enum ¶
func (x ClosedEnum) Enum() *ClosedEnum
func (ClosedEnum) EnumDescriptor
deprecated
func (ClosedEnum) EnumDescriptor() ([]byte, []int)
Deprecated: Use ClosedEnum.Descriptor instead.
func (ClosedEnum) Number ¶
func (x ClosedEnum) Number() protoreflect.EnumNumber
func (ClosedEnum) String ¶
func (x ClosedEnum) String() string
func (ClosedEnum) Type ¶
func (ClosedEnum) Type() protoreflect.EnumType
type ConstValues ¶
type ConstValues struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // file name, relative to root of source tree Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"` // e.g. "foo", "foo.bar", etc. Dependency []string `protobuf:"bytes,3,rep,name=dependency,proto3" json:"dependency,omitempty"` Options *descriptorpb.FileOptions `protobuf:"bytes,8,opt,name=options,proto3" json:"options,omitempty"` Values map[string]*anypb.Any `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ConstValues) Descriptor
deprecated
func (*ConstValues) Descriptor() ([]byte, []int)
Deprecated: Use ConstValues.ProtoReflect.Descriptor instead.
func (*ConstValues) GetDependency ¶
func (x *ConstValues) GetDependency() []string
func (*ConstValues) GetName ¶
func (x *ConstValues) GetName() string
func (*ConstValues) GetOptions ¶
func (x *ConstValues) GetOptions() *descriptorpb.FileOptions
func (*ConstValues) GetPackage ¶
func (x *ConstValues) GetPackage() string
func (*ConstValues) ProtoMessage ¶
func (*ConstValues) ProtoMessage()
func (*ConstValues) ProtoReflect ¶
func (x *ConstValues) ProtoReflect() protoreflect.Message
func (*ConstValues) Reset ¶
func (x *ConstValues) Reset()
func (*ConstValues) String ¶
func (x *ConstValues) String() string
type EditionsTest ¶
type EditionsTest struct { Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"` Nested *EditionsTest_Nested `protobuf:"group,2,opt,name=Nested,json=nested" json:"nested,omitempty"` Enum OpenEnum `protobuf:"varint,3,opt,name=enum,enum=buf.protoyaml.test.v1.OpenEnum" json:"enum,omitempty"` // contains filtered or unexported fields }
func (*EditionsTest) Descriptor
deprecated
func (*EditionsTest) Descriptor() ([]byte, []int)
Deprecated: Use EditionsTest.ProtoReflect.Descriptor instead.
func (*EditionsTest) GetEnum ¶
func (x *EditionsTest) GetEnum() OpenEnum
func (*EditionsTest) GetName ¶
func (x *EditionsTest) GetName() string
func (*EditionsTest) GetNested ¶
func (x *EditionsTest) GetNested() *EditionsTest_Nested
func (*EditionsTest) ProtoMessage ¶
func (*EditionsTest) ProtoMessage()
func (*EditionsTest) ProtoReflect ¶
func (x *EditionsTest) ProtoReflect() protoreflect.Message
func (*EditionsTest) Reset ¶
func (x *EditionsTest) Reset()
func (*EditionsTest) String ¶
func (x *EditionsTest) String() string
type EditionsTest_Nested ¶
type EditionsTest_Nested struct { Ids []int64 `protobuf:"varint,1,rep,name=ids" json:"ids,omitempty"` // contains filtered or unexported fields }
func (*EditionsTest_Nested) Descriptor
deprecated
func (*EditionsTest_Nested) Descriptor() ([]byte, []int)
Deprecated: Use EditionsTest_Nested.ProtoReflect.Descriptor instead.
func (*EditionsTest_Nested) GetIds ¶
func (x *EditionsTest_Nested) GetIds() []int64
func (*EditionsTest_Nested) ProtoMessage ¶
func (*EditionsTest_Nested) ProtoMessage()
func (*EditionsTest_Nested) ProtoReflect ¶
func (x *EditionsTest_Nested) ProtoReflect() protoreflect.Message
func (*EditionsTest_Nested) Reset ¶
func (x *EditionsTest_Nested) Reset()
func (*EditionsTest_Nested) String ¶
func (x *EditionsTest_Nested) String() string
type OpenEnum ¶
type OpenEnum int32
const (
OpenEnum_OPEN_ENUM_UNSPECIFIED OpenEnum = 0
)
func (OpenEnum) Descriptor ¶
func (OpenEnum) Descriptor() protoreflect.EnumDescriptor
func (OpenEnum) EnumDescriptor
deprecated
func (OpenEnum) Number ¶
func (x OpenEnum) Number() protoreflect.EnumNumber
func (OpenEnum) Type ¶
func (OpenEnum) Type() protoreflect.EnumType
type Proto2Test ¶
type Proto2Test struct { Values []*Proto2TestValue `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"` // contains filtered or unexported fields }
func (*Proto2Test) Descriptor
deprecated
func (*Proto2Test) Descriptor() ([]byte, []int)
Deprecated: Use Proto2Test.ProtoReflect.Descriptor instead.
func (*Proto2Test) GetValues ¶
func (x *Proto2Test) GetValues() []*Proto2TestValue
func (*Proto2Test) ProtoMessage ¶
func (*Proto2Test) ProtoMessage()
func (*Proto2Test) ProtoReflect ¶
func (x *Proto2Test) ProtoReflect() protoreflect.Message
func (*Proto2Test) Reset ¶
func (x *Proto2Test) Reset()
func (*Proto2Test) String ¶
func (x *Proto2Test) String() string
type Proto2TestValue ¶
type Proto2TestValue struct { // Types that are assignable to OneofValue: // // *Proto2TestValue_OneofStringValue // *Proto2TestValue_OneofInt32Value OneofValue isProto2TestValue_OneofValue `protobuf_oneof:"oneof_value"` // contains filtered or unexported fields }
func (*Proto2TestValue) Descriptor
deprecated
func (*Proto2TestValue) Descriptor() ([]byte, []int)
Deprecated: Use Proto2TestValue.ProtoReflect.Descriptor instead.
func (*Proto2TestValue) GetOneofInt32Value ¶
func (x *Proto2TestValue) GetOneofInt32Value() int32
func (*Proto2TestValue) GetOneofStringValue ¶
func (x *Proto2TestValue) GetOneofStringValue() string
func (*Proto2TestValue) GetOneofValue ¶
func (m *Proto2TestValue) GetOneofValue() isProto2TestValue_OneofValue
func (*Proto2TestValue) ProtoMessage ¶
func (*Proto2TestValue) ProtoMessage()
func (*Proto2TestValue) ProtoReflect ¶
func (x *Proto2TestValue) ProtoReflect() protoreflect.Message
func (*Proto2TestValue) Reset ¶
func (x *Proto2TestValue) Reset()
func (*Proto2TestValue) String ¶
func (x *Proto2TestValue) String() string
type Proto2TestValue_OneofInt32Value ¶
type Proto2TestValue_OneofInt32Value struct {
OneofInt32Value int32 `protobuf:"varint,2,opt,name=oneof_int32_value,json=oneofInt32Value,oneof"`
}
type Proto2TestValue_OneofStringValue ¶
type Proto2TestValue_OneofStringValue struct {
OneofStringValue string `protobuf:"bytes,1,opt,name=oneof_string_value,json=oneofStringValue,oneof"`
}
type Proto3Test ¶
type Proto3Test struct { Values []*proto3.TestAllTypes `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
func (*Proto3Test) Descriptor
deprecated
func (*Proto3Test) Descriptor() ([]byte, []int)
Deprecated: Use Proto3Test.ProtoReflect.Descriptor instead.
func (*Proto3Test) GetValues ¶
func (x *Proto3Test) GetValues() []*proto3.TestAllTypes
func (*Proto3Test) ProtoMessage ¶
func (*Proto3Test) ProtoMessage()
func (*Proto3Test) ProtoReflect ¶
func (x *Proto3Test) ProtoReflect() protoreflect.Message
func (*Proto3Test) Reset ¶
func (x *Proto3Test) Reset()
func (*Proto3Test) String ¶
func (x *Proto3Test) String() string
type ValidateTest ¶
type ValidateTest struct { Cases []*ValidateTestCase `protobuf:"bytes,1,rep,name=cases,proto3" json:"cases,omitempty"` // contains filtered or unexported fields }
func (*ValidateTest) Descriptor
deprecated
func (*ValidateTest) Descriptor() ([]byte, []int)
Deprecated: Use ValidateTest.ProtoReflect.Descriptor instead.
func (*ValidateTest) GetCases ¶
func (x *ValidateTest) GetCases() []*ValidateTestCase
func (*ValidateTest) ProtoMessage ¶
func (*ValidateTest) ProtoMessage()
func (*ValidateTest) ProtoReflect ¶
func (x *ValidateTest) ProtoReflect() protoreflect.Message
func (*ValidateTest) Reset ¶
func (x *ValidateTest) Reset()
func (*ValidateTest) String ¶
func (x *ValidateTest) String() string
type ValidateTestCase ¶
type ValidateTestCase struct { Dynamic *anypb.Any `protobuf:"bytes,1,opt,name=dynamic,proto3" json:"dynamic,omitempty"` FloatGtLt float32 `protobuf:"fixed32,2,opt,name=float_gt_lt,json=floatGtLt,proto3" json:"float_gt_lt,omitempty"` StringMap map[string]string `` /* 176-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ValidateTestCase) Descriptor
deprecated
func (*ValidateTestCase) Descriptor() ([]byte, []int)
Deprecated: Use ValidateTestCase.ProtoReflect.Descriptor instead.
func (*ValidateTestCase) GetDynamic ¶
func (x *ValidateTestCase) GetDynamic() *anypb.Any
func (*ValidateTestCase) GetFloatGtLt ¶
func (x *ValidateTestCase) GetFloatGtLt() float32
func (*ValidateTestCase) GetStringMap ¶
func (x *ValidateTestCase) GetStringMap() map[string]string
func (*ValidateTestCase) ProtoMessage ¶
func (*ValidateTestCase) ProtoMessage()
func (*ValidateTestCase) ProtoReflect ¶
func (x *ValidateTestCase) ProtoReflect() protoreflect.Message
func (*ValidateTestCase) Reset ¶
func (x *ValidateTestCase) Reset()
func (*ValidateTestCase) String ¶
func (x *ValidateTestCase) String() string
Click to show internal directories.
Click to hide internal directories.