Fetch the repository succeeded.
// 声明 proto 使用的语法版本
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.31.0
// protoc v4.25.1
// source: audio.proto
// proto 包名
package audio
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type GetAudioPushURLRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
}
func (x *GetAudioPushURLRequest) Reset() {
*x = GetAudioPushURLRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_audio_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAudioPushURLRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAudioPushURLRequest) ProtoMessage() {}
func (x *GetAudioPushURLRequest) ProtoReflect() protoreflect.Message {
mi := &file_audio_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAudioPushURLRequest.ProtoReflect.Descriptor instead.
func (*GetAudioPushURLRequest) Descriptor() ([]byte, []int) {
return file_audio_proto_rawDescGZIP(), []int{0}
}
func (x *GetAudioPushURLRequest) GetDeviceID() string {
if x != nil {
return x.DeviceID
}
return ""
}
func (x *GetAudioPushURLRequest) GetChannelID() string {
if x != nil {
return x.ChannelID
}
return ""
}
type GetAudioPushURLResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
URL string `protobuf:"bytes,1,opt,name=URL,proto3" json:"URL,omitempty"`
}
func (x *GetAudioPushURLResponse) Reset() {
*x = GetAudioPushURLResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_audio_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAudioPushURLResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAudioPushURLResponse) ProtoMessage() {}
func (x *GetAudioPushURLResponse) ProtoReflect() protoreflect.Message {
mi := &file_audio_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetAudioPushURLResponse.ProtoReflect.Descriptor instead.
func (*GetAudioPushURLResponse) Descriptor() ([]byte, []int) {
return file_audio_proto_rawDescGZIP(), []int{1}
}
func (x *GetAudioPushURLResponse) GetURL() string {
if x != nil {
return x.URL
}
return ""
}
type StartAudioSendRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 设备编号
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
// 开对讲通道号
ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
}
func (x *StartAudioSendRequest) Reset() {
*x = StartAudioSendRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_audio_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StartAudioSendRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StartAudioSendRequest) ProtoMessage() {}
func (x *StartAudioSendRequest) ProtoReflect() protoreflect.Message {
mi := &file_audio_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StartAudioSendRequest.ProtoReflect.Descriptor instead.
func (*StartAudioSendRequest) Descriptor() ([]byte, []int) {
return file_audio_proto_rawDescGZIP(), []int{2}
}
func (x *StartAudioSendRequest) GetDeviceID() string {
if x != nil {
return x.DeviceID
}
return ""
}
func (x *StartAudioSendRequest) GetChannelID() string {
if x != nil {
return x.ChannelID
}
return ""
}
type StopAudioSendRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// 设备编号
DeviceID string `protobuf:"bytes,1,opt,name=DeviceID,proto3" json:"DeviceID,omitempty"`
// 开对讲通道号
ChannelID string `protobuf:"bytes,2,opt,name=ChannelID,proto3" json:"ChannelID,omitempty"`
}
func (x *StopAudioSendRequest) Reset() {
*x = StopAudioSendRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_audio_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StopAudioSendRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StopAudioSendRequest) ProtoMessage() {}
func (x *StopAudioSendRequest) ProtoReflect() protoreflect.Message {
mi := &file_audio_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StopAudioSendRequest.ProtoReflect.Descriptor instead.
func (*StopAudioSendRequest) Descriptor() ([]byte, []int) {
return file_audio_proto_rawDescGZIP(), []int{3}
}
func (x *StopAudioSendRequest) GetDeviceID() string {
if x != nil {
return x.DeviceID
}
return ""
}
func (x *StopAudioSendRequest) GetChannelID() string {
if x != nil {
return x.ChannelID
}
return ""
}
type EmptyResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
}
func (x *EmptyResponse) Reset() {
*x = EmptyResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_audio_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EmptyResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EmptyResponse) ProtoMessage() {}
func (x *EmptyResponse) ProtoReflect() protoreflect.Message {
mi := &file_audio_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
func (*EmptyResponse) Descriptor() ([]byte, []int) {
return file_audio_proto_rawDescGZIP(), []int{4}
}
var File_audio_proto protoreflect.FileDescriptor
var file_audio_proto_rawDesc = []byte{
0x0a, 0x0b, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x61,
0x75, 0x64, 0x69, 0x6f, 0x22, 0x52, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f,
0x50, 0x75, 0x73, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a,
0x0a, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x68,
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43,
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x22, 0x2b, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x41,
0x75, 0x64, 0x69, 0x6f, 0x50, 0x75, 0x73, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x4c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x55, 0x52, 0x4c, 0x22, 0x51, 0x0a, 0x15, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x75,
0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a,
0x0a, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09, 0x43, 0x68,
0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x43,
0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x22, 0x50, 0x0a, 0x14, 0x53, 0x74, 0x6f, 0x70,
0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x12, 0x1a, 0x0a, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x08, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x44, 0x12, 0x1c, 0x0a, 0x09,
0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x09, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x49, 0x44, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d,
0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xea, 0x01, 0x0a, 0x0c,
0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x50, 0x0a, 0x0f,
0x47, 0x65, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x50, 0x75, 0x73, 0x68, 0x55, 0x52, 0x4c, 0x12,
0x1d, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f,
0x50, 0x75, 0x73, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e,
0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x50,
0x75, 0x73, 0x68, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44,
0x0a, 0x0e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64,
0x12, 0x1c, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x75,
0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x14,
0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x12, 0x42, 0x0a, 0x0d, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x75, 0x64, 0x69,
0x6f, 0x53, 0x65, 0x6e, 0x64, 0x12, 0x1b, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x53, 0x74,
0x6f, 0x70, 0x41, 0x75, 0x64, 0x69, 0x6f, 0x53, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x14, 0x2e, 0x61, 0x75, 0x64, 0x69, 0x6f, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x09, 0x5a, 0x07, 0x2e, 0x2f, 0x61, 0x75,
0x64, 0x69, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_audio_proto_rawDescOnce sync.Once
file_audio_proto_rawDescData = file_audio_proto_rawDesc
)
func file_audio_proto_rawDescGZIP() []byte {
file_audio_proto_rawDescOnce.Do(func() {
file_audio_proto_rawDescData = protoimpl.X.CompressGZIP(file_audio_proto_rawDescData)
})
return file_audio_proto_rawDescData
}
var file_audio_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_audio_proto_goTypes = []interface{}{
(*GetAudioPushURLRequest)(nil), // 0: audio.GetAudioPushURLRequest
(*GetAudioPushURLResponse)(nil), // 1: audio.GetAudioPushURLResponse
(*StartAudioSendRequest)(nil), // 2: audio.StartAudioSendRequest
(*StopAudioSendRequest)(nil), // 3: audio.StopAudioSendRequest
(*EmptyResponse)(nil), // 4: audio.EmptyResponse
}
var file_audio_proto_depIdxs = []int32{
0, // 0: audio.AudioService.GetAudioPushURL:input_type -> audio.GetAudioPushURLRequest
2, // 1: audio.AudioService.StartAudioSend:input_type -> audio.StartAudioSendRequest
3, // 2: audio.AudioService.StopAudioSend:input_type -> audio.StopAudioSendRequest
1, // 3: audio.AudioService.GetAudioPushURL:output_type -> audio.GetAudioPushURLResponse
4, // 4: audio.AudioService.StartAudioSend:output_type -> audio.EmptyResponse
4, // 5: audio.AudioService.StopAudioSend:output_type -> audio.EmptyResponse
3, // [3:6] is the sub-list for method output_type
0, // [0:3] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_audio_proto_init() }
func file_audio_proto_init() {
if File_audio_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_audio_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAudioPushURLRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_audio_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetAudioPushURLResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_audio_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StartAudioSendRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_audio_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StopAudioSendRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_audio_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*EmptyResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_audio_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_audio_proto_goTypes,
DependencyIndexes: file_audio_proto_depIdxs,
MessageInfos: file_audio_proto_msgTypes,
}.Build()
File_audio_proto = out.File
file_audio_proto_rawDesc = nil
file_audio_proto_goTypes = nil
file_audio_proto_depIdxs = nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。