func (p *AppendBatchResult) Write(oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin("appendBatch_result"); err != nil { return fmt.Errorf("%T write struct begin error: %s", p, err) } if err := p.writeField0(oprot); err != nil { return err } if err := oprot.WriteFieldStop(); err != nil { return fmt.Errorf("write field stop error: %s", err) } if err := oprot.WriteStructEnd(); err != nil { return fmt.Errorf("write struct stop error: %s", err) } return nil }
func (p *ThriftFlumeEvent) Write(oprot thrift.TProtocol) error { if err := oprot.WriteStructBegin("ThriftFlumeEvent"); err != nil { return fmt.Errorf("%T write struct begin error: %s", p, err) } if err := p.writeField1(oprot); err != nil { return err } if err := p.writeField2(oprot); err != nil { return err } if err := oprot.WriteFieldStop(); err != nil { return fmt.Errorf("write field stop error: %s", err) } if err := oprot.WriteStructEnd(); err != nil { return fmt.Errorf("write struct stop error: %s", err) } return nil }