MCPcopy
hub / github.com/gogo/protobuf / NewPopulatedNinEmbeddedStruct

Function NewPopulatedNinEmbeddedStruct

test/thetest.pb.go:22455–22471  ·  view source on GitHub ↗
(r randyThetest, easy bool)

Source from the content-addressed store, hash-verified

22453}
22454
22455func NewPopulatedNinEmbeddedStruct(r randyThetest, easy bool) *NinEmbeddedStruct {
22456 this := &NinEmbeddedStruct{}
22457 if r.Intn(5) != 0 {
22458 this.NidOptNative = NewPopulatedNidOptNative(r, easy)
22459 }
22460 if r.Intn(5) != 0 {
22461 this.Field200 = NewPopulatedNidOptNative(r, easy)
22462 }
22463 if r.Intn(5) != 0 {
22464 v112 := bool(bool(r.Intn(2) == 0))
22465 this.Field210 = &v112
22466 }
22467 if !easy && r.Intn(10) != 0 {
22468 this.XXX_unrecognized = randUnrecognizedThetest(r, 211)
22469 }
22470 return this
22471}
22472
22473func NewPopulatedNidNestedStruct(r randyThetest, easy bool) *NidNestedStruct {
22474 this := &NidNestedStruct{}

Calls 3

NewPopulatedNidOptNativeFunction · 0.70
randUnrecognizedThetestFunction · 0.70
IntnMethod · 0.65

Used in the wild real call sites across dependent graphs

searching dependent graphs…