// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// 	protoc-gen-go v1.36.11
// 	protoc        v3.21.12
// source: yandex/cloud/serverless/apigateway/websocket/v1/connection.proto

package websocket

import (
	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
	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 Connection struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// ID of the connection.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// ID of the API Gateway.
	GatewayId string `protobuf:"bytes,2,opt,name=gateway_id,json=gatewayId,proto3" json:"gateway_id,omitempty"`
	// The information about the caller making the request to API Gateway.
	Identity *Identity `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"`
	// The timestamp at which connection was established.
	ConnectedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=connected_at,json=connectedAt,proto3" json:"connected_at,omitempty"`
	// The timestamp at which connection was last accessed.
	LastActiveAt  *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=last_active_at,json=lastActiveAt,proto3" json:"last_active_at,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Connection) ProtoMessage() {}

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

func (x *Connection) GetId() string {
	if x != nil {
		return x.Id
	}
	return ""
}

func (x *Connection) GetGatewayId() string {
	if x != nil {
		return x.GatewayId
	}
	return ""
}

func (x *Connection) GetIdentity() *Identity {
	if x != nil {
		return x.Identity
	}
	return nil
}

func (x *Connection) GetConnectedAt() *timestamppb.Timestamp {
	if x != nil {
		return x.ConnectedAt
	}
	return nil
}

func (x *Connection) GetLastActiveAt() *timestamppb.Timestamp {
	if x != nil {
		return x.LastActiveAt
	}
	return nil
}

type Identity struct {
	state protoimpl.MessageState `protogen:"open.v1"`
	// The source IP address of the caller making the request to API Gateway.
	SourceIp string `protobuf:"bytes,1,opt,name=source_ip,json=sourceIp,proto3" json:"source_ip,omitempty"`
	// The User Agent of the caller making the request to API Gateway.
	UserAgent     string `protobuf:"bytes,2,opt,name=user_agent,json=userAgent,proto3" json:"user_agent,omitempty"`
	unknownFields protoimpl.UnknownFields
	sizeCache     protoimpl.SizeCache
}

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

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

func (*Identity) ProtoMessage() {}

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

func (x *Identity) GetSourceIp() string {
	if x != nil {
		return x.SourceIp
	}
	return ""
}

func (x *Identity) GetUserAgent() string {
	if x != nil {
		return x.UserAgent
	}
	return ""
}

var File_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto protoreflect.FileDescriptor

const file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDesc = "" +
	"\n" +
	"@yandex/cloud/serverless/apigateway/websocket/v1/connection.proto\x12/yandex.cloud.serverless.apigateway.websocket.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x93\x02\n" +
	"\n" +
	"Connection\x12\x0e\n" +
	"\x02id\x18\x01 \x01(\tR\x02id\x12\x1d\n" +
	"\n" +
	"gateway_id\x18\x02 \x01(\tR\tgatewayId\x12U\n" +
	"\bidentity\x18\x03 \x01(\v29.yandex.cloud.serverless.apigateway.websocket.v1.IdentityR\bidentity\x12=\n" +
	"\fconnected_at\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\vconnectedAt\x12@\n" +
	"\x0elast_active_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\flastActiveAt\"F\n" +
	"\bIdentity\x12\x1b\n" +
	"\tsource_ip\x18\x01 \x01(\tR\bsourceIp\x12\x1d\n" +
	"\n" +
	"user_agent\x18\x02 \x01(\tR\tuserAgentB\x94\x01\n" +
	"3yandex.cloud.api.serverless.apigateway.websocket.v1Z]github.com/yandex-cloud/go-genproto/yandex/cloud/serverless/apigateway/websocket/v1;websocketb\x06proto3"

var (
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescOnce sync.Once
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescData []byte
)

func file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescGZIP() []byte {
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescOnce.Do(func() {
		file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDesc), len(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDesc)))
	})
	return file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDescData
}

var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_goTypes = []any{
	(*Connection)(nil),            // 0: yandex.cloud.serverless.apigateway.websocket.v1.Connection
	(*Identity)(nil),              // 1: yandex.cloud.serverless.apigateway.websocket.v1.Identity
	(*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
}
var file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_depIdxs = []int32{
	1, // 0: yandex.cloud.serverless.apigateway.websocket.v1.Connection.identity:type_name -> yandex.cloud.serverless.apigateway.websocket.v1.Identity
	2, // 1: yandex.cloud.serverless.apigateway.websocket.v1.Connection.connected_at:type_name -> google.protobuf.Timestamp
	2, // 2: yandex.cloud.serverless.apigateway.websocket.v1.Connection.last_active_at:type_name -> google.protobuf.Timestamp
	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_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_init() }
func file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_init() {
	if File_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto != nil {
		return
	}
	type x struct{}
	out := protoimpl.TypeBuilder{
		File: protoimpl.DescBuilder{
			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
			RawDescriptor: unsafe.Slice(unsafe.StringData(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDesc), len(file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_rawDesc)),
			NumEnums:      0,
			NumMessages:   2,
			NumExtensions: 0,
			NumServices:   0,
		},
		GoTypes:           file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_goTypes,
		DependencyIndexes: file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_depIdxs,
		MessageInfos:      file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_msgTypes,
	}.Build()
	File_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto = out.File
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_goTypes = nil
	file_yandex_cloud_serverless_apigateway_websocket_v1_connection_proto_depIdxs = nil
}
