func (left Label) Equivalent(right Label) bool {
	if left.Key != right.Key {
		return false
	}
	if left.Value == nil {
		return right.Value == nil
	} else {
		return right.Value != nil && *left.Value == *right.Value
	}
}
Equivalent returns true if left and right represent the same Label.
package mesos
import (
	"bytes"
	"io"
)
type labelList []Label  
func (left *Labels) Equivalent(right *Labels) bool {
	return labelList(left.GetLabels()).Equivalent(labelList(right.GetLabels()))
}
func (left labelList) Equivalent(right labelList) bool {
	if len(left) != len(right) {
		return false
	} else {
		for i := range left {
			found := false
			for j := range right {
				if left[i].Equivalent(right[j]) {
					found = true
					break
				}
			}
			if !found {
				return false
			}
		}
		return true
	}
}