// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.36.11 // protoc v3.19.6 // source: service_http_websocket.proto package pb import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" unsafe "unsafe" ) 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) ) // 创建Websocket配置 type CreateHTTPWebsocketRequest struct { state protoimpl.MessageState `protogen:"open.v1"` HandshakeTimeoutJSON []byte `protobuf:"bytes,1,opt,name=handshakeTimeoutJSON,proto3" json:"handshakeTimeoutJSON,omitempty"` AllowAllOrigins bool `protobuf:"varint,2,opt,name=allowAllOrigins,proto3" json:"allowAllOrigins,omitempty"` AllowedOrigins []string `protobuf:"bytes,3,rep,name=allowedOrigins,proto3" json:"allowedOrigins,omitempty"` RequestSameOrigin bool `protobuf:"varint,4,opt,name=requestSameOrigin,proto3" json:"requestSameOrigin,omitempty"` RequestOrigin string `protobuf:"bytes,5,opt,name=requestOrigin,proto3" json:"requestOrigin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPWebsocketRequest) Reset() { *x = CreateHTTPWebsocketRequest{} mi := &file_service_http_websocket_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPWebsocketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPWebsocketRequest) ProtoMessage() {} func (x *CreateHTTPWebsocketRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_websocket_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateHTTPWebsocketRequest.ProtoReflect.Descriptor instead. func (*CreateHTTPWebsocketRequest) Descriptor() ([]byte, []int) { return file_service_http_websocket_proto_rawDescGZIP(), []int{0} } func (x *CreateHTTPWebsocketRequest) GetHandshakeTimeoutJSON() []byte { if x != nil { return x.HandshakeTimeoutJSON } return nil } func (x *CreateHTTPWebsocketRequest) GetAllowAllOrigins() bool { if x != nil { return x.AllowAllOrigins } return false } func (x *CreateHTTPWebsocketRequest) GetAllowedOrigins() []string { if x != nil { return x.AllowedOrigins } return nil } func (x *CreateHTTPWebsocketRequest) GetRequestSameOrigin() bool { if x != nil { return x.RequestSameOrigin } return false } func (x *CreateHTTPWebsocketRequest) GetRequestOrigin() string { if x != nil { return x.RequestOrigin } return "" } type CreateHTTPWebsocketResponse struct { state protoimpl.MessageState `protogen:"open.v1"` WebsocketId int64 `protobuf:"varint,1,opt,name=websocketId,proto3" json:"websocketId,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *CreateHTTPWebsocketResponse) Reset() { *x = CreateHTTPWebsocketResponse{} mi := &file_service_http_websocket_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *CreateHTTPWebsocketResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*CreateHTTPWebsocketResponse) ProtoMessage() {} func (x *CreateHTTPWebsocketResponse) ProtoReflect() protoreflect.Message { mi := &file_service_http_websocket_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use CreateHTTPWebsocketResponse.ProtoReflect.Descriptor instead. func (*CreateHTTPWebsocketResponse) Descriptor() ([]byte, []int) { return file_service_http_websocket_proto_rawDescGZIP(), []int{1} } func (x *CreateHTTPWebsocketResponse) GetWebsocketId() int64 { if x != nil { return x.WebsocketId } return 0 } // 修改Websocket配置 type UpdateHTTPWebsocketRequest struct { state protoimpl.MessageState `protogen:"open.v1"` WebsocketId int64 `protobuf:"varint,1,opt,name=websocketId,proto3" json:"websocketId,omitempty"` HandshakeTimeoutJSON []byte `protobuf:"bytes,2,opt,name=handshakeTimeoutJSON,proto3" json:"handshakeTimeoutJSON,omitempty"` AllowAllOrigins bool `protobuf:"varint,3,opt,name=allowAllOrigins,proto3" json:"allowAllOrigins,omitempty"` AllowedOrigins []string `protobuf:"bytes,4,rep,name=allowedOrigins,proto3" json:"allowedOrigins,omitempty"` RequestSameOrigin bool `protobuf:"varint,5,opt,name=requestSameOrigin,proto3" json:"requestSameOrigin,omitempty"` RequestOrigin string `protobuf:"bytes,6,opt,name=requestOrigin,proto3" json:"requestOrigin,omitempty"` unknownFields protoimpl.UnknownFields sizeCache protoimpl.SizeCache } func (x *UpdateHTTPWebsocketRequest) Reset() { *x = UpdateHTTPWebsocketRequest{} mi := &file_service_http_websocket_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *UpdateHTTPWebsocketRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*UpdateHTTPWebsocketRequest) ProtoMessage() {} func (x *UpdateHTTPWebsocketRequest) ProtoReflect() protoreflect.Message { mi := &file_service_http_websocket_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use UpdateHTTPWebsocketRequest.ProtoReflect.Descriptor instead. func (*UpdateHTTPWebsocketRequest) Descriptor() ([]byte, []int) { return file_service_http_websocket_proto_rawDescGZIP(), []int{2} } func (x *UpdateHTTPWebsocketRequest) GetWebsocketId() int64 { if x != nil { return x.WebsocketId } return 0 } func (x *UpdateHTTPWebsocketRequest) GetHandshakeTimeoutJSON() []byte { if x != nil { return x.HandshakeTimeoutJSON } return nil } func (x *UpdateHTTPWebsocketRequest) GetAllowAllOrigins() bool { if x != nil { return x.AllowAllOrigins } return false } func (x *UpdateHTTPWebsocketRequest) GetAllowedOrigins() []string { if x != nil { return x.AllowedOrigins } return nil } func (x *UpdateHTTPWebsocketRequest) GetRequestSameOrigin() bool { if x != nil { return x.RequestSameOrigin } return false } func (x *UpdateHTTPWebsocketRequest) GetRequestOrigin() string { if x != nil { return x.RequestOrigin } return "" } var File_service_http_websocket_proto protoreflect.FileDescriptor const file_service_http_websocket_proto_rawDesc = "" + "\n" + "\x1cservice_http_websocket.proto\x12\x02pb\x1a\x19models/rpc_messages.proto\"\xf6\x01\n" + "\x1aCreateHTTPWebsocketRequest\x122\n" + "\x14handshakeTimeoutJSON\x18\x01 \x01(\fR\x14handshakeTimeoutJSON\x12(\n" + "\x0fallowAllOrigins\x18\x02 \x01(\bR\x0fallowAllOrigins\x12&\n" + "\x0eallowedOrigins\x18\x03 \x03(\tR\x0eallowedOrigins\x12,\n" + "\x11requestSameOrigin\x18\x04 \x01(\bR\x11requestSameOrigin\x12$\n" + "\rrequestOrigin\x18\x05 \x01(\tR\rrequestOrigin\"?\n" + "\x1bCreateHTTPWebsocketResponse\x12 \n" + "\vwebsocketId\x18\x01 \x01(\x03R\vwebsocketId\"\x98\x02\n" + "\x1aUpdateHTTPWebsocketRequest\x12 \n" + "\vwebsocketId\x18\x01 \x01(\x03R\vwebsocketId\x122\n" + "\x14handshakeTimeoutJSON\x18\x02 \x01(\fR\x14handshakeTimeoutJSON\x12(\n" + "\x0fallowAllOrigins\x18\x03 \x01(\bR\x0fallowAllOrigins\x12&\n" + "\x0eallowedOrigins\x18\x04 \x03(\tR\x0eallowedOrigins\x12,\n" + "\x11requestSameOrigin\x18\x05 \x01(\bR\x11requestSameOrigin\x12$\n" + "\rrequestOrigin\x18\x06 \x01(\tR\rrequestOrigin2\xb5\x01\n" + "\x14HTTPWebsocketService\x12V\n" + "\x13createHTTPWebsocket\x12\x1e.pb.CreateHTTPWebsocketRequest\x1a\x1f.pb.CreateHTTPWebsocketResponse\x12E\n" + "\x13updateHTTPWebsocket\x12\x1e.pb.UpdateHTTPWebsocketRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3" var ( file_service_http_websocket_proto_rawDescOnce sync.Once file_service_http_websocket_proto_rawDescData []byte ) func file_service_http_websocket_proto_rawDescGZIP() []byte { file_service_http_websocket_proto_rawDescOnce.Do(func() { file_service_http_websocket_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_http_websocket_proto_rawDesc), len(file_service_http_websocket_proto_rawDesc))) }) return file_service_http_websocket_proto_rawDescData } var file_service_http_websocket_proto_msgTypes = make([]protoimpl.MessageInfo, 3) var file_service_http_websocket_proto_goTypes = []any{ (*CreateHTTPWebsocketRequest)(nil), // 0: pb.CreateHTTPWebsocketRequest (*CreateHTTPWebsocketResponse)(nil), // 1: pb.CreateHTTPWebsocketResponse (*UpdateHTTPWebsocketRequest)(nil), // 2: pb.UpdateHTTPWebsocketRequest (*RPCSuccess)(nil), // 3: pb.RPCSuccess } var file_service_http_websocket_proto_depIdxs = []int32{ 0, // 0: pb.HTTPWebsocketService.createHTTPWebsocket:input_type -> pb.CreateHTTPWebsocketRequest 2, // 1: pb.HTTPWebsocketService.updateHTTPWebsocket:input_type -> pb.UpdateHTTPWebsocketRequest 1, // 2: pb.HTTPWebsocketService.createHTTPWebsocket:output_type -> pb.CreateHTTPWebsocketResponse 3, // 3: pb.HTTPWebsocketService.updateHTTPWebsocket:output_type -> pb.RPCSuccess 2, // [2:4] is the sub-list for method output_type 0, // [0:2] 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_service_http_websocket_proto_init() } func file_service_http_websocket_proto_init() { if File_service_http_websocket_proto != nil { return } file_models_rpc_messages_proto_init() type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_http_websocket_proto_rawDesc), len(file_service_http_websocket_proto_rawDesc)), NumEnums: 0, NumMessages: 3, NumExtensions: 0, NumServices: 1, }, GoTypes: file_service_http_websocket_proto_goTypes, DependencyIndexes: file_service_http_websocket_proto_depIdxs, MessageInfos: file_service_http_websocket_proto_msgTypes, }.Build() File_service_http_websocket_proto = out.File file_service_http_websocket_proto_goTypes = nil file_service_http_websocket_proto_depIdxs = nil }