examplev1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const AllRuleTypes_OneofField_case case_AllRuleTypes_RequiredOneof = 2
View Source
const AllRuleTypes_RequiredOneof_not_set_case case_AllRuleTypes_RequiredOneof = 0
View Source
const MsgHasOneof_Msg_case case_MsgHasOneof_O = 3
View Source
const MsgHasOneof_O_not_set_case case_MsgHasOneof_O = 0
View Source
const MsgHasOneof_X_case case_MsgHasOneof_O = 1
View Source
const MsgHasOneof_Y_case case_MsgHasOneof_O = 2
View Source
const NestedRules_OneofField_case case_NestedRules_RequiredOneof = 5
View Source
const NestedRules_RequiredOneof_not_set_case case_NestedRules_RequiredOneof = 0

Variables

View Source
var (
	// repeated int32 abs_not_in = 1800;
	E_AbsNotIn = &file_tests_example_v1_predefined_proto_extTypes[0]
)

Extension fields to validate.Int32Rules.

View Source
var (
	// optional bool this_equals_rule = 1800;
	E_ThisEqualsRule = &file_tests_example_v1_predefined_proto_extTypes[1]
)

Extension fields to validate.BoolRules.

View Source
var File_tests_example_v1_compile_proto protoreflect.FileDescriptor
View Source
var File_tests_example_v1_example_proto protoreflect.FileDescriptor
View Source
var File_tests_example_v1_filter_proto protoreflect.FileDescriptor
View Source
var File_tests_example_v1_predefined_proto protoreflect.FileDescriptor
View Source
var File_tests_example_v1_validations_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AllRuleTypes

type AllRuleTypes struct {
	Field int32 `protobuf:"varint,1,opt,name=field,proto3" json:"field,omitempty"`
	// Types that are valid to be assigned to RequiredOneof:
	//
	//	*AllRuleTypes_OneofField
	RequiredOneof isAllRuleTypes_RequiredOneof `protobuf_oneof:"required_oneof"`
	// contains filtered or unexported fields
}

func (*AllRuleTypes) ClearOneofField

func (x *AllRuleTypes) ClearOneofField()

func (*AllRuleTypes) ClearRequiredOneof

func (x *AllRuleTypes) ClearRequiredOneof()

func (*AllRuleTypes) GetField

func (x *AllRuleTypes) GetField() int32

func (*AllRuleTypes) GetOneofField

func (x *AllRuleTypes) GetOneofField() string

func (*AllRuleTypes) GetRequiredOneof

func (x *AllRuleTypes) GetRequiredOneof() isAllRuleTypes_RequiredOneof

func (*AllRuleTypes) HasOneofField

func (x *AllRuleTypes) HasOneofField() bool

func (*AllRuleTypes) HasRequiredOneof

func (x *AllRuleTypes) HasRequiredOneof() bool

func (*AllRuleTypes) ProtoMessage

func (*AllRuleTypes) ProtoMessage()

func (*AllRuleTypes) ProtoReflect

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

func (*AllRuleTypes) Reset

func (x *AllRuleTypes) Reset()

func (*AllRuleTypes) SetField

func (x *AllRuleTypes) SetField(v int32)

func (*AllRuleTypes) SetOneofField

func (x *AllRuleTypes) SetOneofField(v string)

func (*AllRuleTypes) String

func (x *AllRuleTypes) String() string

func (*AllRuleTypes) WhichRequiredOneof

func (x *AllRuleTypes) WhichRequiredOneof() case_AllRuleTypes_RequiredOneof

type AllRuleTypes_OneofField

type AllRuleTypes_OneofField struct {
	OneofField string `protobuf:"bytes,2,opt,name=oneof_field,json=oneofField,proto3,oneof"`
}

type AllRuleTypes_builder

type AllRuleTypes_builder struct {
	Field int32
	// Fields of oneof RequiredOneof:
	OneofField *string
	// contains filtered or unexported fields
}

func (AllRuleTypes_builder) Build

func (b0 AllRuleTypes_builder) Build() *AllRuleTypes

type CelMapOnARepeated

type CelMapOnARepeated struct {
	Values []*CelMapOnARepeated_Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

https://github.com/bufbuild/protovalidate/issues/92

func (*CelMapOnARepeated) GetValues

func (x *CelMapOnARepeated) GetValues() []*CelMapOnARepeated_Value

func (*CelMapOnARepeated) ProtoMessage

func (*CelMapOnARepeated) ProtoMessage()

func (*CelMapOnARepeated) ProtoReflect

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

func (*CelMapOnARepeated) Reset

func (x *CelMapOnARepeated) Reset()

func (*CelMapOnARepeated) SetValues

func (x *CelMapOnARepeated) SetValues(v []*CelMapOnARepeated_Value)

func (*CelMapOnARepeated) String

func (x *CelMapOnARepeated) String() string

type CelMapOnARepeated_Value

type CelMapOnARepeated_Value struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CelMapOnARepeated_Value) GetName

func (x *CelMapOnARepeated_Value) GetName() string

func (*CelMapOnARepeated_Value) ProtoMessage

func (*CelMapOnARepeated_Value) ProtoMessage()

func (*CelMapOnARepeated_Value) ProtoReflect

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

func (*CelMapOnARepeated_Value) Reset

func (x *CelMapOnARepeated_Value) Reset()

func (*CelMapOnARepeated_Value) SetName

func (x *CelMapOnARepeated_Value) SetName(v string)

func (*CelMapOnARepeated_Value) String

func (x *CelMapOnARepeated_Value) String() string

type CelMapOnARepeated_Value_builder

type CelMapOnARepeated_Value_builder struct {
	Name string
	// contains filtered or unexported fields
}

func (CelMapOnARepeated_Value_builder) Build

type CelMapOnARepeated_builder

type CelMapOnARepeated_builder struct {
	Values []*CelMapOnARepeated_Value
	// contains filtered or unexported fields
}

func (CelMapOnARepeated_builder) Build

type Coordinates

type Coordinates struct {
	Lat float64 `protobuf:"fixed64,1,opt,name=lat,proto3" json:"lat,omitempty"`
	Lng float64 `protobuf:"fixed64,2,opt,name=lng,proto3" json:"lng,omitempty"`
	// contains filtered or unexported fields
}

func (*Coordinates) GetLat

func (x *Coordinates) GetLat() float64

func (*Coordinates) GetLng

func (x *Coordinates) GetLng() float64

func (*Coordinates) ProtoMessage

func (*Coordinates) ProtoMessage()

func (*Coordinates) ProtoReflect

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

func (*Coordinates) Reset

func (x *Coordinates) Reset()

func (*Coordinates) SetLat

func (x *Coordinates) SetLat(v float64)

func (*Coordinates) SetLng

func (x *Coordinates) SetLng(v float64)

func (*Coordinates) String

func (x *Coordinates) String() string

type Coordinates_builder

type Coordinates_builder struct {
	Lat float64
	Lng float64
	// contains filtered or unexported fields
}

func (Coordinates_builder) Build

func (b0 Coordinates_builder) Build() *Coordinates

type F1

type F1 struct {
	NeedThis string          `protobuf:"bytes,1,opt,name=need_this,json=needThis,proto3" json:"need_this,omitempty"`
	Field    *FieldWithIssue `protobuf:"bytes,2,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*F1) ClearField

func (x *F1) ClearField()

func (*F1) GetField

func (x *F1) GetField() *FieldWithIssue

func (*F1) GetNeedThis

func (x *F1) GetNeedThis() string

func (*F1) HasField

func (x *F1) HasField() bool

func (*F1) ProtoMessage

func (*F1) ProtoMessage()

func (*F1) ProtoReflect

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

func (*F1) Reset

func (x *F1) Reset()

func (*F1) SetField

func (x *F1) SetField(v *FieldWithIssue)

func (*F1) SetNeedThis

func (x *F1) SetNeedThis(v string)

func (*F1) String

func (x *F1) String() string

type F1_builder

type F1_builder struct {
	NeedThis string
	Field    *FieldWithIssue
	// contains filtered or unexported fields
}

func (F1_builder) Build

func (b0 F1_builder) Build() *F1

type F2

type F2 struct {
	Field *FieldWithIssue `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*F2) ClearField

func (x *F2) ClearField()

func (*F2) GetField

func (x *F2) GetField() *FieldWithIssue

func (*F2) HasField

func (x *F2) HasField() bool

func (*F2) ProtoMessage

func (*F2) ProtoMessage()

func (*F2) ProtoReflect

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

func (*F2) Reset

func (x *F2) Reset()

func (*F2) SetField

func (x *F2) SetField(v *FieldWithIssue)

func (*F2) String

func (x *F2) String() string

type F2_builder

type F2_builder struct {
	Field *FieldWithIssue
	// contains filtered or unexported fields
}

func (F2_builder) Build

func (b0 F2_builder) Build() *F2

type FieldOfTypeAny

type FieldOfTypeAny struct {
	Any *anypb.Any `protobuf:"bytes,1,opt,name=any,proto3" json:"any,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldOfTypeAny) ClearAny

func (x *FieldOfTypeAny) ClearAny()

func (*FieldOfTypeAny) GetAny

func (x *FieldOfTypeAny) GetAny() *anypb.Any

func (*FieldOfTypeAny) HasAny

func (x *FieldOfTypeAny) HasAny() bool

func (*FieldOfTypeAny) ProtoMessage

func (*FieldOfTypeAny) ProtoMessage()

func (*FieldOfTypeAny) ProtoReflect

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

func (*FieldOfTypeAny) Reset

func (x *FieldOfTypeAny) Reset()

func (*FieldOfTypeAny) SetAny

func (x *FieldOfTypeAny) SetAny(v *anypb.Any)

func (*FieldOfTypeAny) String

func (x *FieldOfTypeAny) String() string

type FieldOfTypeAny_builder

type FieldOfTypeAny_builder struct {
	Any *anypb.Any
	// contains filtered or unexported fields
}

func (FieldOfTypeAny_builder) Build

type FieldWithIssue

type FieldWithIssue struct {
	F1   *F1    `protobuf:"bytes,1,opt,name=f1,proto3" json:"f1,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*FieldWithIssue) ClearF1

func (x *FieldWithIssue) ClearF1()

func (*FieldWithIssue) GetF1

func (x *FieldWithIssue) GetF1() *F1

func (*FieldWithIssue) GetName

func (x *FieldWithIssue) GetName() string

func (*FieldWithIssue) HasF1

func (x *FieldWithIssue) HasF1() bool

func (*FieldWithIssue) ProtoMessage

func (*FieldWithIssue) ProtoMessage()

func (*FieldWithIssue) ProtoReflect

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

func (*FieldWithIssue) Reset

func (x *FieldWithIssue) Reset()

func (*FieldWithIssue) SetF1

func (x *FieldWithIssue) SetF1(v *F1)

func (*FieldWithIssue) SetName

func (x *FieldWithIssue) SetName(v string)

func (*FieldWithIssue) String

func (x *FieldWithIssue) String() string

type FieldWithIssue_builder

type FieldWithIssue_builder struct {
	F1   *F1
	Name string
	// contains filtered or unexported fields
}

func (FieldWithIssue_builder) Build

type HasMsgExprs

type HasMsgExprs struct {
	X int32 `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Y int32 `protobuf:"varint,2,opt,name=y,proto3" json:"y,omitempty"`
	// contains filtered or unexported fields
}

func (*HasMsgExprs) GetX

func (x *HasMsgExprs) GetX() int32

func (*HasMsgExprs) GetY

func (x *HasMsgExprs) GetY() int32

func (*HasMsgExprs) ProtoMessage

func (*HasMsgExprs) ProtoMessage()

func (*HasMsgExprs) ProtoReflect

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

func (*HasMsgExprs) Reset

func (x *HasMsgExprs) Reset()

func (*HasMsgExprs) SetX

func (x *HasMsgExprs) SetX(v int32)

func (*HasMsgExprs) SetY

func (x *HasMsgExprs) SetY(v int32)

func (*HasMsgExprs) String

func (x *HasMsgExprs) String() string

type HasMsgExprs_builder

type HasMsgExprs_builder struct {
	X int32
	Y int32
	// contains filtered or unexported fields
}

func (HasMsgExprs_builder) Build

func (b0 HasMsgExprs_builder) Build() *HasMsgExprs

type InvalidRules

type InvalidRules struct {
	Field int32 `protobuf:"varint,1,opt,name=field,proto3" json:"field,omitempty"`
	// contains filtered or unexported fields
}

func (*InvalidRules) GetField

func (x *InvalidRules) GetField() int32

func (*InvalidRules) ProtoMessage

func (*InvalidRules) ProtoMessage()

func (*InvalidRules) ProtoReflect

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

func (*InvalidRules) Reset

func (x *InvalidRules) Reset()

func (*InvalidRules) SetField

func (x *InvalidRules) SetField(v int32)

func (*InvalidRules) String

func (x *InvalidRules) String() string

type InvalidRules_builder

type InvalidRules_builder struct {
	Field int32
	// contains filtered or unexported fields
}

func (InvalidRules_builder) Build

func (b0 InvalidRules_builder) Build() *InvalidRules

type Issue148

type Issue148 struct {
	Test *int32 `protobuf:"varint,1,opt,name=test" json:"test,omitempty"`
	// contains filtered or unexported fields
}

https://github.com/bufbuild/protovalidate-go/issues/148

func (*Issue148) ClearTest

func (x *Issue148) ClearTest()

func (*Issue148) GetTest

func (x *Issue148) GetTest() int32

func (*Issue148) HasTest

func (x *Issue148) HasTest() bool

func (*Issue148) ProtoMessage

func (*Issue148) ProtoMessage()

func (*Issue148) ProtoReflect

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

func (*Issue148) Reset

func (x *Issue148) Reset()

func (*Issue148) SetTest

func (x *Issue148) SetTest(v int32)

func (*Issue148) String

func (x *Issue148) String() string

type Issue148_builder

type Issue148_builder struct {
	Test *int32
	// contains filtered or unexported fields
}

func (Issue148_builder) Build

func (b0 Issue148_builder) Build() *Issue148

type Issue187

type Issue187 struct {
	FalseField *bool `protobuf:"varint,1,opt,name=false_field,json=falseField" json:"false_field,omitempty"`
	TrueField  *bool `protobuf:"varint,2,opt,name=true_field,json=trueField" json:"true_field,omitempty"`
	// contains filtered or unexported fields
}

https://github.com/bufbuild/protovalidate-go/issues/187

func (*Issue187) ClearFalseField

func (x *Issue187) ClearFalseField()

func (*Issue187) ClearTrueField

func (x *Issue187) ClearTrueField()

func (*Issue187) GetFalseField

func (x *Issue187) GetFalseField() bool

func (*Issue187) GetTrueField

func (x *Issue187) GetTrueField() bool

func (*Issue187) HasFalseField

func (x *Issue187) HasFalseField() bool

func (*Issue187) HasTrueField

func (x *Issue187) HasTrueField() bool

func (*Issue187) ProtoMessage

func (*Issue187) ProtoMessage()

func (*Issue187) ProtoReflect

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

func (*Issue187) Reset

func (x *Issue187) Reset()

func (*Issue187) SetFalseField

func (x *Issue187) SetFalseField(v bool)

func (*Issue187) SetTrueField

func (x *Issue187) SetTrueField(v bool)

func (*Issue187) String

func (x *Issue187) String() string

type Issue187_builder

type Issue187_builder struct {
	FalseField *bool
	TrueField  *bool
	// contains filtered or unexported fields
}

func (Issue187_builder) Build

func (b0 Issue187_builder) Build() *Issue187

type Issue211

type Issue211 struct {
	Value *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Issue211) ClearValue

func (x *Issue211) ClearValue()

func (*Issue211) GetValue

func (x *Issue211) GetValue() *timestamppb.Timestamp

func (*Issue211) HasValue

func (x *Issue211) HasValue() bool

func (*Issue211) ProtoMessage

func (*Issue211) ProtoMessage()

func (*Issue211) ProtoReflect

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

func (*Issue211) Reset

func (x *Issue211) Reset()

func (*Issue211) SetValue

func (x *Issue211) SetValue(v *timestamppb.Timestamp)

func (*Issue211) String

func (x *Issue211) String() string

type Issue211_builder

type Issue211_builder struct {
	Value *timestamppb.Timestamp
	// contains filtered or unexported fields
}

func (Issue211_builder) Build

func (b0 Issue211_builder) Build() *Issue211

type LoopRecursiveA

type LoopRecursiveA struct {
	B *LoopRecursiveB `protobuf:"bytes,1,opt,name=b,proto3" json:"b,omitempty"`
	// contains filtered or unexported fields
}

func (*LoopRecursiveA) ClearB

func (x *LoopRecursiveA) ClearB()

func (*LoopRecursiveA) GetB

func (x *LoopRecursiveA) GetB() *LoopRecursiveB

func (*LoopRecursiveA) HasB

func (x *LoopRecursiveA) HasB() bool

func (*LoopRecursiveA) ProtoMessage

func (*LoopRecursiveA) ProtoMessage()

func (*LoopRecursiveA) ProtoReflect

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

func (*LoopRecursiveA) Reset

func (x *LoopRecursiveA) Reset()

func (*LoopRecursiveA) SetB

func (x *LoopRecursiveA) SetB(v *LoopRecursiveB)

func (*LoopRecursiveA) String

func (x *LoopRecursiveA) String() string

type LoopRecursiveA_builder

type LoopRecursiveA_builder struct {
	B *LoopRecursiveB
	// contains filtered or unexported fields
}

func (LoopRecursiveA_builder) Build

type LoopRecursiveB

type LoopRecursiveB struct {
	A *LoopRecursiveA `protobuf:"bytes,1,opt,name=a,proto3" json:"a,omitempty"`
	// contains filtered or unexported fields
}

func (*LoopRecursiveB) ClearA

func (x *LoopRecursiveB) ClearA()

func (*LoopRecursiveB) GetA

func (x *LoopRecursiveB) GetA() *LoopRecursiveA

func (*LoopRecursiveB) HasA

func (x *LoopRecursiveB) HasA() bool

func (*LoopRecursiveB) ProtoMessage

func (*LoopRecursiveB) ProtoMessage()

func (*LoopRecursiveB) ProtoReflect

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

func (*LoopRecursiveB) Reset

func (x *LoopRecursiveB) Reset()

func (*LoopRecursiveB) SetA

func (x *LoopRecursiveB) SetA(v *LoopRecursiveA)

func (*LoopRecursiveB) String

func (x *LoopRecursiveB) String() string

type LoopRecursiveB_builder

type LoopRecursiveB_builder struct {
	A *LoopRecursiveA
	// contains filtered or unexported fields
}

func (LoopRecursiveB_builder) Build

type MismatchRules

type MismatchRules struct {
	NoRule              bool   `protobuf:"varint,1,opt,name=no_rule,json=noRule,proto3" json:"no_rule,omitempty"`
	StringFieldBoolRule string `protobuf:"bytes,2,opt,name=string_field_bool_rule,json=stringFieldBoolRule,proto3" json:"string_field_bool_rule,omitempty"`
	// contains filtered or unexported fields
}

func (*MismatchRules) GetNoRule

func (x *MismatchRules) GetNoRule() bool

func (*MismatchRules) GetStringFieldBoolRule

func (x *MismatchRules) GetStringFieldBoolRule() string

func (*MismatchRules) ProtoMessage

func (*MismatchRules) ProtoMessage()

func (*MismatchRules) ProtoReflect

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

func (*MismatchRules) Reset

func (x *MismatchRules) Reset()

func (*MismatchRules) SetNoRule

func (x *MismatchRules) SetNoRule(v bool)

func (*MismatchRules) SetStringFieldBoolRule

func (x *MismatchRules) SetStringFieldBoolRule(v string)

func (*MismatchRules) String

func (x *MismatchRules) String() string

type MismatchRules_builder

type MismatchRules_builder struct {
	NoRule              bool
	StringFieldBoolRule string
	// contains filtered or unexported fields
}

func (MismatchRules_builder) Build

type MixedValidInvalidRules

type MixedValidInvalidRules struct {
	StringFieldBoolRule string `protobuf:"bytes,1,opt,name=string_field_bool_rule,json=stringFieldBoolRule,proto3" json:"string_field_bool_rule,omitempty"`
	ValidStringRule     string `protobuf:"bytes,2,opt,name=valid_string_rule,json=validStringRule,proto3" json:"valid_string_rule,omitempty"`
	// contains filtered or unexported fields
}

func (*MixedValidInvalidRules) GetStringFieldBoolRule

func (x *MixedValidInvalidRules) GetStringFieldBoolRule() string

func (*MixedValidInvalidRules) GetValidStringRule

func (x *MixedValidInvalidRules) GetValidStringRule() string

func (*MixedValidInvalidRules) ProtoMessage

func (*MixedValidInvalidRules) ProtoMessage()

func (*MixedValidInvalidRules) ProtoReflect

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

func (*MixedValidInvalidRules) Reset

func (x *MixedValidInvalidRules) Reset()

func (*MixedValidInvalidRules) SetStringFieldBoolRule

func (x *MixedValidInvalidRules) SetStringFieldBoolRule(v string)

func (*MixedValidInvalidRules) SetValidStringRule

func (x *MixedValidInvalidRules) SetValidStringRule(v string)

func (*MixedValidInvalidRules) String

func (x *MixedValidInvalidRules) String() string

type MixedValidInvalidRules_builder

type MixedValidInvalidRules_builder struct {
	StringFieldBoolRule string
	ValidStringRule     string
	// contains filtered or unexported fields
}

func (MixedValidInvalidRules_builder) Build

type MsgHasMap

type MsgHasMap struct {
	Int32Map   map[int32]int32           `` /* 145-byte string literal not displayed */
	StringMap  map[string]string         `` /* 162-byte string literal not displayed */
	MessageMap map[int64]*LoopRecursiveA `` /* 166-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*MsgHasMap) GetInt32Map

func (x *MsgHasMap) GetInt32Map() map[int32]int32

func (*MsgHasMap) GetMessageMap

func (x *MsgHasMap) GetMessageMap() map[int64]*LoopRecursiveA

func (*MsgHasMap) GetStringMap

func (x *MsgHasMap) GetStringMap() map[string]string

func (*MsgHasMap) ProtoMessage

func (*MsgHasMap) ProtoMessage()

func (*MsgHasMap) ProtoReflect

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

func (*MsgHasMap) Reset

func (x *MsgHasMap) Reset()

func (*MsgHasMap) SetInt32Map

func (x *MsgHasMap) SetInt32Map(v map[int32]int32)

func (*MsgHasMap) SetMessageMap

func (x *MsgHasMap) SetMessageMap(v map[int64]*LoopRecursiveA)

func (*MsgHasMap) SetStringMap

func (x *MsgHasMap) SetStringMap(v map[string]string)

func (*MsgHasMap) String

func (x *MsgHasMap) String() string

type MsgHasMap_builder

type MsgHasMap_builder struct {
	Int32Map   map[int32]int32
	StringMap  map[string]string
	MessageMap map[int64]*LoopRecursiveA
	// contains filtered or unexported fields
}

func (MsgHasMap_builder) Build

func (b0 MsgHasMap_builder) Build() *MsgHasMap

type MsgHasOneof

type MsgHasOneof struct {

	// Types that are valid to be assigned to O:
	//
	//	*MsgHasOneof_X
	//	*MsgHasOneof_Y
	//	*MsgHasOneof_Msg
	O isMsgHasOneof_O `protobuf_oneof:"o"`
	// contains filtered or unexported fields
}

func (*MsgHasOneof) ClearMsg

func (x *MsgHasOneof) ClearMsg()

func (*MsgHasOneof) ClearO

func (x *MsgHasOneof) ClearO()

func (*MsgHasOneof) ClearX

func (x *MsgHasOneof) ClearX()

func (*MsgHasOneof) ClearY

func (x *MsgHasOneof) ClearY()

func (*MsgHasOneof) GetMsg

func (x *MsgHasOneof) GetMsg() *HasMsgExprs

func (*MsgHasOneof) GetO

func (x *MsgHasOneof) GetO() isMsgHasOneof_O

func (*MsgHasOneof) GetX

func (x *MsgHasOneof) GetX() string

func (*MsgHasOneof) GetY

func (x *MsgHasOneof) GetY() int32

func (*MsgHasOneof) HasMsg

func (x *MsgHasOneof) HasMsg() bool

func (*MsgHasOneof) HasO

func (x *MsgHasOneof) HasO() bool

func (*MsgHasOneof) HasX

func (x *MsgHasOneof) HasX() bool

func (*MsgHasOneof) HasY

func (x *MsgHasOneof) HasY() bool

func (*MsgHasOneof) ProtoMessage

func (*MsgHasOneof) ProtoMessage()

func (*MsgHasOneof) ProtoReflect

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

func (*MsgHasOneof) Reset

func (x *MsgHasOneof) Reset()

func (*MsgHasOneof) SetMsg

func (x *MsgHasOneof) SetMsg(v *HasMsgExprs)

func (*MsgHasOneof) SetX

func (x *MsgHasOneof) SetX(v string)

func (*MsgHasOneof) SetY

func (x *MsgHasOneof) SetY(v int32)

func (*MsgHasOneof) String

func (x *MsgHasOneof) String() string

func (*MsgHasOneof) WhichO

func (x *MsgHasOneof) WhichO() case_MsgHasOneof_O

type MsgHasOneof_Msg

type MsgHasOneof_Msg struct {
	Msg *HasMsgExprs `protobuf:"bytes,3,opt,name=msg,proto3,oneof"`
}

type MsgHasOneof_X

type MsgHasOneof_X struct {
	X string `protobuf:"bytes,1,opt,name=x,proto3,oneof"`
}

type MsgHasOneof_Y

type MsgHasOneof_Y struct {
	Y int32 `protobuf:"varint,2,opt,name=y,proto3,oneof"`
}

type MsgHasOneof_builder

type MsgHasOneof_builder struct {

	// Fields of oneof O:
	X   *string
	Y   *int32
	Msg *HasMsgExprs
	// contains filtered or unexported fields
}

func (MsgHasOneof_builder) Build

func (b0 MsgHasOneof_builder) Build() *MsgHasOneof

type MsgHasRepeated

type MsgHasRepeated struct {
	X []float32      `protobuf:"fixed32,1,rep,packed,name=x,proto3" json:"x,omitempty"`
	Y []string       `protobuf:"bytes,2,rep,name=y,proto3" json:"y,omitempty"`
	Z []*HasMsgExprs `protobuf:"bytes,3,rep,name=z,proto3" json:"z,omitempty"`
	// contains filtered or unexported fields
}

func (*MsgHasRepeated) GetX

func (x *MsgHasRepeated) GetX() []float32

func (*MsgHasRepeated) GetY

func (x *MsgHasRepeated) GetY() []string

func (*MsgHasRepeated) GetZ

func (x *MsgHasRepeated) GetZ() []*HasMsgExprs

func (*MsgHasRepeated) ProtoMessage

func (*MsgHasRepeated) ProtoMessage()

func (*MsgHasRepeated) ProtoReflect

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

func (*MsgHasRepeated) Reset

func (x *MsgHasRepeated) Reset()

func (*MsgHasRepeated) SetX

func (x *MsgHasRepeated) SetX(v []float32)

func (*MsgHasRepeated) SetY

func (x *MsgHasRepeated) SetY(v []string)

func (*MsgHasRepeated) SetZ

func (x *MsgHasRepeated) SetZ(v []*HasMsgExprs)

func (*MsgHasRepeated) String

func (x *MsgHasRepeated) String() string

type MsgHasRepeated_builder

type MsgHasRepeated_builder struct {
	X []float32
	Y []string
	Z []*HasMsgExprs
	// contains filtered or unexported fields
}

func (MsgHasRepeated_builder) Build

type MultipleStepsTransitiveFieldRules

type MultipleStepsTransitiveFieldRules struct {
	Api *apipb.Api `protobuf:"bytes,1,opt,name=api,proto3" json:"api,omitempty"`
	// contains filtered or unexported fields
}

func (*MultipleStepsTransitiveFieldRules) ClearApi

func (x *MultipleStepsTransitiveFieldRules) ClearApi()

func (*MultipleStepsTransitiveFieldRules) GetApi

func (*MultipleStepsTransitiveFieldRules) HasApi

func (*MultipleStepsTransitiveFieldRules) ProtoMessage

func (*MultipleStepsTransitiveFieldRules) ProtoMessage()

func (*MultipleStepsTransitiveFieldRules) ProtoReflect

func (*MultipleStepsTransitiveFieldRules) Reset

func (*MultipleStepsTransitiveFieldRules) SetApi

func (*MultipleStepsTransitiveFieldRules) String

type MultipleStepsTransitiveFieldRules_builder

type MultipleStepsTransitiveFieldRules_builder struct {
	Api *apipb.Api
	// contains filtered or unexported fields
}

func (MultipleStepsTransitiveFieldRules_builder) Build

type NestedRules

type NestedRules struct {
	Field         *AllRuleTypes            `protobuf:"bytes,1,opt,name=field,proto3" json:"field,omitempty"`
	Field2        string                   `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
	RepeatedField []*AllRuleTypes          `protobuf:"bytes,3,rep,name=repeated_field,json=repeatedField,proto3" json:"repeated_field,omitempty"`
	MapField      map[string]*AllRuleTypes `` /* 159-byte string literal not displayed */
	// Types that are valid to be assigned to RequiredOneof:
	//
	//	*NestedRules_OneofField
	RequiredOneof isNestedRules_RequiredOneof `protobuf_oneof:"required_oneof"`
	// contains filtered or unexported fields
}

func (*NestedRules) ClearField

func (x *NestedRules) ClearField()

func (*NestedRules) ClearOneofField

func (x *NestedRules) ClearOneofField()

func (*NestedRules) ClearRequiredOneof

func (x *NestedRules) ClearRequiredOneof()

func (*NestedRules) GetField

func (x *NestedRules) GetField() *AllRuleTypes

func (*NestedRules) GetField2

func (x *NestedRules) GetField2() string

func (*NestedRules) GetMapField

func (x *NestedRules) GetMapField() map[string]*AllRuleTypes

func (*NestedRules) GetOneofField

func (x *NestedRules) GetOneofField() string

func (*NestedRules) GetRepeatedField

func (x *NestedRules) GetRepeatedField() []*AllRuleTypes

func (*NestedRules) GetRequiredOneof

func (x *NestedRules) GetRequiredOneof() isNestedRules_RequiredOneof

func (*NestedRules) HasField

func (x *NestedRules) HasField() bool

func (*NestedRules) HasOneofField

func (x *NestedRules) HasOneofField() bool

func (*NestedRules) HasRequiredOneof

func (x *NestedRules) HasRequiredOneof() bool

func (*NestedRules) ProtoMessage

func (*NestedRules) ProtoMessage()

func (*NestedRules) ProtoReflect

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

func (*NestedRules) Reset

func (x *NestedRules) Reset()

func (*NestedRules) SetField

func (x *NestedRules) SetField(v *AllRuleTypes)

func (*NestedRules) SetField2

func (x *NestedRules) SetField2(v string)

func (*NestedRules) SetMapField

func (x *NestedRules) SetMapField(v map[string]*AllRuleTypes)

func (*NestedRules) SetOneofField

func (x *NestedRules) SetOneofField(v string)

func (*NestedRules) SetRepeatedField

func (x *NestedRules) SetRepeatedField(v []*AllRuleTypes)

func (*NestedRules) String

func (x *NestedRules) String() string

func (*NestedRules) WhichRequiredOneof

func (x *NestedRules) WhichRequiredOneof() case_NestedRules_RequiredOneof

type NestedRules_OneofField

type NestedRules_OneofField struct {
	OneofField string `protobuf:"bytes,5,opt,name=oneof_field,json=oneofField,proto3,oneof"`
}

type NestedRules_builder

type NestedRules_builder struct {
	Field         *AllRuleTypes
	Field2        string
	RepeatedField []*AllRuleTypes
	MapField      map[string]*AllRuleTypes
	// Fields of oneof RequiredOneof:
	OneofField *string
	// contains filtered or unexported fields
}

func (NestedRules_builder) Build

func (b0 NestedRules_builder) Build() *NestedRules

type OneTwo

type OneTwo struct {
	Field1 *F1 `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2 *F2 `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
	// contains filtered or unexported fields
}

func (*OneTwo) ClearField1

func (x *OneTwo) ClearField1()

func (*OneTwo) ClearField2

func (x *OneTwo) ClearField2()

func (*OneTwo) GetField1

func (x *OneTwo) GetField1() *F1

func (*OneTwo) GetField2

func (x *OneTwo) GetField2() *F2

func (*OneTwo) HasField1

func (x *OneTwo) HasField1() bool

func (*OneTwo) HasField2

func (x *OneTwo) HasField2() bool

func (*OneTwo) ProtoMessage

func (*OneTwo) ProtoMessage()

func (*OneTwo) ProtoReflect

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

func (*OneTwo) Reset

func (x *OneTwo) Reset()

func (*OneTwo) SetField1

func (x *OneTwo) SetField1(v *F1)

func (*OneTwo) SetField2

func (x *OneTwo) SetField2(v *F2)

func (*OneTwo) String

func (x *OneTwo) String() string

type OneTwo_builder

type OneTwo_builder struct {
	Field1 *F1
	Field2 *F2
	// contains filtered or unexported fields
}

func (OneTwo_builder) Build

func (b0 OneTwo_builder) Build() *OneTwo

type Person

type Person struct {
	Id    uint64       `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Email string       `protobuf:"bytes,2,opt,name=email,proto3" json:"email,omitempty"`
	Name  string       `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	Home  *Coordinates `protobuf:"bytes,4,opt,name=home,proto3" json:"home,omitempty"`
	// contains filtered or unexported fields
}

func (*Person) ClearHome

func (x *Person) ClearHome()

func (*Person) GetEmail

func (x *Person) GetEmail() string

func (*Person) GetHome

func (x *Person) GetHome() *Coordinates

func (*Person) GetId

func (x *Person) GetId() uint64

func (*Person) GetName

func (x *Person) GetName() string

func (*Person) HasHome

func (x *Person) HasHome() bool

func (*Person) ProtoMessage

func (*Person) ProtoMessage()

func (*Person) ProtoReflect

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

func (*Person) Reset

func (x *Person) Reset()

func (*Person) SetEmail

func (x *Person) SetEmail(v string)

func (*Person) SetHome

func (x *Person) SetHome(v *Coordinates)

func (*Person) SetId

func (x *Person) SetId(v uint64)

func (*Person) SetName

func (x *Person) SetName(v string)

func (*Person) String

func (x *Person) String() string

type Person_builder

type Person_builder struct {
	Id    uint64
	Email string
	Name  string
	Home  *Coordinates
	// contains filtered or unexported fields
}

func (Person_builder) Build

func (b0 Person_builder) Build() *Person

type RepeatedItemCel

type RepeatedItemCel struct {
	Paths []string `protobuf:"bytes,1,rep,name=paths,proto3" json:"paths,omitempty"`
	// contains filtered or unexported fields
}

func (*RepeatedItemCel) GetPaths

func (x *RepeatedItemCel) GetPaths() []string

func (*RepeatedItemCel) ProtoMessage

func (*RepeatedItemCel) ProtoMessage()

func (*RepeatedItemCel) ProtoReflect

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

func (*RepeatedItemCel) Reset

func (x *RepeatedItemCel) Reset()

func (*RepeatedItemCel) SetPaths

func (x *RepeatedItemCel) SetPaths(v []string)

func (*RepeatedItemCel) String

func (x *RepeatedItemCel) String() string

type RepeatedItemCel_builder

type RepeatedItemCel_builder struct {
	Paths []string
	// contains filtered or unexported fields
}

func (RepeatedItemCel_builder) Build

type SelfRecursive

type SelfRecursive struct {
	X      int32          `protobuf:"varint,1,opt,name=x,proto3" json:"x,omitempty"`
	Turtle *SelfRecursive `protobuf:"bytes,2,opt,name=turtle,proto3" json:"turtle,omitempty"`
	// contains filtered or unexported fields
}

func (*SelfRecursive) ClearTurtle

func (x *SelfRecursive) ClearTurtle()

func (*SelfRecursive) GetTurtle

func (x *SelfRecursive) GetTurtle() *SelfRecursive

func (*SelfRecursive) GetX

func (x *SelfRecursive) GetX() int32

func (*SelfRecursive) HasTurtle

func (x *SelfRecursive) HasTurtle() bool

func (*SelfRecursive) ProtoMessage

func (*SelfRecursive) ProtoMessage()

func (*SelfRecursive) ProtoReflect

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

func (*SelfRecursive) Reset

func (x *SelfRecursive) Reset()

func (*SelfRecursive) SetTurtle

func (x *SelfRecursive) SetTurtle(v *SelfRecursive)

func (*SelfRecursive) SetX

func (x *SelfRecursive) SetX(v int32)

func (*SelfRecursive) String

func (x *SelfRecursive) String() string

type SelfRecursive_builder

type SelfRecursive_builder struct {
	X      int32
	Turtle *SelfRecursive
	// contains filtered or unexported fields
}

func (SelfRecursive_builder) Build

type Simple

type Simple struct {
	S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"`
	// contains filtered or unexported fields
}

func (*Simple) GetS

func (x *Simple) GetS() string

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) ProtoReflect

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

func (*Simple) Reset

func (x *Simple) Reset()

func (*Simple) SetS

func (x *Simple) SetS(v string)

func (*Simple) String

func (x *Simple) String() string

type Simple_builder

type Simple_builder struct {
	S string
	// contains filtered or unexported fields
}

func (Simple_builder) Build

func (b0 Simple_builder) Build() *Simple

type TransitiveFieldRule

type TransitiveFieldRule struct {
	Mask *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=mask,proto3" json:"mask,omitempty"`
	// contains filtered or unexported fields
}

func (*TransitiveFieldRule) ClearMask

func (x *TransitiveFieldRule) ClearMask()

func (*TransitiveFieldRule) GetMask

func (*TransitiveFieldRule) HasMask

func (x *TransitiveFieldRule) HasMask() bool

func (*TransitiveFieldRule) ProtoMessage

func (*TransitiveFieldRule) ProtoMessage()

func (*TransitiveFieldRule) ProtoReflect

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

func (*TransitiveFieldRule) Reset

func (x *TransitiveFieldRule) Reset()

func (*TransitiveFieldRule) SetMask

func (x *TransitiveFieldRule) SetMask(v *fieldmaskpb.FieldMask)

func (*TransitiveFieldRule) String

func (x *TransitiveFieldRule) String() string

type TransitiveFieldRule_builder

type TransitiveFieldRule_builder struct {
	Mask *fieldmaskpb.FieldMask
	// contains filtered or unexported fields
}

func (TransitiveFieldRule_builder) Build

type TwoOne

type TwoOne struct {
	Field2 *F2 `protobuf:"bytes,1,opt,name=field2,proto3" json:"field2,omitempty"`
	Field1 *F1 `protobuf:"bytes,2,opt,name=field1,proto3" json:"field1,omitempty"`
	// contains filtered or unexported fields
}

func (*TwoOne) ClearField1

func (x *TwoOne) ClearField1()

func (*TwoOne) ClearField2

func (x *TwoOne) ClearField2()

func (*TwoOne) GetField1

func (x *TwoOne) GetField1() *F1

func (*TwoOne) GetField2

func (x *TwoOne) GetField2() *F2

func (*TwoOne) HasField1

func (x *TwoOne) HasField1() bool

func (*TwoOne) HasField2

func (x *TwoOne) HasField2() bool

func (*TwoOne) ProtoMessage

func (*TwoOne) ProtoMessage()

func (*TwoOne) ProtoReflect

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

func (*TwoOne) Reset

func (x *TwoOne) Reset()

func (*TwoOne) SetField1

func (x *TwoOne) SetField1(v *F1)

func (*TwoOne) SetField2

func (x *TwoOne) SetField2(v *F2)

func (*TwoOne) String

func (x *TwoOne) String() string

type TwoOne_builder

type TwoOne_builder struct {
	Field2 *F2
	Field1 *F1
	// contains filtered or unexported fields
}

func (TwoOne_builder) Build

func (b0 TwoOne_builder) Build() *TwoOne

Jump to

Keyboard shortcuts

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