func (p *RestResponse) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetHeaders() { if err := oprot.WriteFieldBegin("headers", thrift.MAP, 2); err != nil { return fmt.Errorf("%T write field begin error 2:headers: %s", p, err) } if err := oprot.WriteMapBegin(thrift.STRING, thrift.STRING, len(p.Headers)); err != nil { return fmt.Errorf("error writing map begin: %s", err) } for k, v := range p.Headers { if err := oprot.WriteString(string(k)); err != nil { return fmt.Errorf("%T. (0) field write error: %s", p, err) } if err := oprot.WriteString(string(v)); err != nil { return fmt.Errorf("%T. (0) field write error: %s", p, err) } } if err := oprot.WriteMapEnd(); err != nil { return fmt.Errorf("error writing map end: %s", err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 2:headers: %s", p, err) } } return err }
func (p *Contact) writeField5(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("created", thrift.STRING, 5); err != nil { return fmt.Errorf("%T write field begin error 5:created: %s", p, err) } if err := oprot.WriteString(string(p.Created)); err != nil { return fmt.Errorf("%T.created (5) field write error: %s", p) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 5:created: %s", p, err) } return err }
func (p *Contact) writeField3(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("phone", thrift.STRING, 3); err != nil { return fmt.Errorf("%T write field begin error 3:phone: %s", p, err) } if err := oprot.WriteString(string(p.Phone)); err != nil { return fmt.Errorf("%T.phone (3) field write error: %s", p) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 3:phone: %s", p, err) } return err }
func (p *Contact) writeField2(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("name", thrift.STRING, 2); err != nil { return fmt.Errorf("%T write field begin error 2:name: %s", p, err) } if err := oprot.WriteString(string(p.Name)); err != nil { return fmt.Errorf("%T.name (2) field write error: %s", p) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 2:name: %s", p, err) } return err }
func (p *ExecuteArgs) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("request", thrift.STRUCT, 1); err != nil { return fmt.Errorf("%T write field begin error 1:request: %s", p, err) } if err := p.Request.Write(oprot); err != nil { return fmt.Errorf("%T error writing struct: %s", p.Request, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:request: %s", p, err) } return err }
func (p *LogEntry) writeField2(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("message", thrift.STRING, 2); err != nil { return fmt.Errorf("%T write field begin error 2:message: %s", p, err) } if err := oprot.WriteString(string(p.Message)); err != nil { return fmt.Errorf("%T.message (2) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 2:message: %s", p, err) } return err }
func (p *ReadArgs) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("contactId", thrift.STRING, 1); err != nil { return fmt.Errorf("%T write field begin error 1:contactId: %s", p, err) } if err := oprot.WriteString(string(p.ContactId)); err != nil { return fmt.Errorf("%T.contactId (1) field write error: %s", p) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:contactId: %s", p, err) } return err }
func (p *RestRequest) writeField2(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("uri", thrift.STRING, 2); err != nil { return fmt.Errorf("%T write field begin error 2:uri: %s", p, err) } if err := oprot.WriteString(string(p.Uri)); err != nil { return fmt.Errorf("%T.uri (2) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 2:uri: %s", p, err) } return err }
func (p *Echo2timesArgs) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("string1", thrift.STRING, 1); err != nil { return fmt.Errorf("%T write field begin error 1:string1: %s", p, err) } if err := oprot.WriteString(string(p.String1)); err != nil { return fmt.Errorf("%T.string1 (1) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:string1: %s", p, err) } return err }
func (p *RestResponse) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("status", thrift.I32, 1); err != nil { return fmt.Errorf("%T write field begin error 1:status: %s", p, err) } if err := oprot.WriteI32(int32(p.Status)); err != nil { return fmt.Errorf("%T.status (1) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:status: %s", p, err) } return err }
func (p *RestRequest) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("method", thrift.I32, 1); err != nil { return fmt.Errorf("%T write field begin error 1:method: %s", p, err) } if err := oprot.WriteI32(int32(p.Method)); err != nil { return fmt.Errorf("%T.method (1) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:method: %s", p, err) } return err }
func (p *LogEntry) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("hostname", thrift.STRING, 1); err != nil { return fmt.Errorf("%T write field begin error 1:hostname: %s", p, err) } if err := oprot.WriteString(string(p.Hostname)); err != nil { return fmt.Errorf("%T.hostname (1) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:hostname: %s", p, err) } return err }
func (p *CreateResult) writeField0(oprot thrift.TProtocol) (err error) { if p.Success != nil { if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil { return fmt.Errorf("%T write field begin error 0:success: %s", p, err) } if err := p.Success.Write(oprot); err != nil { return fmt.Errorf("%T error writing struct: %s", p.Success) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 0:success: %s", p, err) } } return err }
func (p *CreateArgs) writeField1(oprot thrift.TProtocol) (err error) { if p.Contact != nil { if err := oprot.WriteFieldBegin("contact", thrift.STRUCT, 1); err != nil { return fmt.Errorf("%T write field begin error 1:contact: %s", p, err) } if err := p.Contact.Write(oprot); err != nil { return fmt.Errorf("%T error writing struct: %s", p.Contact) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:contact: %s", p, err) } } return err }
func (p *RestResponse) writeField3(oprot thrift.TProtocol) (err error) { if p.IsSetBody() { if err := oprot.WriteFieldBegin("body", thrift.STRING, 3); err != nil { return fmt.Errorf("%T write field begin error 3:body: %s", p, err) } if err := oprot.WriteBinary(p.Body); err != nil { return fmt.Errorf("%T.body (3) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 3:body: %s", p, err) } } return err }
func (p *Contact) writeField4(oprot thrift.TProtocol) (err error) { if p.IsSetEmail() { if err := oprot.WriteFieldBegin("email", thrift.STRING, 4); err != nil { return fmt.Errorf("%T write field begin error 4:email: %s", p, err) } if err := oprot.WriteString(string(p.Email)); err != nil { return fmt.Errorf("%T.email (4) field write error: %s", p) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 4:email: %s", p, err) } } return err }
func (p *Echo2timesResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.STRING, 0); err != nil { return fmt.Errorf("%T write field begin error 0:success: %s", p, err) } if err := oprot.WriteString(string(*p.Success)); err != nil { return fmt.Errorf("%T.success (0) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 0:success: %s", p, err) } } return err }
func (p *LogResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.I32, 0); err != nil { return fmt.Errorf("%T write field begin error 0:success: %s", p, err) } if err := oprot.WriteI32(int32(*p.Success)); err != nil { return fmt.Errorf("%T.success (0) field write error: %s", p, err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 0:success: %s", p, err) } } return err }
func (p *LogArgs) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("messages", thrift.LIST, 1); err != nil { return fmt.Errorf("%T write field begin error 1:messages: %s", p, err) } if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Messages)); err != nil { return fmt.Errorf("error writing list begin: %s", err) } for _, v := range p.Messages { if err := v.Write(oprot); err != nil { return fmt.Errorf("%T error writing struct: %s", v, err) } } if err := oprot.WriteListEnd(); err != nil { return fmt.Errorf("error writing list end: %s", err) } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 1:messages: %s", p, err) } return err }
func (p *FetchResult) writeField0(oprot thrift.TProtocol) (err error) { if p.Success != nil { if err := oprot.WriteFieldBegin("success", thrift.LIST, 0); err != nil { return fmt.Errorf("%T write field begin error 0:success: %s", p, err) } if err := oprot.WriteListBegin(thrift.STRUCT, len(p.Success)); err != nil { return fmt.Errorf("error writing list begin: %s") } for _, v := range p.Success { if err := v.Write(oprot); err != nil { return fmt.Errorf("%T error writing struct: %s", v) } } if err := oprot.WriteListEnd(); err != nil { return fmt.Errorf("error writing list end: %s") } if err := oprot.WriteFieldEnd(); err != nil { return fmt.Errorf("%T write field end error 0:success: %s", p, err) } } return err }