Commit 2bea5c2c authored by SHAWNA MONERO's avatar SHAWNA MONERO
Browse files

remove old

parent b47fd500
Showing with 0 additions and 1428 deletions
+0 -1428
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.17.3
// source: quicklinks/v1/quicklinks.proto
package quicklinksv1
import (
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/lyft/clutch/backend/api/api/v1"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Link struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
ImagePath string `protobuf:"bytes,3,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` // Can be an s3 location, path on the server, etc.
}
func (x *Link) Reset() {
*x = Link{}
if protoimpl.UnsafeEnabled {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Link) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Link) ProtoMessage() {}
func (x *Link) ProtoReflect() protoreflect.Message {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Link.ProtoReflect.Descriptor instead.
func (*Link) Descriptor() ([]byte, []int) {
return file_quicklinks_v1_quicklinks_proto_rawDescGZIP(), []int{0}
}
func (x *Link) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Link) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *Link) GetImagePath() string {
if x != nil {
return x.ImagePath
}
return ""
}
type LinkEntity struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Links []*Link `protobuf:"bytes,2,rep,name=links,proto3" json:"links,omitempty"`
}
func (x *LinkEntity) Reset() {
*x = LinkEntity{}
if protoimpl.UnsafeEnabled {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LinkEntity) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LinkEntity) ProtoMessage() {}
func (x *LinkEntity) ProtoReflect() protoreflect.Message {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LinkEntity.ProtoReflect.Descriptor instead.
func (*LinkEntity) Descriptor() ([]byte, []int) {
return file_quicklinks_v1_quicklinks_proto_rawDescGZIP(), []int{1}
}
func (x *LinkEntity) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *LinkEntity) GetLinks() []*Link {
if x != nil {
return x.Links
}
return nil
}
type SlackInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
TeamName string `protobuf:"bytes,1,opt,name=team_name,json=teamName,proto3" json:"team_name,omitempty"`
BotName string `protobuf:"bytes,2,opt,name=bot_name,json=botName,proto3" json:"bot_name,omitempty"`
ChannelName string `protobuf:"bytes,3,opt,name=channel_name,json=channelName,proto3" json:"channel_name,omitempty"`
}
func (x *SlackInfo) Reset() {
*x = SlackInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SlackInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SlackInfo) ProtoMessage() {}
func (x *SlackInfo) ProtoReflect() protoreflect.Message {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SlackInfo.ProtoReflect.Descriptor instead.
func (*SlackInfo) Descriptor() ([]byte, []int) {
return file_quicklinks_v1_quicklinks_proto_rawDescGZIP(), []int{2}
}
func (x *SlackInfo) GetTeamName() string {
if x != nil {
return x.TeamName
}
return ""
}
func (x *SlackInfo) GetBotName() string {
if x != nil {
return x.BotName
}
return ""
}
func (x *SlackInfo) GetChannelName() string {
if x != nil {
return x.ChannelName
}
return ""
}
type GetQuickLinksRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ProjectName string `protobuf:"bytes,1,opt,name=project_name,json=projectName,proto3" json:"project_name,omitempty"`
ProjectEnvironment string `protobuf:"bytes,2,opt,name=project_environment,json=projectEnvironment,proto3" json:"project_environment,omitempty"`
SlackInfo *SlackInfo `protobuf:"bytes,3,opt,name=slack_info,json=slackInfo,proto3" json:"slack_info,omitempty"`
}
func (x *GetQuickLinksRequest) Reset() {
*x = GetQuickLinksRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetQuickLinksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetQuickLinksRequest) ProtoMessage() {}
func (x *GetQuickLinksRequest) ProtoReflect() protoreflect.Message {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetQuickLinksRequest.ProtoReflect.Descriptor instead.
func (*GetQuickLinksRequest) Descriptor() ([]byte, []int) {
return file_quicklinks_v1_quicklinks_proto_rawDescGZIP(), []int{3}
}
func (x *GetQuickLinksRequest) GetProjectName() string {
if x != nil {
return x.ProjectName
}
return ""
}
func (x *GetQuickLinksRequest) GetProjectEnvironment() string {
if x != nil {
return x.ProjectEnvironment
}
return ""
}
func (x *GetQuickLinksRequest) GetSlackInfo() *SlackInfo {
if x != nil {
return x.SlackInfo
}
return nil
}
type GetQuickLinksResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LinkEntities []*LinkEntity `protobuf:"bytes,1,rep,name=link_entities,json=linkEntities,proto3" json:"link_entities,omitempty"`
}
func (x *GetQuickLinksResponse) Reset() {
*x = GetQuickLinksResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetQuickLinksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetQuickLinksResponse) ProtoMessage() {}
func (x *GetQuickLinksResponse) ProtoReflect() protoreflect.Message {
mi := &file_quicklinks_v1_quicklinks_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GetQuickLinksResponse.ProtoReflect.Descriptor instead.
func (*GetQuickLinksResponse) Descriptor() ([]byte, []int) {
return file_quicklinks_v1_quicklinks_proto_rawDescGZIP(), []int{4}
}
func (x *GetQuickLinksResponse) GetLinkEntities() []*LinkEntity {
if x != nil {
return x.LinkEntities
}
return nil
}
var File_quicklinks_v1_quicklinks_proto protoreflect.FileDescriptor
var file_quicklinks_v1_quicklinks_proto_rawDesc = []byte{
0x0a, 0x1e, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x2f,
0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x12, 0x14, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2e, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69,
0x6e, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76,
0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x18, 0x61,
0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x04, 0x4c, 0x69, 0x6e, 0x6b, 0x12,
0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70,
0x61, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65,
0x50, 0x61, 0x74, 0x68, 0x22, 0x52, 0x0a, 0x0a, 0x4c, 0x69, 0x6e, 0x6b, 0x45, 0x6e, 0x74, 0x69,
0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18,
0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2e, 0x71,
0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e,
0x6b, 0x52, 0x05, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x22, 0x66, 0x0a, 0x09, 0x53, 0x6c, 0x61, 0x63,
0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x61, 0x6d, 0x4e, 0x61,
0x6d, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x6f, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02,
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x6f, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x21, 0x0a,
0x0c, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x4e, 0x61, 0x6d, 0x65,
0x22, 0xb3, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x6e,
0x6b, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x0c, 0x70, 0x72, 0x6f,
0x6a, 0x65, 0x63, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x20, 0x01, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x13, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74,
0x5f, 0x65, 0x6e, 0x76, 0x69, 0x72, 0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01,
0x28, 0x09, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6e, 0x76, 0x69, 0x72,
0x6f, 0x6e, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x3e, 0x0a, 0x0a, 0x73, 0x6c, 0x61, 0x63, 0x6b, 0x5f,
0x69, 0x6e, 0x66, 0x6f, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x63, 0x6c, 0x75,
0x74, 0x63, 0x68, 0x2e, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x76,
0x31, 0x2e, 0x53, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x09, 0x73, 0x6c, 0x61,
0x63, 0x6b, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x5e, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69,
0x63, 0x6b, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x45, 0x0a, 0x0d, 0x6c, 0x69, 0x6e, 0x6b, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x69, 0x65, 0x73,
0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2e,
0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69,
0x6e, 0x6b, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x52, 0x0c, 0x6c, 0x69, 0x6e, 0x6b, 0x45, 0x6e,
0x74, 0x69, 0x74, 0x69, 0x65, 0x73, 0x32, 0x9f, 0x01, 0x0a, 0x0d, 0x51, 0x75, 0x69, 0x63, 0x6b,
0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x41, 0x50, 0x49, 0x12, 0x8d, 0x01, 0x0a, 0x0d, 0x47, 0x65, 0x74,
0x51, 0x75, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x12, 0x2a, 0x2e, 0x63, 0x6c, 0x75,
0x74, 0x63, 0x68, 0x2e, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x76,
0x31, 0x2e, 0x47, 0x65, 0x74, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x63, 0x6c, 0x75, 0x74, 0x63, 0x68, 0x2e,
0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
0x74, 0x51, 0x75, 0x69, 0x63, 0x6b, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x17, 0x22, 0x12, 0x2f, 0x76, 0x31,
0x2f, 0x71, 0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2f, 0x67, 0x65, 0x74, 0x3a,
0x01, 0x2a, 0xaa, 0xe1, 0x1c, 0x02, 0x08, 0x02, 0x42, 0x3f, 0x5a, 0x3d, 0x67, 0x69, 0x74, 0x68,
0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x79, 0x66, 0x74, 0x2f, 0x63, 0x6c, 0x75, 0x74,
0x63, 0x68, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x71,
0x75, 0x69, 0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x71, 0x75, 0x69,
0x63, 0x6b, 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
}
var (
file_quicklinks_v1_quicklinks_proto_rawDescOnce sync.Once
file_quicklinks_v1_quicklinks_proto_rawDescData = file_quicklinks_v1_quicklinks_proto_rawDesc
)
func file_quicklinks_v1_quicklinks_proto_rawDescGZIP() []byte {
file_quicklinks_v1_quicklinks_proto_rawDescOnce.Do(func() {
file_quicklinks_v1_quicklinks_proto_rawDescData = protoimpl.X.CompressGZIP(file_quicklinks_v1_quicklinks_proto_rawDescData)
})
return file_quicklinks_v1_quicklinks_proto_rawDescData
}
var file_quicklinks_v1_quicklinks_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_quicklinks_v1_quicklinks_proto_goTypes = []interface{}{
(*Link)(nil), // 0: clutch.quicklinks.v1.Link
(*LinkEntity)(nil), // 1: clutch.quicklinks.v1.LinkEntity
(*SlackInfo)(nil), // 2: clutch.quicklinks.v1.SlackInfo
(*GetQuickLinksRequest)(nil), // 3: clutch.quicklinks.v1.GetQuickLinksRequest
(*GetQuickLinksResponse)(nil), // 4: clutch.quicklinks.v1.GetQuickLinksResponse
}
var file_quicklinks_v1_quicklinks_proto_depIdxs = []int32{
0, // 0: clutch.quicklinks.v1.LinkEntity.links:type_name -> clutch.quicklinks.v1.Link
2, // 1: clutch.quicklinks.v1.GetQuickLinksRequest.slack_info:type_name -> clutch.quicklinks.v1.SlackInfo
1, // 2: clutch.quicklinks.v1.GetQuickLinksResponse.link_entities:type_name -> clutch.quicklinks.v1.LinkEntity
3, // 3: clutch.quicklinks.v1.QuickLinksAPI.GetQuickLinks:input_type -> clutch.quicklinks.v1.GetQuickLinksRequest
4, // 4: clutch.quicklinks.v1.QuickLinksAPI.GetQuickLinks:output_type -> clutch.quicklinks.v1.GetQuickLinksResponse
4, // [4:5] is the sub-list for method output_type
3, // [3:4] 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_quicklinks_v1_quicklinks_proto_init() }
func file_quicklinks_v1_quicklinks_proto_init() {
if File_quicklinks_v1_quicklinks_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_quicklinks_v1_quicklinks_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Link); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_quicklinks_v1_quicklinks_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LinkEntity); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_quicklinks_v1_quicklinks_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*SlackInfo); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_quicklinks_v1_quicklinks_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetQuickLinksRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_quicklinks_v1_quicklinks_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GetQuickLinksResponse); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_quicklinks_v1_quicklinks_proto_rawDesc,
NumEnums: 0,
NumMessages: 5,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_quicklinks_v1_quicklinks_proto_goTypes,
DependencyIndexes: file_quicklinks_v1_quicklinks_proto_depIdxs,
MessageInfos: file_quicklinks_v1_quicklinks_proto_msgTypes,
}.Build()
File_quicklinks_v1_quicklinks_proto = out.File
file_quicklinks_v1_quicklinks_proto_rawDesc = nil
file_quicklinks_v1_quicklinks_proto_goTypes = nil
file_quicklinks_v1_quicklinks_proto_depIdxs = nil
}
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
// source: quicklinks/v1/quicklinks.proto
/*
Package quicklinksv1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
*/
package quicklinksv1
import (
"context"
"io"
"net/http"
"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
"google.golang.org/grpc"
"google.golang.org/grpc/codes"
"google.golang.org/grpc/grpclog"
"google.golang.org/grpc/metadata"
"google.golang.org/grpc/status"
"google.golang.org/protobuf/proto"
)
// Suppress "imported and not used" errors
var _ codes.Code
var _ io.Reader
var _ status.Status
var _ = runtime.String
var _ = utilities.NewDoubleArray
var _ = metadata.Join
func request_QuickLinksAPI_GetQuickLinks_0(ctx context.Context, marshaler runtime.Marshaler, client QuickLinksAPIClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetQuickLinksRequest
var metadata runtime.ServerMetadata
newReader, berr := utilities.IOReaderFactory(req.Body)
if berr != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
}
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := client.GetQuickLinks(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
return msg, metadata, err
}
func local_request_QuickLinksAPI_GetQuickLinks_0(ctx context.Context, marshaler runtime.Marshaler, server QuickLinksAPIServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var protoReq GetQuickLinksRequest
var metadata runtime.ServerMetadata
newReader, berr := utilities.IOReaderFactory(req.Body)
if berr != nil {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
}
if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
}
msg, err := server.GetQuickLinks(ctx, &protoReq)
return msg, metadata, err
}
// RegisterQuickLinksAPIHandlerServer registers the http handlers for service QuickLinksAPI to "mux".
// UnaryRPC :call QuickLinksAPIServer directly.
// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQuickLinksAPIHandlerFromEndpoint instead.
func RegisterQuickLinksAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QuickLinksAPIServer) error {
mux.Handle("POST", pattern_QuickLinksAPI_GetQuickLinks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
var stream runtime.ServerTransportStream
ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/clutch.quicklinks.v1.QuickLinksAPI/GetQuickLinks", runtime.WithHTTPPathPattern("/v1/quicklinks/get"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := local_request_QuickLinksAPI_GetQuickLinks_0(rctx, inboundMarshaler, server, req, pathParams)
md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_QuickLinksAPI_GetQuickLinks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
// RegisterQuickLinksAPIHandlerFromEndpoint is same as RegisterQuickLinksAPIHandler but
// automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQuickLinksAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
conn, err := grpc.Dial(endpoint, opts...)
if err != nil {
return err
}
defer func() {
if err != nil {
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
return
}
go func() {
<-ctx.Done()
if cerr := conn.Close(); cerr != nil {
grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
}
}()
}()
return RegisterQuickLinksAPIHandler(ctx, mux, conn)
}
// RegisterQuickLinksAPIHandler registers the http handlers for service QuickLinksAPI to "mux".
// The handlers forward requests to the grpc endpoint over "conn".
func RegisterQuickLinksAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
return RegisterQuickLinksAPIHandlerClient(ctx, mux, NewQuickLinksAPIClient(conn))
}
// RegisterQuickLinksAPIHandlerClient registers the http handlers for service QuickLinksAPI
// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QuickLinksAPIClient".
// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QuickLinksAPIClient"
// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
// "QuickLinksAPIClient" to call the correct interceptors.
func RegisterQuickLinksAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QuickLinksAPIClient) error {
mux.Handle("POST", pattern_QuickLinksAPI_GetQuickLinks_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req, "/clutch.quicklinks.v1.QuickLinksAPI/GetQuickLinks", runtime.WithHTTPPathPattern("/v1/quicklinks/get"))
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
resp, md, err := request_QuickLinksAPI_GetQuickLinks_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
return
}
forward_QuickLinksAPI_GetQuickLinks_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
return nil
}
var (
pattern_QuickLinksAPI_GetQuickLinks_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "quicklinks", "get"}, ""))
)
var (
forward_QuickLinksAPI_GetQuickLinks_0 = runtime.ForwardResponseMessage
)
// Code generated by protoc-gen-validate. DO NOT EDIT.
// source: quicklinks/v1/quicklinks.proto
package quicklinksv1
import (
"bytes"
"errors"
"fmt"
"net"
"net/mail"
"net/url"
"regexp"
"sort"
"strings"
"time"
"unicode/utf8"
"google.golang.org/protobuf/types/known/anypb"
)
// ensure the imports are used
var (
_ = bytes.MinRead
_ = errors.New("")
_ = fmt.Print
_ = utf8.UTFMax
_ = (*regexp.Regexp)(nil)
_ = (*strings.Reader)(nil)
_ = net.IPv4len
_ = time.Duration(0)
_ = (*url.URL)(nil)
_ = (*mail.Address)(nil)
_ = anypb.Any{}
_ = sort.Sort
)
// Validate checks the field values on Link with the rules defined in the proto
// definition for this message. If any rules are violated, the first error
// encountered is returned, or nil if there are no violations.
func (m *Link) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on Link with the rules defined in the
// proto definition for this message. If any rules are violated, the result is
// a list of violation errors wrapped in LinkMultiError, or nil if none found.
func (m *Link) ValidateAll() error {
return m.validate(true)
}
func (m *Link) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for Name
// no validation rules for Url
// no validation rules for ImagePath
if len(errors) > 0 {
return LinkMultiError(errors)
}
return nil
}
// LinkMultiError is an error wrapping multiple validation errors returned by
// Link.ValidateAll() if the designated constraints aren't met.
type LinkMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m LinkMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m LinkMultiError) AllErrors() []error { return m }
// LinkValidationError is the validation error returned by Link.Validate if the
// designated constraints aren't met.
type LinkValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e LinkValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e LinkValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e LinkValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e LinkValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e LinkValidationError) ErrorName() string { return "LinkValidationError" }
// Error satisfies the builtin error interface
func (e LinkValidationError) Error() string {
cause := ""
if e.cause != nil {
cause = fmt.Sprintf(" | caused by: %v", e.cause)
}
key := ""
if e.key {
key = "key for "
}
return fmt.Sprintf(
"invalid %sLink.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = LinkValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = LinkValidationError{}
// Validate checks the field values on LinkEntity with the rules defined in the
// proto definition for this message. If any rules are violated, the first
// error encountered is returned, or nil if there are no violations.
func (m *LinkEntity) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on LinkEntity with the rules defined in
// the proto definition for this message. If any rules are violated, the
// result is a list of violation errors wrapped in LinkEntityMultiError, or
// nil if none found.
func (m *LinkEntity) ValidateAll() error {
return m.validate(true)
}
func (m *LinkEntity) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for Name
for idx, item := range m.GetLinks() {
_, _ = idx, item
if all {
switch v := interface{}(item).(type) {
case interface{ ValidateAll() error }:
if err := v.ValidateAll(); err != nil {
errors = append(errors, LinkEntityValidationError{
field: fmt.Sprintf("Links[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
case interface{ Validate() error }:
if err := v.Validate(); err != nil {
errors = append(errors, LinkEntityValidationError{
field: fmt.Sprintf("Links[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
}
} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
if err := v.Validate(); err != nil {
return LinkEntityValidationError{
field: fmt.Sprintf("Links[%v]", idx),
reason: "embedded message failed validation",
cause: err,
}
}
}
}
if len(errors) > 0 {
return LinkEntityMultiError(errors)
}
return nil
}
// LinkEntityMultiError is an error wrapping multiple validation errors
// returned by LinkEntity.ValidateAll() if the designated constraints aren't met.
type LinkEntityMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m LinkEntityMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m LinkEntityMultiError) AllErrors() []error { return m }
// LinkEntityValidationError is the validation error returned by
// LinkEntity.Validate if the designated constraints aren't met.
type LinkEntityValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e LinkEntityValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e LinkEntityValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e LinkEntityValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e LinkEntityValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e LinkEntityValidationError) ErrorName() string { return "LinkEntityValidationError" }
// Error satisfies the builtin error interface
func (e LinkEntityValidationError) Error() string {
cause := ""
if e.cause != nil {
cause = fmt.Sprintf(" | caused by: %v", e.cause)
}
key := ""
if e.key {
key = "key for "
}
return fmt.Sprintf(
"invalid %sLinkEntity.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = LinkEntityValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = LinkEntityValidationError{}
// Validate checks the field values on SlackInfo with the rules defined in the
// proto definition for this message. If any rules are violated, the first
// error encountered is returned, or nil if there are no violations.
func (m *SlackInfo) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on SlackInfo with the rules defined in
// the proto definition for this message. If any rules are violated, the
// result is a list of violation errors wrapped in SlackInfoMultiError, or nil
// if none found.
func (m *SlackInfo) ValidateAll() error {
return m.validate(true)
}
func (m *SlackInfo) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
// no validation rules for TeamName
// no validation rules for BotName
// no validation rules for ChannelName
if len(errors) > 0 {
return SlackInfoMultiError(errors)
}
return nil
}
// SlackInfoMultiError is an error wrapping multiple validation errors returned
// by SlackInfo.ValidateAll() if the designated constraints aren't met.
type SlackInfoMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m SlackInfoMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m SlackInfoMultiError) AllErrors() []error { return m }
// SlackInfoValidationError is the validation error returned by
// SlackInfo.Validate if the designated constraints aren't met.
type SlackInfoValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e SlackInfoValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e SlackInfoValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e SlackInfoValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e SlackInfoValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e SlackInfoValidationError) ErrorName() string { return "SlackInfoValidationError" }
// Error satisfies the builtin error interface
func (e SlackInfoValidationError) Error() string {
cause := ""
if e.cause != nil {
cause = fmt.Sprintf(" | caused by: %v", e.cause)
}
key := ""
if e.key {
key = "key for "
}
return fmt.Sprintf(
"invalid %sSlackInfo.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = SlackInfoValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = SlackInfoValidationError{}
// Validate checks the field values on GetQuickLinksRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetQuickLinksRequest) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on GetQuickLinksRequest with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// GetQuickLinksRequestMultiError, or nil if none found.
func (m *GetQuickLinksRequest) ValidateAll() error {
return m.validate(true)
}
func (m *GetQuickLinksRequest) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
if len(m.GetProjectName()) < 1 {
err := GetQuickLinksRequestValidationError{
field: "ProjectName",
reason: "value length must be at least 1 bytes",
}
if !all {
return err
}
errors = append(errors, err)
}
// no validation rules for ProjectEnvironment
if all {
switch v := interface{}(m.GetSlackInfo()).(type) {
case interface{ ValidateAll() error }:
if err := v.ValidateAll(); err != nil {
errors = append(errors, GetQuickLinksRequestValidationError{
field: "SlackInfo",
reason: "embedded message failed validation",
cause: err,
})
}
case interface{ Validate() error }:
if err := v.Validate(); err != nil {
errors = append(errors, GetQuickLinksRequestValidationError{
field: "SlackInfo",
reason: "embedded message failed validation",
cause: err,
})
}
}
} else if v, ok := interface{}(m.GetSlackInfo()).(interface{ Validate() error }); ok {
if err := v.Validate(); err != nil {
return GetQuickLinksRequestValidationError{
field: "SlackInfo",
reason: "embedded message failed validation",
cause: err,
}
}
}
if len(errors) > 0 {
return GetQuickLinksRequestMultiError(errors)
}
return nil
}
// GetQuickLinksRequestMultiError is an error wrapping multiple validation
// errors returned by GetQuickLinksRequest.ValidateAll() if the designated
// constraints aren't met.
type GetQuickLinksRequestMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m GetQuickLinksRequestMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m GetQuickLinksRequestMultiError) AllErrors() []error { return m }
// GetQuickLinksRequestValidationError is the validation error returned by
// GetQuickLinksRequest.Validate if the designated constraints aren't met.
type GetQuickLinksRequestValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e GetQuickLinksRequestValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e GetQuickLinksRequestValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e GetQuickLinksRequestValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e GetQuickLinksRequestValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e GetQuickLinksRequestValidationError) ErrorName() string {
return "GetQuickLinksRequestValidationError"
}
// Error satisfies the builtin error interface
func (e GetQuickLinksRequestValidationError) Error() string {
cause := ""
if e.cause != nil {
cause = fmt.Sprintf(" | caused by: %v", e.cause)
}
key := ""
if e.key {
key = "key for "
}
return fmt.Sprintf(
"invalid %sGetQuickLinksRequest.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = GetQuickLinksRequestValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = GetQuickLinksRequestValidationError{}
// Validate checks the field values on GetQuickLinksResponse with the rules
// defined in the proto definition for this message. If any rules are
// violated, the first error encountered is returned, or nil if there are no violations.
func (m *GetQuickLinksResponse) Validate() error {
return m.validate(false)
}
// ValidateAll checks the field values on GetQuickLinksResponse with the rules
// defined in the proto definition for this message. If any rules are
// violated, the result is a list of violation errors wrapped in
// GetQuickLinksResponseMultiError, or nil if none found.
func (m *GetQuickLinksResponse) ValidateAll() error {
return m.validate(true)
}
func (m *GetQuickLinksResponse) validate(all bool) error {
if m == nil {
return nil
}
var errors []error
for idx, item := range m.GetLinkEntities() {
_, _ = idx, item
if all {
switch v := interface{}(item).(type) {
case interface{ ValidateAll() error }:
if err := v.ValidateAll(); err != nil {
errors = append(errors, GetQuickLinksResponseValidationError{
field: fmt.Sprintf("LinkEntities[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
case interface{ Validate() error }:
if err := v.Validate(); err != nil {
errors = append(errors, GetQuickLinksResponseValidationError{
field: fmt.Sprintf("LinkEntities[%v]", idx),
reason: "embedded message failed validation",
cause: err,
})
}
}
} else if v, ok := interface{}(item).(interface{ Validate() error }); ok {
if err := v.Validate(); err != nil {
return GetQuickLinksResponseValidationError{
field: fmt.Sprintf("LinkEntities[%v]", idx),
reason: "embedded message failed validation",
cause: err,
}
}
}
}
if len(errors) > 0 {
return GetQuickLinksResponseMultiError(errors)
}
return nil
}
// GetQuickLinksResponseMultiError is an error wrapping multiple validation
// errors returned by GetQuickLinksResponse.ValidateAll() if the designated
// constraints aren't met.
type GetQuickLinksResponseMultiError []error
// Error returns a concatenation of all the error messages it wraps.
func (m GetQuickLinksResponseMultiError) Error() string {
var msgs []string
for _, err := range m {
msgs = append(msgs, err.Error())
}
return strings.Join(msgs, "; ")
}
// AllErrors returns a list of validation violation errors.
func (m GetQuickLinksResponseMultiError) AllErrors() []error { return m }
// GetQuickLinksResponseValidationError is the validation error returned by
// GetQuickLinksResponse.Validate if the designated constraints aren't met.
type GetQuickLinksResponseValidationError struct {
field string
reason string
cause error
key bool
}
// Field function returns field value.
func (e GetQuickLinksResponseValidationError) Field() string { return e.field }
// Reason function returns reason value.
func (e GetQuickLinksResponseValidationError) Reason() string { return e.reason }
// Cause function returns cause value.
func (e GetQuickLinksResponseValidationError) Cause() error { return e.cause }
// Key function returns key value.
func (e GetQuickLinksResponseValidationError) Key() bool { return e.key }
// ErrorName returns error name.
func (e GetQuickLinksResponseValidationError) ErrorName() string {
return "GetQuickLinksResponseValidationError"
}
// Error satisfies the builtin error interface
func (e GetQuickLinksResponseValidationError) Error() string {
cause := ""
if e.cause != nil {
cause = fmt.Sprintf(" | caused by: %v", e.cause)
}
key := ""
if e.key {
key = "key for "
}
return fmt.Sprintf(
"invalid %sGetQuickLinksResponse.%s: %s%s",
key,
e.field,
e.reason,
cause)
}
var _ error = GetQuickLinksResponseValidationError{}
var _ interface {
Field() string
Reason() string
Key() bool
Cause() error
ErrorName() string
} = GetQuickLinksResponseValidationError{}
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v3.17.3
// source: quicklinks/v1/quicklinks.proto
package quicklinksv1
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// QuickLinksAPIClient is the client API for QuickLinksAPI service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QuickLinksAPIClient interface {
GetQuickLinks(ctx context.Context, in *GetQuickLinksRequest, opts ...grpc.CallOption) (*GetQuickLinksResponse, error)
}
type quickLinksAPIClient struct {
cc grpc.ClientConnInterface
}
func NewQuickLinksAPIClient(cc grpc.ClientConnInterface) QuickLinksAPIClient {
return &quickLinksAPIClient{cc}
}
func (c *quickLinksAPIClient) GetQuickLinks(ctx context.Context, in *GetQuickLinksRequest, opts ...grpc.CallOption) (*GetQuickLinksResponse, error) {
out := new(GetQuickLinksResponse)
err := c.cc.Invoke(ctx, "/clutch.quicklinks.v1.QuickLinksAPI/GetQuickLinks", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QuickLinksAPIServer is the server API for QuickLinksAPI service.
// All implementations should embed UnimplementedQuickLinksAPIServer
// for forward compatibility
type QuickLinksAPIServer interface {
GetQuickLinks(context.Context, *GetQuickLinksRequest) (*GetQuickLinksResponse, error)
}
// UnimplementedQuickLinksAPIServer should be embedded to have forward compatible implementations.
type UnimplementedQuickLinksAPIServer struct {
}
func (UnimplementedQuickLinksAPIServer) GetQuickLinks(context.Context, *GetQuickLinksRequest) (*GetQuickLinksResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetQuickLinks not implemented")
}
// UnsafeQuickLinksAPIServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QuickLinksAPIServer will
// result in compilation errors.
type UnsafeQuickLinksAPIServer interface {
mustEmbedUnimplementedQuickLinksAPIServer()
}
func RegisterQuickLinksAPIServer(s grpc.ServiceRegistrar, srv QuickLinksAPIServer) {
s.RegisterService(&QuickLinksAPI_ServiceDesc, srv)
}
func _QuickLinksAPI_GetQuickLinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetQuickLinksRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QuickLinksAPIServer).GetQuickLinks(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/clutch.quicklinks.v1.QuickLinksAPI/GetQuickLinks",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QuickLinksAPIServer).GetQuickLinks(ctx, req.(*GetQuickLinksRequest))
}
return interceptor(ctx, in, info, handler)
}
// QuickLinksAPI_ServiceDesc is the grpc.ServiceDesc for QuickLinksAPI service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var QuickLinksAPI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "clutch.quicklinks.v1.QuickLinksAPI",
HandlerType: (*QuickLinksAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "GetQuickLinks",
Handler: _QuickLinksAPI_GetQuickLinks_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "quicklinks/v1/quicklinks.proto",
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment