//*
// Copyright (C) 2014-2016 Open Whisper Systems
//
// Licensed according to the LICENSE file in this repository.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v6.33.5
// source: WebSocketResources.proto

package signalpb

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)
)

type WebSocketMessage_Type int32

const (
	WebSocketMessage_UNKNOWN  WebSocketMessage_Type = 0
	WebSocketMessage_REQUEST  WebSocketMessage_Type = 1
	WebSocketMessage_RESPONSE WebSocketMessage_Type = 2
)

// Enum value maps for WebSocketMessage_Type.
var (
	WebSocketMessage_Type_name = map[int32]string{
		0: "UNKNOWN",
		1: "REQUEST",
		2: "RESPONSE",
	}
	WebSocketMessage_Type_value = map[string]int32{
		"UNKNOWN":  0,
		"REQUEST":  1,
		"RESPONSE": 2,
	}
)

func (x WebSocketMessage_Type) Enum() *WebSocketMessage_Type {
	p := new(WebSocketMessage_Type)
	*p = x
	return p
}

func (x WebSocketMessage_Type) String() string {
	return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}

func (WebSocketMessage_Type) Descriptor() protoreflect.EnumDescriptor {
	return file_WebSocketResources_proto_enumTypes[0].Descriptor()
}

func (WebSocketMessage_Type) Type() protoreflect.EnumType {
	return &file_WebSocketResources_proto_enumTypes[0]
}

func (x WebSocketMessage_Type) Number() protoreflect.EnumNumber {
	return protoreflect.EnumNumber(x)
}

// Deprecated: Do not use.
func (x *WebSocketMessage_Type) UnmarshalJSON(b []byte) error {
	num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
	if err != nil {
		return err
	}
	*x = WebSocketMessage_Type(num)
	return nil
}

// Deprecated: Use WebSocketMessage_Type.Descriptor instead.
func (WebSocketMessage_Type) EnumDescriptor() ([]byte, []int) {
	return file_WebSocketResources_proto_rawDescGZIP(), []int{2, 0}
}

type WebSocketRequestMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Verb          *string                `protobuf:"bytes,1,opt,name=verb" json:"verb,omitempty"`
	Path          *string                `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
	Body          []byte                 `protobuf:"bytes,3,opt,name=body" json:"body,omitempty"`
	Headers       []string               `protobuf:"bytes,5,rep,name=headers" json:"headers,omitempty"`
	Id            *uint64                `protobuf:"varint,4,opt,name=id" json:"id,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WebSocketRequestMessage) Reset() {
	*x = WebSocketRequestMessage{}
	mi := &file_WebSocketResources_proto_msgTypes[0]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WebSocketRequestMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WebSocketRequestMessage) ProtoMessage() {}

func (x *WebSocketRequestMessage) ProtoReflect() protoreflect.Message {
	mi := &file_WebSocketResources_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 WebSocketRequestMessage.ProtoReflect.Descriptor instead.
func (*WebSocketRequestMessage) Descriptor() ([]byte, []int) {
	return file_WebSocketResources_proto_rawDescGZIP(), []int{0}
}

func (x *WebSocketRequestMessage) GetVerb() string {
	if x != nil && x.Verb != nil {
		return *x.Verb
	}
	return ""
}

func (x *WebSocketRequestMessage) GetPath() string {
	if x != nil && x.Path != nil {
		return *x.Path
	}
	return ""
}

func (x *WebSocketRequestMessage) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

func (x *WebSocketRequestMessage) GetHeaders() []string {
	if x != nil {
		return x.Headers
	}
	return nil
}

func (x *WebSocketRequestMessage) GetId() uint64 {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return 0
}

type WebSocketResponseMessage struct {
	state         protoimpl.MessageState `protogen:"open.v1"`
	Id            *uint64                `protobuf:"varint,1,opt,name=id" json:"id,omitempty"`
	Status        *uint32                `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
	Message       *string                `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
	Headers       []string               `protobuf:"bytes,5,rep,name=headers" json:"headers,omitempty"`
	Body          []byte                 `protobuf:"bytes,4,opt,name=body" json:"body,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WebSocketResponseMessage) Reset() {
	*x = WebSocketResponseMessage{}
	mi := &file_WebSocketResources_proto_msgTypes[1]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WebSocketResponseMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WebSocketResponseMessage) ProtoMessage() {}

func (x *WebSocketResponseMessage) ProtoReflect() protoreflect.Message {
	mi := &file_WebSocketResources_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 WebSocketResponseMessage.ProtoReflect.Descriptor instead.
func (*WebSocketResponseMessage) Descriptor() ([]byte, []int) {
	return file_WebSocketResources_proto_rawDescGZIP(), []int{1}
}

func (x *WebSocketResponseMessage) GetId() uint64 {
	if x != nil && x.Id != nil {
		return *x.Id
	}
	return 0
}

func (x *WebSocketResponseMessage) GetStatus() uint32 {
	if x != nil && x.Status != nil {
		return *x.Status
	}
	return 0
}

func (x *WebSocketResponseMessage) GetMessage() string {
	if x != nil && x.Message != nil {
		return *x.Message
	}
	return ""
}

func (x *WebSocketResponseMessage) GetHeaders() []string {
	if x != nil {
		return x.Headers
	}
	return nil
}

func (x *WebSocketResponseMessage) GetBody() []byte {
	if x != nil {
		return x.Body
	}
	return nil
}

type WebSocketMessage struct {
	state         protoimpl.MessageState    `protogen:"open.v1"`
	Type          *WebSocketMessage_Type    `protobuf:"varint,1,opt,name=type,enum=signalservice.WebSocketMessage_Type" json:"type,omitempty"`
	Request       *WebSocketRequestMessage  `protobuf:"bytes,2,opt,name=request" json:"request,omitempty"`
	Response      *WebSocketResponseMessage `protobuf:"bytes,3,opt,name=response" json:"response,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

func (x *WebSocketMessage) Reset() {
	*x = WebSocketMessage{}
	mi := &file_WebSocketResources_proto_msgTypes[2]
	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
	ms.StoreMessageInfo(mi)
}

func (x *WebSocketMessage) String() string {
	return protoimpl.X.MessageStringOf(x)
}

func (*WebSocketMessage) ProtoMessage() {}

func (x *WebSocketMessage) ProtoReflect() protoreflect.Message {
	mi := &file_WebSocketResources_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 WebSocketMessage.ProtoReflect.Descriptor instead.
func (*WebSocketMessage) Descriptor() ([]byte, []int) {
	return file_WebSocketResources_proto_rawDescGZIP(), []int{2}
}

func (x *WebSocketMessage) GetType() WebSocketMessage_Type {
	if x != nil && x.Type != nil {
		return *x.Type
	}
	return WebSocketMessage_UNKNOWN
}

func (x *WebSocketMessage) GetRequest() *WebSocketRequestMessage {
	if x != nil {
		return x.Request
	}
	return nil
}

func (x *WebSocketMessage) GetResponse() *WebSocketResponseMessage {
	if x != nil {
		return x.Response
	}
	return nil
}

var File_WebSocketResources_proto protoreflect.FileDescriptor

const file_WebSocketResources_proto_rawDesc = "" +
	"\n" +
	"\x18WebSocketResources.proto\x12\rsignalservice\"\x7f\n" +
	"\x17WebSocketRequestMessage\x12\x12\n" +
	"\x04verb\x18\x01 \x01(\tR\x04verb\x12\x12\n" +
	"\x04path\x18\x02 \x01(\tR\x04path\x12\x12\n" +
	"\x04body\x18\x03 \x01(\fR\x04body\x12\x18\n" +
	"\aheaders\x18\x05 \x03(\tR\aheaders\x12\x0e\n" +
	"\x02id\x18\x04 \x01(\x04R\x02id\"\x8a\x01\n" +
	"\x18WebSocketResponseMessage\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\x04R\x02id\x12\x16\n" +
	"\x06status\x18\x02 \x01(\rR\x06status\x12\x18\n" +
	"\amessage\x18\x03 \x01(\tR\amessage\x12\x18\n" +
	"\aheaders\x18\x05 \x03(\tR\aheaders\x12\x12\n" +
	"\x04body\x18\x04 \x01(\fR\x04body\"\x83\x02\n" +
	"\x10WebSocketMessage\x128\n" +
	"\x04type\x18\x01 \x01(\x0e2$.signalservice.WebSocketMessage.TypeR\x04type\x12@\n" +
	"\arequest\x18\x02 \x01(\v2&.signalservice.WebSocketRequestMessageR\arequest\x12C\n" +
	"\bresponse\x18\x03 \x01(\v2'.signalservice.WebSocketResponseMessageR\bresponse\".\n" +
	"\x04Type\x12\v\n" +
	"\aUNKNOWN\x10\x00\x12\v\n" +
	"\aREQUEST\x10\x01\x12\f\n" +
	"\bRESPONSE\x10\x02BF\n" +
	"3org.whispersystems.signalservice.internal.websocketB\x0fWebSocketProtos"

var (
	file_WebSocketResources_proto_rawDescOnce sync.Once
	file_WebSocketResources_proto_rawDescData []byte
)

func file_WebSocketResources_proto_rawDescGZIP() []byte {
	file_WebSocketResources_proto_rawDescOnce.Do(func() {
		file_WebSocketResources_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_WebSocketResources_proto_rawDesc), len(file_WebSocketResources_proto_rawDesc)))
	})
	return file_WebSocketResources_proto_rawDescData
}

var file_WebSocketResources_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
var file_WebSocketResources_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
var file_WebSocketResources_proto_goTypes = []any{
	(WebSocketMessage_Type)(0),       // 0: signalservice.WebSocketMessage.Type
	(*WebSocketRequestMessage)(nil),  // 1: signalservice.WebSocketRequestMessage
	(*WebSocketResponseMessage)(nil), // 2: signalservice.WebSocketResponseMessage
	(*WebSocketMessage)(nil),         // 3: signalservice.WebSocketMessage
}
var file_WebSocketResources_proto_depIdxs = []int32{
	0, // 0: signalservice.WebSocketMessage.type:type_name -> signalservice.WebSocketMessage.Type
	1, // 1: signalservice.WebSocketMessage.request:type_name -> signalservice.WebSocketRequestMessage
	2, // 2: signalservice.WebSocketMessage.response:type_name -> signalservice.WebSocketResponseMessage
	3, // [3:3] is the sub-list for method output_type
	3, // [3:3] is the sub-list for method input_type
	3, // [3:3] is the sub-list for extension type_name
	3, // [3:3] is the sub-list for extension extendee
	0, // [0:3] is the sub-list for field type_name
}

func init() { file_WebSocketResources_proto_init() }
func file_WebSocketResources_proto_init() {
	if File_WebSocketResources_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_WebSocketResources_proto_rawDesc), len(file_WebSocketResources_proto_rawDesc)),
			NumEnums:      1,
			NumMessages:   3,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_WebSocketResources_proto_goTypes,
		DependencyIndexes: file_WebSocketResources_proto_depIdxs,
		EnumInfos:         file_WebSocketResources_proto_enumTypes,
		MessageInfos:      file_WebSocketResources_proto_msgTypes,
	}.Build()
	File_WebSocketResources_proto = out.File
	file_WebSocketResources_proto_goTypes = nil
	file_WebSocketResources_proto_depIdxs = nil
}
