代码拉取完成,页面将自动刷新
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: as/external/api/network.proto
package api
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
_ "google.golang.org/protobuf/types/known/timestamppb"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type StreamGlobalMessageResponse struct {
// google.protobuf.Timestamp timestamp = 1;
WifiIp string `protobuf:"bytes,1,opt,name=wifi_ip,json=WIFI_IP,proto3" json:"wifi_ip,omitempty"`
ApIp string `protobuf:"bytes,2,opt,name=ap_ip,json=AP_IP,proto3" json:"ap_ip,omitempty"`
EthIp string `protobuf:"bytes,3,opt,name=eth_ip,json=ETH_IP,proto3" json:"eth_ip,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StreamGlobalMessageResponse) Reset() { *m = StreamGlobalMessageResponse{} }
func (m *StreamGlobalMessageResponse) String() string { return proto.CompactTextString(m) }
func (*StreamGlobalMessageResponse) ProtoMessage() {}
func (*StreamGlobalMessageResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{0}
}
func (m *StreamGlobalMessageResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StreamGlobalMessageResponse.Unmarshal(m, b)
}
func (m *StreamGlobalMessageResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StreamGlobalMessageResponse.Marshal(b, m, deterministic)
}
func (m *StreamGlobalMessageResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StreamGlobalMessageResponse.Merge(m, src)
}
func (m *StreamGlobalMessageResponse) XXX_Size() int {
return xxx_messageInfo_StreamGlobalMessageResponse.Size(m)
}
func (m *StreamGlobalMessageResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StreamGlobalMessageResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StreamGlobalMessageResponse proto.InternalMessageInfo
func (m *StreamGlobalMessageResponse) GetWifiIp() string {
if m != nil {
return m.WifiIp
}
return ""
}
func (m *StreamGlobalMessageResponse) GetApIp() string {
if m != nil {
return m.ApIp
}
return ""
}
func (m *StreamGlobalMessageResponse) GetEthIp() string {
if m != nil {
return m.EthIp
}
return ""
}
type EncryptListResponse struct {
Encrypt []string `protobuf:"bytes,1,rep,name=encrypt,proto3" json:"encrypt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EncryptListResponse) Reset() { *m = EncryptListResponse{} }
func (m *EncryptListResponse) String() string { return proto.CompactTextString(m) }
func (*EncryptListResponse) ProtoMessage() {}
func (*EncryptListResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{1}
}
func (m *EncryptListResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EncryptListResponse.Unmarshal(m, b)
}
func (m *EncryptListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EncryptListResponse.Marshal(b, m, deterministic)
}
func (m *EncryptListResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EncryptListResponse.Merge(m, src)
}
func (m *EncryptListResponse) XXX_Size() int {
return xxx_messageInfo_EncryptListResponse.Size(m)
}
func (m *EncryptListResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EncryptListResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EncryptListResponse proto.InternalMessageInfo
func (m *EncryptListResponse) GetEncrypt() []string {
if m != nil {
return m.Encrypt
}
return nil
}
type GetWiFiConfigurationRequest struct {
Mode string `protobuf:"bytes,1,opt,name=mode,proto3" json:"mode,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetWiFiConfigurationRequest) Reset() { *m = GetWiFiConfigurationRequest{} }
func (m *GetWiFiConfigurationRequest) String() string { return proto.CompactTextString(m) }
func (*GetWiFiConfigurationRequest) ProtoMessage() {}
func (*GetWiFiConfigurationRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{2}
}
func (m *GetWiFiConfigurationRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetWiFiConfigurationRequest.Unmarshal(m, b)
}
func (m *GetWiFiConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetWiFiConfigurationRequest.Marshal(b, m, deterministic)
}
func (m *GetWiFiConfigurationRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetWiFiConfigurationRequest.Merge(m, src)
}
func (m *GetWiFiConfigurationRequest) XXX_Size() int {
return xxx_messageInfo_GetWiFiConfigurationRequest.Size(m)
}
func (m *GetWiFiConfigurationRequest) XXX_DiscardUnknown() {
xxx_messageInfo_GetWiFiConfigurationRequest.DiscardUnknown(m)
}
var xxx_messageInfo_GetWiFiConfigurationRequest proto.InternalMessageInfo
func (m *GetWiFiConfigurationRequest) GetMode() string {
if m != nil {
return m.Mode
}
return ""
}
type WiFiAPConfiguration struct {
Ssid string `protobuf:"bytes,1,opt,name=ssid,proto3" json:"ssid,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiAPConfiguration) Reset() { *m = WiFiAPConfiguration{} }
func (m *WiFiAPConfiguration) String() string { return proto.CompactTextString(m) }
func (*WiFiAPConfiguration) ProtoMessage() {}
func (*WiFiAPConfiguration) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{3}
}
func (m *WiFiAPConfiguration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiAPConfiguration.Unmarshal(m, b)
}
func (m *WiFiAPConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiAPConfiguration.Marshal(b, m, deterministic)
}
func (m *WiFiAPConfiguration) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiAPConfiguration.Merge(m, src)
}
func (m *WiFiAPConfiguration) XXX_Size() int {
return xxx_messageInfo_WiFiAPConfiguration.Size(m)
}
func (m *WiFiAPConfiguration) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiAPConfiguration.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiAPConfiguration proto.InternalMessageInfo
func (m *WiFiAPConfiguration) GetSsid() string {
if m != nil {
return m.Ssid
}
return ""
}
func (m *WiFiAPConfiguration) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
type WiFiSTAConfigurationList struct {
Item []*WiFiSTAConfiguration `protobuf:"bytes,1,rep,name=item,proto3" json:"item,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiSTAConfigurationList) Reset() { *m = WiFiSTAConfigurationList{} }
func (m *WiFiSTAConfigurationList) String() string { return proto.CompactTextString(m) }
func (*WiFiSTAConfigurationList) ProtoMessage() {}
func (*WiFiSTAConfigurationList) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{4}
}
func (m *WiFiSTAConfigurationList) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiSTAConfigurationList.Unmarshal(m, b)
}
func (m *WiFiSTAConfigurationList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiSTAConfigurationList.Marshal(b, m, deterministic)
}
func (m *WiFiSTAConfigurationList) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiSTAConfigurationList.Merge(m, src)
}
func (m *WiFiSTAConfigurationList) XXX_Size() int {
return xxx_messageInfo_WiFiSTAConfigurationList.Size(m)
}
func (m *WiFiSTAConfigurationList) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiSTAConfigurationList.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiSTAConfigurationList proto.InternalMessageInfo
func (m *WiFiSTAConfigurationList) GetItem() []*WiFiSTAConfiguration {
if m != nil {
return m.Item
}
return nil
}
type WiFiSTAConfiguration struct {
Ssid string `protobuf:"bytes,1,opt,name=ssid,proto3" json:"ssid,omitempty"`
Passwd string `protobuf:"bytes,2,opt,name=passwd,proto3" json:"passwd,omitempty"`
Encrypt string `protobuf:"bytes,3,opt,name=encrypt,proto3" json:"encrypt,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiSTAConfiguration) Reset() { *m = WiFiSTAConfiguration{} }
func (m *WiFiSTAConfiguration) String() string { return proto.CompactTextString(m) }
func (*WiFiSTAConfiguration) ProtoMessage() {}
func (*WiFiSTAConfiguration) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{5}
}
func (m *WiFiSTAConfiguration) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiSTAConfiguration.Unmarshal(m, b)
}
func (m *WiFiSTAConfiguration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiSTAConfiguration.Marshal(b, m, deterministic)
}
func (m *WiFiSTAConfiguration) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiSTAConfiguration.Merge(m, src)
}
func (m *WiFiSTAConfiguration) XXX_Size() int {
return xxx_messageInfo_WiFiSTAConfiguration.Size(m)
}
func (m *WiFiSTAConfiguration) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiSTAConfiguration.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiSTAConfiguration proto.InternalMessageInfo
func (m *WiFiSTAConfiguration) GetSsid() string {
if m != nil {
return m.Ssid
}
return ""
}
func (m *WiFiSTAConfiguration) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
func (m *WiFiSTAConfiguration) GetEncrypt() string {
if m != nil {
return m.Encrypt
}
return ""
}
type WiFiResponse struct {
// Types that are valid to be assigned to Wifi:
//
// *WiFiResponse_WifiSTA
// *WiFiResponse_Disable
Wifi isWiFiResponse_Wifi `protobuf_oneof:"wifi"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiResponse) Reset() { *m = WiFiResponse{} }
func (m *WiFiResponse) String() string { return proto.CompactTextString(m) }
func (*WiFiResponse) ProtoMessage() {}
func (*WiFiResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{6}
}
func (m *WiFiResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiResponse.Unmarshal(m, b)
}
func (m *WiFiResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiResponse.Marshal(b, m, deterministic)
}
func (m *WiFiResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiResponse.Merge(m, src)
}
func (m *WiFiResponse) XXX_Size() int {
return xxx_messageInfo_WiFiResponse.Size(m)
}
func (m *WiFiResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiResponse proto.InternalMessageInfo
type isWiFiResponse_Wifi interface {
isWiFiResponse_Wifi()
}
type WiFiResponse_WifiSTA struct {
WifiSTA *WiFiSTA `protobuf:"bytes,1,opt,name=wifiSTA,proto3,oneof"`
}
type WiFiResponse_Disable struct {
Disable bool `protobuf:"varint,2,opt,name=disable,proto3,oneof"`
}
func (*WiFiResponse_WifiSTA) isWiFiResponse_Wifi() {}
func (*WiFiResponse_Disable) isWiFiResponse_Wifi() {}
func (m *WiFiResponse) GetWifi() isWiFiResponse_Wifi {
if m != nil {
return m.Wifi
}
return nil
}
func (m *WiFiResponse) GetWifiSTA() *WiFiSTA {
if x, ok := m.GetWifi().(*WiFiResponse_WifiSTA); ok {
return x.WifiSTA
}
return nil
}
func (m *WiFiResponse) GetDisable() bool {
if x, ok := m.GetWifi().(*WiFiResponse_Disable); ok {
return x.Disable
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*WiFiResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*WiFiResponse_WifiSTA)(nil),
(*WiFiResponse_Disable)(nil),
}
}
type WiFiRequest struct {
// Types that are valid to be assigned to Wifi:
//
// *WiFiRequest_WifiSTA
// *WiFiRequest_Disable
Wifi isWiFiRequest_Wifi `protobuf_oneof:"wifi"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiRequest) Reset() { *m = WiFiRequest{} }
func (m *WiFiRequest) String() string { return proto.CompactTextString(m) }
func (*WiFiRequest) ProtoMessage() {}
func (*WiFiRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{7}
}
func (m *WiFiRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiRequest.Unmarshal(m, b)
}
func (m *WiFiRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiRequest.Marshal(b, m, deterministic)
}
func (m *WiFiRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiRequest.Merge(m, src)
}
func (m *WiFiRequest) XXX_Size() int {
return xxx_messageInfo_WiFiRequest.Size(m)
}
func (m *WiFiRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiRequest proto.InternalMessageInfo
type isWiFiRequest_Wifi interface {
isWiFiRequest_Wifi()
}
type WiFiRequest_WifiSTA struct {
WifiSTA *WiFiSTA `protobuf:"bytes,1,opt,name=wifiSTA,proto3,oneof"`
}
type WiFiRequest_Disable struct {
Disable bool `protobuf:"varint,2,opt,name=disable,proto3,oneof"`
}
func (*WiFiRequest_WifiSTA) isWiFiRequest_Wifi() {}
func (*WiFiRequest_Disable) isWiFiRequest_Wifi() {}
func (m *WiFiRequest) GetWifi() isWiFiRequest_Wifi {
if m != nil {
return m.Wifi
}
return nil
}
func (m *WiFiRequest) GetWifiSTA() *WiFiSTA {
if x, ok := m.GetWifi().(*WiFiRequest_WifiSTA); ok {
return x.WifiSTA
}
return nil
}
func (m *WiFiRequest) GetDisable() bool {
if x, ok := m.GetWifi().(*WiFiRequest_Disable); ok {
return x.Disable
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*WiFiRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*WiFiRequest_WifiSTA)(nil),
(*WiFiRequest_Disable)(nil),
}
}
type WiFiStatusResponse struct {
Disable bool `protobuf:"varint,1,opt,name=disable,proto3" json:"disable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiStatusResponse) Reset() { *m = WiFiStatusResponse{} }
func (m *WiFiStatusResponse) String() string { return proto.CompactTextString(m) }
func (*WiFiStatusResponse) ProtoMessage() {}
func (*WiFiStatusResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{8}
}
func (m *WiFiStatusResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiStatusResponse.Unmarshal(m, b)
}
func (m *WiFiStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiStatusResponse.Marshal(b, m, deterministic)
}
func (m *WiFiStatusResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiStatusResponse.Merge(m, src)
}
func (m *WiFiStatusResponse) XXX_Size() int {
return xxx_messageInfo_WiFiStatusResponse.Size(m)
}
func (m *WiFiStatusResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiStatusResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiStatusResponse proto.InternalMessageInfo
func (m *WiFiStatusResponse) GetDisable() bool {
if m != nil {
return m.Disable
}
return false
}
type WiFiListResponse struct {
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
Result []*WiFiInfo `protobuf:"bytes,2,rep,name=result,proto3" json:"result,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiListResponse) Reset() { *m = WiFiListResponse{} }
func (m *WiFiListResponse) String() string { return proto.CompactTextString(m) }
func (*WiFiListResponse) ProtoMessage() {}
func (*WiFiListResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{9}
}
func (m *WiFiListResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiListResponse.Unmarshal(m, b)
}
func (m *WiFiListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiListResponse.Marshal(b, m, deterministic)
}
func (m *WiFiListResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiListResponse.Merge(m, src)
}
func (m *WiFiListResponse) XXX_Size() int {
return xxx_messageInfo_WiFiListResponse.Size(m)
}
func (m *WiFiListResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiListResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiListResponse proto.InternalMessageInfo
func (m *WiFiListResponse) GetTotal() int32 {
if m != nil {
return m.Total
}
return 0
}
func (m *WiFiListResponse) GetResult() []*WiFiInfo {
if m != nil {
return m.Result
}
return nil
}
type APResponse struct {
// Types that are valid to be assigned to Ap:
//
// *APResponse_WifiAP
// *APResponse_Disable
Ap isAPResponse_Ap `protobuf_oneof:"ap"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *APResponse) Reset() { *m = APResponse{} }
func (m *APResponse) String() string { return proto.CompactTextString(m) }
func (*APResponse) ProtoMessage() {}
func (*APResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{10}
}
func (m *APResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_APResponse.Unmarshal(m, b)
}
func (m *APResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_APResponse.Marshal(b, m, deterministic)
}
func (m *APResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_APResponse.Merge(m, src)
}
func (m *APResponse) XXX_Size() int {
return xxx_messageInfo_APResponse.Size(m)
}
func (m *APResponse) XXX_DiscardUnknown() {
xxx_messageInfo_APResponse.DiscardUnknown(m)
}
var xxx_messageInfo_APResponse proto.InternalMessageInfo
type isAPResponse_Ap interface {
isAPResponse_Ap()
}
type APResponse_WifiAP struct {
WifiAP *WiFiAP `protobuf:"bytes,1,opt,name=wifiAP,proto3,oneof"`
}
type APResponse_Disable struct {
Disable bool `protobuf:"varint,2,opt,name=disable,proto3,oneof"`
}
func (*APResponse_WifiAP) isAPResponse_Ap() {}
func (*APResponse_Disable) isAPResponse_Ap() {}
func (m *APResponse) GetAp() isAPResponse_Ap {
if m != nil {
return m.Ap
}
return nil
}
func (m *APResponse) GetWifiAP() *WiFiAP {
if x, ok := m.GetAp().(*APResponse_WifiAP); ok {
return x.WifiAP
}
return nil
}
func (m *APResponse) GetDisable() bool {
if x, ok := m.GetAp().(*APResponse_Disable); ok {
return x.Disable
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*APResponse) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*APResponse_WifiAP)(nil),
(*APResponse_Disable)(nil),
}
}
type APRequest struct {
// Types that are valid to be assigned to Ap:
//
// *APRequest_WifiAP
// *APRequest_Disable
Ap isAPRequest_Ap `protobuf_oneof:"ap"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *APRequest) Reset() { *m = APRequest{} }
func (m *APRequest) String() string { return proto.CompactTextString(m) }
func (*APRequest) ProtoMessage() {}
func (*APRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{11}
}
func (m *APRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_APRequest.Unmarshal(m, b)
}
func (m *APRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_APRequest.Marshal(b, m, deterministic)
}
func (m *APRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_APRequest.Merge(m, src)
}
func (m *APRequest) XXX_Size() int {
return xxx_messageInfo_APRequest.Size(m)
}
func (m *APRequest) XXX_DiscardUnknown() {
xxx_messageInfo_APRequest.DiscardUnknown(m)
}
var xxx_messageInfo_APRequest proto.InternalMessageInfo
type isAPRequest_Ap interface {
isAPRequest_Ap()
}
type APRequest_WifiAP struct {
WifiAP *WiFiAP `protobuf:"bytes,1,opt,name=wifiAP,proto3,oneof"`
}
type APRequest_Disable struct {
Disable bool `protobuf:"varint,2,opt,name=disable,proto3,oneof"`
}
func (*APRequest_WifiAP) isAPRequest_Ap() {}
func (*APRequest_Disable) isAPRequest_Ap() {}
func (m *APRequest) GetAp() isAPRequest_Ap {
if m != nil {
return m.Ap
}
return nil
}
func (m *APRequest) GetWifiAP() *WiFiAP {
if x, ok := m.GetAp().(*APRequest_WifiAP); ok {
return x.WifiAP
}
return nil
}
func (m *APRequest) GetDisable() bool {
if x, ok := m.GetAp().(*APRequest_Disable); ok {
return x.Disable
}
return false
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*APRequest) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*APRequest_WifiAP)(nil),
(*APRequest_Disable)(nil),
}
}
type GetServerResponse struct {
WifiAP *WiFiAP `protobuf:"bytes,1,opt,name=wifiAP,proto3" json:"wifiAP,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetServerResponse) Reset() { *m = GetServerResponse{} }
func (m *GetServerResponse) String() string { return proto.CompactTextString(m) }
func (*GetServerResponse) ProtoMessage() {}
func (*GetServerResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{12}
}
func (m *GetServerResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetServerResponse.Unmarshal(m, b)
}
func (m *GetServerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetServerResponse.Marshal(b, m, deterministic)
}
func (m *GetServerResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetServerResponse.Merge(m, src)
}
func (m *GetServerResponse) XXX_Size() int {
return xxx_messageInfo_GetServerResponse.Size(m)
}
func (m *GetServerResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetServerResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetServerResponse proto.InternalMessageInfo
func (m *GetServerResponse) GetWifiAP() *WiFiAP {
if m != nil {
return m.WifiAP
}
return nil
}
type GetClientResponse struct {
Eth *Ethernet `protobuf:"bytes,2,opt,name=eth,proto3" json:"eth,omitempty"`
Cat1 *MoudleCat1 `protobuf:"bytes,3,opt,name=cat1,proto3" json:"cat1,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *GetClientResponse) Reset() { *m = GetClientResponse{} }
func (m *GetClientResponse) String() string { return proto.CompactTextString(m) }
func (*GetClientResponse) ProtoMessage() {}
func (*GetClientResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{13}
}
func (m *GetClientResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_GetClientResponse.Unmarshal(m, b)
}
func (m *GetClientResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_GetClientResponse.Marshal(b, m, deterministic)
}
func (m *GetClientResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_GetClientResponse.Merge(m, src)
}
func (m *GetClientResponse) XXX_Size() int {
return xxx_messageInfo_GetClientResponse.Size(m)
}
func (m *GetClientResponse) XXX_DiscardUnknown() {
xxx_messageInfo_GetClientResponse.DiscardUnknown(m)
}
var xxx_messageInfo_GetClientResponse proto.InternalMessageInfo
func (m *GetClientResponse) GetEth() *Ethernet {
if m != nil {
return m.Eth
}
return nil
}
func (m *GetClientResponse) GetCat1() *MoudleCat1 {
if m != nil {
return m.Cat1
}
return nil
}
type SetServerRequest struct {
WifiAP *WiFiAP `protobuf:"bytes,1,opt,name=wifiAP,proto3" json:"wifiAP,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetServerRequest) Reset() { *m = SetServerRequest{} }
func (m *SetServerRequest) String() string { return proto.CompactTextString(m) }
func (*SetServerRequest) ProtoMessage() {}
func (*SetServerRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{14}
}
func (m *SetServerRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetServerRequest.Unmarshal(m, b)
}
func (m *SetServerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetServerRequest.Marshal(b, m, deterministic)
}
func (m *SetServerRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetServerRequest.Merge(m, src)
}
func (m *SetServerRequest) XXX_Size() int {
return xxx_messageInfo_SetServerRequest.Size(m)
}
func (m *SetServerRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetServerRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetServerRequest proto.InternalMessageInfo
func (m *SetServerRequest) GetWifiAP() *WiFiAP {
if m != nil {
return m.WifiAP
}
return nil
}
type SetClientRequest struct {
Eth *Ethernet `protobuf:"bytes,2,opt,name=eth,proto3" json:"eth,omitempty"`
Cat1 *MoudleCat1 `protobuf:"bytes,3,opt,name=cat1,proto3" json:"cat1,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SetClientRequest) Reset() { *m = SetClientRequest{} }
func (m *SetClientRequest) String() string { return proto.CompactTextString(m) }
func (*SetClientRequest) ProtoMessage() {}
func (*SetClientRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{15}
}
func (m *SetClientRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SetClientRequest.Unmarshal(m, b)
}
func (m *SetClientRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SetClientRequest.Marshal(b, m, deterministic)
}
func (m *SetClientRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_SetClientRequest.Merge(m, src)
}
func (m *SetClientRequest) XXX_Size() int {
return xxx_messageInfo_SetClientRequest.Size(m)
}
func (m *SetClientRequest) XXX_DiscardUnknown() {
xxx_messageInfo_SetClientRequest.DiscardUnknown(m)
}
var xxx_messageInfo_SetClientRequest proto.InternalMessageInfo
func (m *SetClientRequest) GetEth() *Ethernet {
if m != nil {
return m.Eth
}
return nil
}
func (m *SetClientRequest) GetCat1() *MoudleCat1 {
if m != nil {
return m.Cat1
}
return nil
}
type Cat1Response struct {
Cat1 *MoudleCat1 `protobuf:"bytes,3,opt,name=cat1,proto3" json:"cat1,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Cat1Response) Reset() { *m = Cat1Response{} }
func (m *Cat1Response) String() string { return proto.CompactTextString(m) }
func (*Cat1Response) ProtoMessage() {}
func (*Cat1Response) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{16}
}
func (m *Cat1Response) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Cat1Response.Unmarshal(m, b)
}
func (m *Cat1Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Cat1Response.Marshal(b, m, deterministic)
}
func (m *Cat1Response) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cat1Response.Merge(m, src)
}
func (m *Cat1Response) XXX_Size() int {
return xxx_messageInfo_Cat1Response.Size(m)
}
func (m *Cat1Response) XXX_DiscardUnknown() {
xxx_messageInfo_Cat1Response.DiscardUnknown(m)
}
var xxx_messageInfo_Cat1Response proto.InternalMessageInfo
func (m *Cat1Response) GetCat1() *MoudleCat1 {
if m != nil {
return m.Cat1
}
return nil
}
type Cat1Request struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Cat1Request) Reset() { *m = Cat1Request{} }
func (m *Cat1Request) String() string { return proto.CompactTextString(m) }
func (*Cat1Request) ProtoMessage() {}
func (*Cat1Request) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{17}
}
func (m *Cat1Request) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Cat1Request.Unmarshal(m, b)
}
func (m *Cat1Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Cat1Request.Marshal(b, m, deterministic)
}
func (m *Cat1Request) XXX_Merge(src proto.Message) {
xxx_messageInfo_Cat1Request.Merge(m, src)
}
func (m *Cat1Request) XXX_Size() int {
return xxx_messageInfo_Cat1Request.Size(m)
}
func (m *Cat1Request) XXX_DiscardUnknown() {
xxx_messageInfo_Cat1Request.DiscardUnknown(m)
}
var xxx_messageInfo_Cat1Request proto.InternalMessageInfo
func (m *Cat1Request) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
type EthernetRequest struct {
Eth *Ethernet `protobuf:"bytes,1,opt,name=eth,proto3" json:"eth,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EthernetRequest) Reset() { *m = EthernetRequest{} }
func (m *EthernetRequest) String() string { return proto.CompactTextString(m) }
func (*EthernetRequest) ProtoMessage() {}
func (*EthernetRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{18}
}
func (m *EthernetRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EthernetRequest.Unmarshal(m, b)
}
func (m *EthernetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EthernetRequest.Marshal(b, m, deterministic)
}
func (m *EthernetRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_EthernetRequest.Merge(m, src)
}
func (m *EthernetRequest) XXX_Size() int {
return xxx_messageInfo_EthernetRequest.Size(m)
}
func (m *EthernetRequest) XXX_DiscardUnknown() {
xxx_messageInfo_EthernetRequest.DiscardUnknown(m)
}
var xxx_messageInfo_EthernetRequest proto.InternalMessageInfo
func (m *EthernetRequest) GetEth() *Ethernet {
if m != nil {
return m.Eth
}
return nil
}
type EthernetResponse struct {
Eth *Ethernet `protobuf:"bytes,1,opt,name=eth,proto3" json:"eth,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *EthernetResponse) Reset() { *m = EthernetResponse{} }
func (m *EthernetResponse) String() string { return proto.CompactTextString(m) }
func (*EthernetResponse) ProtoMessage() {}
func (*EthernetResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{19}
}
func (m *EthernetResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_EthernetResponse.Unmarshal(m, b)
}
func (m *EthernetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_EthernetResponse.Marshal(b, m, deterministic)
}
func (m *EthernetResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_EthernetResponse.Merge(m, src)
}
func (m *EthernetResponse) XXX_Size() int {
return xxx_messageInfo_EthernetResponse.Size(m)
}
func (m *EthernetResponse) XXX_DiscardUnknown() {
xxx_messageInfo_EthernetResponse.DiscardUnknown(m)
}
var xxx_messageInfo_EthernetResponse proto.InternalMessageInfo
func (m *EthernetResponse) GetEth() *Ethernet {
if m != nil {
return m.Eth
}
return nil
}
type WiFiAP struct {
// bool disable = 1;
Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3" json:"ssid,omitempty"`
Passwd string `protobuf:"bytes,3,opt,name=passwd,proto3" json:"passwd,omitempty"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
Netmask string `protobuf:"bytes,5,opt,name=netmask,proto3" json:"netmask,omitempty"`
Gateway string `protobuf:"bytes,6,opt,name=gateway,proto3" json:"gateway,omitempty"`
NumOfConns int32 `protobuf:"varint,7,opt,name=numOfConns,proto3" json:"numOfConns,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiAP) Reset() { *m = WiFiAP{} }
func (m *WiFiAP) String() string { return proto.CompactTextString(m) }
func (*WiFiAP) ProtoMessage() {}
func (*WiFiAP) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{20}
}
func (m *WiFiAP) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiAP.Unmarshal(m, b)
}
func (m *WiFiAP) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiAP.Marshal(b, m, deterministic)
}
func (m *WiFiAP) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiAP.Merge(m, src)
}
func (m *WiFiAP) XXX_Size() int {
return xxx_messageInfo_WiFiAP.Size(m)
}
func (m *WiFiAP) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiAP.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiAP proto.InternalMessageInfo
func (m *WiFiAP) GetSsid() string {
if m != nil {
return m.Ssid
}
return ""
}
func (m *WiFiAP) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
func (m *WiFiAP) GetIp() string {
if m != nil {
return m.Ip
}
return ""
}
func (m *WiFiAP) GetNetmask() string {
if m != nil {
return m.Netmask
}
return ""
}
func (m *WiFiAP) GetGateway() string {
if m != nil {
return m.Gateway
}
return ""
}
func (m *WiFiAP) GetNumOfConns() int32 {
if m != nil {
return m.NumOfConns
}
return 0
}
type WiFiInfo struct {
SSID string `protobuf:"bytes,1,opt,name=SSID,proto3" json:"SSID,omitempty"`
BSS string `protobuf:"bytes,2,opt,name=BSS,proto3" json:"BSS,omitempty"`
Encrypt string `protobuf:"bytes,3,opt,name=encrypt,proto3" json:"encrypt,omitempty"`
Signal float64 `protobuf:"fixed64,4,opt,name=signal,proto3" json:"signal,omitempty"`
Connected bool `protobuf:"varint,5,opt,name=connected,proto3" json:"connected,omitempty"`
Save bool `protobuf:"varint,6,opt,name=save,proto3" json:"save,omitempty"`
Passwd string `protobuf:"bytes,7,opt,name=passwd,proto3" json:"passwd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiInfo) Reset() { *m = WiFiInfo{} }
func (m *WiFiInfo) String() string { return proto.CompactTextString(m) }
func (*WiFiInfo) ProtoMessage() {}
func (*WiFiInfo) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{21}
}
func (m *WiFiInfo) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiInfo.Unmarshal(m, b)
}
func (m *WiFiInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiInfo.Marshal(b, m, deterministic)
}
func (m *WiFiInfo) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiInfo.Merge(m, src)
}
func (m *WiFiInfo) XXX_Size() int {
return xxx_messageInfo_WiFiInfo.Size(m)
}
func (m *WiFiInfo) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiInfo.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiInfo proto.InternalMessageInfo
func (m *WiFiInfo) GetSSID() string {
if m != nil {
return m.SSID
}
return ""
}
func (m *WiFiInfo) GetBSS() string {
if m != nil {
return m.BSS
}
return ""
}
func (m *WiFiInfo) GetEncrypt() string {
if m != nil {
return m.Encrypt
}
return ""
}
func (m *WiFiInfo) GetSignal() float64 {
if m != nil {
return m.Signal
}
return 0
}
func (m *WiFiInfo) GetConnected() bool {
if m != nil {
return m.Connected
}
return false
}
func (m *WiFiInfo) GetSave() bool {
if m != nil {
return m.Save
}
return false
}
func (m *WiFiInfo) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
type WiFiSTA struct {
// bool disable = 1;
Ssid string `protobuf:"bytes,2,opt,name=ssid,proto3" json:"ssid,omitempty"`
Passwd string `protobuf:"bytes,3,opt,name=passwd,proto3" json:"passwd,omitempty"`
Ip string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
Netmask string `protobuf:"bytes,5,opt,name=netmask,proto3" json:"netmask,omitempty"`
Gateway string `protobuf:"bytes,6,opt,name=gateway,proto3" json:"gateway,omitempty"`
Encrypt string `protobuf:"bytes,7,opt,name=encrypt,proto3" json:"encrypt,omitempty"`
Signal float64 `protobuf:"fixed64,8,opt,name=signal,proto3" json:"signal,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WiFiSTA) Reset() { *m = WiFiSTA{} }
func (m *WiFiSTA) String() string { return proto.CompactTextString(m) }
func (*WiFiSTA) ProtoMessage() {}
func (*WiFiSTA) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{22}
}
func (m *WiFiSTA) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WiFiSTA.Unmarshal(m, b)
}
func (m *WiFiSTA) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WiFiSTA.Marshal(b, m, deterministic)
}
func (m *WiFiSTA) XXX_Merge(src proto.Message) {
xxx_messageInfo_WiFiSTA.Merge(m, src)
}
func (m *WiFiSTA) XXX_Size() int {
return xxx_messageInfo_WiFiSTA.Size(m)
}
func (m *WiFiSTA) XXX_DiscardUnknown() {
xxx_messageInfo_WiFiSTA.DiscardUnknown(m)
}
var xxx_messageInfo_WiFiSTA proto.InternalMessageInfo
func (m *WiFiSTA) GetSsid() string {
if m != nil {
return m.Ssid
}
return ""
}
func (m *WiFiSTA) GetPasswd() string {
if m != nil {
return m.Passwd
}
return ""
}
func (m *WiFiSTA) GetIp() string {
if m != nil {
return m.Ip
}
return ""
}
func (m *WiFiSTA) GetNetmask() string {
if m != nil {
return m.Netmask
}
return ""
}
func (m *WiFiSTA) GetGateway() string {
if m != nil {
return m.Gateway
}
return ""
}
func (m *WiFiSTA) GetEncrypt() string {
if m != nil {
return m.Encrypt
}
return ""
}
func (m *WiFiSTA) GetSignal() float64 {
if m != nil {
return m.Signal
}
return 0
}
type Ethernet struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
Dhcp bool `protobuf:"varint,2,opt,name=dhcp,proto3" json:"dhcp,omitempty"`
Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"`
Netmask string `protobuf:"bytes,4,opt,name=netmask,proto3" json:"netmask,omitempty"`
Gateway string `protobuf:"bytes,6,opt,name=gateway,proto3" json:"gateway,omitempty"`
Mac string `protobuf:"bytes,7,opt,name=mac,proto3" json:"mac,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Ethernet) Reset() { *m = Ethernet{} }
func (m *Ethernet) String() string { return proto.CompactTextString(m) }
func (*Ethernet) ProtoMessage() {}
func (*Ethernet) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{23}
}
func (m *Ethernet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Ethernet.Unmarshal(m, b)
}
func (m *Ethernet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Ethernet.Marshal(b, m, deterministic)
}
func (m *Ethernet) XXX_Merge(src proto.Message) {
xxx_messageInfo_Ethernet.Merge(m, src)
}
func (m *Ethernet) XXX_Size() int {
return xxx_messageInfo_Ethernet.Size(m)
}
func (m *Ethernet) XXX_DiscardUnknown() {
xxx_messageInfo_Ethernet.DiscardUnknown(m)
}
var xxx_messageInfo_Ethernet proto.InternalMessageInfo
func (m *Ethernet) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
func (m *Ethernet) GetDhcp() bool {
if m != nil {
return m.Dhcp
}
return false
}
func (m *Ethernet) GetIp() string {
if m != nil {
return m.Ip
}
return ""
}
func (m *Ethernet) GetNetmask() string {
if m != nil {
return m.Netmask
}
return ""
}
func (m *Ethernet) GetGateway() string {
if m != nil {
return m.Gateway
}
return ""
}
func (m *Ethernet) GetMac() string {
if m != nil {
return m.Mac
}
return ""
}
type MoudleCat1 struct {
Enable bool `protobuf:"varint,1,opt,name=enable,proto3" json:"enable,omitempty"`
PublicIp string `protobuf:"bytes,2,opt,name=public_ip,json=publicIP,proto3" json:"public_ip,omitempty"`
Card bool `protobuf:"varint,3,opt,name=card,proto3" json:"card,omitempty"`
Per float32 `protobuf:"fixed32,4,opt,name=per,proto3" json:"per,omitempty"`
Snr int32 `protobuf:"varint,5,opt,name=snr,proto3" json:"snr,omitempty"`
Operator string `protobuf:"bytes,6,opt,name=operator,proto3" json:"operator,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *MoudleCat1) Reset() { *m = MoudleCat1{} }
func (m *MoudleCat1) String() string { return proto.CompactTextString(m) }
func (*MoudleCat1) ProtoMessage() {}
func (*MoudleCat1) Descriptor() ([]byte, []int) {
return fileDescriptor_434c88f4d1b317ad, []int{24}
}
func (m *MoudleCat1) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_MoudleCat1.Unmarshal(m, b)
}
func (m *MoudleCat1) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_MoudleCat1.Marshal(b, m, deterministic)
}
func (m *MoudleCat1) XXX_Merge(src proto.Message) {
xxx_messageInfo_MoudleCat1.Merge(m, src)
}
func (m *MoudleCat1) XXX_Size() int {
return xxx_messageInfo_MoudleCat1.Size(m)
}
func (m *MoudleCat1) XXX_DiscardUnknown() {
xxx_messageInfo_MoudleCat1.DiscardUnknown(m)
}
var xxx_messageInfo_MoudleCat1 proto.InternalMessageInfo
func (m *MoudleCat1) GetEnable() bool {
if m != nil {
return m.Enable
}
return false
}
func (m *MoudleCat1) GetPublicIp() string {
if m != nil {
return m.PublicIp
}
return ""
}
func (m *MoudleCat1) GetCard() bool {
if m != nil {
return m.Card
}
return false
}
func (m *MoudleCat1) GetPer() float32 {
if m != nil {
return m.Per
}
return 0
}
func (m *MoudleCat1) GetSnr() int32 {
if m != nil {
return m.Snr
}
return 0
}
func (m *MoudleCat1) GetOperator() string {
if m != nil {
return m.Operator
}
return ""
}
func init() {
proto.RegisterType((*StreamGlobalMessageResponse)(nil), "api.StreamGlobalMessageResponse")
proto.RegisterType((*EncryptListResponse)(nil), "api.EncryptListResponse")
proto.RegisterType((*GetWiFiConfigurationRequest)(nil), "api.GetWiFiConfigurationRequest")
proto.RegisterType((*WiFiAPConfiguration)(nil), "api.WiFiAPConfiguration")
proto.RegisterType((*WiFiSTAConfigurationList)(nil), "api.WiFiSTAConfigurationList")
proto.RegisterType((*WiFiSTAConfiguration)(nil), "api.WiFiSTAConfiguration")
proto.RegisterType((*WiFiResponse)(nil), "api.WiFiResponse")
proto.RegisterType((*WiFiRequest)(nil), "api.WiFiRequest")
proto.RegisterType((*WiFiStatusResponse)(nil), "api.WiFiStatusResponse")
proto.RegisterType((*WiFiListResponse)(nil), "api.WiFiListResponse")
proto.RegisterType((*APResponse)(nil), "api.APResponse")
proto.RegisterType((*APRequest)(nil), "api.APRequest")
proto.RegisterType((*GetServerResponse)(nil), "api.GetServerResponse")
proto.RegisterType((*GetClientResponse)(nil), "api.GetClientResponse")
proto.RegisterType((*SetServerRequest)(nil), "api.SetServerRequest")
proto.RegisterType((*SetClientRequest)(nil), "api.SetClientRequest")
proto.RegisterType((*Cat1Response)(nil), "api.Cat1Response")
proto.RegisterType((*Cat1Request)(nil), "api.Cat1Request")
proto.RegisterType((*EthernetRequest)(nil), "api.EthernetRequest")
proto.RegisterType((*EthernetResponse)(nil), "api.EthernetResponse")
proto.RegisterType((*WiFiAP)(nil), "api.WiFiAP")
proto.RegisterType((*WiFiInfo)(nil), "api.WiFiInfo")
proto.RegisterType((*WiFiSTA)(nil), "api.WiFiSTA")
proto.RegisterType((*Ethernet)(nil), "api.Ethernet")
proto.RegisterType((*MoudleCat1)(nil), "api.MoudleCat1")
}
func init() {
proto.RegisterFile("as/external/api/network.proto", fileDescriptor_434c88f4d1b317ad)
}
var fileDescriptor_434c88f4d1b317ad = []byte{
// 1223 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xdd, 0x6e, 0xdb, 0x36,
0x14, 0xae, 0xfc, 0xab, 0x1c, 0xb7, 0x89, 0xc3, 0xa4, 0xa9, 0x6a, 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f1, 0xe9, 0x47, 0x08, 0xde, 0x24,
0xb7, 0xcf, 0xe7, 0x1e, 0xb7, 0x45, 0x0f, 0x36, 0x96, 0xfc, 0x83, 0xe4, 0xc6, 0xda, 0xc6, 0x58,
0x17, 0xfc, 0xb5, 0xd0, 0x26, 0xc6, 0xbc, 0x49, 0x36, 0x32, 0x31, 0x27, 0x68, 0xfb, 0x89, 0xf1,
0xfc, 0xd9, 0x0f, 0x9f, 0x4e, 0x5c, 0xc1, 0x79, 0xcb, 0xf1, 0x67, 0xed, 0xd1, 0x38, 0xf4, 0x87,
0xbe, 0x70, 0x46, 0x6d, 0xe7, 0xc8, 0x0d, 0x83, 0x48, 0x30, 0xe7, 0xf8, 0xb1, 0x74, 0x9b, 0xf8,
0xed, 0x33, 0xff, 0x66, 0xc3, 0x0a, 0x32, 0x79, 0xfa, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xdd,
0x5a, 0x17, 0xfe, 0xb5, 0x0d, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion6
// NetworkServiceClient is the client API for NetworkService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type NetworkServiceClient interface {
SetCat1(ctx context.Context, in *Cat1Request, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetCat1(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Cat1Response, error)
SetEthernet(ctx context.Context, in *EthernetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetEthernet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EthernetResponse, error)
GetWiFiStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiStatusResponse, error)
SetWiFi(ctx context.Context, in *WiFiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetWiFi(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiResponse, error)
GetWiFiList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiListResponse, error)
SetAP(ctx context.Context, in *APRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
GetAP(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*APResponse, error)
GetEncryptList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EncryptListResponse, error)
StreamGlobalMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (NetworkService_StreamGlobalMessageClient, error)
}
type networkServiceClient struct {
cc grpc.ClientConnInterface
}
func NewNetworkServiceClient(cc grpc.ClientConnInterface) NetworkServiceClient {
return &networkServiceClient{cc}
}
func (c *networkServiceClient) SetCat1(ctx context.Context, in *Cat1Request, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkService/SetCat1", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetCat1(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*Cat1Response, error) {
out := new(Cat1Response)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetCat1", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) SetEthernet(ctx context.Context, in *EthernetRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkService/SetEthernet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetEthernet(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EthernetResponse, error) {
out := new(EthernetResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetEthernet", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetWiFiStatus(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiStatusResponse, error) {
out := new(WiFiStatusResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetWiFiStatus", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) SetWiFi(ctx context.Context, in *WiFiRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkService/SetWiFi", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetWiFi(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiResponse, error) {
out := new(WiFiResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetWiFi", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetWiFiList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*WiFiListResponse, error) {
out := new(WiFiListResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetWiFiList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) SetAP(ctx context.Context, in *APRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, "/api.NetworkService/SetAP", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetAP(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*APResponse, error) {
out := new(APResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetAP", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) GetEncryptList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*EncryptListResponse, error) {
out := new(EncryptListResponse)
err := c.cc.Invoke(ctx, "/api.NetworkService/GetEncryptList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *networkServiceClient) StreamGlobalMessage(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (NetworkService_StreamGlobalMessageClient, error) {
stream, err := c.cc.NewStream(ctx, &_NetworkService_serviceDesc.Streams[0], "/api.NetworkService/StreamGlobalMessage", opts...)
if err != nil {
return nil, err
}
x := &networkServiceStreamGlobalMessageClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type NetworkService_StreamGlobalMessageClient interface {
Recv() (*StreamGlobalMessageResponse, error)
grpc.ClientStream
}
type networkServiceStreamGlobalMessageClient struct {
grpc.ClientStream
}
func (x *networkServiceStreamGlobalMessageClient) Recv() (*StreamGlobalMessageResponse, error) {
m := new(StreamGlobalMessageResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
// NetworkServiceServer is the server API for NetworkService service.
type NetworkServiceServer interface {
SetCat1(context.Context, *Cat1Request) (*emptypb.Empty, error)
GetCat1(context.Context, *emptypb.Empty) (*Cat1Response, error)
SetEthernet(context.Context, *EthernetRequest) (*emptypb.Empty, error)
GetEthernet(context.Context, *emptypb.Empty) (*EthernetResponse, error)
GetWiFiStatus(context.Context, *emptypb.Empty) (*WiFiStatusResponse, error)
SetWiFi(context.Context, *WiFiRequest) (*emptypb.Empty, error)
GetWiFi(context.Context, *emptypb.Empty) (*WiFiResponse, error)
GetWiFiList(context.Context, *emptypb.Empty) (*WiFiListResponse, error)
SetAP(context.Context, *APRequest) (*emptypb.Empty, error)
GetAP(context.Context, *emptypb.Empty) (*APResponse, error)
GetEncryptList(context.Context, *emptypb.Empty) (*EncryptListResponse, error)
StreamGlobalMessage(*emptypb.Empty, NetworkService_StreamGlobalMessageServer) error
}
// UnimplementedNetworkServiceServer can be embedded to have forward compatible implementations.
type UnimplementedNetworkServiceServer struct {
}
func (*UnimplementedNetworkServiceServer) SetCat1(ctx context.Context, req *Cat1Request) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetCat1 not implemented")
}
func (*UnimplementedNetworkServiceServer) GetCat1(ctx context.Context, req *emptypb.Empty) (*Cat1Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCat1 not implemented")
}
func (*UnimplementedNetworkServiceServer) SetEthernet(ctx context.Context, req *EthernetRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetEthernet not implemented")
}
func (*UnimplementedNetworkServiceServer) GetEthernet(ctx context.Context, req *emptypb.Empty) (*EthernetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetEthernet not implemented")
}
func (*UnimplementedNetworkServiceServer) GetWiFiStatus(ctx context.Context, req *emptypb.Empty) (*WiFiStatusResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWiFiStatus not implemented")
}
func (*UnimplementedNetworkServiceServer) SetWiFi(ctx context.Context, req *WiFiRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetWiFi not implemented")
}
func (*UnimplementedNetworkServiceServer) GetWiFi(ctx context.Context, req *emptypb.Empty) (*WiFiResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWiFi not implemented")
}
func (*UnimplementedNetworkServiceServer) GetWiFiList(ctx context.Context, req *emptypb.Empty) (*WiFiListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWiFiList not implemented")
}
func (*UnimplementedNetworkServiceServer) SetAP(ctx context.Context, req *APRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetAP not implemented")
}
func (*UnimplementedNetworkServiceServer) GetAP(ctx context.Context, req *emptypb.Empty) (*APResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAP not implemented")
}
func (*UnimplementedNetworkServiceServer) GetEncryptList(ctx context.Context, req *emptypb.Empty) (*EncryptListResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetEncryptList not implemented")
}
func (*UnimplementedNetworkServiceServer) StreamGlobalMessage(req *emptypb.Empty, srv NetworkService_StreamGlobalMessageServer) error {
return status.Errorf(codes.Unimplemented, "method StreamGlobalMessage not implemented")
}
func RegisterNetworkServiceServer(s *grpc.Server, srv NetworkServiceServer) {
s.RegisterService(&_NetworkService_serviceDesc, srv)
}
func _NetworkService_SetCat1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Cat1Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).SetCat1(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/SetCat1",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).SetCat1(ctx, req.(*Cat1Request))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetCat1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetCat1(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetCat1",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetCat1(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_SetEthernet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EthernetRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).SetEthernet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/SetEthernet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).SetEthernet(ctx, req.(*EthernetRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetEthernet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetEthernet(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetEthernet",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetEthernet(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetWiFiStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetWiFiStatus(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetWiFiStatus",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetWiFiStatus(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_SetWiFi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WiFiRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).SetWiFi(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/SetWiFi",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).SetWiFi(ctx, req.(*WiFiRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetWiFi_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetWiFi(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetWiFi",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetWiFi(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetWiFiList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetWiFiList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetWiFiList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetWiFiList(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_SetAP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(APRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).SetAP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/SetAP",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).SetAP(ctx, req.(*APRequest))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetAP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetAP(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetAP",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetAP(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_GetEncryptList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(emptypb.Empty)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(NetworkServiceServer).GetEncryptList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/api.NetworkService/GetEncryptList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(NetworkServiceServer).GetEncryptList(ctx, req.(*emptypb.Empty))
}
return interceptor(ctx, in, info, handler)
}
func _NetworkService_StreamGlobalMessage_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(emptypb.Empty)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(NetworkServiceServer).StreamGlobalMessage(m, &networkServiceStreamGlobalMessageServer{stream})
}
type NetworkService_StreamGlobalMessageServer interface {
Send(*StreamGlobalMessageResponse) error
grpc.ServerStream
}
type networkServiceStreamGlobalMessageServer struct {
grpc.ServerStream
}
func (x *networkServiceStreamGlobalMessageServer) Send(m *StreamGlobalMessageResponse) error {
return x.ServerStream.SendMsg(m)
}
var _NetworkService_serviceDesc = grpc.ServiceDesc{
ServiceName: "api.NetworkService",
HandlerType: (*NetworkServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "SetCat1",
Handler: _NetworkService_SetCat1_Handler,
},
{
MethodName: "GetCat1",
Handler: _NetworkService_GetCat1_Handler,
},
{
MethodName: "SetEthernet",
Handler: _NetworkService_SetEthernet_Handler,
},
{
MethodName: "GetEthernet",
Handler: _NetworkService_GetEthernet_Handler,
},
{
MethodName: "GetWiFiStatus",
Handler: _NetworkService_GetWiFiStatus_Handler,
},
{
MethodName: "SetWiFi",
Handler: _NetworkService_SetWiFi_Handler,
},
{
MethodName: "GetWiFi",
Handler: _NetworkService_GetWiFi_Handler,
},
{
MethodName: "GetWiFiList",
Handler: _NetworkService_GetWiFiList_Handler,
},
{
MethodName: "SetAP",
Handler: _NetworkService_SetAP_Handler,
},
{
MethodName: "GetAP",
Handler: _NetworkService_GetAP_Handler,
},
{
MethodName: "GetEncryptList",
Handler: _NetworkService_GetEncryptList_Handler,
},
},
Streams: []grpc.StreamDesc{
{
StreamName: "StreamGlobalMessage",
Handler: _NetworkService_StreamGlobalMessage_Handler,
ServerStreams: true,
},
},
Metadata: "as/external/api/network.proto",
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。