devices

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2025 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeviceType_name = map[int32]string{
		0:   "UNKNOWN",
		1:   "COMPUTER",
		2:   "TABLET",
		3:   "SMARTPHONE",
		4:   "SPEAKER",
		5:   "TV",
		6:   "AVR",
		7:   "STB",
		8:   "AUDIO_DONGLE",
		9:   "GAME_CONSOLE",
		10:  "CAST_VIDEO",
		11:  "CAST_AUDIO",
		12:  "AUTOMOBILE",
		13:  "SMARTWATCH",
		14:  "CHROMEBOOK",
		100: "UNKNOWN_SPOTIFY",
		101: "CAR_THING",
		102: "OBSERVER",
		103: "HOME_THING",
	}
	DeviceType_value = map[string]int32{
		"UNKNOWN":         0,
		"COMPUTER":        1,
		"TABLET":          2,
		"SMARTPHONE":      3,
		"SPEAKER":         4,
		"TV":              5,
		"AVR":             6,
		"STB":             7,
		"AUDIO_DONGLE":    8,
		"GAME_CONSOLE":    9,
		"CAST_VIDEO":      10,
		"CAST_AUDIO":      11,
		"AUTOMOBILE":      12,
		"SMARTWATCH":      13,
		"CHROMEBOOK":      14,
		"UNKNOWN_SPOTIFY": 100,
		"CAR_THING":       101,
		"OBSERVER":        102,
		"HOME_THING":      103,
	}
)

Enum value maps for DeviceType.

View Source
var (
	GroupData_GroupType_name = map[int32]string{
		0: "UNKNOWN_GROUP_TYPE",
		1: "STATIC",
		2: "DYNAMIC",
	}
	GroupData_GroupType_value = map[string]int32{
		"UNKNOWN_GROUP_TYPE": 0,
		"STATIC":             1,
		"DYNAMIC":            2,
	}
)

Enum value maps for GroupData_GroupType.

View Source
var (
	GroupDevice_GroupingStatus_name = map[int32]string{
		0: "UNKNOWN_GROUPING_STATUS",
		1: "GROUPED",
		2: "GROUPABLE",
	}
	GroupDevice_GroupingStatus_value = map[string]int32{
		"UNKNOWN_GROUPING_STATUS": 0,
		"GROUPED":                 1,
		"GROUPABLE":               2,
	}
)

Enum value maps for GroupDevice_GroupingStatus.

View Source
var File_spotify_connectstate_devices_connect_devices_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type DeviceAlias

type DeviceAlias struct {
	Id          uint32     `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	DisplayName string     `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	IsGroup     bool       `protobuf:"varint,3,opt,name=is_group,json=isGroup,proto3" json:"is_group,omitempty"`
	GroupData   *GroupData `protobuf:"bytes,4,opt,name=group_data,json=groupData,proto3,oneof" json:"group_data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeviceAlias) Descriptor deprecated

func (*DeviceAlias) Descriptor() ([]byte, []int)

Deprecated: Use DeviceAlias.ProtoReflect.Descriptor instead.

func (*DeviceAlias) GetDisplayName

func (x *DeviceAlias) GetDisplayName() string

func (*DeviceAlias) GetGroupData added in v0.5.1

func (x *DeviceAlias) GetGroupData() *GroupData

func (*DeviceAlias) GetId

func (x *DeviceAlias) GetId() uint32

func (*DeviceAlias) GetIsGroup

func (x *DeviceAlias) GetIsGroup() bool

func (*DeviceAlias) ProtoMessage

func (*DeviceAlias) ProtoMessage()

func (*DeviceAlias) ProtoReflect

func (x *DeviceAlias) ProtoReflect() protoreflect.Message

func (*DeviceAlias) Reset

func (x *DeviceAlias) Reset()

func (*DeviceAlias) String

func (x *DeviceAlias) String() string

type DeviceType

type DeviceType int32
const (
	DeviceType_UNKNOWN         DeviceType = 0
	DeviceType_COMPUTER        DeviceType = 1
	DeviceType_TABLET          DeviceType = 2
	DeviceType_SMARTPHONE      DeviceType = 3
	DeviceType_SPEAKER         DeviceType = 4
	DeviceType_TV              DeviceType = 5
	DeviceType_AVR             DeviceType = 6
	DeviceType_STB             DeviceType = 7
	DeviceType_AUDIO_DONGLE    DeviceType = 8
	DeviceType_GAME_CONSOLE    DeviceType = 9
	DeviceType_CAST_VIDEO      DeviceType = 10
	DeviceType_CAST_AUDIO      DeviceType = 11
	DeviceType_AUTOMOBILE      DeviceType = 12
	DeviceType_SMARTWATCH      DeviceType = 13
	DeviceType_CHROMEBOOK      DeviceType = 14
	DeviceType_UNKNOWN_SPOTIFY DeviceType = 100
	DeviceType_CAR_THING       DeviceType = 101
	DeviceType_OBSERVER        DeviceType = 102
	DeviceType_HOME_THING      DeviceType = 103
)

func (DeviceType) Descriptor

func (DeviceType) Descriptor() protoreflect.EnumDescriptor

func (DeviceType) Enum

func (x DeviceType) Enum() *DeviceType

func (DeviceType) EnumDescriptor deprecated

func (DeviceType) EnumDescriptor() ([]byte, []int)

Deprecated: Use DeviceType.Descriptor instead.

func (DeviceType) Number

func (x DeviceType) Number() protoreflect.EnumNumber

func (DeviceType) String

func (x DeviceType) String() string

func (DeviceType) Type

type GroupCapabilities added in v0.5.1

type GroupCapabilities struct {
	// contains filtered or unexported fields
}

func (*GroupCapabilities) Descriptor deprecated added in v0.5.1

func (*GroupCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use GroupCapabilities.ProtoReflect.Descriptor instead.

func (*GroupCapabilities) ProtoMessage added in v0.5.1

func (*GroupCapabilities) ProtoMessage()

func (*GroupCapabilities) ProtoReflect added in v0.5.1

func (x *GroupCapabilities) ProtoReflect() protoreflect.Message

func (*GroupCapabilities) Reset added in v0.5.1

func (x *GroupCapabilities) Reset()

func (*GroupCapabilities) String added in v0.5.1

func (x *GroupCapabilities) String() string

type GroupData added in v0.5.1

type GroupData struct {
	Devices      []*GroupDevice      `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"`
	Capabilities *GroupCapabilities  `protobuf:"bytes,2,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
	Type         GroupData_GroupType `protobuf:"varint,3,opt,name=type,proto3,enum=spotify.connectstate.devices.GroupData_GroupType" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupData) Descriptor deprecated added in v0.5.1

func (*GroupData) Descriptor() ([]byte, []int)

Deprecated: Use GroupData.ProtoReflect.Descriptor instead.

func (*GroupData) GetCapabilities added in v0.5.1

func (x *GroupData) GetCapabilities() *GroupCapabilities

func (*GroupData) GetDevices added in v0.5.1

func (x *GroupData) GetDevices() []*GroupDevice

func (*GroupData) GetType added in v0.5.1

func (x *GroupData) GetType() GroupData_GroupType

func (*GroupData) ProtoMessage added in v0.5.1

func (*GroupData) ProtoMessage()

func (*GroupData) ProtoReflect added in v0.5.1

func (x *GroupData) ProtoReflect() protoreflect.Message

func (*GroupData) Reset added in v0.5.1

func (x *GroupData) Reset()

func (*GroupData) String added in v0.5.1

func (x *GroupData) String() string

type GroupData_GroupType added in v0.5.1

type GroupData_GroupType int32
const (
	GroupData_UNKNOWN_GROUP_TYPE GroupData_GroupType = 0
	GroupData_STATIC             GroupData_GroupType = 1
	GroupData_DYNAMIC            GroupData_GroupType = 2
)

func (GroupData_GroupType) Descriptor added in v0.5.1

func (GroupData_GroupType) Enum added in v0.5.1

func (GroupData_GroupType) EnumDescriptor deprecated added in v0.5.1

func (GroupData_GroupType) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupData_GroupType.Descriptor instead.

func (GroupData_GroupType) Number added in v0.5.1

func (GroupData_GroupType) String added in v0.5.1

func (x GroupData_GroupType) String() string

func (GroupData_GroupType) Type added in v0.5.1

type GroupDevice added in v0.5.1

type GroupDevice struct {
	GroupDeviceIdentifier  string                     `` /* 126-byte string literal not displayed */
	Name                   string                     `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	DeviceType             DeviceType                 `` /* 137-byte string literal not displayed */
	Model                  string                     `protobuf:"bytes,5,opt,name=model,proto3" json:"model,omitempty"`
	Capabilities           *GroupDeviceCapabilities   `protobuf:"bytes,6,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
	GroupingStatus         GroupDevice_GroupingStatus `` /* 165-byte string literal not displayed */
	SpotifyConnectDeviceId *string                    `` /* 137-byte string literal not displayed */
	Volume                 *GroupDeviceVolume         `protobuf:"bytes,8,opt,name=volume,proto3,oneof" json:"volume,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupDevice) Descriptor deprecated added in v0.5.1

func (*GroupDevice) Descriptor() ([]byte, []int)

Deprecated: Use GroupDevice.ProtoReflect.Descriptor instead.

func (*GroupDevice) GetCapabilities added in v0.5.1

func (x *GroupDevice) GetCapabilities() *GroupDeviceCapabilities

func (*GroupDevice) GetDeviceType added in v0.5.1

func (x *GroupDevice) GetDeviceType() DeviceType

func (*GroupDevice) GetGroupDeviceIdentifier added in v0.5.1

func (x *GroupDevice) GetGroupDeviceIdentifier() string

func (*GroupDevice) GetGroupingStatus added in v0.5.1

func (x *GroupDevice) GetGroupingStatus() GroupDevice_GroupingStatus

func (*GroupDevice) GetModel added in v0.5.1

func (x *GroupDevice) GetModel() string

func (*GroupDevice) GetName added in v0.5.1

func (x *GroupDevice) GetName() string

func (*GroupDevice) GetSpotifyConnectDeviceId added in v0.5.1

func (x *GroupDevice) GetSpotifyConnectDeviceId() string

func (*GroupDevice) GetVolume added in v0.5.1

func (x *GroupDevice) GetVolume() *GroupDeviceVolume

func (*GroupDevice) ProtoMessage added in v0.5.1

func (*GroupDevice) ProtoMessage()

func (*GroupDevice) ProtoReflect added in v0.5.1

func (x *GroupDevice) ProtoReflect() protoreflect.Message

func (*GroupDevice) Reset added in v0.5.1

func (x *GroupDevice) Reset()

func (*GroupDevice) String added in v0.5.1

func (x *GroupDevice) String() string

type GroupDeviceCapabilities added in v0.5.1

type GroupDeviceCapabilities struct {
	// contains filtered or unexported fields
}

func (*GroupDeviceCapabilities) Descriptor deprecated added in v0.5.1

func (*GroupDeviceCapabilities) Descriptor() ([]byte, []int)

Deprecated: Use GroupDeviceCapabilities.ProtoReflect.Descriptor instead.

func (*GroupDeviceCapabilities) ProtoMessage added in v0.5.1

func (*GroupDeviceCapabilities) ProtoMessage()

func (*GroupDeviceCapabilities) ProtoReflect added in v0.5.1

func (x *GroupDeviceCapabilities) ProtoReflect() protoreflect.Message

func (*GroupDeviceCapabilities) Reset added in v0.5.1

func (x *GroupDeviceCapabilities) Reset()

func (*GroupDeviceCapabilities) String added in v0.5.1

func (x *GroupDeviceCapabilities) String() string

type GroupDeviceVolume added in v0.5.1

type GroupDeviceVolume struct {
	Volume      uint32 `protobuf:"varint,1,opt,name=volume,proto3" json:"volume,omitempty"`
	VolumeSteps int32  `protobuf:"varint,2,opt,name=volume_steps,json=volumeSteps,proto3" json:"volume_steps,omitempty"`
	// contains filtered or unexported fields
}

func (*GroupDeviceVolume) Descriptor deprecated added in v0.5.1

func (*GroupDeviceVolume) Descriptor() ([]byte, []int)

Deprecated: Use GroupDeviceVolume.ProtoReflect.Descriptor instead.

func (*GroupDeviceVolume) GetVolume added in v0.5.1

func (x *GroupDeviceVolume) GetVolume() uint32

func (*GroupDeviceVolume) GetVolumeSteps added in v0.5.1

func (x *GroupDeviceVolume) GetVolumeSteps() int32

func (*GroupDeviceVolume) ProtoMessage added in v0.5.1

func (*GroupDeviceVolume) ProtoMessage()

func (*GroupDeviceVolume) ProtoReflect added in v0.5.1

func (x *GroupDeviceVolume) ProtoReflect() protoreflect.Message

func (*GroupDeviceVolume) Reset added in v0.5.1

func (x *GroupDeviceVolume) Reset()

func (*GroupDeviceVolume) String added in v0.5.1

func (x *GroupDeviceVolume) String() string

type GroupDevice_GroupingStatus added in v0.5.1

type GroupDevice_GroupingStatus int32
const (
	GroupDevice_UNKNOWN_GROUPING_STATUS GroupDevice_GroupingStatus = 0
	GroupDevice_GROUPED                 GroupDevice_GroupingStatus = 1
	GroupDevice_GROUPABLE               GroupDevice_GroupingStatus = 2
)

func (GroupDevice_GroupingStatus) Descriptor added in v0.5.1

func (GroupDevice_GroupingStatus) Enum added in v0.5.1

func (GroupDevice_GroupingStatus) EnumDescriptor deprecated added in v0.5.1

func (GroupDevice_GroupingStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use GroupDevice_GroupingStatus.Descriptor instead.

func (GroupDevice_GroupingStatus) Number added in v0.5.1

func (GroupDevice_GroupingStatus) String added in v0.5.1

func (GroupDevice_GroupingStatus) Type added in v0.5.1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL