func (ids *OrganizationIdentifiers) GetOrganizationOrUserIdentifiers() *OrganizationOrUserIdentifiers {
	if ids == nil {
		return nil
	}
	return ids.OrganizationOrUserIdentifiers()
}
GetOrganizationOrUserIdentifiers returns the OrganizationIdentifiers as *OrganizationOrUserIdentifiers.
package ttnpb
import (
	"context"
	"fmt"
	"go.thethings.network/lorawan-stack/v3/pkg/errors"
	"go.thethings.network/lorawan-stack/v3/pkg/types"
)
func (ids ApplicationIdentifiers) IsZero() bool {
	return ids.ApplicationId == ""
}
func (v *ApplicationIdentifiers) FieldIsZero(p string) bool {
	if v == nil {
		return true
	}
	switch p {
	case "application_id":
		return v.ApplicationId == ""
	}
	panic(fmt.Sprintf("unknown path '%s'", p))
}
func (ids ClientIdentifiers) IsZero() bool {
	return ids.ClientId == ""
}
func (ids EndDeviceIdentifiers) IsZero() bool {
	return ids.GetDeviceId() == "" &&
		ids.GetApplicationId() == "" &&
		(ids.DevAddr == nil || ids.DevAddr.IsZero()) &&
		(ids.DevEui == nil || ids.DevEui.IsZero()) &&
		ids.JoinEui == nil
}
func (v *EndDeviceIdentifiers) FieldIsZero(p string) bool {
	if v == nil {
		return true
	}
	switch p {
	case "application_ids":
		return v.ApplicationIdentifiers == ApplicationIdentifiers{}
	case "application_ids.application_id":
		return v.ApplicationIdentifiers.FieldIsZero("application_id")
	case "dev_addr":
		return v.DevAddr == nil
	case "dev_eui":
		return v.DevEui == nil
	case "device_id":
		return v.DeviceId == ""
	case "join_eui":
		return v.JoinEui == nil
	}
	panic(fmt.Sprintf("unknown path '%s'", p))
}
func (ids GatewayIdentifiers) IsZero() bool {
	return ids.GatewayId == "" && ids.Eui == nil
}
func (ids OrganizationIdentifiers) IsZero() bool {
	return ids.OrganizationId == ""
}
func (ids UserIdentifiers) IsZero() bool {
	return ids.GetUserId() == "" && ids.GetEmail() == ""
}