code: func marshalTriggeringPolicy(p *messages.TriggeringPolicy) []byte {
  	if p == nil {
  		return nil
  	}
  	out, err := proto.Marshal(p)
  	if err != nil {
  		panic(fmt.Errorf("failed to marshal TriggeringPolicy - %s", err))
  	}
  	return out
  }
docs: // marshalTriggeringPolicy serializes TriggeringPolicy proto.