func (p *BaseServiceGetInterfaceVersionsResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.MAP, 0); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) } if err := oprot.WriteMapBegin(thrift.STRING, thrift.STRUCT, len(p.Success)); err != nil { return thrift.PrependError("error writing map begin: ", err) } for k, v := range p.Success { if err := oprot.WriteString(string(k)); err != nil { return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } if err := v.Write(oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", v), err) } } if err := oprot.WriteMapEnd(); err != nil { return thrift.PrependError("error writing map end: ", err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) } } return err }
func (p *MonitoringCollectResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.MAP, 0); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) } if err := oprot.WriteMapBegin(thrift.STRING, thrift.DOUBLE, len(p.Success)); err != nil { return thrift.PrependError("error writing map begin: ", err) } for k, v := range p.Success { if err := oprot.WriteString(string(k)); err != nil { return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } if err := oprot.WriteDouble(float64(v)); err != nil { return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } } if err := oprot.WriteMapEnd(); err != nil { return thrift.PrependError("error writing map end: ", err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) } } return err }
func (p *GitVersion) writeField2(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("remote", thrift.STRING, 2); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:remote: ", p), err) } if err := oprot.WriteString(string(p.Remote)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.remote (2) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 2:remote: ", p), err) } return err }
func (p *GitVersion) writeField3(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("branch", thrift.STRING, 3); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:branch: ", p), err) } if err := oprot.WriteString(string(p.Branch)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.branch (3) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 3:branch: ", p), err) } return err }
func (p *GitVersion) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("commit", thrift.STRING, 1); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:commit: ", p), err) } if err := oprot.WriteString(string(p.Commit)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.commit (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 1:commit: ", p), err) } return err }
func (p *SemanticVersion) writeField3(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("patch", thrift.I16, 3); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 3:patch: ", p), err) } if err := oprot.WriteI16(int16(p.Patch)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.patch (3) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 3:patch: ", p), err) } return err }
func (p *SemanticVersion) writeField2(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("minor", thrift.I16, 2); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:minor: ", p), err) } if err := oprot.WriteI16(int16(p.Minor)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.minor (2) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 2:minor: ", p), err) } return err }
func (p *ServiceNotAvailable) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("reason", thrift.STRING, 1); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:reason: ", p), err) } if err := oprot.WriteString(string(p.Reason)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.reason (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 1:reason: ", p), err) } return err }
func (p *UnknownMetric) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("key", thrift.STRING, 1); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:key: ", p), err) } if err := oprot.WriteString(string(p.Key)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.key (1) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 1:key: ", p), err) } return err }
func (p *BaseServiceGetNameResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.STRING, 0); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) } if err := oprot.WriteString(string(*p.Success)); err != nil { return thrift.PrependError(fmt.Sprintf("%T.success (0) field write error: ", p), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) } } return err }
func (p *BaseServiceGetVersionResult) writeField0(oprot thrift.TProtocol) (err error) { if p.IsSetSuccess() { if err := oprot.WriteFieldBegin("success", thrift.STRUCT, 0); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) } if err := p.Success.Write(oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) } } return err }
func (p *MonitoringCollectResult) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetUnknownMetric() { if err := oprot.WriteFieldBegin("unknownMetric", thrift.STRUCT, 2); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:unknownMetric: ", p), err) } if err := p.UnknownMetric.Write(oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.UnknownMetric), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 2:unknownMetric: ", p), err) } } return err }
func (p *MonitoringCollectResult) writeField1(oprot thrift.TProtocol) (err error) { if p.IsSetServiceUnavailable() { if err := oprot.WriteFieldBegin("serviceUnavailable", thrift.STRUCT, 1); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:serviceUnavailable: ", p), err) } if err := p.ServiceUnavailable.Write(oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.ServiceUnavailable), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 1:serviceUnavailable: ", p), err) } } return err }
func (p *Version) writeField2(oprot thrift.TProtocol) (err error) { if p.IsSetGitVersion() { if err := oprot.WriteFieldBegin("git_version", thrift.STRUCT, 2); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:git_version: ", p), err) } if err := p.GitVersion.Write(oprot); err != nil { return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.GitVersion), err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 2:git_version: ", p), err) } } return err }
func (p *MonitoringCollectArgs) writeField1(oprot thrift.TProtocol) (err error) { if err := oprot.WriteFieldBegin("metrics", thrift.LIST, 1); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:metrics: ", p), err) } if err := oprot.WriteListBegin(thrift.STRING, len(p.Metrics)); err != nil { return thrift.PrependError("error writing list begin: ", err) } for _, v := range p.Metrics { if err := oprot.WriteString(string(v)); err != nil { return thrift.PrependError(fmt.Sprintf("%T. (0) field write error: ", p), err) } } if err := oprot.WriteListEnd(); err != nil { return thrift.PrependError("error writing list end: ", err) } if err := oprot.WriteFieldEnd(); err != nil { return thrift.PrependError(fmt.Sprintf("%T write field end error 1:metrics: ", p), err) } return err }