// WithID adds the id to the update task params
190440
func (o *UpdateTaskParams) WithID(id int64) *UpdateTaskParams {
	o.SetID(id)
	return o
}
841696
func WithNodeID(id int) Option {
	return func(e *Engine) {
		e.nodeID = &id
		e.defaultMetricLabels["node_id"] = fmt.Sprint(*e.nodeID)
	}
}
257507
func (q *Quest) UpdateWith(o *Quest) {
	if q.Data == nil {
		q.Data = o.Data
		q.Partial = false
	} else if !o.Partial {
		q.Data.UpdateWith(o.Data)
		q.Partial = false
	}
	if q.Id == nil {
		q.Id = o.Id
	}
	for aid, a := range o.Attempts {
		if curA, ok := q.Attempts[aid]; !ok {
			q.Attempts[aid] = a
		} else {
			curA.UpdateWith(a)
		}
	}
}
41241
func (o *UpdateTaskParams) WithBody(body *models.Task) *UpdateTaskParams {
	o.SetBody(body)
	return o
}
1089629
func (o *GetIDParams) WithTimeout(timeout time.Duration) *GetIDParams {
	o.SetTimeout(timeout)
	return o
}
859680
func WithID(id string) Opt {
	return func(l *Lease) error {
		l.ID = id
		return nil
	}
}
1321604
func (s *Core) SetId(v string) *Core {
	s.Id = &v
	return s
}
746450
func (o *UploadTaskFileParams) WithID(id int64) *UploadTaskFileParams {
	o.SetID(id)
	return o
}
1290607
func (o *PatchEndpointIDLabelsParams) WithID(id string) *PatchEndpointIDLabelsParams {
	o.SetID(id)
	return o
}
1061458
func (o *PatchEndpointIDConfigParams) WithID(id string) *PatchEndpointIDConfigParams {
	o.SetID(id)
	return o
}
500825
func (o *PetGetParams) WithPetID(petID int64) *PetGetParams {
	o.SetPetID(petID)
	return o
}
1195875
func (o *ListTasksParams) WithSinceID(sinceID *int64) *ListTasksParams {
	o.SetSinceID(sinceID)
	return o
}
915074
func (o *GetEndpointIDParams) WithID(id string) *GetEndpointIDParams {
	o.SetID(id)
	return o
}
499128
func (o *PatchEndpointIDParams) WithID(id string) *PatchEndpointIDParams {
	o.SetID(id)
	return o
}
570615
func (builder *UpdateSetCommandBuilder) WithKey(key string) *UpdateSetCommandBuilder {
	builder.protobuf.Key = []byte(key)
	return builder
}
1070422
func (o *UpdateTaskOK) WithPayload(payload *models.Task) *UpdateTaskOK {
	o.Payload = payload
	return o
}
924802
func (s *Job) SetId(v string) *Job {
	s.Id = &v
	return s
}