github.com/muhammadn/cortex@v1.9.1-0.20220510110439-46bb7000d03d/pkg/alertmanager/alertmanagerpb/alertmanager.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: alertmanager.proto
     3  
     4  package alertmanagerpb
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	_ "github.com/gogo/protobuf/gogoproto"
    10  	proto "github.com/gogo/protobuf/proto"
    11  	clusterpb "github.com/prometheus/alertmanager/cluster/clusterpb"
    12  	httpgrpc "github.com/weaveworks/common/httpgrpc"
    13  	grpc "google.golang.org/grpc"
    14  	codes "google.golang.org/grpc/codes"
    15  	status "google.golang.org/grpc/status"
    16  	io "io"
    17  	math "math"
    18  	math_bits "math/bits"
    19  	reflect "reflect"
    20  	strconv "strconv"
    21  	strings "strings"
    22  )
    23  
    24  // Reference imports to suppress errors if they are not otherwise used.
    25  var _ = proto.Marshal
    26  var _ = fmt.Errorf
    27  var _ = math.Inf
    28  
    29  // This is a compile-time assertion to ensure that this generated file
    30  // is compatible with the proto package it is being compiled against.
    31  // A compilation error at this line likely means your copy of the
    32  // proto package needs to be updated.
    33  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    34  
    35  type UpdateStateStatus int32
    36  
    37  const (
    38  	OK             UpdateStateStatus = 0
    39  	MERGE_ERROR    UpdateStateStatus = 2
    40  	USER_NOT_FOUND UpdateStateStatus = 3
    41  )
    42  
    43  var UpdateStateStatus_name = map[int32]string{
    44  	0: "OK",
    45  	2: "MERGE_ERROR",
    46  	3: "USER_NOT_FOUND",
    47  }
    48  
    49  var UpdateStateStatus_value = map[string]int32{
    50  	"OK":             0,
    51  	"MERGE_ERROR":    2,
    52  	"USER_NOT_FOUND": 3,
    53  }
    54  
    55  func (UpdateStateStatus) EnumDescriptor() ([]byte, []int) {
    56  	return fileDescriptor_e60437b6e0c74c9a, []int{0}
    57  }
    58  
    59  type ReadStateStatus int32
    60  
    61  const (
    62  	READ_UNSPECIFIED    ReadStateStatus = 0
    63  	READ_OK             ReadStateStatus = 1
    64  	READ_ERROR          ReadStateStatus = 2
    65  	READ_USER_NOT_FOUND ReadStateStatus = 3
    66  )
    67  
    68  var ReadStateStatus_name = map[int32]string{
    69  	0: "READ_UNSPECIFIED",
    70  	1: "READ_OK",
    71  	2: "READ_ERROR",
    72  	3: "READ_USER_NOT_FOUND",
    73  }
    74  
    75  var ReadStateStatus_value = map[string]int32{
    76  	"READ_UNSPECIFIED":    0,
    77  	"READ_OK":             1,
    78  	"READ_ERROR":          2,
    79  	"READ_USER_NOT_FOUND": 3,
    80  }
    81  
    82  func (ReadStateStatus) EnumDescriptor() ([]byte, []int) {
    83  	return fileDescriptor_e60437b6e0c74c9a, []int{1}
    84  }
    85  
    86  type UpdateStateResponse struct {
    87  	Status UpdateStateStatus `protobuf:"varint,1,opt,name=status,proto3,enum=alertmanagerpb.UpdateStateStatus" json:"status,omitempty"`
    88  	Error  string            `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
    89  }
    90  
    91  func (m *UpdateStateResponse) Reset()      { *m = UpdateStateResponse{} }
    92  func (*UpdateStateResponse) ProtoMessage() {}
    93  func (*UpdateStateResponse) Descriptor() ([]byte, []int) {
    94  	return fileDescriptor_e60437b6e0c74c9a, []int{0}
    95  }
    96  func (m *UpdateStateResponse) XXX_Unmarshal(b []byte) error {
    97  	return m.Unmarshal(b)
    98  }
    99  func (m *UpdateStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   100  	if deterministic {
   101  		return xxx_messageInfo_UpdateStateResponse.Marshal(b, m, deterministic)
   102  	} else {
   103  		b = b[:cap(b)]
   104  		n, err := m.MarshalToSizedBuffer(b)
   105  		if err != nil {
   106  			return nil, err
   107  		}
   108  		return b[:n], nil
   109  	}
   110  }
   111  func (m *UpdateStateResponse) XXX_Merge(src proto.Message) {
   112  	xxx_messageInfo_UpdateStateResponse.Merge(m, src)
   113  }
   114  func (m *UpdateStateResponse) XXX_Size() int {
   115  	return m.Size()
   116  }
   117  func (m *UpdateStateResponse) XXX_DiscardUnknown() {
   118  	xxx_messageInfo_UpdateStateResponse.DiscardUnknown(m)
   119  }
   120  
   121  var xxx_messageInfo_UpdateStateResponse proto.InternalMessageInfo
   122  
   123  func (m *UpdateStateResponse) GetStatus() UpdateStateStatus {
   124  	if m != nil {
   125  		return m.Status
   126  	}
   127  	return OK
   128  }
   129  
   130  func (m *UpdateStateResponse) GetError() string {
   131  	if m != nil {
   132  		return m.Error
   133  	}
   134  	return ""
   135  }
   136  
   137  type ReadStateRequest struct {
   138  }
   139  
   140  func (m *ReadStateRequest) Reset()      { *m = ReadStateRequest{} }
   141  func (*ReadStateRequest) ProtoMessage() {}
   142  func (*ReadStateRequest) Descriptor() ([]byte, []int) {
   143  	return fileDescriptor_e60437b6e0c74c9a, []int{1}
   144  }
   145  func (m *ReadStateRequest) XXX_Unmarshal(b []byte) error {
   146  	return m.Unmarshal(b)
   147  }
   148  func (m *ReadStateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   149  	if deterministic {
   150  		return xxx_messageInfo_ReadStateRequest.Marshal(b, m, deterministic)
   151  	} else {
   152  		b = b[:cap(b)]
   153  		n, err := m.MarshalToSizedBuffer(b)
   154  		if err != nil {
   155  			return nil, err
   156  		}
   157  		return b[:n], nil
   158  	}
   159  }
   160  func (m *ReadStateRequest) XXX_Merge(src proto.Message) {
   161  	xxx_messageInfo_ReadStateRequest.Merge(m, src)
   162  }
   163  func (m *ReadStateRequest) XXX_Size() int {
   164  	return m.Size()
   165  }
   166  func (m *ReadStateRequest) XXX_DiscardUnknown() {
   167  	xxx_messageInfo_ReadStateRequest.DiscardUnknown(m)
   168  }
   169  
   170  var xxx_messageInfo_ReadStateRequest proto.InternalMessageInfo
   171  
   172  type ReadStateResponse struct {
   173  	Status ReadStateStatus      `protobuf:"varint,1,opt,name=status,proto3,enum=alertmanagerpb.ReadStateStatus" json:"status,omitempty"`
   174  	Error  string               `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
   175  	State  *clusterpb.FullState `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"`
   176  }
   177  
   178  func (m *ReadStateResponse) Reset()      { *m = ReadStateResponse{} }
   179  func (*ReadStateResponse) ProtoMessage() {}
   180  func (*ReadStateResponse) Descriptor() ([]byte, []int) {
   181  	return fileDescriptor_e60437b6e0c74c9a, []int{2}
   182  }
   183  func (m *ReadStateResponse) XXX_Unmarshal(b []byte) error {
   184  	return m.Unmarshal(b)
   185  }
   186  func (m *ReadStateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   187  	if deterministic {
   188  		return xxx_messageInfo_ReadStateResponse.Marshal(b, m, deterministic)
   189  	} else {
   190  		b = b[:cap(b)]
   191  		n, err := m.MarshalToSizedBuffer(b)
   192  		if err != nil {
   193  			return nil, err
   194  		}
   195  		return b[:n], nil
   196  	}
   197  }
   198  func (m *ReadStateResponse) XXX_Merge(src proto.Message) {
   199  	xxx_messageInfo_ReadStateResponse.Merge(m, src)
   200  }
   201  func (m *ReadStateResponse) XXX_Size() int {
   202  	return m.Size()
   203  }
   204  func (m *ReadStateResponse) XXX_DiscardUnknown() {
   205  	xxx_messageInfo_ReadStateResponse.DiscardUnknown(m)
   206  }
   207  
   208  var xxx_messageInfo_ReadStateResponse proto.InternalMessageInfo
   209  
   210  func (m *ReadStateResponse) GetStatus() ReadStateStatus {
   211  	if m != nil {
   212  		return m.Status
   213  	}
   214  	return READ_UNSPECIFIED
   215  }
   216  
   217  func (m *ReadStateResponse) GetError() string {
   218  	if m != nil {
   219  		return m.Error
   220  	}
   221  	return ""
   222  }
   223  
   224  func (m *ReadStateResponse) GetState() *clusterpb.FullState {
   225  	if m != nil {
   226  		return m.State
   227  	}
   228  	return nil
   229  }
   230  
   231  func init() {
   232  	proto.RegisterEnum("alertmanagerpb.UpdateStateStatus", UpdateStateStatus_name, UpdateStateStatus_value)
   233  	proto.RegisterEnum("alertmanagerpb.ReadStateStatus", ReadStateStatus_name, ReadStateStatus_value)
   234  	proto.RegisterType((*UpdateStateResponse)(nil), "alertmanagerpb.UpdateStateResponse")
   235  	proto.RegisterType((*ReadStateRequest)(nil), "alertmanagerpb.ReadStateRequest")
   236  	proto.RegisterType((*ReadStateResponse)(nil), "alertmanagerpb.ReadStateResponse")
   237  }
   238  
   239  func init() { proto.RegisterFile("alertmanager.proto", fileDescriptor_e60437b6e0c74c9a) }
   240  
   241  var fileDescriptor_e60437b6e0c74c9a = []byte{
   242  	// 509 bytes of a gzipped FileDescriptorProto
   243  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x41, 0x6f, 0x12, 0x41,
   244  	0x18, 0x9d, 0xa1, 0x16, 0xd3, 0x0f, 0x85, 0xed, 0x14, 0x95, 0x70, 0x98, 0x52, 0xbc, 0x10, 0x0e,
   245  	0xbb, 0x09, 0x9a, 0x18, 0x3d, 0xb5, 0x95, 0xc5, 0x36, 0x8d, 0x40, 0x06, 0xb8, 0x98, 0x18, 0x32,
   246  	0xc0, 0x08, 0x46, 0x60, 0xd6, 0xd9, 0x59, 0x7b, 0xf5, 0x27, 0x78, 0xf0, 0x07, 0x78, 0xf4, 0xa7,
   247  	0x78, 0xe4, 0xd8, 0xa3, 0x2c, 0x97, 0x26, 0x5e, 0xfa, 0x13, 0x4c, 0x59, 0x76, 0x5d, 0xd7, 0xd8,
   248  	0xf4, 0xb4, 0xdf, 0xbc, 0xf9, 0xde, 0x7b, 0xf3, 0xbd, 0x99, 0x05, 0xc2, 0xa7, 0x42, 0xe9, 0x19,
   249  	0x9f, 0xf3, 0xb1, 0x50, 0xa6, 0xa3, 0xa4, 0x96, 0x24, 0x1b, 0xc7, 0x9c, 0x41, 0x31, 0x3f, 0x96,
   250  	0x63, 0xb9, 0xde, 0xb2, 0xae, 0xab, 0xa0, 0xab, 0xf8, 0x74, 0xfc, 0x5e, 0x4f, 0xbc, 0x81, 0x39,
   251  	0x94, 0x33, 0xeb, 0x5c, 0xf0, 0x4f, 0xe2, 0x5c, 0xaa, 0x0f, 0xae, 0x35, 0x94, 0xb3, 0x99, 0x9c,
   252  	0x5b, 0x13, 0xad, 0x9d, 0xb1, 0x72, 0x86, 0x51, 0xb1, 0x61, 0x1d, 0xc7, 0x58, 0x8e, 0x92, 0x33,
   253  	0xa1, 0x27, 0xc2, 0x73, 0xad, 0xb8, 0xa3, 0x35, 0x9c, 0x7a, 0xae, 0xfe, 0xf3, 0x75, 0x06, 0x61,
   254  	0x15, 0x68, 0x94, 0xdf, 0xc1, 0x5e, 0xcf, 0x19, 0x71, 0x2d, 0x3a, 0x9a, 0x6b, 0xc1, 0x84, 0xeb,
   255  	0xc8, 0xb9, 0x2b, 0xc8, 0x73, 0x48, 0xbb, 0x9a, 0x6b, 0xcf, 0x2d, 0xe0, 0x12, 0xae, 0x64, 0x6b,
   256  	0x07, 0xe6, 0xdf, 0x73, 0x98, 0x31, 0x52, 0x67, 0xdd, 0xc8, 0x36, 0x04, 0x92, 0x87, 0x6d, 0xa1,
   257  	0x94, 0x54, 0x85, 0x54, 0x09, 0x57, 0x76, 0x58, 0xb0, 0x28, 0x13, 0x30, 0x98, 0xe0, 0xa3, 0x8d,
   258  	0xcb, 0x47, 0x4f, 0xb8, 0xba, 0xfc, 0x15, 0xc3, 0x6e, 0x0c, 0xdc, 0x58, 0x3f, 0x4b, 0x58, 0xef,
   259  	0x27, 0xad, 0x23, 0xca, 0x6d, 0x8c, 0x49, 0x15, 0xb6, 0xaf, 0xf7, 0x45, 0x61, 0xab, 0x84, 0x2b,
   260  	0x99, 0x5a, 0xde, 0x8c, 0x92, 0x30, 0x1b, 0xde, 0x74, 0x1a, 0x78, 0x07, 0x2d, 0x2f, 0xee, 0x5c,
   261  	0x7e, 0xdb, 0x47, 0xd5, 0x43, 0xd8, 0xfd, 0x67, 0x3a, 0x92, 0x86, 0x54, 0xeb, 0xcc, 0x40, 0x24,
   262  	0x07, 0x99, 0xd7, 0x36, 0x7b, 0x65, 0xf7, 0x6d, 0xc6, 0x5a, 0xcc, 0x48, 0x11, 0x02, 0xd9, 0x5e,
   263  	0xc7, 0x66, 0xfd, 0x66, 0xab, 0xdb, 0x6f, 0xb4, 0x7a, 0xcd, 0xba, 0xb1, 0x55, 0x7d, 0x0b, 0xb9,
   264  	0xc4, 0x21, 0x49, 0x1e, 0x0c, 0x66, 0x1f, 0xd5, 0xfb, 0xbd, 0x66, 0xa7, 0x6d, 0xbf, 0x3c, 0x6d,
   265  	0x9c, 0xda, 0x75, 0x03, 0x91, 0x0c, 0xdc, 0x5d, 0xa3, 0xad, 0x33, 0x03, 0x93, 0x2c, 0xc0, 0x7a,
   266  	0x11, 0x2a, 0x3f, 0x82, 0xbd, 0x80, 0x92, 0x90, 0xaf, 0xfd, 0xc2, 0x70, 0xef, 0x28, 0x96, 0x09,
   267  	0x39, 0x84, 0xfb, 0x27, 0x7c, 0x3e, 0x9a, 0x86, 0xc9, 0x92, 0x07, 0x66, 0xf4, 0x54, 0x4e, 0xba,
   268  	0xdd, 0xf6, 0x06, 0x2e, 0x3e, 0x4c, 0xc2, 0x41, 0xe4, 0x65, 0x44, 0x6c, 0xc8, 0xc4, 0x66, 0x26,
   269  	0xb9, 0x58, 0x4a, 0x6d, 0xae, 0x74, 0xf1, 0xf1, 0x0d, 0xf7, 0x1f, 0x93, 0x61, 0xb0, 0x13, 0x0d,
   270  	0x4e, 0x4a, 0xff, 0xbd, 0xb8, 0xf0, 0x3c, 0x07, 0x37, 0x74, 0x84, 0x9a, 0xc7, 0xf5, 0xc5, 0x92,
   271  	0xa2, 0x8b, 0x25, 0x45, 0x57, 0x4b, 0x8a, 0x3f, 0xfb, 0x14, 0x7f, 0xf7, 0x29, 0xfe, 0xe1, 0x53,
   272  	0xbc, 0xf0, 0x29, 0xfe, 0xe9, 0x53, 0x7c, 0xe9, 0x53, 0x74, 0xe5, 0x53, 0xfc, 0x65, 0x45, 0xd1,
   273  	0x62, 0x45, 0xd1, 0xc5, 0x8a, 0xa2, 0x37, 0x89, 0xff, 0x6e, 0x90, 0x5e, 0x3f, 0xf7, 0x27, 0xbf,
   274  	0x03, 0x00, 0x00, 0xff, 0xff, 0x81, 0x5b, 0x6b, 0x33, 0xa4, 0x03, 0x00, 0x00,
   275  }
   276  
   277  func (x UpdateStateStatus) String() string {
   278  	s, ok := UpdateStateStatus_name[int32(x)]
   279  	if ok {
   280  		return s
   281  	}
   282  	return strconv.Itoa(int(x))
   283  }
   284  func (x ReadStateStatus) String() string {
   285  	s, ok := ReadStateStatus_name[int32(x)]
   286  	if ok {
   287  		return s
   288  	}
   289  	return strconv.Itoa(int(x))
   290  }
   291  func (this *UpdateStateResponse) Equal(that interface{}) bool {
   292  	if that == nil {
   293  		return this == nil
   294  	}
   295  
   296  	that1, ok := that.(*UpdateStateResponse)
   297  	if !ok {
   298  		that2, ok := that.(UpdateStateResponse)
   299  		if ok {
   300  			that1 = &that2
   301  		} else {
   302  			return false
   303  		}
   304  	}
   305  	if that1 == nil {
   306  		return this == nil
   307  	} else if this == nil {
   308  		return false
   309  	}
   310  	if this.Status != that1.Status {
   311  		return false
   312  	}
   313  	if this.Error != that1.Error {
   314  		return false
   315  	}
   316  	return true
   317  }
   318  func (this *ReadStateRequest) Equal(that interface{}) bool {
   319  	if that == nil {
   320  		return this == nil
   321  	}
   322  
   323  	that1, ok := that.(*ReadStateRequest)
   324  	if !ok {
   325  		that2, ok := that.(ReadStateRequest)
   326  		if ok {
   327  			that1 = &that2
   328  		} else {
   329  			return false
   330  		}
   331  	}
   332  	if that1 == nil {
   333  		return this == nil
   334  	} else if this == nil {
   335  		return false
   336  	}
   337  	return true
   338  }
   339  func (this *UpdateStateResponse) GoString() string {
   340  	if this == nil {
   341  		return "nil"
   342  	}
   343  	s := make([]string, 0, 6)
   344  	s = append(s, "&alertmanagerpb.UpdateStateResponse{")
   345  	s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
   346  	s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
   347  	s = append(s, "}")
   348  	return strings.Join(s, "")
   349  }
   350  func (this *ReadStateRequest) GoString() string {
   351  	if this == nil {
   352  		return "nil"
   353  	}
   354  	s := make([]string, 0, 4)
   355  	s = append(s, "&alertmanagerpb.ReadStateRequest{")
   356  	s = append(s, "}")
   357  	return strings.Join(s, "")
   358  }
   359  func (this *ReadStateResponse) GoString() string {
   360  	if this == nil {
   361  		return "nil"
   362  	}
   363  	s := make([]string, 0, 7)
   364  	s = append(s, "&alertmanagerpb.ReadStateResponse{")
   365  	s = append(s, "Status: "+fmt.Sprintf("%#v", this.Status)+",\n")
   366  	s = append(s, "Error: "+fmt.Sprintf("%#v", this.Error)+",\n")
   367  	if this.State != nil {
   368  		s = append(s, "State: "+fmt.Sprintf("%#v", this.State)+",\n")
   369  	}
   370  	s = append(s, "}")
   371  	return strings.Join(s, "")
   372  }
   373  func valueToGoStringAlertmanager(v interface{}, typ string) string {
   374  	rv := reflect.ValueOf(v)
   375  	if rv.IsNil() {
   376  		return "nil"
   377  	}
   378  	pv := reflect.Indirect(rv).Interface()
   379  	return fmt.Sprintf("func(v %v) *%v { return &v } ( %#v )", typ, typ, pv)
   380  }
   381  
   382  // Reference imports to suppress errors if they are not otherwise used.
   383  var _ context.Context
   384  var _ grpc.ClientConn
   385  
   386  // This is a compile-time assertion to ensure that this generated file
   387  // is compatible with the grpc package it is being compiled against.
   388  const _ = grpc.SupportPackageIsVersion4
   389  
   390  // AlertmanagerClient is the client API for Alertmanager service.
   391  //
   392  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   393  type AlertmanagerClient interface {
   394  	HandleRequest(ctx context.Context, in *httpgrpc.HTTPRequest, opts ...grpc.CallOption) (*httpgrpc.HTTPResponse, error)
   395  	UpdateState(ctx context.Context, in *clusterpb.Part, opts ...grpc.CallOption) (*UpdateStateResponse, error)
   396  	ReadState(ctx context.Context, in *ReadStateRequest, opts ...grpc.CallOption) (*ReadStateResponse, error)
   397  }
   398  
   399  type alertmanagerClient struct {
   400  	cc *grpc.ClientConn
   401  }
   402  
   403  func NewAlertmanagerClient(cc *grpc.ClientConn) AlertmanagerClient {
   404  	return &alertmanagerClient{cc}
   405  }
   406  
   407  func (c *alertmanagerClient) HandleRequest(ctx context.Context, in *httpgrpc.HTTPRequest, opts ...grpc.CallOption) (*httpgrpc.HTTPResponse, error) {
   408  	out := new(httpgrpc.HTTPResponse)
   409  	err := c.cc.Invoke(ctx, "/alertmanagerpb.Alertmanager/HandleRequest", in, out, opts...)
   410  	if err != nil {
   411  		return nil, err
   412  	}
   413  	return out, nil
   414  }
   415  
   416  func (c *alertmanagerClient) UpdateState(ctx context.Context, in *clusterpb.Part, opts ...grpc.CallOption) (*UpdateStateResponse, error) {
   417  	out := new(UpdateStateResponse)
   418  	err := c.cc.Invoke(ctx, "/alertmanagerpb.Alertmanager/UpdateState", in, out, opts...)
   419  	if err != nil {
   420  		return nil, err
   421  	}
   422  	return out, nil
   423  }
   424  
   425  func (c *alertmanagerClient) ReadState(ctx context.Context, in *ReadStateRequest, opts ...grpc.CallOption) (*ReadStateResponse, error) {
   426  	out := new(ReadStateResponse)
   427  	err := c.cc.Invoke(ctx, "/alertmanagerpb.Alertmanager/ReadState", in, out, opts...)
   428  	if err != nil {
   429  		return nil, err
   430  	}
   431  	return out, nil
   432  }
   433  
   434  // AlertmanagerServer is the server API for Alertmanager service.
   435  type AlertmanagerServer interface {
   436  	HandleRequest(context.Context, *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error)
   437  	UpdateState(context.Context, *clusterpb.Part) (*UpdateStateResponse, error)
   438  	ReadState(context.Context, *ReadStateRequest) (*ReadStateResponse, error)
   439  }
   440  
   441  // UnimplementedAlertmanagerServer can be embedded to have forward compatible implementations.
   442  type UnimplementedAlertmanagerServer struct {
   443  }
   444  
   445  func (*UnimplementedAlertmanagerServer) HandleRequest(ctx context.Context, req *httpgrpc.HTTPRequest) (*httpgrpc.HTTPResponse, error) {
   446  	return nil, status.Errorf(codes.Unimplemented, "method HandleRequest not implemented")
   447  }
   448  func (*UnimplementedAlertmanagerServer) UpdateState(ctx context.Context, req *clusterpb.Part) (*UpdateStateResponse, error) {
   449  	return nil, status.Errorf(codes.Unimplemented, "method UpdateState not implemented")
   450  }
   451  func (*UnimplementedAlertmanagerServer) ReadState(ctx context.Context, req *ReadStateRequest) (*ReadStateResponse, error) {
   452  	return nil, status.Errorf(codes.Unimplemented, "method ReadState not implemented")
   453  }
   454  
   455  func RegisterAlertmanagerServer(s *grpc.Server, srv AlertmanagerServer) {
   456  	s.RegisterService(&_Alertmanager_serviceDesc, srv)
   457  }
   458  
   459  func _Alertmanager_HandleRequest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   460  	in := new(httpgrpc.HTTPRequest)
   461  	if err := dec(in); err != nil {
   462  		return nil, err
   463  	}
   464  	if interceptor == nil {
   465  		return srv.(AlertmanagerServer).HandleRequest(ctx, in)
   466  	}
   467  	info := &grpc.UnaryServerInfo{
   468  		Server:     srv,
   469  		FullMethod: "/alertmanagerpb.Alertmanager/HandleRequest",
   470  	}
   471  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   472  		return srv.(AlertmanagerServer).HandleRequest(ctx, req.(*httpgrpc.HTTPRequest))
   473  	}
   474  	return interceptor(ctx, in, info, handler)
   475  }
   476  
   477  func _Alertmanager_UpdateState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   478  	in := new(clusterpb.Part)
   479  	if err := dec(in); err != nil {
   480  		return nil, err
   481  	}
   482  	if interceptor == nil {
   483  		return srv.(AlertmanagerServer).UpdateState(ctx, in)
   484  	}
   485  	info := &grpc.UnaryServerInfo{
   486  		Server:     srv,
   487  		FullMethod: "/alertmanagerpb.Alertmanager/UpdateState",
   488  	}
   489  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   490  		return srv.(AlertmanagerServer).UpdateState(ctx, req.(*clusterpb.Part))
   491  	}
   492  	return interceptor(ctx, in, info, handler)
   493  }
   494  
   495  func _Alertmanager_ReadState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   496  	in := new(ReadStateRequest)
   497  	if err := dec(in); err != nil {
   498  		return nil, err
   499  	}
   500  	if interceptor == nil {
   501  		return srv.(AlertmanagerServer).ReadState(ctx, in)
   502  	}
   503  	info := &grpc.UnaryServerInfo{
   504  		Server:     srv,
   505  		FullMethod: "/alertmanagerpb.Alertmanager/ReadState",
   506  	}
   507  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   508  		return srv.(AlertmanagerServer).ReadState(ctx, req.(*ReadStateRequest))
   509  	}
   510  	return interceptor(ctx, in, info, handler)
   511  }
   512  
   513  var _Alertmanager_serviceDesc = grpc.ServiceDesc{
   514  	ServiceName: "alertmanagerpb.Alertmanager",
   515  	HandlerType: (*AlertmanagerServer)(nil),
   516  	Methods: []grpc.MethodDesc{
   517  		{
   518  			MethodName: "HandleRequest",
   519  			Handler:    _Alertmanager_HandleRequest_Handler,
   520  		},
   521  		{
   522  			MethodName: "UpdateState",
   523  			Handler:    _Alertmanager_UpdateState_Handler,
   524  		},
   525  		{
   526  			MethodName: "ReadState",
   527  			Handler:    _Alertmanager_ReadState_Handler,
   528  		},
   529  	},
   530  	Streams:  []grpc.StreamDesc{},
   531  	Metadata: "alertmanager.proto",
   532  }
   533  
   534  func (m *UpdateStateResponse) Marshal() (dAtA []byte, err error) {
   535  	size := m.Size()
   536  	dAtA = make([]byte, size)
   537  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   538  	if err != nil {
   539  		return nil, err
   540  	}
   541  	return dAtA[:n], nil
   542  }
   543  
   544  func (m *UpdateStateResponse) MarshalTo(dAtA []byte) (int, error) {
   545  	size := m.Size()
   546  	return m.MarshalToSizedBuffer(dAtA[:size])
   547  }
   548  
   549  func (m *UpdateStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   550  	i := len(dAtA)
   551  	_ = i
   552  	var l int
   553  	_ = l
   554  	if len(m.Error) > 0 {
   555  		i -= len(m.Error)
   556  		copy(dAtA[i:], m.Error)
   557  		i = encodeVarintAlertmanager(dAtA, i, uint64(len(m.Error)))
   558  		i--
   559  		dAtA[i] = 0x12
   560  	}
   561  	if m.Status != 0 {
   562  		i = encodeVarintAlertmanager(dAtA, i, uint64(m.Status))
   563  		i--
   564  		dAtA[i] = 0x8
   565  	}
   566  	return len(dAtA) - i, nil
   567  }
   568  
   569  func (m *ReadStateRequest) Marshal() (dAtA []byte, err error) {
   570  	size := m.Size()
   571  	dAtA = make([]byte, size)
   572  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   573  	if err != nil {
   574  		return nil, err
   575  	}
   576  	return dAtA[:n], nil
   577  }
   578  
   579  func (m *ReadStateRequest) MarshalTo(dAtA []byte) (int, error) {
   580  	size := m.Size()
   581  	return m.MarshalToSizedBuffer(dAtA[:size])
   582  }
   583  
   584  func (m *ReadStateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   585  	i := len(dAtA)
   586  	_ = i
   587  	var l int
   588  	_ = l
   589  	return len(dAtA) - i, nil
   590  }
   591  
   592  func (m *ReadStateResponse) Marshal() (dAtA []byte, err error) {
   593  	size := m.Size()
   594  	dAtA = make([]byte, size)
   595  	n, err := m.MarshalToSizedBuffer(dAtA[:size])
   596  	if err != nil {
   597  		return nil, err
   598  	}
   599  	return dAtA[:n], nil
   600  }
   601  
   602  func (m *ReadStateResponse) MarshalTo(dAtA []byte) (int, error) {
   603  	size := m.Size()
   604  	return m.MarshalToSizedBuffer(dAtA[:size])
   605  }
   606  
   607  func (m *ReadStateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) {
   608  	i := len(dAtA)
   609  	_ = i
   610  	var l int
   611  	_ = l
   612  	if m.State != nil {
   613  		{
   614  			size, err := m.State.MarshalToSizedBuffer(dAtA[:i])
   615  			if err != nil {
   616  				return 0, err
   617  			}
   618  			i -= size
   619  			i = encodeVarintAlertmanager(dAtA, i, uint64(size))
   620  		}
   621  		i--
   622  		dAtA[i] = 0x1a
   623  	}
   624  	if len(m.Error) > 0 {
   625  		i -= len(m.Error)
   626  		copy(dAtA[i:], m.Error)
   627  		i = encodeVarintAlertmanager(dAtA, i, uint64(len(m.Error)))
   628  		i--
   629  		dAtA[i] = 0x12
   630  	}
   631  	if m.Status != 0 {
   632  		i = encodeVarintAlertmanager(dAtA, i, uint64(m.Status))
   633  		i--
   634  		dAtA[i] = 0x8
   635  	}
   636  	return len(dAtA) - i, nil
   637  }
   638  
   639  func encodeVarintAlertmanager(dAtA []byte, offset int, v uint64) int {
   640  	offset -= sovAlertmanager(v)
   641  	base := offset
   642  	for v >= 1<<7 {
   643  		dAtA[offset] = uint8(v&0x7f | 0x80)
   644  		v >>= 7
   645  		offset++
   646  	}
   647  	dAtA[offset] = uint8(v)
   648  	return base
   649  }
   650  func (m *UpdateStateResponse) Size() (n int) {
   651  	if m == nil {
   652  		return 0
   653  	}
   654  	var l int
   655  	_ = l
   656  	if m.Status != 0 {
   657  		n += 1 + sovAlertmanager(uint64(m.Status))
   658  	}
   659  	l = len(m.Error)
   660  	if l > 0 {
   661  		n += 1 + l + sovAlertmanager(uint64(l))
   662  	}
   663  	return n
   664  }
   665  
   666  func (m *ReadStateRequest) Size() (n int) {
   667  	if m == nil {
   668  		return 0
   669  	}
   670  	var l int
   671  	_ = l
   672  	return n
   673  }
   674  
   675  func (m *ReadStateResponse) Size() (n int) {
   676  	if m == nil {
   677  		return 0
   678  	}
   679  	var l int
   680  	_ = l
   681  	if m.Status != 0 {
   682  		n += 1 + sovAlertmanager(uint64(m.Status))
   683  	}
   684  	l = len(m.Error)
   685  	if l > 0 {
   686  		n += 1 + l + sovAlertmanager(uint64(l))
   687  	}
   688  	if m.State != nil {
   689  		l = m.State.Size()
   690  		n += 1 + l + sovAlertmanager(uint64(l))
   691  	}
   692  	return n
   693  }
   694  
   695  func sovAlertmanager(x uint64) (n int) {
   696  	return (math_bits.Len64(x|1) + 6) / 7
   697  }
   698  func sozAlertmanager(x uint64) (n int) {
   699  	return sovAlertmanager(uint64((x << 1) ^ uint64((int64(x) >> 63))))
   700  }
   701  func (this *UpdateStateResponse) String() string {
   702  	if this == nil {
   703  		return "nil"
   704  	}
   705  	s := strings.Join([]string{`&UpdateStateResponse{`,
   706  		`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
   707  		`Error:` + fmt.Sprintf("%v", this.Error) + `,`,
   708  		`}`,
   709  	}, "")
   710  	return s
   711  }
   712  func (this *ReadStateRequest) String() string {
   713  	if this == nil {
   714  		return "nil"
   715  	}
   716  	s := strings.Join([]string{`&ReadStateRequest{`,
   717  		`}`,
   718  	}, "")
   719  	return s
   720  }
   721  func (this *ReadStateResponse) String() string {
   722  	if this == nil {
   723  		return "nil"
   724  	}
   725  	s := strings.Join([]string{`&ReadStateResponse{`,
   726  		`Status:` + fmt.Sprintf("%v", this.Status) + `,`,
   727  		`Error:` + fmt.Sprintf("%v", this.Error) + `,`,
   728  		`State:` + strings.Replace(fmt.Sprintf("%v", this.State), "FullState", "clusterpb.FullState", 1) + `,`,
   729  		`}`,
   730  	}, "")
   731  	return s
   732  }
   733  func valueToStringAlertmanager(v interface{}) string {
   734  	rv := reflect.ValueOf(v)
   735  	if rv.IsNil() {
   736  		return "nil"
   737  	}
   738  	pv := reflect.Indirect(rv).Interface()
   739  	return fmt.Sprintf("*%v", pv)
   740  }
   741  func (m *UpdateStateResponse) Unmarshal(dAtA []byte) error {
   742  	l := len(dAtA)
   743  	iNdEx := 0
   744  	for iNdEx < l {
   745  		preIndex := iNdEx
   746  		var wire uint64
   747  		for shift := uint(0); ; shift += 7 {
   748  			if shift >= 64 {
   749  				return ErrIntOverflowAlertmanager
   750  			}
   751  			if iNdEx >= l {
   752  				return io.ErrUnexpectedEOF
   753  			}
   754  			b := dAtA[iNdEx]
   755  			iNdEx++
   756  			wire |= uint64(b&0x7F) << shift
   757  			if b < 0x80 {
   758  				break
   759  			}
   760  		}
   761  		fieldNum := int32(wire >> 3)
   762  		wireType := int(wire & 0x7)
   763  		if wireType == 4 {
   764  			return fmt.Errorf("proto: UpdateStateResponse: wiretype end group for non-group")
   765  		}
   766  		if fieldNum <= 0 {
   767  			return fmt.Errorf("proto: UpdateStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   768  		}
   769  		switch fieldNum {
   770  		case 1:
   771  			if wireType != 0 {
   772  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
   773  			}
   774  			m.Status = 0
   775  			for shift := uint(0); ; shift += 7 {
   776  				if shift >= 64 {
   777  					return ErrIntOverflowAlertmanager
   778  				}
   779  				if iNdEx >= l {
   780  					return io.ErrUnexpectedEOF
   781  				}
   782  				b := dAtA[iNdEx]
   783  				iNdEx++
   784  				m.Status |= UpdateStateStatus(b&0x7F) << shift
   785  				if b < 0x80 {
   786  					break
   787  				}
   788  			}
   789  		case 2:
   790  			if wireType != 2 {
   791  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
   792  			}
   793  			var stringLen uint64
   794  			for shift := uint(0); ; shift += 7 {
   795  				if shift >= 64 {
   796  					return ErrIntOverflowAlertmanager
   797  				}
   798  				if iNdEx >= l {
   799  					return io.ErrUnexpectedEOF
   800  				}
   801  				b := dAtA[iNdEx]
   802  				iNdEx++
   803  				stringLen |= uint64(b&0x7F) << shift
   804  				if b < 0x80 {
   805  					break
   806  				}
   807  			}
   808  			intStringLen := int(stringLen)
   809  			if intStringLen < 0 {
   810  				return ErrInvalidLengthAlertmanager
   811  			}
   812  			postIndex := iNdEx + intStringLen
   813  			if postIndex < 0 {
   814  				return ErrInvalidLengthAlertmanager
   815  			}
   816  			if postIndex > l {
   817  				return io.ErrUnexpectedEOF
   818  			}
   819  			m.Error = string(dAtA[iNdEx:postIndex])
   820  			iNdEx = postIndex
   821  		default:
   822  			iNdEx = preIndex
   823  			skippy, err := skipAlertmanager(dAtA[iNdEx:])
   824  			if err != nil {
   825  				return err
   826  			}
   827  			if skippy < 0 {
   828  				return ErrInvalidLengthAlertmanager
   829  			}
   830  			if (iNdEx + skippy) < 0 {
   831  				return ErrInvalidLengthAlertmanager
   832  			}
   833  			if (iNdEx + skippy) > l {
   834  				return io.ErrUnexpectedEOF
   835  			}
   836  			iNdEx += skippy
   837  		}
   838  	}
   839  
   840  	if iNdEx > l {
   841  		return io.ErrUnexpectedEOF
   842  	}
   843  	return nil
   844  }
   845  func (m *ReadStateRequest) Unmarshal(dAtA []byte) error {
   846  	l := len(dAtA)
   847  	iNdEx := 0
   848  	for iNdEx < l {
   849  		preIndex := iNdEx
   850  		var wire uint64
   851  		for shift := uint(0); ; shift += 7 {
   852  			if shift >= 64 {
   853  				return ErrIntOverflowAlertmanager
   854  			}
   855  			if iNdEx >= l {
   856  				return io.ErrUnexpectedEOF
   857  			}
   858  			b := dAtA[iNdEx]
   859  			iNdEx++
   860  			wire |= uint64(b&0x7F) << shift
   861  			if b < 0x80 {
   862  				break
   863  			}
   864  		}
   865  		fieldNum := int32(wire >> 3)
   866  		wireType := int(wire & 0x7)
   867  		if wireType == 4 {
   868  			return fmt.Errorf("proto: ReadStateRequest: wiretype end group for non-group")
   869  		}
   870  		if fieldNum <= 0 {
   871  			return fmt.Errorf("proto: ReadStateRequest: illegal tag %d (wire type %d)", fieldNum, wire)
   872  		}
   873  		switch fieldNum {
   874  		default:
   875  			iNdEx = preIndex
   876  			skippy, err := skipAlertmanager(dAtA[iNdEx:])
   877  			if err != nil {
   878  				return err
   879  			}
   880  			if skippy < 0 {
   881  				return ErrInvalidLengthAlertmanager
   882  			}
   883  			if (iNdEx + skippy) < 0 {
   884  				return ErrInvalidLengthAlertmanager
   885  			}
   886  			if (iNdEx + skippy) > l {
   887  				return io.ErrUnexpectedEOF
   888  			}
   889  			iNdEx += skippy
   890  		}
   891  	}
   892  
   893  	if iNdEx > l {
   894  		return io.ErrUnexpectedEOF
   895  	}
   896  	return nil
   897  }
   898  func (m *ReadStateResponse) Unmarshal(dAtA []byte) error {
   899  	l := len(dAtA)
   900  	iNdEx := 0
   901  	for iNdEx < l {
   902  		preIndex := iNdEx
   903  		var wire uint64
   904  		for shift := uint(0); ; shift += 7 {
   905  			if shift >= 64 {
   906  				return ErrIntOverflowAlertmanager
   907  			}
   908  			if iNdEx >= l {
   909  				return io.ErrUnexpectedEOF
   910  			}
   911  			b := dAtA[iNdEx]
   912  			iNdEx++
   913  			wire |= uint64(b&0x7F) << shift
   914  			if b < 0x80 {
   915  				break
   916  			}
   917  		}
   918  		fieldNum := int32(wire >> 3)
   919  		wireType := int(wire & 0x7)
   920  		if wireType == 4 {
   921  			return fmt.Errorf("proto: ReadStateResponse: wiretype end group for non-group")
   922  		}
   923  		if fieldNum <= 0 {
   924  			return fmt.Errorf("proto: ReadStateResponse: illegal tag %d (wire type %d)", fieldNum, wire)
   925  		}
   926  		switch fieldNum {
   927  		case 1:
   928  			if wireType != 0 {
   929  				return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType)
   930  			}
   931  			m.Status = 0
   932  			for shift := uint(0); ; shift += 7 {
   933  				if shift >= 64 {
   934  					return ErrIntOverflowAlertmanager
   935  				}
   936  				if iNdEx >= l {
   937  					return io.ErrUnexpectedEOF
   938  				}
   939  				b := dAtA[iNdEx]
   940  				iNdEx++
   941  				m.Status |= ReadStateStatus(b&0x7F) << shift
   942  				if b < 0x80 {
   943  					break
   944  				}
   945  			}
   946  		case 2:
   947  			if wireType != 2 {
   948  				return fmt.Errorf("proto: wrong wireType = %d for field Error", wireType)
   949  			}
   950  			var stringLen uint64
   951  			for shift := uint(0); ; shift += 7 {
   952  				if shift >= 64 {
   953  					return ErrIntOverflowAlertmanager
   954  				}
   955  				if iNdEx >= l {
   956  					return io.ErrUnexpectedEOF
   957  				}
   958  				b := dAtA[iNdEx]
   959  				iNdEx++
   960  				stringLen |= uint64(b&0x7F) << shift
   961  				if b < 0x80 {
   962  					break
   963  				}
   964  			}
   965  			intStringLen := int(stringLen)
   966  			if intStringLen < 0 {
   967  				return ErrInvalidLengthAlertmanager
   968  			}
   969  			postIndex := iNdEx + intStringLen
   970  			if postIndex < 0 {
   971  				return ErrInvalidLengthAlertmanager
   972  			}
   973  			if postIndex > l {
   974  				return io.ErrUnexpectedEOF
   975  			}
   976  			m.Error = string(dAtA[iNdEx:postIndex])
   977  			iNdEx = postIndex
   978  		case 3:
   979  			if wireType != 2 {
   980  				return fmt.Errorf("proto: wrong wireType = %d for field State", wireType)
   981  			}
   982  			var msglen int
   983  			for shift := uint(0); ; shift += 7 {
   984  				if shift >= 64 {
   985  					return ErrIntOverflowAlertmanager
   986  				}
   987  				if iNdEx >= l {
   988  					return io.ErrUnexpectedEOF
   989  				}
   990  				b := dAtA[iNdEx]
   991  				iNdEx++
   992  				msglen |= int(b&0x7F) << shift
   993  				if b < 0x80 {
   994  					break
   995  				}
   996  			}
   997  			if msglen < 0 {
   998  				return ErrInvalidLengthAlertmanager
   999  			}
  1000  			postIndex := iNdEx + msglen
  1001  			if postIndex < 0 {
  1002  				return ErrInvalidLengthAlertmanager
  1003  			}
  1004  			if postIndex > l {
  1005  				return io.ErrUnexpectedEOF
  1006  			}
  1007  			if m.State == nil {
  1008  				m.State = &clusterpb.FullState{}
  1009  			}
  1010  			if err := m.State.Unmarshal(dAtA[iNdEx:postIndex]); err != nil {
  1011  				return err
  1012  			}
  1013  			iNdEx = postIndex
  1014  		default:
  1015  			iNdEx = preIndex
  1016  			skippy, err := skipAlertmanager(dAtA[iNdEx:])
  1017  			if err != nil {
  1018  				return err
  1019  			}
  1020  			if skippy < 0 {
  1021  				return ErrInvalidLengthAlertmanager
  1022  			}
  1023  			if (iNdEx + skippy) < 0 {
  1024  				return ErrInvalidLengthAlertmanager
  1025  			}
  1026  			if (iNdEx + skippy) > l {
  1027  				return io.ErrUnexpectedEOF
  1028  			}
  1029  			iNdEx += skippy
  1030  		}
  1031  	}
  1032  
  1033  	if iNdEx > l {
  1034  		return io.ErrUnexpectedEOF
  1035  	}
  1036  	return nil
  1037  }
  1038  func skipAlertmanager(dAtA []byte) (n int, err error) {
  1039  	l := len(dAtA)
  1040  	iNdEx := 0
  1041  	for iNdEx < l {
  1042  		var wire uint64
  1043  		for shift := uint(0); ; shift += 7 {
  1044  			if shift >= 64 {
  1045  				return 0, ErrIntOverflowAlertmanager
  1046  			}
  1047  			if iNdEx >= l {
  1048  				return 0, io.ErrUnexpectedEOF
  1049  			}
  1050  			b := dAtA[iNdEx]
  1051  			iNdEx++
  1052  			wire |= (uint64(b) & 0x7F) << shift
  1053  			if b < 0x80 {
  1054  				break
  1055  			}
  1056  		}
  1057  		wireType := int(wire & 0x7)
  1058  		switch wireType {
  1059  		case 0:
  1060  			for shift := uint(0); ; shift += 7 {
  1061  				if shift >= 64 {
  1062  					return 0, ErrIntOverflowAlertmanager
  1063  				}
  1064  				if iNdEx >= l {
  1065  					return 0, io.ErrUnexpectedEOF
  1066  				}
  1067  				iNdEx++
  1068  				if dAtA[iNdEx-1] < 0x80 {
  1069  					break
  1070  				}
  1071  			}
  1072  			return iNdEx, nil
  1073  		case 1:
  1074  			iNdEx += 8
  1075  			return iNdEx, nil
  1076  		case 2:
  1077  			var length int
  1078  			for shift := uint(0); ; shift += 7 {
  1079  				if shift >= 64 {
  1080  					return 0, ErrIntOverflowAlertmanager
  1081  				}
  1082  				if iNdEx >= l {
  1083  					return 0, io.ErrUnexpectedEOF
  1084  				}
  1085  				b := dAtA[iNdEx]
  1086  				iNdEx++
  1087  				length |= (int(b) & 0x7F) << shift
  1088  				if b < 0x80 {
  1089  					break
  1090  				}
  1091  			}
  1092  			if length < 0 {
  1093  				return 0, ErrInvalidLengthAlertmanager
  1094  			}
  1095  			iNdEx += length
  1096  			if iNdEx < 0 {
  1097  				return 0, ErrInvalidLengthAlertmanager
  1098  			}
  1099  			return iNdEx, nil
  1100  		case 3:
  1101  			for {
  1102  				var innerWire uint64
  1103  				var start int = iNdEx
  1104  				for shift := uint(0); ; shift += 7 {
  1105  					if shift >= 64 {
  1106  						return 0, ErrIntOverflowAlertmanager
  1107  					}
  1108  					if iNdEx >= l {
  1109  						return 0, io.ErrUnexpectedEOF
  1110  					}
  1111  					b := dAtA[iNdEx]
  1112  					iNdEx++
  1113  					innerWire |= (uint64(b) & 0x7F) << shift
  1114  					if b < 0x80 {
  1115  						break
  1116  					}
  1117  				}
  1118  				innerWireType := int(innerWire & 0x7)
  1119  				if innerWireType == 4 {
  1120  					break
  1121  				}
  1122  				next, err := skipAlertmanager(dAtA[start:])
  1123  				if err != nil {
  1124  					return 0, err
  1125  				}
  1126  				iNdEx = start + next
  1127  				if iNdEx < 0 {
  1128  					return 0, ErrInvalidLengthAlertmanager
  1129  				}
  1130  			}
  1131  			return iNdEx, nil
  1132  		case 4:
  1133  			return iNdEx, nil
  1134  		case 5:
  1135  			iNdEx += 4
  1136  			return iNdEx, nil
  1137  		default:
  1138  			return 0, fmt.Errorf("proto: illegal wireType %d", wireType)
  1139  		}
  1140  	}
  1141  	panic("unreachable")
  1142  }
  1143  
  1144  var (
  1145  	ErrInvalidLengthAlertmanager = fmt.Errorf("proto: negative length found during unmarshaling")
  1146  	ErrIntOverflowAlertmanager   = fmt.Errorf("proto: integer overflow")
  1147  )