diff --git a/go/cxsdk.go b/go/cxsdk.go index 2befb86c..fe43b4f2 100644 --- a/go/cxsdk.go +++ b/go/cxsdk.go @@ -104,6 +104,7 @@ type ClientSet struct { groups *GroupsClient saml *SamlClient dataUsage *DataUsageClient + notifications *NotificationsClient } // RuleGroups gets a RuleGroupsClient from the ClientSet. @@ -215,6 +216,11 @@ func (c *ClientSet) DataUsage() *DataUsageClient { return c.dataUsage } +// Notifications gets a NotificationsClient from the ClientSet. +func (c *ClientSet) Notifications() *NotificationsClient { + return c.notifications +} + // NewClientSet Creates a new ClientSet. func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *ClientSet { authContext := NewAuthContext(teamsLevelAPIKey, userLevelAPIKey) @@ -239,9 +245,10 @@ func NewClientSet(targetURL, teamsLevelAPIKey string, userLevelAPIKey string) *C slos: NewSLOsClient(apikeyCPC), scopes: NewScopesClient(apikeyCPC), // dahboardsFolders: NewDashboardsFoldersClient(apikeyCPC), - apiKeys: NewAPIKeysClient(apikeyCPC), - groups: NewGroupsClient(apikeyCPC), - saml: NewSamlClient(apikeyCPC), + apiKeys: NewAPIKeysClient(apikeyCPC), + groups: NewGroupsClient(apikeyCPC), + saml: NewSamlClient(apikeyCPC), + notifications: NewNotificationsClient(apikeyCPC), // users: NewUsersClient(apikeyCPC), } } diff --git a/go/examples/notifications_test.go b/go/examples/notifications_test.go index 544b5e6c..d4d73630 100644 --- a/go/examples/notifications_test.go +++ b/go/examples/notifications_test.go @@ -23,7 +23,7 @@ import ( ) func TestConnectors(t *testing.T) { - t.Skip("Connectors are not supported in the current version of the SDK") + //t.Skip("Connectors are not supported in the current version of the SDK") region, err := cxsdk.CoralogixRegionFromEnv() assert.Nil(t, err) authContext, err := cxsdk.AuthContextFromEnv() @@ -36,7 +36,6 @@ func TestConnectors(t *testing.T) { Type: cxsdk.ConnectorTypeGenericHTTPS, Name: "TestConnector", Description: "This is the connector to use for Notification Center testing.", - EntityType: "alerts", ConnectorConfigs: []*cxsdk.ConnectorConfig{ { OutputSchemaId: "default", @@ -74,7 +73,7 @@ func TestConnectors(t *testing.T) { } func TestPresets(t *testing.T) { - t.Skip("Presets are not supported in the current version of the SDK") + //t.Skip("Presets are not supported in the current version of the SDK") region, err := cxsdk.CoralogixRegionFromEnv() assert.Nil(t, err) authContext, err := cxsdk.AuthContextFromEnv() @@ -83,7 +82,7 @@ func TestPresets(t *testing.T) { c := cxsdk.NewNotificationsClient(creator) presetType := cxsdk.PresetTypeCustom - parentId := "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" + parentUserFacingId := "preset_system_generic_https_alerts_empty" createRes, err := c.CreateCustomPreset(context.Background(), &cxsdk.CreateCustomPresetRequest{ Preset: &cxsdk.Preset{ Name: "TestPreset", @@ -91,7 +90,7 @@ func TestPresets(t *testing.T) { PresetType: &presetType, EntityType: "alerts", Parent: &cxsdk.Preset{ - Id: &parentId, + UserFacingId: &parentUserFacingId, }, ConnectorType: cxsdk.ConnectorTypeGenericHTTPS, ConfigOverrides: []*cxsdk.ConfigOverrides{ @@ -126,8 +125,9 @@ func TestPresets(t *testing.T) { presetId := createRes.Preset.Id preset, err := c.GetPreset(context.Background(), &cxsdk.GetPresetRequest{ - Id: *presetId, - }) + Identifier: &cxsdk.GetPresetIDIdentifier{ + Id: *presetId, + }}) if err != nil { t.Fatal(err) } @@ -135,7 +135,9 @@ func TestPresets(t *testing.T) { assert.Equal(t, preset.Preset.Name, "TestPreset") _, err = c.DeleteCustomPreset(context.Background(), &cxsdk.DeleteCustomPresetRequest{ - Id: *presetId, + Identifier: &cxsdk.DeletePresetIDIdentifier{ + Id: *presetId, + }, }) if err != nil { diff --git a/go/internal/coralogix/archive/dataset/v1/dataset.pb.go b/go/internal/coralogix/archive/dataset/v1/dataset.pb.go index 9b4b2587..36a78be7 100644 --- a/go/internal/coralogix/archive/dataset/v1/dataset.pb.go +++ b/go/internal/coralogix/archive/dataset/v1/dataset.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v1/dataset.proto package v1 diff --git a/go/internal/coralogix/archive/format/generic/v1/generic.pb.go b/go/internal/coralogix/archive/format/generic/v1/generic.pb.go index 5171ec67..50c003fd 100644 --- a/go/internal/coralogix/archive/format/generic/v1/generic.pb.go +++ b/go/internal/coralogix/archive/format/generic/v1/generic.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/format/generic/v1/generic.proto package v1 diff --git a/go/internal/coralogix/archive/format/wide_parquet/v1/wide_parquet.pb.go b/go/internal/coralogix/archive/format/wide_parquet/v1/wide_parquet.pb.go index 613875fe..95f083e8 100644 --- a/go/internal/coralogix/archive/format/wide_parquet/v1/wide_parquet.pb.go +++ b/go/internal/coralogix/archive/format/wide_parquet/v1/wide_parquet.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/format/wide_parquet/v1/wide_parquet.proto package v1 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.pb.go index c087f56d..a5e371f3 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.proto package v1 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service_grpc.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service_grpc.pb.go index a83fb83e..184fb500 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service_grpc.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v1/kafka_out_targets_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( KafkaOutTargetService_GetKafkaOutTargets_FullMethodName = "/com.coralogix.archive.kafka_out_targets.v1.KafkaOutTargetService/GetKafkaOutTargets" @@ -44,8 +44,9 @@ func NewKafkaOutTargetServiceClient(cc grpc.ClientConnInterface) KafkaOutTargetS } func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in *GetKafkaOutTargetsRequest, opts ...grpc.CallOption) (*GetKafkaOutTargetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetKafkaOutTargetsResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in } func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, in *UpsertKafkaOutTargetRequest, opts ...grpc.CallOption) (*UpsertKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, in *DeleteKafkaOutTargetRequest, opts ...grpc.CallOption) (*DeleteKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Context, in *SendKafkaOutTestMessageRequest, opts ...grpc.CallOption) (*SendKafkaOutTestMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SendKafkaOutTestMessageResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Contex // KafkaOutTargetServiceServer is the server API for KafkaOutTargetService service. // All implementations must embed UnimplementedKafkaOutTargetServiceServer -// for forward compatibility +// for forward compatibility. type KafkaOutTargetServiceServer interface { GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) UpsertKafkaOutTarget(context.Context, *UpsertKafkaOutTargetRequest) (*UpsertKafkaOutTargetResponse, error) @@ -90,9 +94,12 @@ type KafkaOutTargetServiceServer interface { mustEmbedUnimplementedKafkaOutTargetServiceServer() } -// UnimplementedKafkaOutTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedKafkaOutTargetServiceServer struct { -} +// UnimplementedKafkaOutTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKafkaOutTargetServiceServer struct{} func (UnimplementedKafkaOutTargetServiceServer) GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKafkaOutTargets not implemented") @@ -107,6 +114,7 @@ func (UnimplementedKafkaOutTargetServiceServer) SendKafkaOutTestMessage(context. return nil, status.Errorf(codes.Unimplemented, "method SendKafkaOutTestMessage not implemented") } func (UnimplementedKafkaOutTargetServiceServer) mustEmbedUnimplementedKafkaOutTargetServiceServer() {} +func (UnimplementedKafkaOutTargetServiceServer) testEmbeddedByValue() {} // UnsafeKafkaOutTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KafkaOutTargetServiceServer will @@ -116,6 +124,13 @@ type UnsafeKafkaOutTargetServiceServer interface { } func RegisterKafkaOutTargetServiceServer(s grpc.ServiceRegistrar, srv KafkaOutTargetServiceServer) { + // If the following call pancis, it indicates UnimplementedKafkaOutTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&KafkaOutTargetService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target.pb.go index 81feee01..3d02bacc 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v2/kafka_out_target.proto package v2 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.pb.go index 7cd922cf..3f92c734 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.proto package v2 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service_grpc.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service_grpc.pb.go index fcf2f891..4d6000fb 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service_grpc.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v2/kafka_out_target_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( KafkaOutTargetService_GetKafkaOutTargets_FullMethodName = "/com.coralogix.archive.kafka_out_targets.v2.KafkaOutTargetService/GetKafkaOutTargets" @@ -44,8 +44,9 @@ func NewKafkaOutTargetServiceClient(cc grpc.ClientConnInterface) KafkaOutTargetS } func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in *GetKafkaOutTargetsRequest, opts ...grpc.CallOption) (*GetKafkaOutTargetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetKafkaOutTargetsResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in } func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, in *UpsertKafkaOutTargetRequest, opts ...grpc.CallOption) (*UpsertKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, in *DeleteKafkaOutTargetRequest, opts ...grpc.CallOption) (*DeleteKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Context, in *SendKafkaOutTestMessageRequest, opts ...grpc.CallOption) (*SendKafkaOutTestMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SendKafkaOutTestMessageResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Contex // KafkaOutTargetServiceServer is the server API for KafkaOutTargetService service. // All implementations must embed UnimplementedKafkaOutTargetServiceServer -// for forward compatibility +// for forward compatibility. type KafkaOutTargetServiceServer interface { GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) UpsertKafkaOutTarget(context.Context, *UpsertKafkaOutTargetRequest) (*UpsertKafkaOutTargetResponse, error) @@ -90,9 +94,12 @@ type KafkaOutTargetServiceServer interface { mustEmbedUnimplementedKafkaOutTargetServiceServer() } -// UnimplementedKafkaOutTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedKafkaOutTargetServiceServer struct { -} +// UnimplementedKafkaOutTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKafkaOutTargetServiceServer struct{} func (UnimplementedKafkaOutTargetServiceServer) GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKafkaOutTargets not implemented") @@ -107,6 +114,7 @@ func (UnimplementedKafkaOutTargetServiceServer) SendKafkaOutTestMessage(context. return nil, status.Errorf(codes.Unimplemented, "method SendKafkaOutTestMessage not implemented") } func (UnimplementedKafkaOutTargetServiceServer) mustEmbedUnimplementedKafkaOutTargetServiceServer() {} +func (UnimplementedKafkaOutTargetServiceServer) testEmbeddedByValue() {} // UnsafeKafkaOutTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KafkaOutTargetServiceServer will @@ -116,6 +124,13 @@ type UnsafeKafkaOutTargetServiceServer interface { } func RegisterKafkaOutTargetServiceServer(s grpc.ServiceRegistrar, srv KafkaOutTargetServiceServer) { + // If the following call pancis, it indicates UnimplementedKafkaOutTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&KafkaOutTargetService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target.pb.go index fa0f1609..500f94cf 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v3/kafka_out_target.proto package v3 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.pb.go index 72565c4e..2fe9619b 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.proto package v3 diff --git a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service_grpc.pb.go b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service_grpc.pb.go index 5047c4e6..cf90d590 100644 --- a/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service_grpc.pb.go +++ b/go/internal/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/kafka_out_targets/v3/kafka_out_target_service.proto package v3 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( KafkaOutTargetService_GetKafkaOutTargets_FullMethodName = "/com.coralogix.archive.kafka_out_targets.v3.KafkaOutTargetService/GetKafkaOutTargets" @@ -44,8 +44,9 @@ func NewKafkaOutTargetServiceClient(cc grpc.ClientConnInterface) KafkaOutTargetS } func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in *GetKafkaOutTargetsRequest, opts ...grpc.CallOption) (*GetKafkaOutTargetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetKafkaOutTargetsResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_GetKafkaOutTargets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *kafkaOutTargetServiceClient) GetKafkaOutTargets(ctx context.Context, in } func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, in *UpsertKafkaOutTargetRequest, opts ...grpc.CallOption) (*UpsertKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_UpsertKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *kafkaOutTargetServiceClient) UpsertKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, in *DeleteKafkaOutTargetRequest, opts ...grpc.CallOption) (*DeleteKafkaOutTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteKafkaOutTargetResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_DeleteKafkaOutTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *kafkaOutTargetServiceClient) DeleteKafkaOutTarget(ctx context.Context, } func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Context, in *SendKafkaOutTestMessageRequest, opts ...grpc.CallOption) (*SendKafkaOutTestMessageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SendKafkaOutTestMessageResponse) - err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, KafkaOutTargetService_SendKafkaOutTestMessage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *kafkaOutTargetServiceClient) SendKafkaOutTestMessage(ctx context.Contex // KafkaOutTargetServiceServer is the server API for KafkaOutTargetService service. // All implementations must embed UnimplementedKafkaOutTargetServiceServer -// for forward compatibility +// for forward compatibility. type KafkaOutTargetServiceServer interface { GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) UpsertKafkaOutTarget(context.Context, *UpsertKafkaOutTargetRequest) (*UpsertKafkaOutTargetResponse, error) @@ -90,9 +94,12 @@ type KafkaOutTargetServiceServer interface { mustEmbedUnimplementedKafkaOutTargetServiceServer() } -// UnimplementedKafkaOutTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedKafkaOutTargetServiceServer struct { -} +// UnimplementedKafkaOutTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedKafkaOutTargetServiceServer struct{} func (UnimplementedKafkaOutTargetServiceServer) GetKafkaOutTargets(context.Context, *GetKafkaOutTargetsRequest) (*GetKafkaOutTargetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetKafkaOutTargets not implemented") @@ -107,6 +114,7 @@ func (UnimplementedKafkaOutTargetServiceServer) SendKafkaOutTestMessage(context. return nil, status.Errorf(codes.Unimplemented, "method SendKafkaOutTestMessage not implemented") } func (UnimplementedKafkaOutTargetServiceServer) mustEmbedUnimplementedKafkaOutTargetServiceServer() {} +func (UnimplementedKafkaOutTargetServiceServer) testEmbeddedByValue() {} // UnsafeKafkaOutTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to KafkaOutTargetServiceServer will @@ -116,6 +124,13 @@ type UnsafeKafkaOutTargetServiceServer interface { } func RegisterKafkaOutTargetServiceServer(s grpc.ServiceRegistrar, srv KafkaOutTargetServiceServer) { + // If the following call pancis, it indicates UnimplementedKafkaOutTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&KafkaOutTargetService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/private/state/v1/field_type.pb.go b/go/internal/coralogix/archive/private/state/v1/field_type.pb.go index 75b318a4..43668128 100644 --- a/go/internal/coralogix/archive/private/state/v1/field_type.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/field_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/field_type.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/file_split.pb.go b/go/internal/coralogix/archive/private/state/v1/file_split.pb.go index 52251ded..03411e39 100644 --- a/go/internal/coralogix/archive/private/state/v1/file_split.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/file_split.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/file_split.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/min_max.pb.go b/go/internal/coralogix/archive/private/state/v1/min_max.pb.go index 64a67320..812568c7 100644 --- a/go/internal/coralogix/archive/private/state/v1/min_max.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/min_max.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/min_max.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/s3_object.pb.go b/go/internal/coralogix/archive/private/state/v1/s3_object.pb.go index 73c4a38a..3bd7a610 100644 --- a/go/internal/coralogix/archive/private/state/v1/s3_object.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/s3_object.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/s3_object.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/schema.pb.go b/go/internal/coralogix/archive/private/state/v1/schema.pb.go index 9e72436d..7d510fea 100644 --- a/go/internal/coralogix/archive/private/state/v1/schema.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/schema.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/schema.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/state_value.pb.go b/go/internal/coralogix/archive/private/state/v1/state_value.pb.go index b32b8e6c..50448df2 100644 --- a/go/internal/coralogix/archive/private/state/v1/state_value.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/state_value.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/state_value.proto package v1 diff --git a/go/internal/coralogix/archive/private/state/v1/tree_schema.pb.go b/go/internal/coralogix/archive/private/state/v1/tree_schema.pb.go index 6aae0a1f..9f7c3366 100644 --- a/go/internal/coralogix/archive/private/state/v1/tree_schema.pb.go +++ b/go/internal/coralogix/archive/private/state/v1/tree_schema.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/private/state/v1/tree_schema.proto package v1 diff --git a/go/internal/coralogix/archive/v1/audit_log.pb.go b/go/internal/coralogix/archive/v1/audit_log.pb.go index 16f2f094..29760bd2 100644 --- a/go/internal/coralogix/archive/v1/audit_log.pb.go +++ b/go/internal/coralogix/archive/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/archive/v1/retention.pb.go b/go/internal/coralogix/archive/v1/retention.pb.go index aa34ed7e..e4962e4d 100644 --- a/go/internal/coralogix/archive/v1/retention.pb.go +++ b/go/internal/coralogix/archive/v1/retention.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v1/retention.proto package v1 diff --git a/go/internal/coralogix/archive/v1/retentions_service.pb.go b/go/internal/coralogix/archive/v1/retentions_service.pb.go index 89983804..c3991753 100644 --- a/go/internal/coralogix/archive/v1/retentions_service.pb.go +++ b/go/internal/coralogix/archive/v1/retentions_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v1/retentions_service.proto package v1 diff --git a/go/internal/coralogix/archive/v1/retentions_service_grpc.pb.go b/go/internal/coralogix/archive/v1/retentions_service_grpc.pb.go index 5cff343d..62be72f8 100644 --- a/go/internal/coralogix/archive/v1/retentions_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v1/retentions_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/v1/retentions_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RetentionsService_GetRetentions_FullMethodName = "/com.coralogix.archive.v1.RetentionsService/GetRetentions" @@ -44,8 +44,9 @@ func NewRetentionsServiceClient(cc grpc.ClientConnInterface) RetentionsServiceCl } func (c *retentionsServiceClient) GetRetentions(ctx context.Context, in *GetRetentionsRequest, opts ...grpc.CallOption) (*GetRetentionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRetentionsResponse) - err := c.cc.Invoke(ctx, RetentionsService_GetRetentions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RetentionsService_GetRetentions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *retentionsServiceClient) GetRetentions(ctx context.Context, in *GetRete } func (c *retentionsServiceClient) UpdateRetentions(ctx context.Context, in *UpdateRetentionsRequest, opts ...grpc.CallOption) (*UpdateRetentionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateRetentionsResponse) - err := c.cc.Invoke(ctx, RetentionsService_UpdateRetentions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RetentionsService_UpdateRetentions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *retentionsServiceClient) UpdateRetentions(ctx context.Context, in *Upda } func (c *retentionsServiceClient) ActivateRetentions(ctx context.Context, in *ActivateRetentionsRequest, opts ...grpc.CallOption) (*ActivateRetentionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ActivateRetentionsResponse) - err := c.cc.Invoke(ctx, RetentionsService_ActivateRetentions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RetentionsService_ActivateRetentions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *retentionsServiceClient) ActivateRetentions(ctx context.Context, in *Ac } func (c *retentionsServiceClient) GetRetentionsEnabled(ctx context.Context, in *GetRetentionsEnabledRequest, opts ...grpc.CallOption) (*GetRetentionsEnabledResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRetentionsEnabledResponse) - err := c.cc.Invoke(ctx, RetentionsService_GetRetentionsEnabled_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RetentionsService_GetRetentionsEnabled_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *retentionsServiceClient) GetRetentionsEnabled(ctx context.Context, in * // RetentionsServiceServer is the server API for RetentionsService service. // All implementations must embed UnimplementedRetentionsServiceServer -// for forward compatibility +// for forward compatibility. type RetentionsServiceServer interface { GetRetentions(context.Context, *GetRetentionsRequest) (*GetRetentionsResponse, error) UpdateRetentions(context.Context, *UpdateRetentionsRequest) (*UpdateRetentionsResponse, error) @@ -90,9 +94,12 @@ type RetentionsServiceServer interface { mustEmbedUnimplementedRetentionsServiceServer() } -// UnimplementedRetentionsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRetentionsServiceServer struct { -} +// UnimplementedRetentionsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRetentionsServiceServer struct{} func (UnimplementedRetentionsServiceServer) GetRetentions(context.Context, *GetRetentionsRequest) (*GetRetentionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRetentions not implemented") @@ -107,6 +114,7 @@ func (UnimplementedRetentionsServiceServer) GetRetentionsEnabled(context.Context return nil, status.Errorf(codes.Unimplemented, "method GetRetentionsEnabled not implemented") } func (UnimplementedRetentionsServiceServer) mustEmbedUnimplementedRetentionsServiceServer() {} +func (UnimplementedRetentionsServiceServer) testEmbeddedByValue() {} // UnsafeRetentionsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RetentionsServiceServer will @@ -116,6 +124,13 @@ type UnsafeRetentionsServiceServer interface { } func RegisterRetentionsServiceServer(s grpc.ServiceRegistrar, srv RetentionsServiceServer) { + // If the following call pancis, it indicates UnimplementedRetentionsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RetentionsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v1/target.pb.go b/go/internal/coralogix/archive/v1/target.pb.go index a86fd97d..ee67bc2b 100644 --- a/go/internal/coralogix/archive/v1/target.pb.go +++ b/go/internal/coralogix/archive/v1/target.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v1/target.proto package v1 diff --git a/go/internal/coralogix/archive/v1/target_service.pb.go b/go/internal/coralogix/archive/v1/target_service.pb.go index 4d85e1c4..bf574cc0 100644 --- a/go/internal/coralogix/archive/v1/target_service.pb.go +++ b/go/internal/coralogix/archive/v1/target_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v1/target_service.proto package v1 diff --git a/go/internal/coralogix/archive/v1/target_service_grpc.pb.go b/go/internal/coralogix/archive/v1/target_service_grpc.pb.go index 8011cb95..9af6323c 100644 --- a/go/internal/coralogix/archive/v1/target_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v1/target_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/v1/target_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TargetService_IsArchiveConfigured_FullMethodName = "/com.coralogix.archive.v1.TargetService/IsArchiveConfigured" @@ -42,8 +42,9 @@ func NewTargetServiceClient(cc grpc.ClientConnInterface) TargetServiceClient { } func (c *targetServiceClient) IsArchiveConfigured(ctx context.Context, in *IsArchiveConfiguredRequest, opts ...grpc.CallOption) (*IsArchiveConfiguredResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(IsArchiveConfiguredResponse) - err := c.cc.Invoke(ctx, TargetService_IsArchiveConfigured_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_IsArchiveConfigured_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *targetServiceClient) IsArchiveConfigured(ctx context.Context, in *IsArc } func (c *targetServiceClient) GetTarget(ctx context.Context, in *GetTargetRequest, opts ...grpc.CallOption) (*GetTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTargetResponse) - err := c.cc.Invoke(ctx, TargetService_GetTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_GetTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *targetServiceClient) GetTarget(ctx context.Context, in *GetTargetReques } func (c *targetServiceClient) SetTarget(ctx context.Context, in *SetTargetRequest, opts ...grpc.CallOption) (*SetTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetTargetResponse) - err := c.cc.Invoke(ctx, TargetService_SetTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_SetTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *targetServiceClient) SetTarget(ctx context.Context, in *SetTargetReques // TargetServiceServer is the server API for TargetService service. // All implementations must embed UnimplementedTargetServiceServer -// for forward compatibility +// for forward compatibility. type TargetServiceServer interface { IsArchiveConfigured(context.Context, *IsArchiveConfiguredRequest) (*IsArchiveConfiguredResponse, error) GetTarget(context.Context, *GetTargetRequest) (*GetTargetResponse, error) @@ -78,9 +81,12 @@ type TargetServiceServer interface { mustEmbedUnimplementedTargetServiceServer() } -// UnimplementedTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTargetServiceServer struct { -} +// UnimplementedTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTargetServiceServer struct{} func (UnimplementedTargetServiceServer) IsArchiveConfigured(context.Context, *IsArchiveConfiguredRequest) (*IsArchiveConfiguredResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsArchiveConfigured not implemented") @@ -92,6 +98,7 @@ func (UnimplementedTargetServiceServer) SetTarget(context.Context, *SetTargetReq return nil, status.Errorf(codes.Unimplemented, "method SetTarget not implemented") } func (UnimplementedTargetServiceServer) mustEmbedUnimplementedTargetServiceServer() {} +func (UnimplementedTargetServiceServer) testEmbeddedByValue() {} // UnsafeTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TargetServiceServer will @@ -101,6 +108,13 @@ type UnsafeTargetServiceServer interface { } func RegisterTargetServiceServer(s grpc.ServiceRegistrar, srv TargetServiceServer) { + // If the following call pancis, it indicates UnimplementedTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TargetService_ServiceDesc, srv) } @@ -202,8 +216,9 @@ func NewInternalTargetServiceClient(cc grpc.ClientConnInterface) InternalTargetS } func (c *internalTargetServiceClient) IsArchiveConfigured(ctx context.Context, in *InternalTargetServiceIsArchiveConfiguredRequest, opts ...grpc.CallOption) (*InternalTargetServiceIsArchiveConfiguredResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalTargetServiceIsArchiveConfiguredResponse) - err := c.cc.Invoke(ctx, InternalTargetService_IsArchiveConfigured_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalTargetService_IsArchiveConfigured_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -212,20 +227,24 @@ func (c *internalTargetServiceClient) IsArchiveConfigured(ctx context.Context, i // InternalTargetServiceServer is the server API for InternalTargetService service. // All implementations must embed UnimplementedInternalTargetServiceServer -// for forward compatibility +// for forward compatibility. type InternalTargetServiceServer interface { IsArchiveConfigured(context.Context, *InternalTargetServiceIsArchiveConfiguredRequest) (*InternalTargetServiceIsArchiveConfiguredResponse, error) mustEmbedUnimplementedInternalTargetServiceServer() } -// UnimplementedInternalTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalTargetServiceServer struct { -} +// UnimplementedInternalTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalTargetServiceServer struct{} func (UnimplementedInternalTargetServiceServer) IsArchiveConfigured(context.Context, *InternalTargetServiceIsArchiveConfiguredRequest) (*InternalTargetServiceIsArchiveConfiguredResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method IsArchiveConfigured not implemented") } func (UnimplementedInternalTargetServiceServer) mustEmbedUnimplementedInternalTargetServiceServer() {} +func (UnimplementedInternalTargetServiceServer) testEmbeddedByValue() {} // UnsafeInternalTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalTargetServiceServer will @@ -235,6 +254,13 @@ type UnsafeInternalTargetServiceServer interface { } func RegisterInternalTargetServiceServer(s grpc.ServiceRegistrar, srv InternalTargetServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalTargetService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v2/ack.pb.go b/go/internal/coralogix/archive/v2/ack.pb.go index 02dd5eb9..34c95bdf 100644 --- a/go/internal/coralogix/archive/v2/ack.pb.go +++ b/go/internal/coralogix/archive/v2/ack.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/ack.proto package v2 diff --git a/go/internal/coralogix/archive/v2/archive_target.pb.go b/go/internal/coralogix/archive/v2/archive_target.pb.go index 7e257a77..dcbc515d 100644 --- a/go/internal/coralogix/archive/v2/archive_target.pb.go +++ b/go/internal/coralogix/archive/v2/archive_target.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/archive_target.proto package v2 diff --git a/go/internal/coralogix/archive/v2/dataset.pb.go b/go/internal/coralogix/archive/v2/dataset.pb.go index b1ef972e..9e9782b2 100644 --- a/go/internal/coralogix/archive/v2/dataset.pb.go +++ b/go/internal/coralogix/archive/v2/dataset.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset.proto package v2 diff --git a/go/internal/coralogix/archive/v2/dataset_locations_service.pb.go b/go/internal/coralogix/archive/v2/dataset_locations_service.pb.go index bc73d81e..e1bccac5 100644 --- a/go/internal/coralogix/archive/v2/dataset_locations_service.pb.go +++ b/go/internal/coralogix/archive/v2/dataset_locations_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset_locations_service.proto package v2 diff --git a/go/internal/coralogix/archive/v2/dataset_locations_service_grpc.pb.go b/go/internal/coralogix/archive/v2/dataset_locations_service_grpc.pb.go index 2a8fb152..0b59a2c4 100644 --- a/go/internal/coralogix/archive/v2/dataset_locations_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v2/dataset_locations_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset_locations_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DatasetLocationsService_GetDatasetLocations_FullMethodName = "/com.coralogix.archive.dataset.v2.DatasetLocationsService/GetDatasetLocations" @@ -40,8 +40,9 @@ func NewDatasetLocationsServiceClient(cc grpc.ClientConnInterface) DatasetLocati } func (c *datasetLocationsServiceClient) GetDatasetLocations(ctx context.Context, in *GetDatasetLocationsRequest, opts ...grpc.CallOption) (*GetDatasetLocationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatasetLocationsResponse) - err := c.cc.Invoke(ctx, DatasetLocationsService_GetDatasetLocations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatasetLocationsService_GetDatasetLocations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *datasetLocationsServiceClient) GetDatasetLocations(ctx context.Context, } func (c *datasetLocationsServiceClient) GetDatasetList(ctx context.Context, in *GetDatasetListRequest, opts ...grpc.CallOption) (*GetDatasetListResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatasetListResponse) - err := c.cc.Invoke(ctx, DatasetLocationsService_GetDatasetList_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatasetLocationsService_GetDatasetList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *datasetLocationsServiceClient) GetDatasetList(ctx context.Context, in * // DatasetLocationsServiceServer is the server API for DatasetLocationsService service. // All implementations must embed UnimplementedDatasetLocationsServiceServer -// for forward compatibility +// for forward compatibility. type DatasetLocationsServiceServer interface { GetDatasetLocations(context.Context, *GetDatasetLocationsRequest) (*GetDatasetLocationsResponse, error) GetDatasetList(context.Context, *GetDatasetListRequest) (*GetDatasetListResponse, error) mustEmbedUnimplementedDatasetLocationsServiceServer() } -// UnimplementedDatasetLocationsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDatasetLocationsServiceServer struct { -} +// UnimplementedDatasetLocationsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatasetLocationsServiceServer struct{} func (UnimplementedDatasetLocationsServiceServer) GetDatasetLocations(context.Context, *GetDatasetLocationsRequest) (*GetDatasetLocationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDatasetLocations not implemented") @@ -78,6 +83,7 @@ func (UnimplementedDatasetLocationsServiceServer) GetDatasetList(context.Context } func (UnimplementedDatasetLocationsServiceServer) mustEmbedUnimplementedDatasetLocationsServiceServer() { } +func (UnimplementedDatasetLocationsServiceServer) testEmbeddedByValue() {} // UnsafeDatasetLocationsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatasetLocationsServiceServer will @@ -87,6 +93,13 @@ type UnsafeDatasetLocationsServiceServer interface { } func RegisterDatasetLocationsServiceServer(s grpc.ServiceRegistrar, srv DatasetLocationsServiceServer) { + // If the following call pancis, it indicates UnimplementedDatasetLocationsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DatasetLocationsService_ServiceDesc, srv) } @@ -168,8 +181,9 @@ func NewInternalDatasetLocationsServiceClient(cc grpc.ClientConnInterface) Inter } func (c *internalDatasetLocationsServiceClient) GetDatasetLocations(ctx context.Context, in *InternalDatasetLocationsServiceGetDatasetLocationsRequest, opts ...grpc.CallOption) (*InternalDatasetLocationsServiceGetDatasetLocationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalDatasetLocationsServiceGetDatasetLocationsResponse) - err := c.cc.Invoke(ctx, InternalDatasetLocationsService_GetDatasetLocations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalDatasetLocationsService_GetDatasetLocations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -177,8 +191,9 @@ func (c *internalDatasetLocationsServiceClient) GetDatasetLocations(ctx context. } func (c *internalDatasetLocationsServiceClient) GetDatasetList(ctx context.Context, in *InternalDatasetLocationsServiceGetDatasetListRequest, opts ...grpc.CallOption) (*InternalDatasetLocationsServiceGetDatasetListResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalDatasetLocationsServiceGetDatasetListResponse) - err := c.cc.Invoke(ctx, InternalDatasetLocationsService_GetDatasetList_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalDatasetLocationsService_GetDatasetList_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -187,16 +202,19 @@ func (c *internalDatasetLocationsServiceClient) GetDatasetList(ctx context.Conte // InternalDatasetLocationsServiceServer is the server API for InternalDatasetLocationsService service. // All implementations must embed UnimplementedInternalDatasetLocationsServiceServer -// for forward compatibility +// for forward compatibility. type InternalDatasetLocationsServiceServer interface { GetDatasetLocations(context.Context, *InternalDatasetLocationsServiceGetDatasetLocationsRequest) (*InternalDatasetLocationsServiceGetDatasetLocationsResponse, error) GetDatasetList(context.Context, *InternalDatasetLocationsServiceGetDatasetListRequest) (*InternalDatasetLocationsServiceGetDatasetListResponse, error) mustEmbedUnimplementedInternalDatasetLocationsServiceServer() } -// UnimplementedInternalDatasetLocationsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalDatasetLocationsServiceServer struct { -} +// UnimplementedInternalDatasetLocationsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalDatasetLocationsServiceServer struct{} func (UnimplementedInternalDatasetLocationsServiceServer) GetDatasetLocations(context.Context, *InternalDatasetLocationsServiceGetDatasetLocationsRequest) (*InternalDatasetLocationsServiceGetDatasetLocationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDatasetLocations not implemented") @@ -206,6 +224,7 @@ func (UnimplementedInternalDatasetLocationsServiceServer) GetDatasetList(context } func (UnimplementedInternalDatasetLocationsServiceServer) mustEmbedUnimplementedInternalDatasetLocationsServiceServer() { } +func (UnimplementedInternalDatasetLocationsServiceServer) testEmbeddedByValue() {} // UnsafeInternalDatasetLocationsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalDatasetLocationsServiceServer will @@ -215,6 +234,13 @@ type UnsafeInternalDatasetLocationsServiceServer interface { } func RegisterInternalDatasetLocationsServiceServer(s grpc.ServiceRegistrar, srv InternalDatasetLocationsServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalDatasetLocationsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalDatasetLocationsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v2/dataset_rules.pb.go b/go/internal/coralogix/archive/v2/dataset_rules.pb.go index 66ebd8a4..321a5848 100644 --- a/go/internal/coralogix/archive/v2/dataset_rules.pb.go +++ b/go/internal/coralogix/archive/v2/dataset_rules.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset_rules.proto package v2 diff --git a/go/internal/coralogix/archive/v2/dataset_rules_service.pb.go b/go/internal/coralogix/archive/v2/dataset_rules_service.pb.go index 28d8152d..7e454539 100644 --- a/go/internal/coralogix/archive/v2/dataset_rules_service.pb.go +++ b/go/internal/coralogix/archive/v2/dataset_rules_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset_rules_service.proto package v2 diff --git a/go/internal/coralogix/archive/v2/dataset_rules_service_grpc.pb.go b/go/internal/coralogix/archive/v2/dataset_rules_service_grpc.pb.go index 6d4b00a1..6f097b0a 100644 --- a/go/internal/coralogix/archive/v2/dataset_rules_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v2/dataset_rules_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/dataset_rules_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DatasetRulesService_SetDatasetRule_FullMethodName = "/com.coralogix.archive.dataset.v2.DatasetRulesService/SetDatasetRule" @@ -38,8 +38,9 @@ func NewDatasetRulesServiceClient(cc grpc.ClientConnInterface) DatasetRulesServi } func (c *datasetRulesServiceClient) SetDatasetRule(ctx context.Context, in *SetDatasetRuleRequest, opts ...grpc.CallOption) (*SetDatasetRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetDatasetRuleResponse) - err := c.cc.Invoke(ctx, DatasetRulesService_SetDatasetRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatasetRulesService_SetDatasetRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *datasetRulesServiceClient) SetDatasetRule(ctx context.Context, in *SetD // DatasetRulesServiceServer is the server API for DatasetRulesService service. // All implementations must embed UnimplementedDatasetRulesServiceServer -// for forward compatibility +// for forward compatibility. type DatasetRulesServiceServer interface { SetDatasetRule(context.Context, *SetDatasetRuleRequest) (*SetDatasetRuleResponse, error) mustEmbedUnimplementedDatasetRulesServiceServer() } -// UnimplementedDatasetRulesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDatasetRulesServiceServer struct { -} +// UnimplementedDatasetRulesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatasetRulesServiceServer struct{} func (UnimplementedDatasetRulesServiceServer) SetDatasetRule(context.Context, *SetDatasetRuleRequest) (*SetDatasetRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SetDatasetRule not implemented") } func (UnimplementedDatasetRulesServiceServer) mustEmbedUnimplementedDatasetRulesServiceServer() {} +func (UnimplementedDatasetRulesServiceServer) testEmbeddedByValue() {} // UnsafeDatasetRulesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatasetRulesServiceServer will @@ -71,6 +76,13 @@ type UnsafeDatasetRulesServiceServer interface { } func RegisterDatasetRulesServiceServer(s grpc.ServiceRegistrar, srv DatasetRulesServiceServer) { + // If the following call pancis, it indicates UnimplementedDatasetRulesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DatasetRulesService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v2/event.pb.go b/go/internal/coralogix/archive/v2/event.pb.go index 4f4067c3..fdf493eb 100644 --- a/go/internal/coralogix/archive/v2/event.pb.go +++ b/go/internal/coralogix/archive/v2/event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/event.proto package v2 diff --git a/go/internal/coralogix/archive/v2/format.pb.go b/go/internal/coralogix/archive/v2/format.pb.go index 3d18a99c..38884066 100644 --- a/go/internal/coralogix/archive/v2/format.pb.go +++ b/go/internal/coralogix/archive/v2/format.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/format.proto package v2 diff --git a/go/internal/coralogix/archive/v2/internal_dataset_service.pb.go b/go/internal/coralogix/archive/v2/internal_dataset_service.pb.go index 8c30e9ca..4d6e211d 100644 --- a/go/internal/coralogix/archive/v2/internal_dataset_service.pb.go +++ b/go/internal/coralogix/archive/v2/internal_dataset_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/internal_dataset_service.proto package v2 diff --git a/go/internal/coralogix/archive/v2/internal_dataset_service_grpc.pb.go b/go/internal/coralogix/archive/v2/internal_dataset_service_grpc.pb.go index 74554939..7243e157 100644 --- a/go/internal/coralogix/archive/v2/internal_dataset_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v2/internal_dataset_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/internal_dataset_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InternalDatasetManagementService_GetAllDatasetRules_FullMethodName = "/com.coralogix.archive.dataset.v2.InternalDatasetManagementService/GetAllDatasetRules" @@ -42,8 +42,9 @@ func NewInternalDatasetManagementServiceClient(cc grpc.ClientConnInterface) Inte } func (c *internalDatasetManagementServiceClient) GetAllDatasetRules(ctx context.Context, in *GetAllDatasetRulesRequest, opts ...grpc.CallOption) (*GetAllDatasetRulesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAllDatasetRulesResponse) - err := c.cc.Invoke(ctx, InternalDatasetManagementService_GetAllDatasetRules_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalDatasetManagementService_GetAllDatasetRules_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *internalDatasetManagementServiceClient) GetAllDatasetRules(ctx context. } func (c *internalDatasetManagementServiceClient) GetDatasetSchemaFields(ctx context.Context, in *GetDatasetSchemaFieldsRequest, opts ...grpc.CallOption) (*GetDatasetSchemaFieldsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatasetSchemaFieldsResponse) - err := c.cc.Invoke(ctx, InternalDatasetManagementService_GetDatasetSchemaFields_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalDatasetManagementService_GetDatasetSchemaFields_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *internalDatasetManagementServiceClient) GetDatasetSchemaFields(ctx cont } func (c *internalDatasetManagementServiceClient) SetDatasetRule(ctx context.Context, in *InternalDatasetManagementServiceSetDatasetRuleRequest, opts ...grpc.CallOption) (*InternalDatasetManagementServiceSetDatasetRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalDatasetManagementServiceSetDatasetRuleResponse) - err := c.cc.Invoke(ctx, InternalDatasetManagementService_SetDatasetRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalDatasetManagementService_SetDatasetRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *internalDatasetManagementServiceClient) SetDatasetRule(ctx context.Cont // InternalDatasetManagementServiceServer is the server API for InternalDatasetManagementService service. // All implementations must embed UnimplementedInternalDatasetManagementServiceServer -// for forward compatibility +// for forward compatibility. type InternalDatasetManagementServiceServer interface { GetAllDatasetRules(context.Context, *GetAllDatasetRulesRequest) (*GetAllDatasetRulesResponse, error) GetDatasetSchemaFields(context.Context, *GetDatasetSchemaFieldsRequest) (*GetDatasetSchemaFieldsResponse, error) @@ -78,9 +81,12 @@ type InternalDatasetManagementServiceServer interface { mustEmbedUnimplementedInternalDatasetManagementServiceServer() } -// UnimplementedInternalDatasetManagementServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalDatasetManagementServiceServer struct { -} +// UnimplementedInternalDatasetManagementServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalDatasetManagementServiceServer struct{} func (UnimplementedInternalDatasetManagementServiceServer) GetAllDatasetRules(context.Context, *GetAllDatasetRulesRequest) (*GetAllDatasetRulesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAllDatasetRules not implemented") @@ -93,6 +99,7 @@ func (UnimplementedInternalDatasetManagementServiceServer) SetDatasetRule(contex } func (UnimplementedInternalDatasetManagementServiceServer) mustEmbedUnimplementedInternalDatasetManagementServiceServer() { } +func (UnimplementedInternalDatasetManagementServiceServer) testEmbeddedByValue() {} // UnsafeInternalDatasetManagementServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalDatasetManagementServiceServer will @@ -102,6 +109,13 @@ type UnsafeInternalDatasetManagementServiceServer interface { } func RegisterInternalDatasetManagementServiceServer(s grpc.ServiceRegistrar, srv InternalDatasetManagementServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalDatasetManagementServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalDatasetManagementService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v2/internal_get_targets.pb.go b/go/internal/coralogix/archive/v2/internal_get_targets.pb.go index 672ffe39..83b60582 100644 --- a/go/internal/coralogix/archive/v2/internal_get_targets.pb.go +++ b/go/internal/coralogix/archive/v2/internal_get_targets.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/internal_get_targets.proto package v2 diff --git a/go/internal/coralogix/archive/v2/object_tag.pb.go b/go/internal/coralogix/archive/v2/object_tag.pb.go index 3b245462..5f7aaea7 100644 --- a/go/internal/coralogix/archive/v2/object_tag.pb.go +++ b/go/internal/coralogix/archive/v2/object_tag.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/object_tag.proto package v2 diff --git a/go/internal/coralogix/archive/v2/physical_location.pb.go b/go/internal/coralogix/archive/v2/physical_location.pb.go index 64ae5a4d..51feeb8d 100644 --- a/go/internal/coralogix/archive/v2/physical_location.pb.go +++ b/go/internal/coralogix/archive/v2/physical_location.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/physical_location.proto package v2 diff --git a/go/internal/coralogix/archive/v2/preferred_schema.pb.go b/go/internal/coralogix/archive/v2/preferred_schema.pb.go index 5a160a88..1665f515 100644 --- a/go/internal/coralogix/archive/v2/preferred_schema.pb.go +++ b/go/internal/coralogix/archive/v2/preferred_schema.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/dataset/v2/preferred_schema.proto package v2 diff --git a/go/internal/coralogix/archive/v2/schema.pb.go b/go/internal/coralogix/archive/v2/schema.pb.go index ca0beb7e..5d5766f0 100644 --- a/go/internal/coralogix/archive/v2/schema.pb.go +++ b/go/internal/coralogix/archive/v2/schema.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/schema.proto package v2 diff --git a/go/internal/coralogix/archive/v2/target.pb.go b/go/internal/coralogix/archive/v2/target.pb.go index 21120bcf..8a6a0cde 100644 --- a/go/internal/coralogix/archive/v2/target.pb.go +++ b/go/internal/coralogix/archive/v2/target.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/target.proto package v2 diff --git a/go/internal/coralogix/archive/v2/target_service.pb.go b/go/internal/coralogix/archive/v2/target_service.pb.go index bd28df0f..aa32d7ac 100644 --- a/go/internal/coralogix/archive/v2/target_service.pb.go +++ b/go/internal/coralogix/archive/v2/target_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/target_service.proto package v2 diff --git a/go/internal/coralogix/archive/v2/target_service_grpc.pb.go b/go/internal/coralogix/archive/v2/target_service_grpc.pb.go index 9c30859d..1278578a 100644 --- a/go/internal/coralogix/archive/v2/target_service_grpc.pb.go +++ b/go/internal/coralogix/archive/v2/target_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/archive/v2/target_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TargetService_GetTarget_FullMethodName = "/com.coralogix.archive.v2.TargetService/GetTarget" @@ -42,8 +42,9 @@ func NewTargetServiceClient(cc grpc.ClientConnInterface) TargetServiceClient { } func (c *targetServiceClient) GetTarget(ctx context.Context, in *GetTargetRequest, opts ...grpc.CallOption) (*GetTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTargetResponse) - err := c.cc.Invoke(ctx, TargetService_GetTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_GetTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *targetServiceClient) GetTarget(ctx context.Context, in *GetTargetReques } func (c *targetServiceClient) SetTarget(ctx context.Context, in *SetTargetRequest, opts ...grpc.CallOption) (*SetTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetTargetResponse) - err := c.cc.Invoke(ctx, TargetService_SetTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_SetTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *targetServiceClient) SetTarget(ctx context.Context, in *SetTargetReques } func (c *targetServiceClient) ValidateTarget(ctx context.Context, in *ValidateTargetRequest, opts ...grpc.CallOption) (*ValidateTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateTargetResponse) - err := c.cc.Invoke(ctx, TargetService_ValidateTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TargetService_ValidateTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *targetServiceClient) ValidateTarget(ctx context.Context, in *ValidateTa // TargetServiceServer is the server API for TargetService service. // All implementations must embed UnimplementedTargetServiceServer -// for forward compatibility +// for forward compatibility. type TargetServiceServer interface { GetTarget(context.Context, *GetTargetRequest) (*GetTargetResponse, error) SetTarget(context.Context, *SetTargetRequest) (*SetTargetResponse, error) @@ -78,9 +81,12 @@ type TargetServiceServer interface { mustEmbedUnimplementedTargetServiceServer() } -// UnimplementedTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTargetServiceServer struct { -} +// UnimplementedTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTargetServiceServer struct{} func (UnimplementedTargetServiceServer) GetTarget(context.Context, *GetTargetRequest) (*GetTargetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTarget not implemented") @@ -92,6 +98,7 @@ func (UnimplementedTargetServiceServer) ValidateTarget(context.Context, *Validat return nil, status.Errorf(codes.Unimplemented, "method ValidateTarget not implemented") } func (UnimplementedTargetServiceServer) mustEmbedUnimplementedTargetServiceServer() {} +func (UnimplementedTargetServiceServer) testEmbeddedByValue() {} // UnsafeTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TargetServiceServer will @@ -101,6 +108,13 @@ type UnsafeTargetServiceServer interface { } func RegisterTargetServiceServer(s grpc.ServiceRegistrar, srv TargetServiceServer) { + // If the following call pancis, it indicates UnimplementedTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TargetService_ServiceDesc, srv) } @@ -204,8 +218,9 @@ func NewInternalTargetServiceClient(cc grpc.ClientConnInterface) InternalTargetS } func (c *internalTargetServiceClient) GetTargets(ctx context.Context, in *InternalTargetServiceGetTargetsRequest, opts ...grpc.CallOption) (*InternalTargetServiceGetTargetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalTargetServiceGetTargetsResponse) - err := c.cc.Invoke(ctx, InternalTargetService_GetTargets_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalTargetService_GetTargets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -213,8 +228,9 @@ func (c *internalTargetServiceClient) GetTargets(ctx context.Context, in *Intern } func (c *internalTargetServiceClient) SetExternalTarget(ctx context.Context, in *SetExternalTargetRequest, opts ...grpc.CallOption) (*SetExternalTargetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetExternalTargetResponse) - err := c.cc.Invoke(ctx, InternalTargetService_SetExternalTarget_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalTargetService_SetExternalTarget_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -223,16 +239,19 @@ func (c *internalTargetServiceClient) SetExternalTarget(ctx context.Context, in // InternalTargetServiceServer is the server API for InternalTargetService service. // All implementations must embed UnimplementedInternalTargetServiceServer -// for forward compatibility +// for forward compatibility. type InternalTargetServiceServer interface { GetTargets(context.Context, *InternalTargetServiceGetTargetsRequest) (*InternalTargetServiceGetTargetsResponse, error) SetExternalTarget(context.Context, *SetExternalTargetRequest) (*SetExternalTargetResponse, error) mustEmbedUnimplementedInternalTargetServiceServer() } -// UnimplementedInternalTargetServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalTargetServiceServer struct { -} +// UnimplementedInternalTargetServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalTargetServiceServer struct{} func (UnimplementedInternalTargetServiceServer) GetTargets(context.Context, *InternalTargetServiceGetTargetsRequest) (*InternalTargetServiceGetTargetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTargets not implemented") @@ -241,6 +260,7 @@ func (UnimplementedInternalTargetServiceServer) SetExternalTarget(context.Contex return nil, status.Errorf(codes.Unimplemented, "method SetExternalTarget not implemented") } func (UnimplementedInternalTargetServiceServer) mustEmbedUnimplementedInternalTargetServiceServer() {} +func (UnimplementedInternalTargetServiceServer) testEmbeddedByValue() {} // UnsafeInternalTargetServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalTargetServiceServer will @@ -250,6 +270,13 @@ type UnsafeInternalTargetServiceServer interface { } func RegisterInternalTargetServiceServer(s grpc.ServiceRegistrar, srv InternalTargetServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalTargetServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalTargetService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/archive/v2/target_spec.pb.go b/go/internal/coralogix/archive/v2/target_spec.pb.go index ea03c7f4..27e63533 100644 --- a/go/internal/coralogix/archive/v2/target_spec.pb.go +++ b/go/internal/coralogix/archive/v2/target_spec.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/archive/v2/target_spec.proto package v2 diff --git a/go/internal/coralogix/catalog/v1/action_graph_subject.pb.go b/go/internal/coralogix/catalog/v1/action_graph_subject.pb.go index d9cd72e1..0b2a058b 100644 --- a/go/internal/coralogix/catalog/v1/action_graph_subject.pb.go +++ b/go/internal/coralogix/catalog/v1/action_graph_subject.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/action_graph_subject.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/action_service.pb.go b/go/internal/coralogix/catalog/v1/action_service.pb.go index 7142e455..c571e8ee 100644 --- a/go/internal/coralogix/catalog/v1/action_service.pb.go +++ b/go/internal/coralogix/catalog/v1/action_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/action_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/action_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/action_service_grpc.pb.go index ccf743bb..2eeae261 100644 --- a/go/internal/coralogix/catalog/v1/action_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/action_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/catalog/v1/action_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ActionService_GetServiceActions_FullMethodName = "/com.coralogix.catalog.v1.ActionService/GetServiceActions" @@ -38,8 +38,9 @@ func NewActionServiceClient(cc grpc.ClientConnInterface) ActionServiceClient { } func (c *actionServiceClient) GetServiceActions(ctx context.Context, in *GetServiceActionsRequest, opts ...grpc.CallOption) (*GetServiceActionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetServiceActionsResponse) - err := c.cc.Invoke(ctx, ActionService_GetServiceActions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionService_GetServiceActions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *actionServiceClient) GetServiceActions(ctx context.Context, in *GetServ // ActionServiceServer is the server API for ActionService service. // All implementations must embed UnimplementedActionServiceServer -// for forward compatibility +// for forward compatibility. type ActionServiceServer interface { GetServiceActions(context.Context, *GetServiceActionsRequest) (*GetServiceActionsResponse, error) mustEmbedUnimplementedActionServiceServer() } -// UnimplementedActionServiceServer must be embedded to have forward compatible implementations. -type UnimplementedActionServiceServer struct { -} +// UnimplementedActionServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedActionServiceServer struct{} func (UnimplementedActionServiceServer) GetServiceActions(context.Context, *GetServiceActionsRequest) (*GetServiceActionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServiceActions not implemented") } func (UnimplementedActionServiceServer) mustEmbedUnimplementedActionServiceServer() {} +func (UnimplementedActionServiceServer) testEmbeddedByValue() {} // UnsafeActionServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActionServiceServer will @@ -71,6 +76,13 @@ type UnsafeActionServiceServer interface { } func RegisterActionServiceServer(s grpc.ServiceRegistrar, srv ActionServiceServer) { + // If the following call pancis, it indicates UnimplementedActionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ActionService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/apdex_service.pb.go b/go/internal/coralogix/catalog/v1/apdex_service.pb.go index c75b515d..3399be12 100644 --- a/go/internal/coralogix/catalog/v1/apdex_service.pb.go +++ b/go/internal/coralogix/catalog/v1/apdex_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apdex_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/apdex_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/apdex_service_grpc.pb.go index e73f0b73..c8ada50c 100644 --- a/go/internal/coralogix/catalog/v1/apdex_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/apdex_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apdex_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApdexService_GetApdexThreshold_FullMethodName = "/com.coralogixapis.service_catalog.v1.ApdexService/GetApdexThreshold" @@ -42,8 +42,9 @@ func NewApdexServiceClient(cc grpc.ClientConnInterface) ApdexServiceClient { } func (c *apdexServiceClient) GetApdexThreshold(ctx context.Context, in *GetApdexThresholdRequest, opts ...grpc.CallOption) (*GetApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_GetApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_GetApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *apdexServiceClient) GetApdexThreshold(ctx context.Context, in *GetApdex } func (c *apdexServiceClient) ReplaceApdexThreshold(ctx context.Context, in *ReplaceApdexThresholdRequest, opts ...grpc.CallOption) (*ReplaceApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_ReplaceApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_ReplaceApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *apdexServiceClient) ReplaceApdexThreshold(ctx context.Context, in *Repl } func (c *apdexServiceClient) BatchExecuteApdexThreshold(ctx context.Context, in *BatchExecuteApdexThresholdRequest, opts ...grpc.CallOption) (*BatchExecuteApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchExecuteApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_BatchExecuteApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_BatchExecuteApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *apdexServiceClient) BatchExecuteApdexThreshold(ctx context.Context, in // ApdexServiceServer is the server API for ApdexService service. // All implementations must embed UnimplementedApdexServiceServer -// for forward compatibility +// for forward compatibility. type ApdexServiceServer interface { GetApdexThreshold(context.Context, *GetApdexThresholdRequest) (*GetApdexThresholdResponse, error) ReplaceApdexThreshold(context.Context, *ReplaceApdexThresholdRequest) (*ReplaceApdexThresholdResponse, error) @@ -78,9 +81,12 @@ type ApdexServiceServer interface { mustEmbedUnimplementedApdexServiceServer() } -// UnimplementedApdexServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApdexServiceServer struct { -} +// UnimplementedApdexServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApdexServiceServer struct{} func (UnimplementedApdexServiceServer) GetApdexThreshold(context.Context, *GetApdexThresholdRequest) (*GetApdexThresholdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetApdexThreshold not implemented") @@ -92,6 +98,7 @@ func (UnimplementedApdexServiceServer) BatchExecuteApdexThreshold(context.Contex return nil, status.Errorf(codes.Unimplemented, "method BatchExecuteApdexThreshold not implemented") } func (UnimplementedApdexServiceServer) mustEmbedUnimplementedApdexServiceServer() {} +func (UnimplementedApdexServiceServer) testEmbeddedByValue() {} // UnsafeApdexServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApdexServiceServer will @@ -101,6 +108,13 @@ type UnsafeApdexServiceServer interface { } func RegisterApdexServiceServer(s grpc.ServiceRegistrar, srv ApdexServiceServer) { + // If the following call pancis, it indicates UnimplementedApdexServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApdexService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/apm_settings.pb.go b/go/internal/coralogix/catalog/v1/apm_settings.pb.go index 51a4a481..6b35760e 100644 --- a/go/internal/coralogix/catalog/v1/apm_settings.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_settings.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_settings.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/apm_settings_internal_service.pb.go b/go/internal/coralogix/catalog/v1/apm_settings_internal_service.pb.go index 23b216ab..5bb64130 100644 --- a/go/internal/coralogix/catalog/v1/apm_settings_internal_service.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_settings_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_settings_internal_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/apm_settings_internal_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/apm_settings_internal_service_grpc.pb.go index 293a8827..4237c4ce 100644 --- a/go/internal/coralogix/catalog/v1/apm_settings_internal_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_settings_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_settings_internal_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApmSettingsInternalService_ValidateApmSource_FullMethodName = "/com.coralogixapis.service_catalog.v1.ApmSettingsInternalService/ValidateApmSource" @@ -38,8 +38,9 @@ func NewApmSettingsInternalServiceClient(cc grpc.ClientConnInterface) ApmSetting } func (c *apmSettingsInternalServiceClient) ValidateApmSource(ctx context.Context, in *ValidateApmSourceRequest, opts ...grpc.CallOption) (*ValidateApmSourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateApmSourceResponse) - err := c.cc.Invoke(ctx, ApmSettingsInternalService_ValidateApmSource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsInternalService_ValidateApmSource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *apmSettingsInternalServiceClient) ValidateApmSource(ctx context.Context // ApmSettingsInternalServiceServer is the server API for ApmSettingsInternalService service. // All implementations must embed UnimplementedApmSettingsInternalServiceServer -// for forward compatibility +// for forward compatibility. type ApmSettingsInternalServiceServer interface { ValidateApmSource(context.Context, *ValidateApmSourceRequest) (*ValidateApmSourceResponse, error) mustEmbedUnimplementedApmSettingsInternalServiceServer() } -// UnimplementedApmSettingsInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApmSettingsInternalServiceServer struct { -} +// UnimplementedApmSettingsInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApmSettingsInternalServiceServer struct{} func (UnimplementedApmSettingsInternalServiceServer) ValidateApmSource(context.Context, *ValidateApmSourceRequest) (*ValidateApmSourceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateApmSource not implemented") } func (UnimplementedApmSettingsInternalServiceServer) mustEmbedUnimplementedApmSettingsInternalServiceServer() { } +func (UnimplementedApmSettingsInternalServiceServer) testEmbeddedByValue() {} // UnsafeApmSettingsInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApmSettingsInternalServiceServer will @@ -72,6 +77,13 @@ type UnsafeApmSettingsInternalServiceServer interface { } func RegisterApmSettingsInternalServiceServer(s grpc.ServiceRegistrar, srv ApmSettingsInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedApmSettingsInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApmSettingsInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/apm_settings_service.pb.go b/go/internal/coralogix/catalog/v1/apm_settings_service.pb.go index 8f19b2ae..8fc78769 100644 --- a/go/internal/coralogix/catalog/v1/apm_settings_service.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_settings_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_settings_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/apm_settings_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/apm_settings_service_grpc.pb.go index 956bf175..17e47815 100644 --- a/go/internal/coralogix/catalog/v1/apm_settings_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_settings_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_settings_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApmSettingsService_GetApmSettings_FullMethodName = "/com.coralogixapis.service_catalog.v1.ApmSettingsService/GetApmSettings" @@ -50,8 +50,9 @@ func NewApmSettingsServiceClient(cc grpc.ClientConnInterface) ApmSettingsService } func (c *apmSettingsServiceClient) GetApmSettings(ctx context.Context, in *GetApmSettingsRequest, opts ...grpc.CallOption) (*GetApmSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApmSettingsResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_GetApmSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_GetApmSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *apmSettingsServiceClient) GetApmSettings(ctx context.Context, in *GetAp } func (c *apmSettingsServiceClient) ReplaceApmSettings(ctx context.Context, in *ReplaceApmSettingsRequest, opts ...grpc.CallOption) (*ReplaceApmSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceApmSettingsResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_ReplaceApmSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_ReplaceApmSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *apmSettingsServiceClient) ReplaceApmSettings(ctx context.Context, in *R } func (c *apmSettingsServiceClient) ValidateApmSource(ctx context.Context, in *ValidateApmSourceRequest, opts ...grpc.CallOption) (*ValidateApmSourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateApmSourceResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_ValidateApmSource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_ValidateApmSource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *apmSettingsServiceClient) ValidateApmSource(ctx context.Context, in *Va } func (c *apmSettingsServiceClient) ReplaceRetentionPeriod(ctx context.Context, in *ReplaceRetentionPeriodRequest, opts ...grpc.CallOption) (*ReplaceRetentionPeriodResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceRetentionPeriodResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_ReplaceRetentionPeriod_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_ReplaceRetentionPeriod_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *apmSettingsServiceClient) ReplaceRetentionPeriod(ctx context.Context, i } func (c *apmSettingsServiceClient) GetApmSource(ctx context.Context, in *GetApmSourceRequest, opts ...grpc.CallOption) (*GetApmSourceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApmSourceResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_GetApmSource_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_GetApmSource_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *apmSettingsServiceClient) GetApmSource(ctx context.Context, in *GetApmS } func (c *apmSettingsServiceClient) GetSpanMetricDimensions(ctx context.Context, in *GetSpanMetricDimensionsRequest, opts ...grpc.CallOption) (*GetSpanMetricDimensionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSpanMetricDimensionsResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_GetSpanMetricDimensions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_GetSpanMetricDimensions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *apmSettingsServiceClient) GetSpanMetricDimensions(ctx context.Context, } func (c *apmSettingsServiceClient) GetSpanMetricDimensionsByServiceNames(ctx context.Context, in *GetSpanMetricDimensionsByServiceNamesRequest, opts ...grpc.CallOption) (*GetSpanMetricDimensionsByServiceNamesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSpanMetricDimensionsByServiceNamesResponse) - err := c.cc.Invoke(ctx, ApmSettingsService_GetSpanMetricDimensionsByServiceNames_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmSettingsService_GetSpanMetricDimensionsByServiceNames_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *apmSettingsServiceClient) GetSpanMetricDimensionsByServiceNames(ctx con // ApmSettingsServiceServer is the server API for ApmSettingsService service. // All implementations must embed UnimplementedApmSettingsServiceServer -// for forward compatibility +// for forward compatibility. type ApmSettingsServiceServer interface { GetApmSettings(context.Context, *GetApmSettingsRequest) (*GetApmSettingsResponse, error) ReplaceApmSettings(context.Context, *ReplaceApmSettingsRequest) (*ReplaceApmSettingsResponse, error) @@ -126,9 +133,12 @@ type ApmSettingsServiceServer interface { mustEmbedUnimplementedApmSettingsServiceServer() } -// UnimplementedApmSettingsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApmSettingsServiceServer struct { -} +// UnimplementedApmSettingsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApmSettingsServiceServer struct{} func (UnimplementedApmSettingsServiceServer) GetApmSettings(context.Context, *GetApmSettingsRequest) (*GetApmSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetApmSettings not implemented") @@ -152,6 +162,7 @@ func (UnimplementedApmSettingsServiceServer) GetSpanMetricDimensionsByServiceNam return nil, status.Errorf(codes.Unimplemented, "method GetSpanMetricDimensionsByServiceNames not implemented") } func (UnimplementedApmSettingsServiceServer) mustEmbedUnimplementedApmSettingsServiceServer() {} +func (UnimplementedApmSettingsServiceServer) testEmbeddedByValue() {} // UnsafeApmSettingsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApmSettingsServiceServer will @@ -161,6 +172,13 @@ type UnsafeApmSettingsServiceServer interface { } func RegisterApmSettingsServiceServer(s grpc.ServiceRegistrar, srv ApmSettingsServiceServer) { + // If the following call pancis, it indicates UnimplementedApmSettingsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApmSettingsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/apm_source.pb.go b/go/internal/coralogix/catalog/v1/apm_source.pb.go index 6f310bf1..eef39570 100644 --- a/go/internal/coralogix/catalog/v1/apm_source.pb.go +++ b/go/internal/coralogix/catalog/v1/apm_source.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/apm_source.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/catalog.pb.go b/go/internal/coralogix/catalog/v1/catalog.pb.go index 32a4814e..5e41ec5d 100644 --- a/go/internal/coralogix/catalog/v1/catalog.pb.go +++ b/go/internal/coralogix/catalog/v1/catalog.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/catalog.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/common.pb.go b/go/internal/coralogix/catalog/v1/common.pb.go index 86ac9f38..9b8332a0 100644 --- a/go/internal/coralogix/catalog/v1/common.pb.go +++ b/go/internal/coralogix/catalog/v1/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/common.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/distributed_tracing_service.pb.go b/go/internal/coralogix/catalog/v1/distributed_tracing_service.pb.go index 2b4c2def..e2a3e029 100644 --- a/go/internal/coralogix/catalog/v1/distributed_tracing_service.pb.go +++ b/go/internal/coralogix/catalog/v1/distributed_tracing_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/distributed_tracing_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/distributed_tracing_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/distributed_tracing_service_grpc.pb.go index 38d13a52..3b467c62 100644 --- a/go/internal/coralogix/catalog/v1/distributed_tracing_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/distributed_tracing_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/distributed_tracing_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DistributedTracingService_GetTimeConsuming_FullMethodName = "/com.coralogixapis.service_catalog.v1.DistributedTracingService/GetTimeConsuming" @@ -35,10 +35,10 @@ type DistributedTracingServiceClient interface { GetTimeConsuming(ctx context.Context, in *GetTimeConsumingRequest, opts ...grpc.CallOption) (*GetTimeConsumingResponse, error) GetThroughput(ctx context.Context, in *GetThroughputRequest, opts ...grpc.CallOption) (*GetThroughputResponse, error) GetErrors(ctx context.Context, in *GetErrorsRequest, opts ...grpc.CallOption) (*GetErrorsResponse, error) - GetErrorsStream(ctx context.Context, in *GetErrorsStreamRequest, opts ...grpc.CallOption) (DistributedTracingService_GetErrorsStreamClient, error) + GetErrorsStream(ctx context.Context, in *GetErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetErrorsStreamResponse], error) GetP99Latency(ctx context.Context, in *GetP99LatencyRequest, opts ...grpc.CallOption) (*GetP99LatencyResponse, error) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) - GetLatencyGraph(ctx context.Context, in *GetLatencyGraphRequest, opts ...grpc.CallOption) (DistributedTracingService_GetLatencyGraphClient, error) + GetLatencyGraph(ctx context.Context, in *GetLatencyGraphRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetLatencyGraphResponse], error) } type distributedTracingServiceClient struct { @@ -50,8 +50,9 @@ func NewDistributedTracingServiceClient(cc grpc.ClientConnInterface) Distributed } func (c *distributedTracingServiceClient) GetTimeConsuming(ctx context.Context, in *GetTimeConsumingRequest, opts ...grpc.CallOption) (*GetTimeConsumingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTimeConsumingResponse) - err := c.cc.Invoke(ctx, DistributedTracingService_GetTimeConsuming_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DistributedTracingService_GetTimeConsuming_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *distributedTracingServiceClient) GetTimeConsuming(ctx context.Context, } func (c *distributedTracingServiceClient) GetThroughput(ctx context.Context, in *GetThroughputRequest, opts ...grpc.CallOption) (*GetThroughputResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetThroughputResponse) - err := c.cc.Invoke(ctx, DistributedTracingService_GetThroughput_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DistributedTracingService_GetThroughput_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,20 +70,22 @@ func (c *distributedTracingServiceClient) GetThroughput(ctx context.Context, in } func (c *distributedTracingServiceClient) GetErrors(ctx context.Context, in *GetErrorsRequest, opts ...grpc.CallOption) (*GetErrorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetErrorsResponse) - err := c.cc.Invoke(ctx, DistributedTracingService_GetErrors_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DistributedTracingService_GetErrors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *distributedTracingServiceClient) GetErrorsStream(ctx context.Context, in *GetErrorsStreamRequest, opts ...grpc.CallOption) (DistributedTracingService_GetErrorsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DistributedTracingService_ServiceDesc.Streams[0], DistributedTracingService_GetErrorsStream_FullMethodName, opts...) +func (c *distributedTracingServiceClient) GetErrorsStream(ctx context.Context, in *GetErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetErrorsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DistributedTracingService_ServiceDesc.Streams[0], DistributedTracingService_GetErrorsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &distributedTracingServiceGetErrorsStreamClient{stream} + x := &grpc.GenericClientStream[GetErrorsStreamRequest, GetErrorsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -91,26 +95,13 @@ func (c *distributedTracingServiceClient) GetErrorsStream(ctx context.Context, i return x, nil } -type DistributedTracingService_GetErrorsStreamClient interface { - Recv() (*GetErrorsStreamResponse, error) - grpc.ClientStream -} - -type distributedTracingServiceGetErrorsStreamClient struct { - grpc.ClientStream -} - -func (x *distributedTracingServiceGetErrorsStreamClient) Recv() (*GetErrorsStreamResponse, error) { - m := new(GetErrorsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DistributedTracingService_GetErrorsStreamClient = grpc.ServerStreamingClient[GetErrorsStreamResponse] func (c *distributedTracingServiceClient) GetP99Latency(ctx context.Context, in *GetP99LatencyRequest, opts ...grpc.CallOption) (*GetP99LatencyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetP99LatencyResponse) - err := c.cc.Invoke(ctx, DistributedTracingService_GetP99Latency_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DistributedTracingService_GetP99Latency_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -118,20 +109,22 @@ func (c *distributedTracingServiceClient) GetP99Latency(ctx context.Context, in } func (c *distributedTracingServiceClient) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOperationsResponse) - err := c.cc.Invoke(ctx, DistributedTracingService_ListOperations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DistributedTracingService_ListOperations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *distributedTracingServiceClient) GetLatencyGraph(ctx context.Context, in *GetLatencyGraphRequest, opts ...grpc.CallOption) (DistributedTracingService_GetLatencyGraphClient, error) { - stream, err := c.cc.NewStream(ctx, &DistributedTracingService_ServiceDesc.Streams[1], DistributedTracingService_GetLatencyGraph_FullMethodName, opts...) +func (c *distributedTracingServiceClient) GetLatencyGraph(ctx context.Context, in *GetLatencyGraphRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetLatencyGraphResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DistributedTracingService_ServiceDesc.Streams[1], DistributedTracingService_GetLatencyGraph_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &distributedTracingServiceGetLatencyGraphClient{stream} + x := &grpc.GenericClientStream[GetLatencyGraphRequest, GetLatencyGraphResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -141,40 +134,29 @@ func (c *distributedTracingServiceClient) GetLatencyGraph(ctx context.Context, i return x, nil } -type DistributedTracingService_GetLatencyGraphClient interface { - Recv() (*GetLatencyGraphResponse, error) - grpc.ClientStream -} - -type distributedTracingServiceGetLatencyGraphClient struct { - grpc.ClientStream -} - -func (x *distributedTracingServiceGetLatencyGraphClient) Recv() (*GetLatencyGraphResponse, error) { - m := new(GetLatencyGraphResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DistributedTracingService_GetLatencyGraphClient = grpc.ServerStreamingClient[GetLatencyGraphResponse] // DistributedTracingServiceServer is the server API for DistributedTracingService service. // All implementations must embed UnimplementedDistributedTracingServiceServer -// for forward compatibility +// for forward compatibility. type DistributedTracingServiceServer interface { GetTimeConsuming(context.Context, *GetTimeConsumingRequest) (*GetTimeConsumingResponse, error) GetThroughput(context.Context, *GetThroughputRequest) (*GetThroughputResponse, error) GetErrors(context.Context, *GetErrorsRequest) (*GetErrorsResponse, error) - GetErrorsStream(*GetErrorsStreamRequest, DistributedTracingService_GetErrorsStreamServer) error + GetErrorsStream(*GetErrorsStreamRequest, grpc.ServerStreamingServer[GetErrorsStreamResponse]) error GetP99Latency(context.Context, *GetP99LatencyRequest) (*GetP99LatencyResponse, error) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) - GetLatencyGraph(*GetLatencyGraphRequest, DistributedTracingService_GetLatencyGraphServer) error + GetLatencyGraph(*GetLatencyGraphRequest, grpc.ServerStreamingServer[GetLatencyGraphResponse]) error mustEmbedUnimplementedDistributedTracingServiceServer() } -// UnimplementedDistributedTracingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDistributedTracingServiceServer struct { -} +// UnimplementedDistributedTracingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDistributedTracingServiceServer struct{} func (UnimplementedDistributedTracingServiceServer) GetTimeConsuming(context.Context, *GetTimeConsumingRequest) (*GetTimeConsumingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTimeConsuming not implemented") @@ -185,7 +167,7 @@ func (UnimplementedDistributedTracingServiceServer) GetThroughput(context.Contex func (UnimplementedDistributedTracingServiceServer) GetErrors(context.Context, *GetErrorsRequest) (*GetErrorsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetErrors not implemented") } -func (UnimplementedDistributedTracingServiceServer) GetErrorsStream(*GetErrorsStreamRequest, DistributedTracingService_GetErrorsStreamServer) error { +func (UnimplementedDistributedTracingServiceServer) GetErrorsStream(*GetErrorsStreamRequest, grpc.ServerStreamingServer[GetErrorsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetErrorsStream not implemented") } func (UnimplementedDistributedTracingServiceServer) GetP99Latency(context.Context, *GetP99LatencyRequest) (*GetP99LatencyResponse, error) { @@ -194,11 +176,12 @@ func (UnimplementedDistributedTracingServiceServer) GetP99Latency(context.Contex func (UnimplementedDistributedTracingServiceServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOperations not implemented") } -func (UnimplementedDistributedTracingServiceServer) GetLatencyGraph(*GetLatencyGraphRequest, DistributedTracingService_GetLatencyGraphServer) error { +func (UnimplementedDistributedTracingServiceServer) GetLatencyGraph(*GetLatencyGraphRequest, grpc.ServerStreamingServer[GetLatencyGraphResponse]) error { return status.Errorf(codes.Unimplemented, "method GetLatencyGraph not implemented") } func (UnimplementedDistributedTracingServiceServer) mustEmbedUnimplementedDistributedTracingServiceServer() { } +func (UnimplementedDistributedTracingServiceServer) testEmbeddedByValue() {} // UnsafeDistributedTracingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DistributedTracingServiceServer will @@ -208,6 +191,13 @@ type UnsafeDistributedTracingServiceServer interface { } func RegisterDistributedTracingServiceServer(s grpc.ServiceRegistrar, srv DistributedTracingServiceServer) { + // If the following call pancis, it indicates UnimplementedDistributedTracingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DistributedTracingService_ServiceDesc, srv) } @@ -270,21 +260,11 @@ func _DistributedTracingService_GetErrorsStream_Handler(srv interface{}, stream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DistributedTracingServiceServer).GetErrorsStream(m, &distributedTracingServiceGetErrorsStreamServer{stream}) + return srv.(DistributedTracingServiceServer).GetErrorsStream(m, &grpc.GenericServerStream[GetErrorsStreamRequest, GetErrorsStreamResponse]{ServerStream: stream}) } -type DistributedTracingService_GetErrorsStreamServer interface { - Send(*GetErrorsStreamResponse) error - grpc.ServerStream -} - -type distributedTracingServiceGetErrorsStreamServer struct { - grpc.ServerStream -} - -func (x *distributedTracingServiceGetErrorsStreamServer) Send(m *GetErrorsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DistributedTracingService_GetErrorsStreamServer = grpc.ServerStreamingServer[GetErrorsStreamResponse] func _DistributedTracingService_GetP99Latency_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetP99LatencyRequest) @@ -327,21 +307,11 @@ func _DistributedTracingService_GetLatencyGraph_Handler(srv interface{}, stream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DistributedTracingServiceServer).GetLatencyGraph(m, &distributedTracingServiceGetLatencyGraphServer{stream}) -} - -type DistributedTracingService_GetLatencyGraphServer interface { - Send(*GetLatencyGraphResponse) error - grpc.ServerStream + return srv.(DistributedTracingServiceServer).GetLatencyGraph(m, &grpc.GenericServerStream[GetLatencyGraphRequest, GetLatencyGraphResponse]{ServerStream: stream}) } -type distributedTracingServiceGetLatencyGraphServer struct { - grpc.ServerStream -} - -func (x *distributedTracingServiceGetLatencyGraphServer) Send(m *GetLatencyGraphResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DistributedTracingService_GetLatencyGraphServer = grpc.ServerStreamingServer[GetLatencyGraphResponse] // DistributedTracingService_ServiceDesc is the grpc.ServiceDesc for DistributedTracingService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service.pb.go b/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service.pb.go index b546fcbd..360a48a0 100644 --- a/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service.pb.go +++ b/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/error-tracking/error_tracking_drill_down_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service_grpc.pb.go index e7128ab2..0fa9f4e7 100644 --- a/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/error_tracking_drill_down_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/error-tracking/error_tracking_drill_down_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ErrorTrackingDrillDownService_GetErrorStats_FullMethodName = "/com.coralogixapis.service_catalog.v1.ErrorTrackingDrillDownService/GetErrorStats" @@ -42,8 +42,9 @@ func NewErrorTrackingDrillDownServiceClient(cc grpc.ClientConnInterface) ErrorTr } func (c *errorTrackingDrillDownServiceClient) GetErrorStats(ctx context.Context, in *GetErrorStatsRequest, opts ...grpc.CallOption) (*GetErrorStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetErrorStatsResponse) - err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetErrorStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetErrorStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *errorTrackingDrillDownServiceClient) GetErrorStats(ctx context.Context, } func (c *errorTrackingDrillDownServiceClient) GetDrillDownSubFilters(ctx context.Context, in *DrillDownSubFiltersRequest, opts ...grpc.CallOption) (*DrillDownSubFilterResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DrillDownSubFilterResponse) - err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetDrillDownSubFilters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetDrillDownSubFilters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *errorTrackingDrillDownServiceClient) GetDrillDownSubFilters(ctx context } func (c *errorTrackingDrillDownServiceClient) GetDrillDownOperationsGraph(ctx context.Context, in *GetServiceErrorTrackingDrillDownGraphRequest, opts ...grpc.CallOption) (*GetServiceErrorTrackingDrillDownGraphResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetServiceErrorTrackingDrillDownGraphResponse) - err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetDrillDownOperationsGraph_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ErrorTrackingDrillDownService_GetDrillDownOperationsGraph_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *errorTrackingDrillDownServiceClient) GetDrillDownOperationsGraph(ctx co // ErrorTrackingDrillDownServiceServer is the server API for ErrorTrackingDrillDownService service. // All implementations must embed UnimplementedErrorTrackingDrillDownServiceServer -// for forward compatibility +// for forward compatibility. type ErrorTrackingDrillDownServiceServer interface { GetErrorStats(context.Context, *GetErrorStatsRequest) (*GetErrorStatsResponse, error) GetDrillDownSubFilters(context.Context, *DrillDownSubFiltersRequest) (*DrillDownSubFilterResponse, error) @@ -78,9 +81,12 @@ type ErrorTrackingDrillDownServiceServer interface { mustEmbedUnimplementedErrorTrackingDrillDownServiceServer() } -// UnimplementedErrorTrackingDrillDownServiceServer must be embedded to have forward compatible implementations. -type UnimplementedErrorTrackingDrillDownServiceServer struct { -} +// UnimplementedErrorTrackingDrillDownServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedErrorTrackingDrillDownServiceServer struct{} func (UnimplementedErrorTrackingDrillDownServiceServer) GetErrorStats(context.Context, *GetErrorStatsRequest) (*GetErrorStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetErrorStats not implemented") @@ -93,6 +99,7 @@ func (UnimplementedErrorTrackingDrillDownServiceServer) GetDrillDownOperationsGr } func (UnimplementedErrorTrackingDrillDownServiceServer) mustEmbedUnimplementedErrorTrackingDrillDownServiceServer() { } +func (UnimplementedErrorTrackingDrillDownServiceServer) testEmbeddedByValue() {} // UnsafeErrorTrackingDrillDownServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ErrorTrackingDrillDownServiceServer will @@ -102,6 +109,13 @@ type UnsafeErrorTrackingDrillDownServiceServer interface { } func RegisterErrorTrackingDrillDownServiceServer(s grpc.ServiceRegistrar, srv ErrorTrackingDrillDownServiceServer) { + // If the following call pancis, it indicates UnimplementedErrorTrackingDrillDownServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ErrorTrackingDrillDownService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/error_tracking_service.pb.go b/go/internal/coralogix/catalog/v1/error_tracking_service.pb.go index c0b12f93..a7f46e18 100644 --- a/go/internal/coralogix/catalog/v1/error_tracking_service.pb.go +++ b/go/internal/coralogix/catalog/v1/error_tracking_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/error-tracking/error_tracking_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/error_tracking_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/error_tracking_service_grpc.pb.go index df3d342f..5123f958 100644 --- a/go/internal/coralogix/catalog/v1/error_tracking_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/error_tracking_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/error-tracking/error_tracking_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ErrorTrackingService_GetServiceErrorTrackingOverviewStream_FullMethodName = "/com.coralogixapis.service_catalog.v1.ErrorTrackingService/GetServiceErrorTrackingOverviewStream" @@ -27,8 +27,8 @@ const ( // // 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 ErrorTrackingServiceClient interface { - GetServiceErrorTrackingOverviewStream(ctx context.Context, in *GetServiceErrorTrackingOverviewRequest, opts ...grpc.CallOption) (ErrorTrackingService_GetServiceErrorTrackingOverviewStreamClient, error) - GetServiceErrorTrackingListStream(ctx context.Context, in *GetServiceErrorTrackingListRequest, opts ...grpc.CallOption) (ErrorTrackingService_GetServiceErrorTrackingListStreamClient, error) + GetServiceErrorTrackingOverviewStream(ctx context.Context, in *GetServiceErrorTrackingOverviewRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceErrorTrackingOverviewResponse], error) + GetServiceErrorTrackingListStream(ctx context.Context, in *GetServiceErrorTrackingListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceErrorTrackingListResponse], error) } type errorTrackingServiceClient struct { @@ -39,12 +39,13 @@ func NewErrorTrackingServiceClient(cc grpc.ClientConnInterface) ErrorTrackingSer return &errorTrackingServiceClient{cc} } -func (c *errorTrackingServiceClient) GetServiceErrorTrackingOverviewStream(ctx context.Context, in *GetServiceErrorTrackingOverviewRequest, opts ...grpc.CallOption) (ErrorTrackingService_GetServiceErrorTrackingOverviewStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &ErrorTrackingService_ServiceDesc.Streams[0], ErrorTrackingService_GetServiceErrorTrackingOverviewStream_FullMethodName, opts...) +func (c *errorTrackingServiceClient) GetServiceErrorTrackingOverviewStream(ctx context.Context, in *GetServiceErrorTrackingOverviewRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceErrorTrackingOverviewResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ErrorTrackingService_ServiceDesc.Streams[0], ErrorTrackingService_GetServiceErrorTrackingOverviewStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &errorTrackingServiceGetServiceErrorTrackingOverviewStreamClient{stream} + x := &grpc.GenericClientStream[GetServiceErrorTrackingOverviewRequest, GetServiceErrorTrackingOverviewResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -54,29 +55,16 @@ func (c *errorTrackingServiceClient) GetServiceErrorTrackingOverviewStream(ctx c return x, nil } -type ErrorTrackingService_GetServiceErrorTrackingOverviewStreamClient interface { - Recv() (*GetServiceErrorTrackingOverviewResponse, error) - grpc.ClientStream -} - -type errorTrackingServiceGetServiceErrorTrackingOverviewStreamClient struct { - grpc.ClientStream -} - -func (x *errorTrackingServiceGetServiceErrorTrackingOverviewStreamClient) Recv() (*GetServiceErrorTrackingOverviewResponse, error) { - m := new(GetServiceErrorTrackingOverviewResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ErrorTrackingService_GetServiceErrorTrackingOverviewStreamClient = grpc.ServerStreamingClient[GetServiceErrorTrackingOverviewResponse] -func (c *errorTrackingServiceClient) GetServiceErrorTrackingListStream(ctx context.Context, in *GetServiceErrorTrackingListRequest, opts ...grpc.CallOption) (ErrorTrackingService_GetServiceErrorTrackingListStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &ErrorTrackingService_ServiceDesc.Streams[1], ErrorTrackingService_GetServiceErrorTrackingListStream_FullMethodName, opts...) +func (c *errorTrackingServiceClient) GetServiceErrorTrackingListStream(ctx context.Context, in *GetServiceErrorTrackingListRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceErrorTrackingListResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ErrorTrackingService_ServiceDesc.Streams[1], ErrorTrackingService_GetServiceErrorTrackingListStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &errorTrackingServiceGetServiceErrorTrackingListStreamClient{stream} + x := &grpc.GenericClientStream[GetServiceErrorTrackingListRequest, GetServiceErrorTrackingListResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -86,43 +74,33 @@ func (c *errorTrackingServiceClient) GetServiceErrorTrackingListStream(ctx conte return x, nil } -type ErrorTrackingService_GetServiceErrorTrackingListStreamClient interface { - Recv() (*GetServiceErrorTrackingListResponse, error) - grpc.ClientStream -} - -type errorTrackingServiceGetServiceErrorTrackingListStreamClient struct { - grpc.ClientStream -} - -func (x *errorTrackingServiceGetServiceErrorTrackingListStreamClient) Recv() (*GetServiceErrorTrackingListResponse, error) { - m := new(GetServiceErrorTrackingListResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ErrorTrackingService_GetServiceErrorTrackingListStreamClient = grpc.ServerStreamingClient[GetServiceErrorTrackingListResponse] // ErrorTrackingServiceServer is the server API for ErrorTrackingService service. // All implementations must embed UnimplementedErrorTrackingServiceServer -// for forward compatibility +// for forward compatibility. type ErrorTrackingServiceServer interface { - GetServiceErrorTrackingOverviewStream(*GetServiceErrorTrackingOverviewRequest, ErrorTrackingService_GetServiceErrorTrackingOverviewStreamServer) error - GetServiceErrorTrackingListStream(*GetServiceErrorTrackingListRequest, ErrorTrackingService_GetServiceErrorTrackingListStreamServer) error + GetServiceErrorTrackingOverviewStream(*GetServiceErrorTrackingOverviewRequest, grpc.ServerStreamingServer[GetServiceErrorTrackingOverviewResponse]) error + GetServiceErrorTrackingListStream(*GetServiceErrorTrackingListRequest, grpc.ServerStreamingServer[GetServiceErrorTrackingListResponse]) error mustEmbedUnimplementedErrorTrackingServiceServer() } -// UnimplementedErrorTrackingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedErrorTrackingServiceServer struct { -} +// UnimplementedErrorTrackingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedErrorTrackingServiceServer struct{} -func (UnimplementedErrorTrackingServiceServer) GetServiceErrorTrackingOverviewStream(*GetServiceErrorTrackingOverviewRequest, ErrorTrackingService_GetServiceErrorTrackingOverviewStreamServer) error { +func (UnimplementedErrorTrackingServiceServer) GetServiceErrorTrackingOverviewStream(*GetServiceErrorTrackingOverviewRequest, grpc.ServerStreamingServer[GetServiceErrorTrackingOverviewResponse]) error { return status.Errorf(codes.Unimplemented, "method GetServiceErrorTrackingOverviewStream not implemented") } -func (UnimplementedErrorTrackingServiceServer) GetServiceErrorTrackingListStream(*GetServiceErrorTrackingListRequest, ErrorTrackingService_GetServiceErrorTrackingListStreamServer) error { +func (UnimplementedErrorTrackingServiceServer) GetServiceErrorTrackingListStream(*GetServiceErrorTrackingListRequest, grpc.ServerStreamingServer[GetServiceErrorTrackingListResponse]) error { return status.Errorf(codes.Unimplemented, "method GetServiceErrorTrackingListStream not implemented") } func (UnimplementedErrorTrackingServiceServer) mustEmbedUnimplementedErrorTrackingServiceServer() {} +func (UnimplementedErrorTrackingServiceServer) testEmbeddedByValue() {} // UnsafeErrorTrackingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ErrorTrackingServiceServer will @@ -132,6 +110,13 @@ type UnsafeErrorTrackingServiceServer interface { } func RegisterErrorTrackingServiceServer(s grpc.ServiceRegistrar, srv ErrorTrackingServiceServer) { + // If the following call pancis, it indicates UnimplementedErrorTrackingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ErrorTrackingService_ServiceDesc, srv) } @@ -140,42 +125,22 @@ func _ErrorTrackingService_GetServiceErrorTrackingOverviewStream_Handler(srv int if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ErrorTrackingServiceServer).GetServiceErrorTrackingOverviewStream(m, &errorTrackingServiceGetServiceErrorTrackingOverviewStreamServer{stream}) + return srv.(ErrorTrackingServiceServer).GetServiceErrorTrackingOverviewStream(m, &grpc.GenericServerStream[GetServiceErrorTrackingOverviewRequest, GetServiceErrorTrackingOverviewResponse]{ServerStream: stream}) } -type ErrorTrackingService_GetServiceErrorTrackingOverviewStreamServer interface { - Send(*GetServiceErrorTrackingOverviewResponse) error - grpc.ServerStream -} - -type errorTrackingServiceGetServiceErrorTrackingOverviewStreamServer struct { - grpc.ServerStream -} - -func (x *errorTrackingServiceGetServiceErrorTrackingOverviewStreamServer) Send(m *GetServiceErrorTrackingOverviewResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ErrorTrackingService_GetServiceErrorTrackingOverviewStreamServer = grpc.ServerStreamingServer[GetServiceErrorTrackingOverviewResponse] func _ErrorTrackingService_GetServiceErrorTrackingListStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetServiceErrorTrackingListRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(ErrorTrackingServiceServer).GetServiceErrorTrackingListStream(m, &errorTrackingServiceGetServiceErrorTrackingListStreamServer{stream}) -} - -type ErrorTrackingService_GetServiceErrorTrackingListStreamServer interface { - Send(*GetServiceErrorTrackingListResponse) error - grpc.ServerStream + return srv.(ErrorTrackingServiceServer).GetServiceErrorTrackingListStream(m, &grpc.GenericServerStream[GetServiceErrorTrackingListRequest, GetServiceErrorTrackingListResponse]{ServerStream: stream}) } -type errorTrackingServiceGetServiceErrorTrackingListStreamServer struct { - grpc.ServerStream -} - -func (x *errorTrackingServiceGetServiceErrorTrackingListStreamServer) Send(m *GetServiceErrorTrackingListResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ErrorTrackingService_GetServiceErrorTrackingListStreamServer = grpc.ServerStreamingServer[GetServiceErrorTrackingListResponse] // ErrorTrackingService_ServiceDesc is the grpc.ServiceDesc for ErrorTrackingService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/catalog/v1/error_tracking_shared.pb.go b/go/internal/coralogix/catalog/v1/error_tracking_shared.pb.go index 780c1aef..32db8dab 100644 --- a/go/internal/coralogix/catalog/v1/error_tracking_shared.pb.go +++ b/go/internal/coralogix/catalog/v1/error_tracking_shared.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/error-tracking/error_tracking_shared.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/operation.pb.go b/go/internal/coralogix/catalog/v1/operation.pb.go index 696e7004..c6f2767d 100644 --- a/go/internal/coralogix/catalog/v1/operation.pb.go +++ b/go/internal/coralogix/catalog/v1/operation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/operation.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/overview_service.pb.go b/go/internal/coralogix/catalog/v1/overview_service.pb.go index 0ea6c6af..15bc7de1 100644 --- a/go/internal/coralogix/catalog/v1/overview_service.pb.go +++ b/go/internal/coralogix/catalog/v1/overview_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/overview_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/overview_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/overview_service_grpc.pb.go index 07e2a4d9..86a3e547 100644 --- a/go/internal/coralogix/catalog/v1/overview_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/overview_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/overview_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OverviewService_GetOverview_FullMethodName = "/com.coralogixapis.service_catalog.v1.OverviewService/GetOverview" @@ -29,7 +29,7 @@ const ( // 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 OverviewServiceClient interface { GetOverview(ctx context.Context, in *GetOverviewRequest, opts ...grpc.CallOption) (*GetOverviewResponse, error) - GetOverviewStream(ctx context.Context, in *GetOverviewStreamRequest, opts ...grpc.CallOption) (OverviewService_GetOverviewStreamClient, error) + GetOverviewStream(ctx context.Context, in *GetOverviewStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetOverviewStreamResponse], error) GetApdex(ctx context.Context, in *GetApdexRequest, opts ...grpc.CallOption) (*GetApdexResponse, error) } @@ -42,20 +42,22 @@ func NewOverviewServiceClient(cc grpc.ClientConnInterface) OverviewServiceClient } func (c *overviewServiceClient) GetOverview(ctx context.Context, in *GetOverviewRequest, opts ...grpc.CallOption) (*GetOverviewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOverviewResponse) - err := c.cc.Invoke(ctx, OverviewService_GetOverview_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OverviewService_GetOverview_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *overviewServiceClient) GetOverviewStream(ctx context.Context, in *GetOverviewStreamRequest, opts ...grpc.CallOption) (OverviewService_GetOverviewStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &OverviewService_ServiceDesc.Streams[0], OverviewService_GetOverviewStream_FullMethodName, opts...) +func (c *overviewServiceClient) GetOverviewStream(ctx context.Context, in *GetOverviewStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetOverviewStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &OverviewService_ServiceDesc.Streams[0], OverviewService_GetOverviewStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &overviewServiceGetOverviewStreamClient{stream} + x := &grpc.GenericClientStream[GetOverviewStreamRequest, GetOverviewStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -65,26 +67,13 @@ func (c *overviewServiceClient) GetOverviewStream(ctx context.Context, in *GetOv return x, nil } -type OverviewService_GetOverviewStreamClient interface { - Recv() (*GetOverviewStreamResponse, error) - grpc.ClientStream -} - -type overviewServiceGetOverviewStreamClient struct { - grpc.ClientStream -} - -func (x *overviewServiceGetOverviewStreamClient) Recv() (*GetOverviewStreamResponse, error) { - m := new(GetOverviewStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OverviewService_GetOverviewStreamClient = grpc.ServerStreamingClient[GetOverviewStreamResponse] func (c *overviewServiceClient) GetApdex(ctx context.Context, in *GetApdexRequest, opts ...grpc.CallOption) (*GetApdexResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApdexResponse) - err := c.cc.Invoke(ctx, OverviewService_GetApdex_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OverviewService_GetApdex_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,28 +82,32 @@ func (c *overviewServiceClient) GetApdex(ctx context.Context, in *GetApdexReques // OverviewServiceServer is the server API for OverviewService service. // All implementations must embed UnimplementedOverviewServiceServer -// for forward compatibility +// for forward compatibility. type OverviewServiceServer interface { GetOverview(context.Context, *GetOverviewRequest) (*GetOverviewResponse, error) - GetOverviewStream(*GetOverviewStreamRequest, OverviewService_GetOverviewStreamServer) error + GetOverviewStream(*GetOverviewStreamRequest, grpc.ServerStreamingServer[GetOverviewStreamResponse]) error GetApdex(context.Context, *GetApdexRequest) (*GetApdexResponse, error) mustEmbedUnimplementedOverviewServiceServer() } -// UnimplementedOverviewServiceServer must be embedded to have forward compatible implementations. -type UnimplementedOverviewServiceServer struct { -} +// UnimplementedOverviewServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOverviewServiceServer struct{} func (UnimplementedOverviewServiceServer) GetOverview(context.Context, *GetOverviewRequest) (*GetOverviewResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOverview not implemented") } -func (UnimplementedOverviewServiceServer) GetOverviewStream(*GetOverviewStreamRequest, OverviewService_GetOverviewStreamServer) error { +func (UnimplementedOverviewServiceServer) GetOverviewStream(*GetOverviewStreamRequest, grpc.ServerStreamingServer[GetOverviewStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetOverviewStream not implemented") } func (UnimplementedOverviewServiceServer) GetApdex(context.Context, *GetApdexRequest) (*GetApdexResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetApdex not implemented") } func (UnimplementedOverviewServiceServer) mustEmbedUnimplementedOverviewServiceServer() {} +func (UnimplementedOverviewServiceServer) testEmbeddedByValue() {} // UnsafeOverviewServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OverviewServiceServer will @@ -124,6 +117,13 @@ type UnsafeOverviewServiceServer interface { } func RegisterOverviewServiceServer(s grpc.ServiceRegistrar, srv OverviewServiceServer) { + // If the following call pancis, it indicates UnimplementedOverviewServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OverviewService_ServiceDesc, srv) } @@ -150,21 +150,11 @@ func _OverviewService_GetOverviewStream_Handler(srv interface{}, stream grpc.Ser if err := stream.RecvMsg(m); err != nil { return err } - return srv.(OverviewServiceServer).GetOverviewStream(m, &overviewServiceGetOverviewStreamServer{stream}) -} - -type OverviewService_GetOverviewStreamServer interface { - Send(*GetOverviewStreamResponse) error - grpc.ServerStream + return srv.(OverviewServiceServer).GetOverviewStream(m, &grpc.GenericServerStream[GetOverviewStreamRequest, GetOverviewStreamResponse]{ServerStream: stream}) } -type overviewServiceGetOverviewStreamServer struct { - grpc.ServerStream -} - -func (x *overviewServiceGetOverviewStreamServer) Send(m *GetOverviewStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type OverviewService_GetOverviewStreamServer = grpc.ServerStreamingServer[GetOverviewStreamResponse] func _OverviewService_GetApdex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetApdexRequest) diff --git a/go/internal/coralogix/catalog/v1/repeated_widgets.pb.go b/go/internal/coralogix/catalog/v1/repeated_widgets.pb.go index 1e82ff87..98a57c53 100644 --- a/go/internal/coralogix/catalog/v1/repeated_widgets.pb.go +++ b/go/internal/coralogix/catalog/v1/repeated_widgets.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/repeated_widgets.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/report_service.pb.go b/go/internal/coralogix/catalog/v1/report_service.pb.go index 2dec9d74..ccd138c2 100644 --- a/go/internal/coralogix/catalog/v1/report_service.pb.go +++ b/go/internal/coralogix/catalog/v1/report_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/report_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/report_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/report_service_grpc.pb.go index 68c93f62..7d9bf7fd 100644 --- a/go/internal/coralogix/catalog/v1/report_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/report_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/report_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ReportService_GetReport_FullMethodName = "/com.coralogixapis.service_catalog.v1.ReportService/GetReport" @@ -38,8 +38,9 @@ func NewReportServiceClient(cc grpc.ClientConnInterface) ReportServiceClient { } func (c *reportServiceClient) GetReport(ctx context.Context, in *GetReportRequest, opts ...grpc.CallOption) (*GetReportResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetReportResponse) - err := c.cc.Invoke(ctx, ReportService_GetReport_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ReportService_GetReport_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *reportServiceClient) GetReport(ctx context.Context, in *GetReportReques // ReportServiceServer is the server API for ReportService service. // All implementations must embed UnimplementedReportServiceServer -// for forward compatibility +// for forward compatibility. type ReportServiceServer interface { GetReport(context.Context, *GetReportRequest) (*GetReportResponse, error) mustEmbedUnimplementedReportServiceServer() } -// UnimplementedReportServiceServer must be embedded to have forward compatible implementations. -type UnimplementedReportServiceServer struct { -} +// UnimplementedReportServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedReportServiceServer struct{} func (UnimplementedReportServiceServer) GetReport(context.Context, *GetReportRequest) (*GetReportResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetReport not implemented") } func (UnimplementedReportServiceServer) mustEmbedUnimplementedReportServiceServer() {} +func (UnimplementedReportServiceServer) testEmbeddedByValue() {} // UnsafeReportServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ReportServiceServer will @@ -71,6 +76,13 @@ type UnsafeReportServiceServer interface { } func RegisterReportServiceServer(s grpc.ServiceRegistrar, srv ReportServiceServer) { + // If the following call pancis, it indicates UnimplementedReportServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ReportService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/service.pb.go b/go/internal/coralogix/catalog/v1/service.pb.go index 4b4198df..2a5dacd9 100644 --- a/go/internal/coralogix/catalog/v1/service.pb.go +++ b/go/internal/coralogix/catalog/v1/service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/service_action.pb.go b/go/internal/coralogix/catalog/v1/service_action.pb.go index 73beec47..6879ad4d 100644 --- a/go/internal/coralogix/catalog/v1/service_action.pb.go +++ b/go/internal/coralogix/catalog/v1/service_action.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service_action.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/service_overview.pb.go b/go/internal/coralogix/catalog/v1/service_overview.pb.go index f7152b1e..7bd2c255 100644 --- a/go/internal/coralogix/catalog/v1/service_overview.pb.go +++ b/go/internal/coralogix/catalog/v1/service_overview.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service_overview.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/service_overview_service.pb.go b/go/internal/coralogix/catalog/v1/service_overview_service.pb.go index e1c3d8d2..e0889be7 100644 --- a/go/internal/coralogix/catalog/v1/service_overview_service.pb.go +++ b/go/internal/coralogix/catalog/v1/service_overview_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service_overview_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/service_overview_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/service_overview_service_grpc.pb.go index c156acee..ba1b30a8 100644 --- a/go/internal/coralogix/catalog/v1/service_overview_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/service_overview_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/catalog/v1/service_overview_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ServiceOverviewService_GetServiceOverview_FullMethodName = "/com.coralogix.catalog.v1.ServiceOverviewService/GetServiceOverview" @@ -38,8 +38,9 @@ func NewServiceOverviewServiceClient(cc grpc.ClientConnInterface) ServiceOvervie } func (c *serviceOverviewServiceClient) GetServiceOverview(ctx context.Context, in *GetServiceOverviewRequest, opts ...grpc.CallOption) (*GetServiceOverviewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetServiceOverviewResponse) - err := c.cc.Invoke(ctx, ServiceOverviewService_GetServiceOverview_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceOverviewService_GetServiceOverview_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *serviceOverviewServiceClient) GetServiceOverview(ctx context.Context, i // ServiceOverviewServiceServer is the server API for ServiceOverviewService service. // All implementations must embed UnimplementedServiceOverviewServiceServer -// for forward compatibility +// for forward compatibility. type ServiceOverviewServiceServer interface { GetServiceOverview(context.Context, *GetServiceOverviewRequest) (*GetServiceOverviewResponse, error) mustEmbedUnimplementedServiceOverviewServiceServer() } -// UnimplementedServiceOverviewServiceServer must be embedded to have forward compatible implementations. -type UnimplementedServiceOverviewServiceServer struct { -} +// UnimplementedServiceOverviewServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServiceOverviewServiceServer struct{} func (UnimplementedServiceOverviewServiceServer) GetServiceOverview(context.Context, *GetServiceOverviewRequest) (*GetServiceOverviewResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServiceOverview not implemented") } func (UnimplementedServiceOverviewServiceServer) mustEmbedUnimplementedServiceOverviewServiceServer() { } +func (UnimplementedServiceOverviewServiceServer) testEmbeddedByValue() {} // UnsafeServiceOverviewServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServiceOverviewServiceServer will @@ -72,6 +77,13 @@ type UnsafeServiceOverviewServiceServer interface { } func RegisterServiceOverviewServiceServer(s grpc.ServiceRegistrar, srv ServiceOverviewServiceServer) { + // If the following call pancis, it indicates UnimplementedServiceOverviewServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ServiceOverviewService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/service_overviewe_query.pb.go b/go/internal/coralogix/catalog/v1/service_overviewe_query.pb.go index 77c6a22f..cc3bb3a2 100644 --- a/go/internal/coralogix/catalog/v1/service_overviewe_query.pb.go +++ b/go/internal/coralogix/catalog/v1/service_overviewe_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service_overviewe_query.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/service_query.pb.go b/go/internal/coralogix/catalog/v1/service_query.pb.go index 31649af5..15b040ec 100644 --- a/go/internal/coralogix/catalog/v1/service_query.pb.go +++ b/go/internal/coralogix/catalog/v1/service_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/service_query.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/sli.pb.go b/go/internal/coralogix/catalog/v1/sli.pb.go index 59d0aee1..3079c8a6 100644 --- a/go/internal/coralogix/catalog/v1/sli.pb.go +++ b/go/internal/coralogix/catalog/v1/sli.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/sli.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/sli_service.pb.go b/go/internal/coralogix/catalog/v1/sli_service.pb.go index 6c637eee..44f57eb3 100644 --- a/go/internal/coralogix/catalog/v1/sli_service.pb.go +++ b/go/internal/coralogix/catalog/v1/sli_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/sli_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/sli_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/sli_service_grpc.pb.go index f0119c3e..19535f45 100644 --- a/go/internal/coralogix/catalog/v1/sli_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/sli_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/catalog/v1/sli_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( SliService_GetSlis_FullMethodName = "/com.coralogix.catalog.v1.SliService/GetSlis" @@ -52,8 +52,9 @@ func NewSliServiceClient(cc grpc.ClientConnInterface) SliServiceClient { } func (c *sliServiceClient) GetSlis(ctx context.Context, in *GetSlisRequest, opts ...grpc.CallOption) (*GetSlisResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSlisResponse) - err := c.cc.Invoke(ctx, SliService_GetSlis_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_GetSlis_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *sliServiceClient) GetSlis(ctx context.Context, in *GetSlisRequest, opts } func (c *sliServiceClient) CreateSli(ctx context.Context, in *CreateSliRequest, opts ...grpc.CallOption) (*CreateSliResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateSliResponse) - err := c.cc.Invoke(ctx, SliService_CreateSli_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_CreateSli_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *sliServiceClient) CreateSli(ctx context.Context, in *CreateSliRequest, } func (c *sliServiceClient) CreateSlis(ctx context.Context, in *CreateSlisRequest, opts ...grpc.CallOption) (*CreateSlisResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateSlisResponse) - err := c.cc.Invoke(ctx, SliService_CreateSlis_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_CreateSlis_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *sliServiceClient) CreateSlis(ctx context.Context, in *CreateSlisRequest } func (c *sliServiceClient) UpdateSli(ctx context.Context, in *UpdateSliRequest, opts ...grpc.CallOption) (*UpdateSliResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateSliResponse) - err := c.cc.Invoke(ctx, SliService_UpdateSli_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_UpdateSli_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *sliServiceClient) UpdateSli(ctx context.Context, in *UpdateSliRequest, } func (c *sliServiceClient) UpdateSlis(ctx context.Context, in *UpdateSlisRequest, opts ...grpc.CallOption) (*UpdateSlisResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateSlisResponse) - err := c.cc.Invoke(ctx, SliService_UpdateSlis_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_UpdateSlis_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *sliServiceClient) UpdateSlis(ctx context.Context, in *UpdateSlisRequest } func (c *sliServiceClient) DeleteSli(ctx context.Context, in *DeleteSliRequest, opts ...grpc.CallOption) (*DeleteSliResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteSliResponse) - err := c.cc.Invoke(ctx, SliService_DeleteSli_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_DeleteSli_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *sliServiceClient) DeleteSli(ctx context.Context, in *DeleteSliRequest, } func (c *sliServiceClient) GetSliStatusHistory(ctx context.Context, in *GetSliStatusHistoryRequest, opts ...grpc.CallOption) (*GetSliStatusHistoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSliStatusHistoryResponse) - err := c.cc.Invoke(ctx, SliService_GetSliStatusHistory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_GetSliStatusHistory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *sliServiceClient) GetSliStatusHistory(ctx context.Context, in *GetSliSt } func (c *sliServiceClient) GetSliE2MQuery(ctx context.Context, in *GetSliE2MQueryRequest, opts ...grpc.CallOption) (*GetSliE2MQueryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSliE2MQueryResponse) - err := c.cc.Invoke(ctx, SliService_GetSliE2MQuery_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SliService_GetSliE2MQuery_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *sliServiceClient) GetSliE2MQuery(ctx context.Context, in *GetSliE2MQuer // SliServiceServer is the server API for SliService service. // All implementations must embed UnimplementedSliServiceServer -// for forward compatibility +// for forward compatibility. type SliServiceServer interface { GetSlis(context.Context, *GetSlisRequest) (*GetSlisResponse, error) CreateSli(context.Context, *CreateSliRequest) (*CreateSliResponse, error) @@ -138,9 +146,12 @@ type SliServiceServer interface { mustEmbedUnimplementedSliServiceServer() } -// UnimplementedSliServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSliServiceServer struct { -} +// UnimplementedSliServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSliServiceServer struct{} func (UnimplementedSliServiceServer) GetSlis(context.Context, *GetSlisRequest) (*GetSlisResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSlis not implemented") @@ -167,6 +178,7 @@ func (UnimplementedSliServiceServer) GetSliE2MQuery(context.Context, *GetSliE2MQ return nil, status.Errorf(codes.Unimplemented, "method GetSliE2MQuery not implemented") } func (UnimplementedSliServiceServer) mustEmbedUnimplementedSliServiceServer() {} +func (UnimplementedSliServiceServer) testEmbeddedByValue() {} // UnsafeSliServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SliServiceServer will @@ -176,6 +188,13 @@ type UnsafeSliServiceServer interface { } func RegisterSliServiceServer(s grpc.ServiceRegistrar, srv SliServiceServer) { + // If the following call pancis, it indicates UnimplementedSliServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SliService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/catalog/v1/span_drill_down_service.pb.go b/go/internal/coralogix/catalog/v1/span_drill_down_service.pb.go index 62723794..386f560f 100644 --- a/go/internal/coralogix/catalog/v1/span_drill_down_service.pb.go +++ b/go/internal/coralogix/catalog/v1/span_drill_down_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/span_drill_down_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/span_drill_down_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/span_drill_down_service_grpc.pb.go index 0032fc87..cb40abaa 100644 --- a/go/internal/coralogix/catalog/v1/span_drill_down_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/span_drill_down_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/catalog/v1/span_drill_down_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( SpanDrillDownService_GetServiceSideModelGraphs_FullMethodName = "/com.coralogix.catalog.v1.SpanDrillDownService/GetServiceSideModelGraphs" @@ -26,7 +26,7 @@ const ( // // 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 SpanDrillDownServiceClient interface { - GetServiceSideModelGraphs(ctx context.Context, in *GetServiceSideModelGraphsRequest, opts ...grpc.CallOption) (SpanDrillDownService_GetServiceSideModelGraphsClient, error) + GetServiceSideModelGraphs(ctx context.Context, in *GetServiceSideModelGraphsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceSideModelGraphsResponse], error) } type spanDrillDownServiceClient struct { @@ -37,12 +37,13 @@ func NewSpanDrillDownServiceClient(cc grpc.ClientConnInterface) SpanDrillDownSer return &spanDrillDownServiceClient{cc} } -func (c *spanDrillDownServiceClient) GetServiceSideModelGraphs(ctx context.Context, in *GetServiceSideModelGraphsRequest, opts ...grpc.CallOption) (SpanDrillDownService_GetServiceSideModelGraphsClient, error) { - stream, err := c.cc.NewStream(ctx, &SpanDrillDownService_ServiceDesc.Streams[0], SpanDrillDownService_GetServiceSideModelGraphs_FullMethodName, opts...) +func (c *spanDrillDownServiceClient) GetServiceSideModelGraphs(ctx context.Context, in *GetServiceSideModelGraphsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetServiceSideModelGraphsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &SpanDrillDownService_ServiceDesc.Streams[0], SpanDrillDownService_GetServiceSideModelGraphs_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &spanDrillDownServiceGetServiceSideModelGraphsClient{stream} + x := &grpc.GenericClientStream[GetServiceSideModelGraphsRequest, GetServiceSideModelGraphsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -52,39 +53,29 @@ func (c *spanDrillDownServiceClient) GetServiceSideModelGraphs(ctx context.Conte return x, nil } -type SpanDrillDownService_GetServiceSideModelGraphsClient interface { - Recv() (*GetServiceSideModelGraphsResponse, error) - grpc.ClientStream -} - -type spanDrillDownServiceGetServiceSideModelGraphsClient struct { - grpc.ClientStream -} - -func (x *spanDrillDownServiceGetServiceSideModelGraphsClient) Recv() (*GetServiceSideModelGraphsResponse, error) { - m := new(GetServiceSideModelGraphsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SpanDrillDownService_GetServiceSideModelGraphsClient = grpc.ServerStreamingClient[GetServiceSideModelGraphsResponse] // SpanDrillDownServiceServer is the server API for SpanDrillDownService service. // All implementations must embed UnimplementedSpanDrillDownServiceServer -// for forward compatibility +// for forward compatibility. type SpanDrillDownServiceServer interface { - GetServiceSideModelGraphs(*GetServiceSideModelGraphsRequest, SpanDrillDownService_GetServiceSideModelGraphsServer) error + GetServiceSideModelGraphs(*GetServiceSideModelGraphsRequest, grpc.ServerStreamingServer[GetServiceSideModelGraphsResponse]) error mustEmbedUnimplementedSpanDrillDownServiceServer() } -// UnimplementedSpanDrillDownServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSpanDrillDownServiceServer struct { -} +// UnimplementedSpanDrillDownServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSpanDrillDownServiceServer struct{} -func (UnimplementedSpanDrillDownServiceServer) GetServiceSideModelGraphs(*GetServiceSideModelGraphsRequest, SpanDrillDownService_GetServiceSideModelGraphsServer) error { +func (UnimplementedSpanDrillDownServiceServer) GetServiceSideModelGraphs(*GetServiceSideModelGraphsRequest, grpc.ServerStreamingServer[GetServiceSideModelGraphsResponse]) error { return status.Errorf(codes.Unimplemented, "method GetServiceSideModelGraphs not implemented") } func (UnimplementedSpanDrillDownServiceServer) mustEmbedUnimplementedSpanDrillDownServiceServer() {} +func (UnimplementedSpanDrillDownServiceServer) testEmbeddedByValue() {} // UnsafeSpanDrillDownServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SpanDrillDownServiceServer will @@ -94,6 +85,13 @@ type UnsafeSpanDrillDownServiceServer interface { } func RegisterSpanDrillDownServiceServer(s grpc.ServiceRegistrar, srv SpanDrillDownServiceServer) { + // If the following call pancis, it indicates UnimplementedSpanDrillDownServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SpanDrillDownService_ServiceDesc, srv) } @@ -102,21 +100,11 @@ func _SpanDrillDownService_GetServiceSideModelGraphs_Handler(srv interface{}, st if err := stream.RecvMsg(m); err != nil { return err } - return srv.(SpanDrillDownServiceServer).GetServiceSideModelGraphs(m, &spanDrillDownServiceGetServiceSideModelGraphsServer{stream}) -} - -type SpanDrillDownService_GetServiceSideModelGraphsServer interface { - Send(*GetServiceSideModelGraphsResponse) error - grpc.ServerStream + return srv.(SpanDrillDownServiceServer).GetServiceSideModelGraphs(m, &grpc.GenericServerStream[GetServiceSideModelGraphsRequest, GetServiceSideModelGraphsResponse]{ServerStream: stream}) } -type spanDrillDownServiceGetServiceSideModelGraphsServer struct { - grpc.ServerStream -} - -func (x *spanDrillDownServiceGetServiceSideModelGraphsServer) Send(m *GetServiceSideModelGraphsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type SpanDrillDownService_GetServiceSideModelGraphsServer = grpc.ServerStreamingServer[GetServiceSideModelGraphsResponse] // SpanDrillDownService_ServiceDesc is the grpc.ServiceDesc for SpanDrillDownService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/catalog/v1/span_kind.pb.go b/go/internal/coralogix/catalog/v1/span_kind.pb.go index 68a6c854..f98f335f 100644 --- a/go/internal/coralogix/catalog/v1/span_kind.pb.go +++ b/go/internal/coralogix/catalog/v1/span_kind.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/catalog/v1/span_kind.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/transaction.pb.go b/go/internal/coralogix/catalog/v1/transaction.pb.go index af0ce51a..5215f6be 100644 --- a/go/internal/coralogix/catalog/v1/transaction.pb.go +++ b/go/internal/coralogix/catalog/v1/transaction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/transaction.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/transaction_service.pb.go b/go/internal/coralogix/catalog/v1/transaction_service.pb.go index 68768e4d..7808bf5f 100644 --- a/go/internal/coralogix/catalog/v1/transaction_service.pb.go +++ b/go/internal/coralogix/catalog/v1/transaction_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/transaction_service.proto package v1 diff --git a/go/internal/coralogix/catalog/v1/transaction_service_grpc.pb.go b/go/internal/coralogix/catalog/v1/transaction_service_grpc.pb.go index 8946ee50..30ff30fe 100644 --- a/go/internal/coralogix/catalog/v1/transaction_service_grpc.pb.go +++ b/go/internal/coralogix/catalog/v1/transaction_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/service_catalog/v1/transaction_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TransactionService_GetTransactionsMetricStream_FullMethodName = "/com.coralogixapis.service_catalog.v1.TransactionService/GetTransactionsMetricStream" @@ -46,10 +46,10 @@ const ( // // 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 TransactionServiceClient interface { - GetTransactionsMetricStream(ctx context.Context, in *GetTransactionsMetricStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionsMetricStreamClient, error) + GetTransactionsMetricStream(ctx context.Context, in *GetTransactionsMetricStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsMetricStreamResponse], error) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error) - GetTransactionMetricStream(ctx context.Context, in *GetTransactionMetricStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionMetricStreamClient, error) + GetTransactionMetricStream(ctx context.Context, in *GetTransactionMetricStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionMetricStreamResponse], error) GetTransactionsResponseTime(ctx context.Context, in *GetTransactionsResponseTimeRequest, opts ...grpc.CallOption) (*GetTransactionsResponseTimeResponse, error) GetTransactionsErrors(ctx context.Context, in *GetTransactionsErrorsRequest, opts ...grpc.CallOption) (*GetTransactionsErrorsResponse, error) GetTransactionsThroughput(ctx context.Context, in *GetTransactionsThroughputRequest, opts ...grpc.CallOption) (*GetTransactionsThroughputResponse, error) @@ -63,9 +63,9 @@ type TransactionServiceClient interface { GetSegmentPercentilesGraph(ctx context.Context, in *GetSegmentPercentilesGraphRequest, opts ...grpc.CallOption) (*GetSegmentPercentilesGraphResponse, error) GetSegmentRequestsAndErrors(ctx context.Context, in *GetSegmentRequestsAndErrorsRequest, opts ...grpc.CallOption) (*GetSegmentRequestsAndErrorsResponse, error) GetSegmentStats(ctx context.Context, in *GetSegmentStatsRequest, opts ...grpc.CallOption) (*GetSegmentStatsResponse, error) - GetTransactionsErrorsStream(ctx context.Context, in *GetTransactionsErrorsStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionsErrorsStreamClient, error) - GetTransactionSegmentsErrorStream(ctx context.Context, in *GetTransactionSegmentsErrorStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionSegmentsErrorStreamClient, error) - GetTransactionLatencyGraphStream(ctx context.Context, in *GetTransactionLatencyGraphStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionLatencyGraphStreamClient, error) + GetTransactionsErrorsStream(ctx context.Context, in *GetTransactionsErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsErrorsStreamResponse], error) + GetTransactionSegmentsErrorStream(ctx context.Context, in *GetTransactionSegmentsErrorStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionSegmentsErrorStreamResponse], error) + GetTransactionLatencyGraphStream(ctx context.Context, in *GetTransactionLatencyGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionLatencyGraphStreamResponse], error) GetTransactionsTimeConsumingGraph(ctx context.Context, in *GetTransactionsTimeConsumingGraphRequest, opts ...grpc.CallOption) (*GetTransactionsTimeConsumingGraphResponse, error) } @@ -77,12 +77,13 @@ func NewTransactionServiceClient(cc grpc.ClientConnInterface) TransactionService return &transactionServiceClient{cc} } -func (c *transactionServiceClient) GetTransactionsMetricStream(ctx context.Context, in *GetTransactionsMetricStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionsMetricStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[0], TransactionService_GetTransactionsMetricStream_FullMethodName, opts...) +func (c *transactionServiceClient) GetTransactionsMetricStream(ctx context.Context, in *GetTransactionsMetricStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsMetricStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[0], TransactionService_GetTransactionsMetricStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionServiceGetTransactionsMetricStreamClient{stream} + x := &grpc.GenericClientStream[GetTransactionsMetricStreamRequest, GetTransactionsMetricStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -92,26 +93,13 @@ func (c *transactionServiceClient) GetTransactionsMetricStream(ctx context.Conte return x, nil } -type TransactionService_GetTransactionsMetricStreamClient interface { - Recv() (*GetTransactionsMetricStreamResponse, error) - grpc.ClientStream -} - -type transactionServiceGetTransactionsMetricStreamClient struct { - grpc.ClientStream -} - -func (x *transactionServiceGetTransactionsMetricStreamClient) Recv() (*GetTransactionsMetricStreamResponse, error) { - m := new(GetTransactionsMetricStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionsMetricStreamClient = grpc.ServerStreamingClient[GetTransactionsMetricStreamResponse] func (c *transactionServiceClient) GetTransaction(ctx context.Context, in *GetTransactionRequest, opts ...grpc.CallOption) (*GetTransactionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransaction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransaction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -119,20 +107,22 @@ func (c *transactionServiceClient) GetTransaction(ctx context.Context, in *GetTr } func (c *transactionServiceClient) ListTransactions(ctx context.Context, in *ListTransactionsRequest, opts ...grpc.CallOption) (*ListTransactionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTransactionsResponse) - err := c.cc.Invoke(ctx, TransactionService_ListTransactions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_ListTransactions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *transactionServiceClient) GetTransactionMetricStream(ctx context.Context, in *GetTransactionMetricStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionMetricStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[1], TransactionService_GetTransactionMetricStream_FullMethodName, opts...) +func (c *transactionServiceClient) GetTransactionMetricStream(ctx context.Context, in *GetTransactionMetricStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionMetricStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[1], TransactionService_GetTransactionMetricStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionServiceGetTransactionMetricStreamClient{stream} + x := &grpc.GenericClientStream[GetTransactionMetricStreamRequest, GetTransactionMetricStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -142,26 +132,13 @@ func (c *transactionServiceClient) GetTransactionMetricStream(ctx context.Contex return x, nil } -type TransactionService_GetTransactionMetricStreamClient interface { - Recv() (*GetTransactionMetricStreamResponse, error) - grpc.ClientStream -} - -type transactionServiceGetTransactionMetricStreamClient struct { - grpc.ClientStream -} - -func (x *transactionServiceGetTransactionMetricStreamClient) Recv() (*GetTransactionMetricStreamResponse, error) { - m := new(GetTransactionMetricStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionMetricStreamClient = grpc.ServerStreamingClient[GetTransactionMetricStreamResponse] func (c *transactionServiceClient) GetTransactionsResponseTime(ctx context.Context, in *GetTransactionsResponseTimeRequest, opts ...grpc.CallOption) (*GetTransactionsResponseTimeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionsResponseTimeResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionsResponseTime_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionsResponseTime_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -169,8 +146,9 @@ func (c *transactionServiceClient) GetTransactionsResponseTime(ctx context.Conte } func (c *transactionServiceClient) GetTransactionsErrors(ctx context.Context, in *GetTransactionsErrorsRequest, opts ...grpc.CallOption) (*GetTransactionsErrorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionsErrorsResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionsErrors_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionsErrors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -178,8 +156,9 @@ func (c *transactionServiceClient) GetTransactionsErrors(ctx context.Context, in } func (c *transactionServiceClient) GetTransactionsThroughput(ctx context.Context, in *GetTransactionsThroughputRequest, opts ...grpc.CallOption) (*GetTransactionsThroughputResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionsThroughputResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionsThroughput_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionsThroughput_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -187,8 +166,9 @@ func (c *transactionServiceClient) GetTransactionsThroughput(ctx context.Context } func (c *transactionServiceClient) GetExampleTraceID(ctx context.Context, in *GetExampleTraceIDRequest, opts ...grpc.CallOption) (*GetExampleTraceIDResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExampleTraceIDResponse) - err := c.cc.Invoke(ctx, TransactionService_GetExampleTraceID_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetExampleTraceID_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -196,8 +176,9 @@ func (c *transactionServiceClient) GetExampleTraceID(ctx context.Context, in *Ge } func (c *transactionServiceClient) ListSegments(ctx context.Context, in *ListSegmentsRequest, opts ...grpc.CallOption) (*ListSegmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSegmentsResponse) - err := c.cc.Invoke(ctx, TransactionService_ListSegments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_ListSegments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -205,8 +186,9 @@ func (c *transactionServiceClient) ListSegments(ctx context.Context, in *ListSeg } func (c *transactionServiceClient) ListSegmentsBreakdown(ctx context.Context, in *ListSegmentsBreakdownRequest, opts ...grpc.CallOption) (*ListSegmentsBreakdownResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSegmentsBreakdownResponse) - err := c.cc.Invoke(ctx, TransactionService_ListSegmentsBreakdown_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_ListSegmentsBreakdown_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -214,8 +196,9 @@ func (c *transactionServiceClient) ListSegmentsBreakdown(ctx context.Context, in } func (c *transactionServiceClient) GetTransactionSegmentsResponseTime(ctx context.Context, in *GetTransactionSegmentsResponseTimeRequest, opts ...grpc.CallOption) (*GetTransactionSegmentsResponseTimeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionSegmentsResponseTimeResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionSegmentsResponseTime_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionSegmentsResponseTime_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -223,8 +206,9 @@ func (c *transactionServiceClient) GetTransactionSegmentsResponseTime(ctx contex } func (c *transactionServiceClient) GetTransactionSegmentsError(ctx context.Context, in *GetTransactionSegmentsErrorRequest, opts ...grpc.CallOption) (*GetTransactionSegmentsErrorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionSegmentsErrorResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionSegmentsError_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionSegmentsError_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -232,8 +216,9 @@ func (c *transactionServiceClient) GetTransactionSegmentsError(ctx context.Conte } func (c *transactionServiceClient) GetTransactionThroughput(ctx context.Context, in *GetTransactionThroughputRequest, opts ...grpc.CallOption) (*GetTransactionThroughputResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionThroughputResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionThroughput_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionThroughput_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -241,8 +226,9 @@ func (c *transactionServiceClient) GetTransactionThroughput(ctx context.Context, } func (c *transactionServiceClient) GetSegmentPercentiles(ctx context.Context, in *GetSegmentPercentilesRequest, opts ...grpc.CallOption) (*GetSegmentPercentilesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSegmentPercentilesResponse) - err := c.cc.Invoke(ctx, TransactionService_GetSegmentPercentiles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetSegmentPercentiles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -250,8 +236,9 @@ func (c *transactionServiceClient) GetSegmentPercentiles(ctx context.Context, in } func (c *transactionServiceClient) GetSegmentPercentilesGraph(ctx context.Context, in *GetSegmentPercentilesGraphRequest, opts ...grpc.CallOption) (*GetSegmentPercentilesGraphResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSegmentPercentilesGraphResponse) - err := c.cc.Invoke(ctx, TransactionService_GetSegmentPercentilesGraph_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetSegmentPercentilesGraph_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -259,8 +246,9 @@ func (c *transactionServiceClient) GetSegmentPercentilesGraph(ctx context.Contex } func (c *transactionServiceClient) GetSegmentRequestsAndErrors(ctx context.Context, in *GetSegmentRequestsAndErrorsRequest, opts ...grpc.CallOption) (*GetSegmentRequestsAndErrorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSegmentRequestsAndErrorsResponse) - err := c.cc.Invoke(ctx, TransactionService_GetSegmentRequestsAndErrors_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetSegmentRequestsAndErrors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -268,20 +256,22 @@ func (c *transactionServiceClient) GetSegmentRequestsAndErrors(ctx context.Conte } func (c *transactionServiceClient) GetSegmentStats(ctx context.Context, in *GetSegmentStatsRequest, opts ...grpc.CallOption) (*GetSegmentStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSegmentStatsResponse) - err := c.cc.Invoke(ctx, TransactionService_GetSegmentStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetSegmentStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *transactionServiceClient) GetTransactionsErrorsStream(ctx context.Context, in *GetTransactionsErrorsStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionsErrorsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[2], TransactionService_GetTransactionsErrorsStream_FullMethodName, opts...) +func (c *transactionServiceClient) GetTransactionsErrorsStream(ctx context.Context, in *GetTransactionsErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionsErrorsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[2], TransactionService_GetTransactionsErrorsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionServiceGetTransactionsErrorsStreamClient{stream} + x := &grpc.GenericClientStream[GetTransactionsErrorsStreamRequest, GetTransactionsErrorsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -291,29 +281,16 @@ func (c *transactionServiceClient) GetTransactionsErrorsStream(ctx context.Conte return x, nil } -type TransactionService_GetTransactionsErrorsStreamClient interface { - Recv() (*GetTransactionsErrorsStreamResponse, error) - grpc.ClientStream -} - -type transactionServiceGetTransactionsErrorsStreamClient struct { - grpc.ClientStream -} - -func (x *transactionServiceGetTransactionsErrorsStreamClient) Recv() (*GetTransactionsErrorsStreamResponse, error) { - m := new(GetTransactionsErrorsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionsErrorsStreamClient = grpc.ServerStreamingClient[GetTransactionsErrorsStreamResponse] -func (c *transactionServiceClient) GetTransactionSegmentsErrorStream(ctx context.Context, in *GetTransactionSegmentsErrorStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionSegmentsErrorStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[3], TransactionService_GetTransactionSegmentsErrorStream_FullMethodName, opts...) +func (c *transactionServiceClient) GetTransactionSegmentsErrorStream(ctx context.Context, in *GetTransactionSegmentsErrorStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionSegmentsErrorStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[3], TransactionService_GetTransactionSegmentsErrorStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionServiceGetTransactionSegmentsErrorStreamClient{stream} + x := &grpc.GenericClientStream[GetTransactionSegmentsErrorStreamRequest, GetTransactionSegmentsErrorStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -323,29 +300,16 @@ func (c *transactionServiceClient) GetTransactionSegmentsErrorStream(ctx context return x, nil } -type TransactionService_GetTransactionSegmentsErrorStreamClient interface { - Recv() (*GetTransactionSegmentsErrorStreamResponse, error) - grpc.ClientStream -} - -type transactionServiceGetTransactionSegmentsErrorStreamClient struct { - grpc.ClientStream -} - -func (x *transactionServiceGetTransactionSegmentsErrorStreamClient) Recv() (*GetTransactionSegmentsErrorStreamResponse, error) { - m := new(GetTransactionSegmentsErrorStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionSegmentsErrorStreamClient = grpc.ServerStreamingClient[GetTransactionSegmentsErrorStreamResponse] -func (c *transactionServiceClient) GetTransactionLatencyGraphStream(ctx context.Context, in *GetTransactionLatencyGraphStreamRequest, opts ...grpc.CallOption) (TransactionService_GetTransactionLatencyGraphStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[4], TransactionService_GetTransactionLatencyGraphStream_FullMethodName, opts...) +func (c *transactionServiceClient) GetTransactionLatencyGraphStream(ctx context.Context, in *GetTransactionLatencyGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTransactionLatencyGraphStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &TransactionService_ServiceDesc.Streams[4], TransactionService_GetTransactionLatencyGraphStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &transactionServiceGetTransactionLatencyGraphStreamClient{stream} + x := &grpc.GenericClientStream[GetTransactionLatencyGraphStreamRequest, GetTransactionLatencyGraphStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -355,26 +319,13 @@ func (c *transactionServiceClient) GetTransactionLatencyGraphStream(ctx context. return x, nil } -type TransactionService_GetTransactionLatencyGraphStreamClient interface { - Recv() (*GetTransactionLatencyGraphStreamResponse, error) - grpc.ClientStream -} - -type transactionServiceGetTransactionLatencyGraphStreamClient struct { - grpc.ClientStream -} - -func (x *transactionServiceGetTransactionLatencyGraphStreamClient) Recv() (*GetTransactionLatencyGraphStreamResponse, error) { - m := new(GetTransactionLatencyGraphStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionLatencyGraphStreamClient = grpc.ServerStreamingClient[GetTransactionLatencyGraphStreamResponse] func (c *transactionServiceClient) GetTransactionsTimeConsumingGraph(ctx context.Context, in *GetTransactionsTimeConsumingGraphRequest, opts ...grpc.CallOption) (*GetTransactionsTimeConsumingGraphResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTransactionsTimeConsumingGraphResponse) - err := c.cc.Invoke(ctx, TransactionService_GetTransactionsTimeConsumingGraph_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TransactionService_GetTransactionsTimeConsumingGraph_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -383,12 +334,12 @@ func (c *transactionServiceClient) GetTransactionsTimeConsumingGraph(ctx context // TransactionServiceServer is the server API for TransactionService service. // All implementations must embed UnimplementedTransactionServiceServer -// for forward compatibility +// for forward compatibility. type TransactionServiceServer interface { - GetTransactionsMetricStream(*GetTransactionsMetricStreamRequest, TransactionService_GetTransactionsMetricStreamServer) error + GetTransactionsMetricStream(*GetTransactionsMetricStreamRequest, grpc.ServerStreamingServer[GetTransactionsMetricStreamResponse]) error GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) ListTransactions(context.Context, *ListTransactionsRequest) (*ListTransactionsResponse, error) - GetTransactionMetricStream(*GetTransactionMetricStreamRequest, TransactionService_GetTransactionMetricStreamServer) error + GetTransactionMetricStream(*GetTransactionMetricStreamRequest, grpc.ServerStreamingServer[GetTransactionMetricStreamResponse]) error GetTransactionsResponseTime(context.Context, *GetTransactionsResponseTimeRequest) (*GetTransactionsResponseTimeResponse, error) GetTransactionsErrors(context.Context, *GetTransactionsErrorsRequest) (*GetTransactionsErrorsResponse, error) GetTransactionsThroughput(context.Context, *GetTransactionsThroughputRequest) (*GetTransactionsThroughputResponse, error) @@ -402,18 +353,21 @@ type TransactionServiceServer interface { GetSegmentPercentilesGraph(context.Context, *GetSegmentPercentilesGraphRequest) (*GetSegmentPercentilesGraphResponse, error) GetSegmentRequestsAndErrors(context.Context, *GetSegmentRequestsAndErrorsRequest) (*GetSegmentRequestsAndErrorsResponse, error) GetSegmentStats(context.Context, *GetSegmentStatsRequest) (*GetSegmentStatsResponse, error) - GetTransactionsErrorsStream(*GetTransactionsErrorsStreamRequest, TransactionService_GetTransactionsErrorsStreamServer) error - GetTransactionSegmentsErrorStream(*GetTransactionSegmentsErrorStreamRequest, TransactionService_GetTransactionSegmentsErrorStreamServer) error - GetTransactionLatencyGraphStream(*GetTransactionLatencyGraphStreamRequest, TransactionService_GetTransactionLatencyGraphStreamServer) error + GetTransactionsErrorsStream(*GetTransactionsErrorsStreamRequest, grpc.ServerStreamingServer[GetTransactionsErrorsStreamResponse]) error + GetTransactionSegmentsErrorStream(*GetTransactionSegmentsErrorStreamRequest, grpc.ServerStreamingServer[GetTransactionSegmentsErrorStreamResponse]) error + GetTransactionLatencyGraphStream(*GetTransactionLatencyGraphStreamRequest, grpc.ServerStreamingServer[GetTransactionLatencyGraphStreamResponse]) error GetTransactionsTimeConsumingGraph(context.Context, *GetTransactionsTimeConsumingGraphRequest) (*GetTransactionsTimeConsumingGraphResponse, error) mustEmbedUnimplementedTransactionServiceServer() } -// UnimplementedTransactionServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTransactionServiceServer struct { -} +// UnimplementedTransactionServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTransactionServiceServer struct{} -func (UnimplementedTransactionServiceServer) GetTransactionsMetricStream(*GetTransactionsMetricStreamRequest, TransactionService_GetTransactionsMetricStreamServer) error { +func (UnimplementedTransactionServiceServer) GetTransactionsMetricStream(*GetTransactionsMetricStreamRequest, grpc.ServerStreamingServer[GetTransactionsMetricStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionsMetricStream not implemented") } func (UnimplementedTransactionServiceServer) GetTransaction(context.Context, *GetTransactionRequest) (*GetTransactionResponse, error) { @@ -422,7 +376,7 @@ func (UnimplementedTransactionServiceServer) GetTransaction(context.Context, *Ge func (UnimplementedTransactionServiceServer) ListTransactions(context.Context, *ListTransactionsRequest) (*ListTransactionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListTransactions not implemented") } -func (UnimplementedTransactionServiceServer) GetTransactionMetricStream(*GetTransactionMetricStreamRequest, TransactionService_GetTransactionMetricStreamServer) error { +func (UnimplementedTransactionServiceServer) GetTransactionMetricStream(*GetTransactionMetricStreamRequest, grpc.ServerStreamingServer[GetTransactionMetricStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionMetricStream not implemented") } func (UnimplementedTransactionServiceServer) GetTransactionsResponseTime(context.Context, *GetTransactionsResponseTimeRequest) (*GetTransactionsResponseTimeResponse, error) { @@ -464,19 +418,20 @@ func (UnimplementedTransactionServiceServer) GetSegmentRequestsAndErrors(context func (UnimplementedTransactionServiceServer) GetSegmentStats(context.Context, *GetSegmentStatsRequest) (*GetSegmentStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSegmentStats not implemented") } -func (UnimplementedTransactionServiceServer) GetTransactionsErrorsStream(*GetTransactionsErrorsStreamRequest, TransactionService_GetTransactionsErrorsStreamServer) error { +func (UnimplementedTransactionServiceServer) GetTransactionsErrorsStream(*GetTransactionsErrorsStreamRequest, grpc.ServerStreamingServer[GetTransactionsErrorsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionsErrorsStream not implemented") } -func (UnimplementedTransactionServiceServer) GetTransactionSegmentsErrorStream(*GetTransactionSegmentsErrorStreamRequest, TransactionService_GetTransactionSegmentsErrorStreamServer) error { +func (UnimplementedTransactionServiceServer) GetTransactionSegmentsErrorStream(*GetTransactionSegmentsErrorStreamRequest, grpc.ServerStreamingServer[GetTransactionSegmentsErrorStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionSegmentsErrorStream not implemented") } -func (UnimplementedTransactionServiceServer) GetTransactionLatencyGraphStream(*GetTransactionLatencyGraphStreamRequest, TransactionService_GetTransactionLatencyGraphStreamServer) error { +func (UnimplementedTransactionServiceServer) GetTransactionLatencyGraphStream(*GetTransactionLatencyGraphStreamRequest, grpc.ServerStreamingServer[GetTransactionLatencyGraphStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTransactionLatencyGraphStream not implemented") } func (UnimplementedTransactionServiceServer) GetTransactionsTimeConsumingGraph(context.Context, *GetTransactionsTimeConsumingGraphRequest) (*GetTransactionsTimeConsumingGraphResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTransactionsTimeConsumingGraph not implemented") } func (UnimplementedTransactionServiceServer) mustEmbedUnimplementedTransactionServiceServer() {} +func (UnimplementedTransactionServiceServer) testEmbeddedByValue() {} // UnsafeTransactionServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TransactionServiceServer will @@ -486,6 +441,13 @@ type UnsafeTransactionServiceServer interface { } func RegisterTransactionServiceServer(s grpc.ServiceRegistrar, srv TransactionServiceServer) { + // If the following call pancis, it indicates UnimplementedTransactionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TransactionService_ServiceDesc, srv) } @@ -494,21 +456,11 @@ func _TransactionService_GetTransactionsMetricStream_Handler(srv interface{}, st if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionServiceServer).GetTransactionsMetricStream(m, &transactionServiceGetTransactionsMetricStreamServer{stream}) -} - -type TransactionService_GetTransactionsMetricStreamServer interface { - Send(*GetTransactionsMetricStreamResponse) error - grpc.ServerStream + return srv.(TransactionServiceServer).GetTransactionsMetricStream(m, &grpc.GenericServerStream[GetTransactionsMetricStreamRequest, GetTransactionsMetricStreamResponse]{ServerStream: stream}) } -type transactionServiceGetTransactionsMetricStreamServer struct { - grpc.ServerStream -} - -func (x *transactionServiceGetTransactionsMetricStreamServer) Send(m *GetTransactionsMetricStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionsMetricStreamServer = grpc.ServerStreamingServer[GetTransactionsMetricStreamResponse] func _TransactionService_GetTransaction_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetTransactionRequest) @@ -551,21 +503,11 @@ func _TransactionService_GetTransactionMetricStream_Handler(srv interface{}, str if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionServiceServer).GetTransactionMetricStream(m, &transactionServiceGetTransactionMetricStreamServer{stream}) -} - -type TransactionService_GetTransactionMetricStreamServer interface { - Send(*GetTransactionMetricStreamResponse) error - grpc.ServerStream -} - -type transactionServiceGetTransactionMetricStreamServer struct { - grpc.ServerStream + return srv.(TransactionServiceServer).GetTransactionMetricStream(m, &grpc.GenericServerStream[GetTransactionMetricStreamRequest, GetTransactionMetricStreamResponse]{ServerStream: stream}) } -func (x *transactionServiceGetTransactionMetricStreamServer) Send(m *GetTransactionMetricStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionMetricStreamServer = grpc.ServerStreamingServer[GetTransactionMetricStreamResponse] func _TransactionService_GetTransactionsResponseTime_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetTransactionsResponseTimeRequest) @@ -806,63 +748,33 @@ func _TransactionService_GetTransactionsErrorsStream_Handler(srv interface{}, st if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionServiceServer).GetTransactionsErrorsStream(m, &transactionServiceGetTransactionsErrorsStreamServer{stream}) + return srv.(TransactionServiceServer).GetTransactionsErrorsStream(m, &grpc.GenericServerStream[GetTransactionsErrorsStreamRequest, GetTransactionsErrorsStreamResponse]{ServerStream: stream}) } -type TransactionService_GetTransactionsErrorsStreamServer interface { - Send(*GetTransactionsErrorsStreamResponse) error - grpc.ServerStream -} - -type transactionServiceGetTransactionsErrorsStreamServer struct { - grpc.ServerStream -} - -func (x *transactionServiceGetTransactionsErrorsStreamServer) Send(m *GetTransactionsErrorsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionsErrorsStreamServer = grpc.ServerStreamingServer[GetTransactionsErrorsStreamResponse] func _TransactionService_GetTransactionSegmentsErrorStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetTransactionSegmentsErrorStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionServiceServer).GetTransactionSegmentsErrorStream(m, &transactionServiceGetTransactionSegmentsErrorStreamServer{stream}) -} - -type TransactionService_GetTransactionSegmentsErrorStreamServer interface { - Send(*GetTransactionSegmentsErrorStreamResponse) error - grpc.ServerStream + return srv.(TransactionServiceServer).GetTransactionSegmentsErrorStream(m, &grpc.GenericServerStream[GetTransactionSegmentsErrorStreamRequest, GetTransactionSegmentsErrorStreamResponse]{ServerStream: stream}) } -type transactionServiceGetTransactionSegmentsErrorStreamServer struct { - grpc.ServerStream -} - -func (x *transactionServiceGetTransactionSegmentsErrorStreamServer) Send(m *GetTransactionSegmentsErrorStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionSegmentsErrorStreamServer = grpc.ServerStreamingServer[GetTransactionSegmentsErrorStreamResponse] func _TransactionService_GetTransactionLatencyGraphStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetTransactionLatencyGraphStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(TransactionServiceServer).GetTransactionLatencyGraphStream(m, &transactionServiceGetTransactionLatencyGraphStreamServer{stream}) -} - -type TransactionService_GetTransactionLatencyGraphStreamServer interface { - Send(*GetTransactionLatencyGraphStreamResponse) error - grpc.ServerStream + return srv.(TransactionServiceServer).GetTransactionLatencyGraphStream(m, &grpc.GenericServerStream[GetTransactionLatencyGraphStreamRequest, GetTransactionLatencyGraphStreamResponse]{ServerStream: stream}) } -type transactionServiceGetTransactionLatencyGraphStreamServer struct { - grpc.ServerStream -} - -func (x *transactionServiceGetTransactionLatencyGraphStreamServer) Send(m *GetTransactionLatencyGraphStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type TransactionService_GetTransactionLatencyGraphStreamServer = grpc.ServerStreamingServer[GetTransactionLatencyGraphStreamResponse] func _TransactionService_GetTransactionsTimeConsumingGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetTransactionsTimeConsumingGraphRequest) diff --git a/go/internal/coralogix/common/v1/audit_log.pb.go b/go/internal/coralogix/common/v1/audit_log.pb.go index 5ddf68d1..dba61aab 100644 --- a/go/internal/coralogix/common/v1/audit_log.pb.go +++ b/go/internal/coralogix/common/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/common/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/audit_log.pb.go b/go/internal/coralogix/datausage/v1/audit_log.pb.go index 97057fc1..b523f2b0 100644 --- a/go/internal/coralogix/datausage/v1/audit_log.pb.go +++ b/go/internal/coralogix/datausage/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/common.pb.go b/go/internal/coralogix/datausage/v1/common.pb.go index 18a2fc22..52407f45 100644 --- a/go/internal/coralogix/datausage/v1/common.pb.go +++ b/go/internal/coralogix/datausage/v1/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/common.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/daily_usage.pb.go b/go/internal/coralogix/datausage/v1/daily_usage.pb.go index b71156f8..be754b9e 100644 --- a/go/internal/coralogix/datausage/v1/daily_usage.pb.go +++ b/go/internal/coralogix/datausage/v1/daily_usage.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/daily_usage.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/daily_usage_service.pb.go b/go/internal/coralogix/datausage/v1/daily_usage_service.pb.go index 662a5455..4c63add4 100644 --- a/go/internal/coralogix/datausage/v1/daily_usage_service.pb.go +++ b/go/internal/coralogix/datausage/v1/daily_usage_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/daily_usage_service.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/daily_usage_service_grpc.pb.go b/go/internal/coralogix/datausage/v1/daily_usage_service_grpc.pb.go index 4ce72adc..2cb4582d 100644 --- a/go/internal/coralogix/datausage/v1/daily_usage_service_grpc.pb.go +++ b/go/internal/coralogix/datausage/v1/daily_usage_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/datausage/v1/daily_usage_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DailyUsageService_DailyUsage_FullMethodName = "/com.coralogix.datausage.v1.DailyUsageService/DailyUsage" @@ -26,6 +26,8 @@ const ( // DailyUsageServiceClient is the client API for DailyUsageService 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. +// +// / Legacy data usage API for backwards compatibility with web-api type DailyUsageServiceClient interface { // /Endpoint to fetch daily usage DailyUsage(ctx context.Context, in *DailyUsageRequest, opts ...grpc.CallOption) (*DailyUsageResponse, error) @@ -42,8 +44,9 @@ func NewDailyUsageServiceClient(cc grpc.ClientConnInterface) DailyUsageServiceCl } func (c *dailyUsageServiceClient) DailyUsage(ctx context.Context, in *DailyUsageRequest, opts ...grpc.CallOption) (*DailyUsageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DailyUsageResponse) - err := c.cc.Invoke(ctx, DailyUsageService_DailyUsage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DailyUsageService_DailyUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +54,9 @@ func (c *dailyUsageServiceClient) DailyUsage(ctx context.Context, in *DailyUsage } func (c *dailyUsageServiceClient) OverageDailyUsage(ctx context.Context, in *OverageDailyUsageRequest, opts ...grpc.CallOption) (*OverageDailyUsageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OverageDailyUsageResponse) - err := c.cc.Invoke(ctx, DailyUsageService_OverageDailyUsage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DailyUsageService_OverageDailyUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,7 +65,9 @@ func (c *dailyUsageServiceClient) OverageDailyUsage(ctx context.Context, in *Ove // DailyUsageServiceServer is the server API for DailyUsageService service. // All implementations must embed UnimplementedDailyUsageServiceServer -// for forward compatibility +// for forward compatibility. +// +// / Legacy data usage API for backwards compatibility with web-api type DailyUsageServiceServer interface { // /Endpoint to fetch daily usage DailyUsage(context.Context, *DailyUsageRequest) (*DailyUsageResponse, error) @@ -70,9 +76,12 @@ type DailyUsageServiceServer interface { mustEmbedUnimplementedDailyUsageServiceServer() } -// UnimplementedDailyUsageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDailyUsageServiceServer struct { -} +// UnimplementedDailyUsageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDailyUsageServiceServer struct{} func (UnimplementedDailyUsageServiceServer) DailyUsage(context.Context, *DailyUsageRequest) (*DailyUsageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DailyUsage not implemented") @@ -81,6 +90,7 @@ func (UnimplementedDailyUsageServiceServer) OverageDailyUsage(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method OverageDailyUsage not implemented") } func (UnimplementedDailyUsageServiceServer) mustEmbedUnimplementedDailyUsageServiceServer() {} +func (UnimplementedDailyUsageServiceServer) testEmbeddedByValue() {} // UnsafeDailyUsageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DailyUsageServiceServer will @@ -90,6 +100,13 @@ type UnsafeDailyUsageServiceServer interface { } func RegisterDailyUsageServiceServer(s grpc.ServiceRegistrar, srv DailyUsageServiceServer) { + // If the following call pancis, it indicates UnimplementedDailyUsageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DailyUsageService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/datausage/v1/data_usage.pb.go b/go/internal/coralogix/datausage/v1/data_usage.pb.go index 80717905..17d52073 100644 --- a/go/internal/coralogix/datausage/v1/data_usage.pb.go +++ b/go/internal/coralogix/datausage/v1/data_usage.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/data_usage.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/data_usage_service.pb.go b/go/internal/coralogix/datausage/v1/data_usage_service.pb.go index 81850826..72a98f8c 100644 --- a/go/internal/coralogix/datausage/v1/data_usage_service.pb.go +++ b/go/internal/coralogix/datausage/v1/data_usage_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v1/data_usage_service.proto package v1 diff --git a/go/internal/coralogix/datausage/v1/data_usage_service_grpc.pb.go b/go/internal/coralogix/datausage/v1/data_usage_service_grpc.pb.go index 1f3be328..4dfb865f 100644 --- a/go/internal/coralogix/datausage/v1/data_usage_service_grpc.pb.go +++ b/go/internal/coralogix/datausage/v1/data_usage_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/datausage/v1/data_usage_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataUsageService_GetTeamsDailyUsage_FullMethodName = "/com.coralogix.datausage.v1.DataUsageService/GetTeamsDailyUsage" @@ -42,11 +42,11 @@ type DataUsageServiceClient interface { // / Returns the quota plan for a given set of teams at the requested timestamp GetTeamsQuota(ctx context.Context, in *GetTeamsQuotaRequest, opts ...grpc.CallOption) (*GetTeamsQuotaResponse, error) // Deprecated: Do not use. - GetTeamsDetailedUsage(ctx context.Context, in *GetTeamsDetailedUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetTeamsDetailedUsageClient, error) + GetTeamsDetailedUsage(ctx context.Context, in *GetTeamsDetailedUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTeamsDetailedUsageResponse], error) // / Returns a list of data usage for a given set of teams, time_range and resolution GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (*GetDataUsageResponse, error) - GetDetailedDataUsage(ctx context.Context, in *GetDetailedDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetDetailedDataUsageClient, error) - GetDetailedDataUsageChunked(ctx context.Context, in *GetDetailedDataUsageChunkedRequest, opts ...grpc.CallOption) (DataUsageService_GetDetailedDataUsageChunkedClient, error) + GetDetailedDataUsage(ctx context.Context, in *GetDetailedDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDetailedDataUsageResponse], error) + GetDetailedDataUsageChunked(ctx context.Context, in *GetDetailedDataUsageChunkedRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDetailedDataUsageChunkedResponse], error) } type dataUsageServiceClient struct { @@ -58,8 +58,9 @@ func NewDataUsageServiceClient(cc grpc.ClientConnInterface) DataUsageServiceClie } func (c *dataUsageServiceClient) GetTeamsDailyUsage(ctx context.Context, in *GetTeamsDailyUsageRequest, opts ...grpc.CallOption) (*GetTeamsDailyUsageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamsDailyUsageResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetTeamsDailyUsage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetTeamsDailyUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -67,8 +68,9 @@ func (c *dataUsageServiceClient) GetTeamsDailyUsage(ctx context.Context, in *Get } func (c *dataUsageServiceClient) GetTeamsBlocks(ctx context.Context, in *GetTeamsBlocksRequest, opts ...grpc.CallOption) (*GetTeamsBlocksResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamsBlocksResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetTeamsBlocks_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetTeamsBlocks_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -76,8 +78,9 @@ func (c *dataUsageServiceClient) GetTeamsBlocks(ctx context.Context, in *GetTeam } func (c *dataUsageServiceClient) GetTeamsQuotaHistory(ctx context.Context, in *GetTeamsQuotaHistoryRequest, opts ...grpc.CallOption) (*GetTeamsQuotaHistoryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamsQuotaHistoryResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetTeamsQuotaHistory_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetTeamsQuotaHistory_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,8 +88,9 @@ func (c *dataUsageServiceClient) GetTeamsQuotaHistory(ctx context.Context, in *G } func (c *dataUsageServiceClient) GetTeamsQuota(ctx context.Context, in *GetTeamsQuotaRequest, opts ...grpc.CallOption) (*GetTeamsQuotaResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamsQuotaResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetTeamsQuota_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetTeamsQuota_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -94,12 +98,13 @@ func (c *dataUsageServiceClient) GetTeamsQuota(ctx context.Context, in *GetTeams } // Deprecated: Do not use. -func (c *dataUsageServiceClient) GetTeamsDetailedUsage(ctx context.Context, in *GetTeamsDetailedUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetTeamsDetailedUsageClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[0], DataUsageService_GetTeamsDetailedUsage_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetTeamsDetailedUsage(ctx context.Context, in *GetTeamsDetailedUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTeamsDetailedUsageResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[0], DataUsageService_GetTeamsDetailedUsage_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetTeamsDetailedUsageClient{stream} + x := &grpc.GenericClientStream[GetTeamsDetailedUsageRequest, GetTeamsDetailedUsageResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -109,38 +114,26 @@ func (c *dataUsageServiceClient) GetTeamsDetailedUsage(ctx context.Context, in * return x, nil } -type DataUsageService_GetTeamsDetailedUsageClient interface { - Recv() (*GetTeamsDetailedUsageResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetTeamsDetailedUsageClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetTeamsDetailedUsageClient) Recv() (*GetTeamsDetailedUsageResponse, error) { - m := new(GetTeamsDetailedUsageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetTeamsDetailedUsageClient = grpc.ServerStreamingClient[GetTeamsDetailedUsageResponse] func (c *dataUsageServiceClient) GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (*GetDataUsageResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDataUsageResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetDataUsage_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetDataUsage_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *dataUsageServiceClient) GetDetailedDataUsage(ctx context.Context, in *GetDetailedDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetDetailedDataUsageClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[1], DataUsageService_GetDetailedDataUsage_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetDetailedDataUsage(ctx context.Context, in *GetDetailedDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDetailedDataUsageResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[1], DataUsageService_GetDetailedDataUsage_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetDetailedDataUsageClient{stream} + x := &grpc.GenericClientStream[GetDetailedDataUsageRequest, GetDetailedDataUsageResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -150,29 +143,16 @@ func (c *dataUsageServiceClient) GetDetailedDataUsage(ctx context.Context, in *G return x, nil } -type DataUsageService_GetDetailedDataUsageClient interface { - Recv() (*GetDetailedDataUsageResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetDetailedDataUsageClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetDetailedDataUsageClient) Recv() (*GetDetailedDataUsageResponse, error) { - m := new(GetDetailedDataUsageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDetailedDataUsageClient = grpc.ServerStreamingClient[GetDetailedDataUsageResponse] -func (c *dataUsageServiceClient) GetDetailedDataUsageChunked(ctx context.Context, in *GetDetailedDataUsageChunkedRequest, opts ...grpc.CallOption) (DataUsageService_GetDetailedDataUsageChunkedClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[2], DataUsageService_GetDetailedDataUsageChunked_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetDetailedDataUsageChunked(ctx context.Context, in *GetDetailedDataUsageChunkedRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDetailedDataUsageChunkedResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[2], DataUsageService_GetDetailedDataUsageChunked_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetDetailedDataUsageChunkedClient{stream} + x := &grpc.GenericClientStream[GetDetailedDataUsageChunkedRequest, GetDetailedDataUsageChunkedResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -182,26 +162,12 @@ func (c *dataUsageServiceClient) GetDetailedDataUsageChunked(ctx context.Context return x, nil } -type DataUsageService_GetDetailedDataUsageChunkedClient interface { - Recv() (*GetDetailedDataUsageChunkedResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetDetailedDataUsageChunkedClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetDetailedDataUsageChunkedClient) Recv() (*GetDetailedDataUsageChunkedResponse, error) { - m := new(GetDetailedDataUsageChunkedResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDetailedDataUsageChunkedClient = grpc.ServerStreamingClient[GetDetailedDataUsageChunkedResponse] // DataUsageServiceServer is the server API for DataUsageService service. // All implementations must embed UnimplementedDataUsageServiceServer -// for forward compatibility +// for forward compatibility. type DataUsageServiceServer interface { // / Returns a list of quota (units) used per day for a list of teams in the requested days GetTeamsDailyUsage(context.Context, *GetTeamsDailyUsageRequest) (*GetTeamsDailyUsageResponse, error) @@ -212,17 +178,20 @@ type DataUsageServiceServer interface { // / Returns the quota plan for a given set of teams at the requested timestamp GetTeamsQuota(context.Context, *GetTeamsQuotaRequest) (*GetTeamsQuotaResponse, error) // Deprecated: Do not use. - GetTeamsDetailedUsage(*GetTeamsDetailedUsageRequest, DataUsageService_GetTeamsDetailedUsageServer) error + GetTeamsDetailedUsage(*GetTeamsDetailedUsageRequest, grpc.ServerStreamingServer[GetTeamsDetailedUsageResponse]) error // / Returns a list of data usage for a given set of teams, time_range and resolution GetDataUsage(context.Context, *GetDataUsageRequest) (*GetDataUsageResponse, error) - GetDetailedDataUsage(*GetDetailedDataUsageRequest, DataUsageService_GetDetailedDataUsageServer) error - GetDetailedDataUsageChunked(*GetDetailedDataUsageChunkedRequest, DataUsageService_GetDetailedDataUsageChunkedServer) error + GetDetailedDataUsage(*GetDetailedDataUsageRequest, grpc.ServerStreamingServer[GetDetailedDataUsageResponse]) error + GetDetailedDataUsageChunked(*GetDetailedDataUsageChunkedRequest, grpc.ServerStreamingServer[GetDetailedDataUsageChunkedResponse]) error mustEmbedUnimplementedDataUsageServiceServer() } -// UnimplementedDataUsageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDataUsageServiceServer struct { -} +// UnimplementedDataUsageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataUsageServiceServer struct{} func (UnimplementedDataUsageServiceServer) GetTeamsDailyUsage(context.Context, *GetTeamsDailyUsageRequest) (*GetTeamsDailyUsageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTeamsDailyUsage not implemented") @@ -236,19 +205,20 @@ func (UnimplementedDataUsageServiceServer) GetTeamsQuotaHistory(context.Context, func (UnimplementedDataUsageServiceServer) GetTeamsQuota(context.Context, *GetTeamsQuotaRequest) (*GetTeamsQuotaResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTeamsQuota not implemented") } -func (UnimplementedDataUsageServiceServer) GetTeamsDetailedUsage(*GetTeamsDetailedUsageRequest, DataUsageService_GetTeamsDetailedUsageServer) error { +func (UnimplementedDataUsageServiceServer) GetTeamsDetailedUsage(*GetTeamsDetailedUsageRequest, grpc.ServerStreamingServer[GetTeamsDetailedUsageResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTeamsDetailedUsage not implemented") } func (UnimplementedDataUsageServiceServer) GetDataUsage(context.Context, *GetDataUsageRequest) (*GetDataUsageResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDataUsage not implemented") } -func (UnimplementedDataUsageServiceServer) GetDetailedDataUsage(*GetDetailedDataUsageRequest, DataUsageService_GetDetailedDataUsageServer) error { +func (UnimplementedDataUsageServiceServer) GetDetailedDataUsage(*GetDetailedDataUsageRequest, grpc.ServerStreamingServer[GetDetailedDataUsageResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDetailedDataUsage not implemented") } -func (UnimplementedDataUsageServiceServer) GetDetailedDataUsageChunked(*GetDetailedDataUsageChunkedRequest, DataUsageService_GetDetailedDataUsageChunkedServer) error { +func (UnimplementedDataUsageServiceServer) GetDetailedDataUsageChunked(*GetDetailedDataUsageChunkedRequest, grpc.ServerStreamingServer[GetDetailedDataUsageChunkedResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDetailedDataUsageChunked not implemented") } func (UnimplementedDataUsageServiceServer) mustEmbedUnimplementedDataUsageServiceServer() {} +func (UnimplementedDataUsageServiceServer) testEmbeddedByValue() {} // UnsafeDataUsageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataUsageServiceServer will @@ -258,6 +228,13 @@ type UnsafeDataUsageServiceServer interface { } func RegisterDataUsageServiceServer(s grpc.ServiceRegistrar, srv DataUsageServiceServer) { + // If the following call pancis, it indicates UnimplementedDataUsageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataUsageService_ServiceDesc, srv) } @@ -338,21 +315,11 @@ func _DataUsageService_GetTeamsDetailedUsage_Handler(srv interface{}, stream grp if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetTeamsDetailedUsage(m, &dataUsageServiceGetTeamsDetailedUsageServer{stream}) -} - -type DataUsageService_GetTeamsDetailedUsageServer interface { - Send(*GetTeamsDetailedUsageResponse) error - grpc.ServerStream + return srv.(DataUsageServiceServer).GetTeamsDetailedUsage(m, &grpc.GenericServerStream[GetTeamsDetailedUsageRequest, GetTeamsDetailedUsageResponse]{ServerStream: stream}) } -type dataUsageServiceGetTeamsDetailedUsageServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetTeamsDetailedUsageServer) Send(m *GetTeamsDetailedUsageResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetTeamsDetailedUsageServer = grpc.ServerStreamingServer[GetTeamsDetailedUsageResponse] func _DataUsageService_GetDataUsage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetDataUsageRequest) @@ -377,42 +344,22 @@ func _DataUsageService_GetDetailedDataUsage_Handler(srv interface{}, stream grpc if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetDetailedDataUsage(m, &dataUsageServiceGetDetailedDataUsageServer{stream}) + return srv.(DataUsageServiceServer).GetDetailedDataUsage(m, &grpc.GenericServerStream[GetDetailedDataUsageRequest, GetDetailedDataUsageResponse]{ServerStream: stream}) } -type DataUsageService_GetDetailedDataUsageServer interface { - Send(*GetDetailedDataUsageResponse) error - grpc.ServerStream -} - -type dataUsageServiceGetDetailedDataUsageServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetDetailedDataUsageServer) Send(m *GetDetailedDataUsageResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDetailedDataUsageServer = grpc.ServerStreamingServer[GetDetailedDataUsageResponse] func _DataUsageService_GetDetailedDataUsageChunked_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetDetailedDataUsageChunkedRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetDetailedDataUsageChunked(m, &dataUsageServiceGetDetailedDataUsageChunkedServer{stream}) + return srv.(DataUsageServiceServer).GetDetailedDataUsageChunked(m, &grpc.GenericServerStream[GetDetailedDataUsageChunkedRequest, GetDetailedDataUsageChunkedResponse]{ServerStream: stream}) } -type DataUsageService_GetDetailedDataUsageChunkedServer interface { - Send(*GetDetailedDataUsageChunkedResponse) error - grpc.ServerStream -} - -type dataUsageServiceGetDetailedDataUsageChunkedServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetDetailedDataUsageChunkedServer) Send(m *GetDetailedDataUsageChunkedResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDetailedDataUsageChunkedServer = grpc.ServerStreamingServer[GetDetailedDataUsageChunkedResponse] // DataUsageService_ServiceDesc is the grpc.ServiceDesc for DataUsageService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/datausage/v2/data_usage.pb.go b/go/internal/coralogix/datausage/v2/data_usage.pb.go index cd6952c0..d442cd4a 100644 --- a/go/internal/coralogix/datausage/v2/data_usage.pb.go +++ b/go/internal/coralogix/datausage/v2/data_usage.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v2/data_usage.proto package v2 diff --git a/go/internal/coralogix/datausage/v2/data_usage_service.pb.go b/go/internal/coralogix/datausage/v2/data_usage_service.pb.go index c7ef6be4..61982aa6 100644 --- a/go/internal/coralogix/datausage/v2/data_usage_service.pb.go +++ b/go/internal/coralogix/datausage/v2/data_usage_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v2/data_usage_service.proto package v2 diff --git a/go/internal/coralogix/datausage/v2/data_usage_service_grpc.pb.go b/go/internal/coralogix/datausage/v2/data_usage_service_grpc.pb.go index 3f294147..2b6937c4 100644 --- a/go/internal/coralogix/datausage/v2/data_usage_service_grpc.pb.go +++ b/go/internal/coralogix/datausage/v2/data_usage_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/datausage/v2/data_usage_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataUsageService_GetTeamDetailedDataUsage_FullMethodName = "/com.coralogix.datausage.v2.DataUsageService/GetTeamDetailedDataUsage" @@ -33,12 +33,12 @@ const ( type DataUsageServiceClient interface { // Deprecated: Do not use. // Deprecated. Please use GetDataUsage instead. - GetTeamDetailedDataUsage(ctx context.Context, in *GetTeamDetailedDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetTeamDetailedDataUsageClient, error) - GetSpansCount(ctx context.Context, in *GetSpansCountRequest, opts ...grpc.CallOption) (DataUsageService_GetSpansCountClient, error) - GetLogsCount(ctx context.Context, in *GetLogsCountRequest, opts ...grpc.CallOption) (DataUsageService_GetLogsCountClient, error) + GetTeamDetailedDataUsage(ctx context.Context, in *GetTeamDetailedDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTeamDetailedDataUsageResponse], error) + GetSpansCount(ctx context.Context, in *GetSpansCountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetSpansCountResponse], error) + GetLogsCount(ctx context.Context, in *GetLogsCountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetLogsCountResponse], error) GetDataUsageMetricsExportStatus(ctx context.Context, in *GetDataUsageMetricsExportStatusRequest, opts ...grpc.CallOption) (*GetDataUsageMetricsExportStatusResponse, error) UpdateDataUsageMetricsExportStatus(ctx context.Context, in *UpdateDataUsageMetricsExportStatusRequest, opts ...grpc.CallOption) (*UpdateDataUsageMetricsExportStatusResponse, error) - GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetDataUsageClient, error) + GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDataUsageResponse], error) } type dataUsageServiceClient struct { @@ -50,12 +50,13 @@ func NewDataUsageServiceClient(cc grpc.ClientConnInterface) DataUsageServiceClie } // Deprecated: Do not use. -func (c *dataUsageServiceClient) GetTeamDetailedDataUsage(ctx context.Context, in *GetTeamDetailedDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetTeamDetailedDataUsageClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[0], DataUsageService_GetTeamDetailedDataUsage_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetTeamDetailedDataUsage(ctx context.Context, in *GetTeamDetailedDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetTeamDetailedDataUsageResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[0], DataUsageService_GetTeamDetailedDataUsage_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetTeamDetailedDataUsageClient{stream} + x := &grpc.GenericClientStream[GetTeamDetailedDataUsageRequest, GetTeamDetailedDataUsageResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -65,29 +66,16 @@ func (c *dataUsageServiceClient) GetTeamDetailedDataUsage(ctx context.Context, i return x, nil } -type DataUsageService_GetTeamDetailedDataUsageClient interface { - Recv() (*GetTeamDetailedDataUsageResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetTeamDetailedDataUsageClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetTeamDetailedDataUsageClient) Recv() (*GetTeamDetailedDataUsageResponse, error) { - m := new(GetTeamDetailedDataUsageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetTeamDetailedDataUsageClient = grpc.ServerStreamingClient[GetTeamDetailedDataUsageResponse] -func (c *dataUsageServiceClient) GetSpansCount(ctx context.Context, in *GetSpansCountRequest, opts ...grpc.CallOption) (DataUsageService_GetSpansCountClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[1], DataUsageService_GetSpansCount_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetSpansCount(ctx context.Context, in *GetSpansCountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetSpansCountResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[1], DataUsageService_GetSpansCount_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetSpansCountClient{stream} + x := &grpc.GenericClientStream[GetSpansCountRequest, GetSpansCountResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -97,29 +85,16 @@ func (c *dataUsageServiceClient) GetSpansCount(ctx context.Context, in *GetSpans return x, nil } -type DataUsageService_GetSpansCountClient interface { - Recv() (*GetSpansCountResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetSpansCountClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetSpansCountClient) Recv() (*GetSpansCountResponse, error) { - m := new(GetSpansCountResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetSpansCountClient = grpc.ServerStreamingClient[GetSpansCountResponse] -func (c *dataUsageServiceClient) GetLogsCount(ctx context.Context, in *GetLogsCountRequest, opts ...grpc.CallOption) (DataUsageService_GetLogsCountClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[2], DataUsageService_GetLogsCount_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetLogsCount(ctx context.Context, in *GetLogsCountRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetLogsCountResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[2], DataUsageService_GetLogsCount_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetLogsCountClient{stream} + x := &grpc.GenericClientStream[GetLogsCountRequest, GetLogsCountResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -129,26 +104,13 @@ func (c *dataUsageServiceClient) GetLogsCount(ctx context.Context, in *GetLogsCo return x, nil } -type DataUsageService_GetLogsCountClient interface { - Recv() (*GetLogsCountResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetLogsCountClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetLogsCountClient) Recv() (*GetLogsCountResponse, error) { - m := new(GetLogsCountResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetLogsCountClient = grpc.ServerStreamingClient[GetLogsCountResponse] func (c *dataUsageServiceClient) GetDataUsageMetricsExportStatus(ctx context.Context, in *GetDataUsageMetricsExportStatusRequest, opts ...grpc.CallOption) (*GetDataUsageMetricsExportStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDataUsageMetricsExportStatusResponse) - err := c.cc.Invoke(ctx, DataUsageService_GetDataUsageMetricsExportStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_GetDataUsageMetricsExportStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -156,20 +118,22 @@ func (c *dataUsageServiceClient) GetDataUsageMetricsExportStatus(ctx context.Con } func (c *dataUsageServiceClient) UpdateDataUsageMetricsExportStatus(ctx context.Context, in *UpdateDataUsageMetricsExportStatusRequest, opts ...grpc.CallOption) (*UpdateDataUsageMetricsExportStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDataUsageMetricsExportStatusResponse) - err := c.cc.Invoke(ctx, DataUsageService_UpdateDataUsageMetricsExportStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataUsageService_UpdateDataUsageMetricsExportStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *dataUsageServiceClient) GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (DataUsageService_GetDataUsageClient, error) { - stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[3], DataUsageService_GetDataUsage_FullMethodName, opts...) +func (c *dataUsageServiceClient) GetDataUsage(ctx context.Context, in *GetDataUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDataUsageResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataUsageService_ServiceDesc.Streams[3], DataUsageService_GetDataUsage_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataUsageServiceGetDataUsageClient{stream} + x := &grpc.GenericClientStream[GetDataUsageRequest, GetDataUsageResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -179,49 +143,38 @@ func (c *dataUsageServiceClient) GetDataUsage(ctx context.Context, in *GetDataUs return x, nil } -type DataUsageService_GetDataUsageClient interface { - Recv() (*GetDataUsageResponse, error) - grpc.ClientStream -} - -type dataUsageServiceGetDataUsageClient struct { - grpc.ClientStream -} - -func (x *dataUsageServiceGetDataUsageClient) Recv() (*GetDataUsageResponse, error) { - m := new(GetDataUsageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDataUsageClient = grpc.ServerStreamingClient[GetDataUsageResponse] // DataUsageServiceServer is the server API for DataUsageService service. // All implementations must embed UnimplementedDataUsageServiceServer -// for forward compatibility +// for forward compatibility. type DataUsageServiceServer interface { // Deprecated: Do not use. // Deprecated. Please use GetDataUsage instead. - GetTeamDetailedDataUsage(*GetTeamDetailedDataUsageRequest, DataUsageService_GetTeamDetailedDataUsageServer) error - GetSpansCount(*GetSpansCountRequest, DataUsageService_GetSpansCountServer) error - GetLogsCount(*GetLogsCountRequest, DataUsageService_GetLogsCountServer) error + GetTeamDetailedDataUsage(*GetTeamDetailedDataUsageRequest, grpc.ServerStreamingServer[GetTeamDetailedDataUsageResponse]) error + GetSpansCount(*GetSpansCountRequest, grpc.ServerStreamingServer[GetSpansCountResponse]) error + GetLogsCount(*GetLogsCountRequest, grpc.ServerStreamingServer[GetLogsCountResponse]) error GetDataUsageMetricsExportStatus(context.Context, *GetDataUsageMetricsExportStatusRequest) (*GetDataUsageMetricsExportStatusResponse, error) UpdateDataUsageMetricsExportStatus(context.Context, *UpdateDataUsageMetricsExportStatusRequest) (*UpdateDataUsageMetricsExportStatusResponse, error) - GetDataUsage(*GetDataUsageRequest, DataUsageService_GetDataUsageServer) error + GetDataUsage(*GetDataUsageRequest, grpc.ServerStreamingServer[GetDataUsageResponse]) error mustEmbedUnimplementedDataUsageServiceServer() } -// UnimplementedDataUsageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDataUsageServiceServer struct { -} +// UnimplementedDataUsageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataUsageServiceServer struct{} -func (UnimplementedDataUsageServiceServer) GetTeamDetailedDataUsage(*GetTeamDetailedDataUsageRequest, DataUsageService_GetTeamDetailedDataUsageServer) error { +func (UnimplementedDataUsageServiceServer) GetTeamDetailedDataUsage(*GetTeamDetailedDataUsageRequest, grpc.ServerStreamingServer[GetTeamDetailedDataUsageResponse]) error { return status.Errorf(codes.Unimplemented, "method GetTeamDetailedDataUsage not implemented") } -func (UnimplementedDataUsageServiceServer) GetSpansCount(*GetSpansCountRequest, DataUsageService_GetSpansCountServer) error { +func (UnimplementedDataUsageServiceServer) GetSpansCount(*GetSpansCountRequest, grpc.ServerStreamingServer[GetSpansCountResponse]) error { return status.Errorf(codes.Unimplemented, "method GetSpansCount not implemented") } -func (UnimplementedDataUsageServiceServer) GetLogsCount(*GetLogsCountRequest, DataUsageService_GetLogsCountServer) error { +func (UnimplementedDataUsageServiceServer) GetLogsCount(*GetLogsCountRequest, grpc.ServerStreamingServer[GetLogsCountResponse]) error { return status.Errorf(codes.Unimplemented, "method GetLogsCount not implemented") } func (UnimplementedDataUsageServiceServer) GetDataUsageMetricsExportStatus(context.Context, *GetDataUsageMetricsExportStatusRequest) (*GetDataUsageMetricsExportStatusResponse, error) { @@ -230,10 +183,11 @@ func (UnimplementedDataUsageServiceServer) GetDataUsageMetricsExportStatus(conte func (UnimplementedDataUsageServiceServer) UpdateDataUsageMetricsExportStatus(context.Context, *UpdateDataUsageMetricsExportStatusRequest) (*UpdateDataUsageMetricsExportStatusResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpdateDataUsageMetricsExportStatus not implemented") } -func (UnimplementedDataUsageServiceServer) GetDataUsage(*GetDataUsageRequest, DataUsageService_GetDataUsageServer) error { +func (UnimplementedDataUsageServiceServer) GetDataUsage(*GetDataUsageRequest, grpc.ServerStreamingServer[GetDataUsageResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDataUsage not implemented") } func (UnimplementedDataUsageServiceServer) mustEmbedUnimplementedDataUsageServiceServer() {} +func (UnimplementedDataUsageServiceServer) testEmbeddedByValue() {} // UnsafeDataUsageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataUsageServiceServer will @@ -243,6 +197,13 @@ type UnsafeDataUsageServiceServer interface { } func RegisterDataUsageServiceServer(s grpc.ServiceRegistrar, srv DataUsageServiceServer) { + // If the following call pancis, it indicates UnimplementedDataUsageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataUsageService_ServiceDesc, srv) } @@ -251,63 +212,33 @@ func _DataUsageService_GetTeamDetailedDataUsage_Handler(srv interface{}, stream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetTeamDetailedDataUsage(m, &dataUsageServiceGetTeamDetailedDataUsageServer{stream}) + return srv.(DataUsageServiceServer).GetTeamDetailedDataUsage(m, &grpc.GenericServerStream[GetTeamDetailedDataUsageRequest, GetTeamDetailedDataUsageResponse]{ServerStream: stream}) } -type DataUsageService_GetTeamDetailedDataUsageServer interface { - Send(*GetTeamDetailedDataUsageResponse) error - grpc.ServerStream -} - -type dataUsageServiceGetTeamDetailedDataUsageServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetTeamDetailedDataUsageServer) Send(m *GetTeamDetailedDataUsageResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetTeamDetailedDataUsageServer = grpc.ServerStreamingServer[GetTeamDetailedDataUsageResponse] func _DataUsageService_GetSpansCount_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetSpansCountRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetSpansCount(m, &dataUsageServiceGetSpansCountServer{stream}) + return srv.(DataUsageServiceServer).GetSpansCount(m, &grpc.GenericServerStream[GetSpansCountRequest, GetSpansCountResponse]{ServerStream: stream}) } -type DataUsageService_GetSpansCountServer interface { - Send(*GetSpansCountResponse) error - grpc.ServerStream -} - -type dataUsageServiceGetSpansCountServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetSpansCountServer) Send(m *GetSpansCountResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetSpansCountServer = grpc.ServerStreamingServer[GetSpansCountResponse] func _DataUsageService_GetLogsCount_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetLogsCountRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetLogsCount(m, &dataUsageServiceGetLogsCountServer{stream}) -} - -type DataUsageService_GetLogsCountServer interface { - Send(*GetLogsCountResponse) error - grpc.ServerStream -} - -type dataUsageServiceGetLogsCountServer struct { - grpc.ServerStream + return srv.(DataUsageServiceServer).GetLogsCount(m, &grpc.GenericServerStream[GetLogsCountRequest, GetLogsCountResponse]{ServerStream: stream}) } -func (x *dataUsageServiceGetLogsCountServer) Send(m *GetLogsCountResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetLogsCountServer = grpc.ServerStreamingServer[GetLogsCountResponse] func _DataUsageService_GetDataUsageMetricsExportStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetDataUsageMetricsExportStatusRequest) @@ -350,21 +281,11 @@ func _DataUsageService_GetDataUsage_Handler(srv interface{}, stream grpc.ServerS if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataUsageServiceServer).GetDataUsage(m, &dataUsageServiceGetDataUsageServer{stream}) -} - -type DataUsageService_GetDataUsageServer interface { - Send(*GetDataUsageResponse) error - grpc.ServerStream + return srv.(DataUsageServiceServer).GetDataUsage(m, &grpc.GenericServerStream[GetDataUsageRequest, GetDataUsageResponse]{ServerStream: stream}) } -type dataUsageServiceGetDataUsageServer struct { - grpc.ServerStream -} - -func (x *dataUsageServiceGetDataUsageServer) Send(m *GetDataUsageResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataUsageService_GetDataUsageServer = grpc.ServerStreamingServer[GetDataUsageResponse] // DataUsageService_ServiceDesc is the grpc.ServiceDesc for DataUsageService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/datausage/v2/internal_data_usage_service.pb.go b/go/internal/coralogix/datausage/v2/internal_data_usage_service.pb.go index 92683a41..32ab4a36 100644 --- a/go/internal/coralogix/datausage/v2/internal_data_usage_service.pb.go +++ b/go/internal/coralogix/datausage/v2/internal_data_usage_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/datausage/v2/internal_data_usage_service.proto package v2 diff --git a/go/internal/coralogix/datausage/v2/internal_data_usage_service_grpc.pb.go b/go/internal/coralogix/datausage/v2/internal_data_usage_service_grpc.pb.go index 4862e397..03a21505 100644 --- a/go/internal/coralogix/datausage/v2/internal_data_usage_service_grpc.pb.go +++ b/go/internal/coralogix/datausage/v2/internal_data_usage_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/datausage/v2/internal_data_usage_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InternalDataUsageService_ExportTeamsDetailedUsage_FullMethodName = "/com.coralogix.datausage.v2.InternalDataUsageService/ExportTeamsDetailedUsage" @@ -30,7 +30,7 @@ type InternalDataUsageServiceClient interface { // / Results are aggregated by pillar and priority // / Pillars i.e. [Logs, Metrics, Tracing, ... ] // / Priority i.e. [High, Medium, Low, ... ] - ExportTeamsDetailedUsage(ctx context.Context, in *ExportTeamsDetailedUsageRequest, opts ...grpc.CallOption) (InternalDataUsageService_ExportTeamsDetailedUsageClient, error) + ExportTeamsDetailedUsage(ctx context.Context, in *ExportTeamsDetailedUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExportTeamsDetailedUsageResponse], error) } type internalDataUsageServiceClient struct { @@ -41,12 +41,13 @@ func NewInternalDataUsageServiceClient(cc grpc.ClientConnInterface) InternalData return &internalDataUsageServiceClient{cc} } -func (c *internalDataUsageServiceClient) ExportTeamsDetailedUsage(ctx context.Context, in *ExportTeamsDetailedUsageRequest, opts ...grpc.CallOption) (InternalDataUsageService_ExportTeamsDetailedUsageClient, error) { - stream, err := c.cc.NewStream(ctx, &InternalDataUsageService_ServiceDesc.Streams[0], InternalDataUsageService_ExportTeamsDetailedUsage_FullMethodName, opts...) +func (c *internalDataUsageServiceClient) ExportTeamsDetailedUsage(ctx context.Context, in *ExportTeamsDetailedUsageRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[ExportTeamsDetailedUsageResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &InternalDataUsageService_ServiceDesc.Streams[0], InternalDataUsageService_ExportTeamsDetailedUsage_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &internalDataUsageServiceExportTeamsDetailedUsageClient{stream} + x := &grpc.GenericClientStream[ExportTeamsDetailedUsageRequest, ExportTeamsDetailedUsageResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -56,44 +57,34 @@ func (c *internalDataUsageServiceClient) ExportTeamsDetailedUsage(ctx context.Co return x, nil } -type InternalDataUsageService_ExportTeamsDetailedUsageClient interface { - Recv() (*ExportTeamsDetailedUsageResponse, error) - grpc.ClientStream -} - -type internalDataUsageServiceExportTeamsDetailedUsageClient struct { - grpc.ClientStream -} - -func (x *internalDataUsageServiceExportTeamsDetailedUsageClient) Recv() (*ExportTeamsDetailedUsageResponse, error) { - m := new(ExportTeamsDetailedUsageResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type InternalDataUsageService_ExportTeamsDetailedUsageClient = grpc.ServerStreamingClient[ExportTeamsDetailedUsageResponse] // InternalDataUsageServiceServer is the server API for InternalDataUsageService service. // All implementations must embed UnimplementedInternalDataUsageServiceServer -// for forward compatibility +// for forward compatibility. type InternalDataUsageServiceServer interface { // / Streams entries containing detailed data usage for all teams given a date range and resolution interval. // / Results are aggregated by pillar and priority // / Pillars i.e. [Logs, Metrics, Tracing, ... ] // / Priority i.e. [High, Medium, Low, ... ] - ExportTeamsDetailedUsage(*ExportTeamsDetailedUsageRequest, InternalDataUsageService_ExportTeamsDetailedUsageServer) error + ExportTeamsDetailedUsage(*ExportTeamsDetailedUsageRequest, grpc.ServerStreamingServer[ExportTeamsDetailedUsageResponse]) error mustEmbedUnimplementedInternalDataUsageServiceServer() } -// UnimplementedInternalDataUsageServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalDataUsageServiceServer struct { -} +// UnimplementedInternalDataUsageServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalDataUsageServiceServer struct{} -func (UnimplementedInternalDataUsageServiceServer) ExportTeamsDetailedUsage(*ExportTeamsDetailedUsageRequest, InternalDataUsageService_ExportTeamsDetailedUsageServer) error { +func (UnimplementedInternalDataUsageServiceServer) ExportTeamsDetailedUsage(*ExportTeamsDetailedUsageRequest, grpc.ServerStreamingServer[ExportTeamsDetailedUsageResponse]) error { return status.Errorf(codes.Unimplemented, "method ExportTeamsDetailedUsage not implemented") } func (UnimplementedInternalDataUsageServiceServer) mustEmbedUnimplementedInternalDataUsageServiceServer() { } +func (UnimplementedInternalDataUsageServiceServer) testEmbeddedByValue() {} // UnsafeInternalDataUsageServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalDataUsageServiceServer will @@ -103,6 +94,13 @@ type UnsafeInternalDataUsageServiceServer interface { } func RegisterInternalDataUsageServiceServer(s grpc.ServiceRegistrar, srv InternalDataUsageServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalDataUsageServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalDataUsageService_ServiceDesc, srv) } @@ -111,21 +109,11 @@ func _InternalDataUsageService_ExportTeamsDetailedUsage_Handler(srv interface{}, if err := stream.RecvMsg(m); err != nil { return err } - return srv.(InternalDataUsageServiceServer).ExportTeamsDetailedUsage(m, &internalDataUsageServiceExportTeamsDetailedUsageServer{stream}) -} - -type InternalDataUsageService_ExportTeamsDetailedUsageServer interface { - Send(*ExportTeamsDetailedUsageResponse) error - grpc.ServerStream + return srv.(InternalDataUsageServiceServer).ExportTeamsDetailedUsage(m, &grpc.GenericServerStream[ExportTeamsDetailedUsageRequest, ExportTeamsDetailedUsageResponse]{ServerStream: stream}) } -type internalDataUsageServiceExportTeamsDetailedUsageServer struct { - grpc.ServerStream -} - -func (x *internalDataUsageServiceExportTeamsDetailedUsageServer) Send(m *ExportTeamsDetailedUsageResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type InternalDataUsageService_ExportTeamsDetailedUsageServer = grpc.ServerStreamingServer[ExportTeamsDetailedUsageResponse] // InternalDataUsageService_ServiceDesc is the grpc.ServiceDesc for InternalDataUsageService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/enrichment/v1/aws_enrichment_service.pb.go b/go/internal/coralogix/enrichment/v1/aws_enrichment_service.pb.go index d2f036f1..c706f3aa 100644 --- a/go/internal/coralogix/enrichment/v1/aws_enrichment_service.pb.go +++ b/go/internal/coralogix/enrichment/v1/aws_enrichment_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/aws_enrichment_service.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/aws_enrichment_service_grpc.pb.go b/go/internal/coralogix/enrichment/v1/aws_enrichment_service_grpc.pb.go index 2b1f77f1..8cfff95e 100644 --- a/go/internal/coralogix/enrichment/v1/aws_enrichment_service_grpc.pb.go +++ b/go/internal/coralogix/enrichment/v1/aws_enrichment_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/enrichment/v1/aws_enrichment_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AwsEnrichmentService_GetSupportedAwsResourceTypes_FullMethodName = "/com.coralogix.enrichment.v1.AwsEnrichmentService/GetSupportedAwsResourceTypes" @@ -38,8 +38,9 @@ func NewAwsEnrichmentServiceClient(cc grpc.ClientConnInterface) AwsEnrichmentSer } func (c *awsEnrichmentServiceClient) GetSupportedAwsResourceTypes(ctx context.Context, in *GetSupportedAwsResourceTypesRequest, opts ...grpc.CallOption) (*GetSupportedAwsResourceTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSupportedAwsResourceTypesResponse) - err := c.cc.Invoke(ctx, AwsEnrichmentService_GetSupportedAwsResourceTypes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AwsEnrichmentService_GetSupportedAwsResourceTypes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *awsEnrichmentServiceClient) GetSupportedAwsResourceTypes(ctx context.Co // AwsEnrichmentServiceServer is the server API for AwsEnrichmentService service. // All implementations must embed UnimplementedAwsEnrichmentServiceServer -// for forward compatibility +// for forward compatibility. type AwsEnrichmentServiceServer interface { GetSupportedAwsResourceTypes(context.Context, *GetSupportedAwsResourceTypesRequest) (*GetSupportedAwsResourceTypesResponse, error) mustEmbedUnimplementedAwsEnrichmentServiceServer() } -// UnimplementedAwsEnrichmentServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAwsEnrichmentServiceServer struct { -} +// UnimplementedAwsEnrichmentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAwsEnrichmentServiceServer struct{} func (UnimplementedAwsEnrichmentServiceServer) GetSupportedAwsResourceTypes(context.Context, *GetSupportedAwsResourceTypesRequest) (*GetSupportedAwsResourceTypesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSupportedAwsResourceTypes not implemented") } func (UnimplementedAwsEnrichmentServiceServer) mustEmbedUnimplementedAwsEnrichmentServiceServer() {} +func (UnimplementedAwsEnrichmentServiceServer) testEmbeddedByValue() {} // UnsafeAwsEnrichmentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AwsEnrichmentServiceServer will @@ -71,6 +76,13 @@ type UnsafeAwsEnrichmentServiceServer interface { } func RegisterAwsEnrichmentServiceServer(s grpc.ServiceRegistrar, srv AwsEnrichmentServiceServer) { + // If the following call pancis, it indicates UnimplementedAwsEnrichmentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AwsEnrichmentService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/enrichment/v1/company_enrichment_settings.pb.go b/go/internal/coralogix/enrichment/v1/company_enrichment_settings.pb.go index 718e6159..5f2843e8 100644 --- a/go/internal/coralogix/enrichment/v1/company_enrichment_settings.pb.go +++ b/go/internal/coralogix/enrichment/v1/company_enrichment_settings.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/company_enrichment_settings.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/custom_enrichment.pb.go b/go/internal/coralogix/enrichment/v1/custom_enrichment.pb.go index 65150c01..a45cd726 100644 --- a/go/internal/coralogix/enrichment/v1/custom_enrichment.pb.go +++ b/go/internal/coralogix/enrichment/v1/custom_enrichment.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/custom_enrichment.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/custom_enrichment_service.pb.go b/go/internal/coralogix/enrichment/v1/custom_enrichment_service.pb.go index 2ca01169..531c6c0b 100644 --- a/go/internal/coralogix/enrichment/v1/custom_enrichment_service.pb.go +++ b/go/internal/coralogix/enrichment/v1/custom_enrichment_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/custom_enrichment_service.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/custom_enrichment_service_grpc.pb.go b/go/internal/coralogix/enrichment/v1/custom_enrichment_service_grpc.pb.go index 73ac0c3e..344a0030 100644 --- a/go/internal/coralogix/enrichment/v1/custom_enrichment_service_grpc.pb.go +++ b/go/internal/coralogix/enrichment/v1/custom_enrichment_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/enrichment/v1/custom_enrichment_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CustomEnrichmentService_GetCustomEnrichment_FullMethodName = "/com.coralogix.enrichment.v1.CustomEnrichmentService/GetCustomEnrichment" @@ -48,8 +48,9 @@ func NewCustomEnrichmentServiceClient(cc grpc.ClientConnInterface) CustomEnrichm } func (c *customEnrichmentServiceClient) GetCustomEnrichment(ctx context.Context, in *GetCustomEnrichmentRequest, opts ...grpc.CallOption) (*GetCustomEnrichmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCustomEnrichmentResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_GetCustomEnrichment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_GetCustomEnrichment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *customEnrichmentServiceClient) GetCustomEnrichment(ctx context.Context, } func (c *customEnrichmentServiceClient) GetCustomEnrichments(ctx context.Context, in *GetCustomEnrichmentsRequest, opts ...grpc.CallOption) (*GetCustomEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCustomEnrichmentsResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_GetCustomEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_GetCustomEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *customEnrichmentServiceClient) GetCustomEnrichments(ctx context.Context } func (c *customEnrichmentServiceClient) CreateCustomEnrichment(ctx context.Context, in *CreateCustomEnrichmentRequest, opts ...grpc.CallOption) (*CreateCustomEnrichmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateCustomEnrichmentResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_CreateCustomEnrichment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_CreateCustomEnrichment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *customEnrichmentServiceClient) CreateCustomEnrichment(ctx context.Conte } func (c *customEnrichmentServiceClient) UpdateCustomEnrichment(ctx context.Context, in *UpdateCustomEnrichmentRequest, opts ...grpc.CallOption) (*UpdateCustomEnrichmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateCustomEnrichmentResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_UpdateCustomEnrichment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_UpdateCustomEnrichment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +88,9 @@ func (c *customEnrichmentServiceClient) UpdateCustomEnrichment(ctx context.Conte } func (c *customEnrichmentServiceClient) DeleteCustomEnrichment(ctx context.Context, in *DeleteCustomEnrichmentRequest, opts ...grpc.CallOption) (*DeleteCustomEnrichmentResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCustomEnrichmentResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_DeleteCustomEnrichment_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_DeleteCustomEnrichment_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +98,9 @@ func (c *customEnrichmentServiceClient) DeleteCustomEnrichment(ctx context.Conte } func (c *customEnrichmentServiceClient) SearchCustomEnrichmentData(ctx context.Context, in *SearchCustomEnrichmentDataRequest, opts ...grpc.CallOption) (*SearchCustomEnrichmentDataResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchCustomEnrichmentDataResponse) - err := c.cc.Invoke(ctx, CustomEnrichmentService_SearchCustomEnrichmentData_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CustomEnrichmentService_SearchCustomEnrichmentData_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,7 +109,7 @@ func (c *customEnrichmentServiceClient) SearchCustomEnrichmentData(ctx context.C // CustomEnrichmentServiceServer is the server API for CustomEnrichmentService service. // All implementations must embed UnimplementedCustomEnrichmentServiceServer -// for forward compatibility +// for forward compatibility. type CustomEnrichmentServiceServer interface { GetCustomEnrichment(context.Context, *GetCustomEnrichmentRequest) (*GetCustomEnrichmentResponse, error) GetCustomEnrichments(context.Context, *GetCustomEnrichmentsRequest) (*GetCustomEnrichmentsResponse, error) @@ -114,9 +120,12 @@ type CustomEnrichmentServiceServer interface { mustEmbedUnimplementedCustomEnrichmentServiceServer() } -// UnimplementedCustomEnrichmentServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCustomEnrichmentServiceServer struct { -} +// UnimplementedCustomEnrichmentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCustomEnrichmentServiceServer struct{} func (UnimplementedCustomEnrichmentServiceServer) GetCustomEnrichment(context.Context, *GetCustomEnrichmentRequest) (*GetCustomEnrichmentResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCustomEnrichment not implemented") @@ -138,6 +147,7 @@ func (UnimplementedCustomEnrichmentServiceServer) SearchCustomEnrichmentData(con } func (UnimplementedCustomEnrichmentServiceServer) mustEmbedUnimplementedCustomEnrichmentServiceServer() { } +func (UnimplementedCustomEnrichmentServiceServer) testEmbeddedByValue() {} // UnsafeCustomEnrichmentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CustomEnrichmentServiceServer will @@ -147,6 +157,13 @@ type UnsafeCustomEnrichmentServiceServer interface { } func RegisterCustomEnrichmentServiceServer(s grpc.ServiceRegistrar, srv CustomEnrichmentServiceServer) { + // If the following call pancis, it indicates UnimplementedCustomEnrichmentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CustomEnrichmentService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/enrichment/v1/enrichment.pb.go b/go/internal/coralogix/enrichment/v1/enrichment.pb.go index cbd41e41..1a664cb9 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/enrichment_internal_service.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_internal_service.pb.go index 542b5145..6097e47f 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_internal_service.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_internal_service.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/enrichment_internal_service_grpc.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_internal_service_grpc.pb.go index a519cb16..666bb552 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_internal_service_grpc.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_internal_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( EnrichmentInternalService_GetInternalEnrichments_FullMethodName = "/com.coralogix.enrichment.v1.EnrichmentInternalService/GetInternalEnrichments" @@ -42,8 +42,9 @@ func NewEnrichmentInternalServiceClient(cc grpc.ClientConnInterface) EnrichmentI } func (c *enrichmentInternalServiceClient) GetInternalEnrichments(ctx context.Context, in *GetInternalEnrichmentsRequest, opts ...grpc.CallOption) (*GetInternalEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetInternalEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentInternalService_GetInternalEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentInternalService_GetInternalEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *enrichmentInternalServiceClient) GetInternalEnrichments(ctx context.Con } func (c *enrichmentInternalServiceClient) AddInternalEnrichments(ctx context.Context, in *AddInternalEnrichmentsRequest, opts ...grpc.CallOption) (*AddInternalEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddInternalEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentInternalService_AddInternalEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentInternalService_AddInternalEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *enrichmentInternalServiceClient) AddInternalEnrichments(ctx context.Con } func (c *enrichmentInternalServiceClient) RemoveInternalEnrichments(ctx context.Context, in *RemoveInternalEnrichmentsRequest, opts ...grpc.CallOption) (*RemoveInternalEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveInternalEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentInternalService_RemoveInternalEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentInternalService_RemoveInternalEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *enrichmentInternalServiceClient) RemoveInternalEnrichments(ctx context. // EnrichmentInternalServiceServer is the server API for EnrichmentInternalService service. // All implementations must embed UnimplementedEnrichmentInternalServiceServer -// for forward compatibility +// for forward compatibility. type EnrichmentInternalServiceServer interface { GetInternalEnrichments(context.Context, *GetInternalEnrichmentsRequest) (*GetInternalEnrichmentsResponse, error) AddInternalEnrichments(context.Context, *AddInternalEnrichmentsRequest) (*AddInternalEnrichmentsResponse, error) @@ -78,9 +81,12 @@ type EnrichmentInternalServiceServer interface { mustEmbedUnimplementedEnrichmentInternalServiceServer() } -// UnimplementedEnrichmentInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEnrichmentInternalServiceServer struct { -} +// UnimplementedEnrichmentInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEnrichmentInternalServiceServer struct{} func (UnimplementedEnrichmentInternalServiceServer) GetInternalEnrichments(context.Context, *GetInternalEnrichmentsRequest) (*GetInternalEnrichmentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetInternalEnrichments not implemented") @@ -93,6 +99,7 @@ func (UnimplementedEnrichmentInternalServiceServer) RemoveInternalEnrichments(co } func (UnimplementedEnrichmentInternalServiceServer) mustEmbedUnimplementedEnrichmentInternalServiceServer() { } +func (UnimplementedEnrichmentInternalServiceServer) testEmbeddedByValue() {} // UnsafeEnrichmentInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EnrichmentInternalServiceServer will @@ -102,6 +109,13 @@ type UnsafeEnrichmentInternalServiceServer interface { } func RegisterEnrichmentInternalServiceServer(s grpc.ServiceRegistrar, srv EnrichmentInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedEnrichmentInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&EnrichmentInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/enrichment/v1/enrichment_request_model.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_request_model.pb.go index 0458101b..6e8404d9 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_request_model.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_request_model.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_request_model.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/enrichment_service.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_service.pb.go index d9496597..a9bf5d7e 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_service.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_service.proto package v1 diff --git a/go/internal/coralogix/enrichment/v1/enrichment_service_grpc.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_service_grpc.pb.go index c542ccfa..e16b2261 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_service_grpc.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( EnrichmentService_GetEnrichments_FullMethodName = "/com.coralogix.enrichment.v1.EnrichmentService/GetEnrichments" @@ -48,8 +48,9 @@ func NewEnrichmentServiceClient(cc grpc.ClientConnInterface) EnrichmentServiceCl } func (c *enrichmentServiceClient) GetEnrichments(ctx context.Context, in *GetEnrichmentsRequest, opts ...grpc.CallOption) (*GetEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentService_GetEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_GetEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *enrichmentServiceClient) GetEnrichments(ctx context.Context, in *GetEnr } func (c *enrichmentServiceClient) AddEnrichments(ctx context.Context, in *AddEnrichmentsRequest, opts ...grpc.CallOption) (*AddEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentService_AddEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_AddEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *enrichmentServiceClient) AddEnrichments(ctx context.Context, in *AddEnr } func (c *enrichmentServiceClient) RemoveEnrichments(ctx context.Context, in *RemoveEnrichmentsRequest, opts ...grpc.CallOption) (*RemoveEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentService_RemoveEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_RemoveEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *enrichmentServiceClient) RemoveEnrichments(ctx context.Context, in *Rem } func (c *enrichmentServiceClient) GetEnrichmentLimit(ctx context.Context, in *GetEnrichmentLimitRequest, opts ...grpc.CallOption) (*GetEnrichmentLimitResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetEnrichmentLimitResponse) - err := c.cc.Invoke(ctx, EnrichmentService_GetEnrichmentLimit_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_GetEnrichmentLimit_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +88,9 @@ func (c *enrichmentServiceClient) GetEnrichmentLimit(ctx context.Context, in *Ge } func (c *enrichmentServiceClient) AtomicOverwriteEnrichments(ctx context.Context, in *AtomicOverwriteEnrichmentsRequest, opts ...grpc.CallOption) (*AtomicOverwriteEnrichmentsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicOverwriteEnrichmentsResponse) - err := c.cc.Invoke(ctx, EnrichmentService_AtomicOverwriteEnrichments_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_AtomicOverwriteEnrichments_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +98,9 @@ func (c *enrichmentServiceClient) AtomicOverwriteEnrichments(ctx context.Context } func (c *enrichmentServiceClient) GetCompanyEnrichmentSettings(ctx context.Context, in *GetCompanyEnrichmentSettingsRequest, opts ...grpc.CallOption) (*GetCompanyEnrichmentSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyEnrichmentSettingsResponse) - err := c.cc.Invoke(ctx, EnrichmentService_GetCompanyEnrichmentSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EnrichmentService_GetCompanyEnrichmentSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,7 +109,7 @@ func (c *enrichmentServiceClient) GetCompanyEnrichmentSettings(ctx context.Conte // EnrichmentServiceServer is the server API for EnrichmentService service. // All implementations must embed UnimplementedEnrichmentServiceServer -// for forward compatibility +// for forward compatibility. type EnrichmentServiceServer interface { GetEnrichments(context.Context, *GetEnrichmentsRequest) (*GetEnrichmentsResponse, error) AddEnrichments(context.Context, *AddEnrichmentsRequest) (*AddEnrichmentsResponse, error) @@ -114,9 +120,12 @@ type EnrichmentServiceServer interface { mustEmbedUnimplementedEnrichmentServiceServer() } -// UnimplementedEnrichmentServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEnrichmentServiceServer struct { -} +// UnimplementedEnrichmentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEnrichmentServiceServer struct{} func (UnimplementedEnrichmentServiceServer) GetEnrichments(context.Context, *GetEnrichmentsRequest) (*GetEnrichmentsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetEnrichments not implemented") @@ -137,6 +146,7 @@ func (UnimplementedEnrichmentServiceServer) GetCompanyEnrichmentSettings(context return nil, status.Errorf(codes.Unimplemented, "method GetCompanyEnrichmentSettings not implemented") } func (UnimplementedEnrichmentServiceServer) mustEmbedUnimplementedEnrichmentServiceServer() {} +func (UnimplementedEnrichmentServiceServer) testEmbeddedByValue() {} // UnsafeEnrichmentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EnrichmentServiceServer will @@ -146,6 +156,13 @@ type UnsafeEnrichmentServiceServer interface { } func RegisterEnrichmentServiceServer(s grpc.ServiceRegistrar, srv EnrichmentServiceServer) { + // If the following call pancis, it indicates UnimplementedEnrichmentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&EnrichmentService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/enrichment/v1/enrichment_type.pb.go b/go/internal/coralogix/enrichment/v1/enrichment_type.pb.go index aff693cd..b74fbc5d 100644 --- a/go/internal/coralogix/enrichment/v1/enrichment_type.pb.go +++ b/go/internal/coralogix/enrichment/v1/enrichment_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/enrichment/v1/enrichment_type.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/audit_log.pb.go b/go/internal/coralogix/extensions/v1/audit_log.pb.go index 64c91972..f8fc3d3b 100644 --- a/go/internal/coralogix/extensions/v1/audit_log.pb.go +++ b/go/internal/coralogix/extensions/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension.pb.go b/go/internal/coralogix/extensions/v1/extension.pb.go index 238a8118..ee1fef90 100644 --- a/go/internal/coralogix/extensions/v1/extension.pb.go +++ b/go/internal/coralogix/extensions/v1/extension.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/extension.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension_content_management_service.pb.go b/go/internal/coralogix/extensions/v1/extension_content_management_service.pb.go index 4e85ddee..81067618 100644 --- a/go/internal/coralogix/extensions/v1/extension_content_management_service.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_content_management_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_content_management_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension_content_management_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/extension_content_management_service_grpc.pb.go index 9887dea5..69dbc15f 100644 --- a/go/internal/coralogix/extensions/v1/extension_content_management_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_content_management_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_content_management_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExtensionContentManagementService_ImportAndReleaseExtensions_FullMethodName = "/com.coralogix.extensions.v1.ExtensionContentManagementService/ImportAndReleaseExtensions" @@ -27,8 +27,8 @@ const ( // // 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 ExtensionContentManagementServiceClient interface { - ImportAndReleaseExtensions(ctx context.Context, opts ...grpc.CallOption) (ExtensionContentManagementService_ImportAndReleaseExtensionsClient, error) - ValidateExtensionItems(ctx context.Context, opts ...grpc.CallOption) (ExtensionContentManagementService_ValidateExtensionItemsClient, error) + ImportAndReleaseExtensions(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ExtensionData, ImportAndReleaseExtensionsResponse], error) + ValidateExtensionItems(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ExtensionData, ValidateExtensionItemsResponse], error) } type extensionContentManagementServiceClient struct { @@ -39,95 +39,57 @@ func NewExtensionContentManagementServiceClient(cc grpc.ClientConnInterface) Ext return &extensionContentManagementServiceClient{cc} } -func (c *extensionContentManagementServiceClient) ImportAndReleaseExtensions(ctx context.Context, opts ...grpc.CallOption) (ExtensionContentManagementService_ImportAndReleaseExtensionsClient, error) { - stream, err := c.cc.NewStream(ctx, &ExtensionContentManagementService_ServiceDesc.Streams[0], ExtensionContentManagementService_ImportAndReleaseExtensions_FullMethodName, opts...) +func (c *extensionContentManagementServiceClient) ImportAndReleaseExtensions(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ExtensionData, ImportAndReleaseExtensionsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ExtensionContentManagementService_ServiceDesc.Streams[0], ExtensionContentManagementService_ImportAndReleaseExtensions_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &extensionContentManagementServiceImportAndReleaseExtensionsClient{stream} + x := &grpc.GenericClientStream[ExtensionData, ImportAndReleaseExtensionsResponse]{ClientStream: stream} return x, nil } -type ExtensionContentManagementService_ImportAndReleaseExtensionsClient interface { - Send(*ExtensionData) error - CloseAndRecv() (*ImportAndReleaseExtensionsResponse, error) - grpc.ClientStream -} - -type extensionContentManagementServiceImportAndReleaseExtensionsClient struct { - grpc.ClientStream -} - -func (x *extensionContentManagementServiceImportAndReleaseExtensionsClient) Send(m *ExtensionData) error { - return x.ClientStream.SendMsg(m) -} - -func (x *extensionContentManagementServiceImportAndReleaseExtensionsClient) CloseAndRecv() (*ImportAndReleaseExtensionsResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(ImportAndReleaseExtensionsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExtensionContentManagementService_ImportAndReleaseExtensionsClient = grpc.ClientStreamingClient[ExtensionData, ImportAndReleaseExtensionsResponse] -func (c *extensionContentManagementServiceClient) ValidateExtensionItems(ctx context.Context, opts ...grpc.CallOption) (ExtensionContentManagementService_ValidateExtensionItemsClient, error) { - stream, err := c.cc.NewStream(ctx, &ExtensionContentManagementService_ServiceDesc.Streams[1], ExtensionContentManagementService_ValidateExtensionItems_FullMethodName, opts...) +func (c *extensionContentManagementServiceClient) ValidateExtensionItems(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[ExtensionData, ValidateExtensionItemsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &ExtensionContentManagementService_ServiceDesc.Streams[1], ExtensionContentManagementService_ValidateExtensionItems_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &extensionContentManagementServiceValidateExtensionItemsClient{stream} + x := &grpc.GenericClientStream[ExtensionData, ValidateExtensionItemsResponse]{ClientStream: stream} return x, nil } -type ExtensionContentManagementService_ValidateExtensionItemsClient interface { - Send(*ExtensionData) error - CloseAndRecv() (*ValidateExtensionItemsResponse, error) - grpc.ClientStream -} - -type extensionContentManagementServiceValidateExtensionItemsClient struct { - grpc.ClientStream -} - -func (x *extensionContentManagementServiceValidateExtensionItemsClient) Send(m *ExtensionData) error { - return x.ClientStream.SendMsg(m) -} - -func (x *extensionContentManagementServiceValidateExtensionItemsClient) CloseAndRecv() (*ValidateExtensionItemsResponse, error) { - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - m := new(ValidateExtensionItemsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExtensionContentManagementService_ValidateExtensionItemsClient = grpc.ClientStreamingClient[ExtensionData, ValidateExtensionItemsResponse] // ExtensionContentManagementServiceServer is the server API for ExtensionContentManagementService service. // All implementations must embed UnimplementedExtensionContentManagementServiceServer -// for forward compatibility +// for forward compatibility. type ExtensionContentManagementServiceServer interface { - ImportAndReleaseExtensions(ExtensionContentManagementService_ImportAndReleaseExtensionsServer) error - ValidateExtensionItems(ExtensionContentManagementService_ValidateExtensionItemsServer) error + ImportAndReleaseExtensions(grpc.ClientStreamingServer[ExtensionData, ImportAndReleaseExtensionsResponse]) error + ValidateExtensionItems(grpc.ClientStreamingServer[ExtensionData, ValidateExtensionItemsResponse]) error mustEmbedUnimplementedExtensionContentManagementServiceServer() } -// UnimplementedExtensionContentManagementServiceServer must be embedded to have forward compatible implementations. -type UnimplementedExtensionContentManagementServiceServer struct { -} +// UnimplementedExtensionContentManagementServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExtensionContentManagementServiceServer struct{} -func (UnimplementedExtensionContentManagementServiceServer) ImportAndReleaseExtensions(ExtensionContentManagementService_ImportAndReleaseExtensionsServer) error { +func (UnimplementedExtensionContentManagementServiceServer) ImportAndReleaseExtensions(grpc.ClientStreamingServer[ExtensionData, ImportAndReleaseExtensionsResponse]) error { return status.Errorf(codes.Unimplemented, "method ImportAndReleaseExtensions not implemented") } -func (UnimplementedExtensionContentManagementServiceServer) ValidateExtensionItems(ExtensionContentManagementService_ValidateExtensionItemsServer) error { +func (UnimplementedExtensionContentManagementServiceServer) ValidateExtensionItems(grpc.ClientStreamingServer[ExtensionData, ValidateExtensionItemsResponse]) error { return status.Errorf(codes.Unimplemented, "method ValidateExtensionItems not implemented") } func (UnimplementedExtensionContentManagementServiceServer) mustEmbedUnimplementedExtensionContentManagementServiceServer() { } +func (UnimplementedExtensionContentManagementServiceServer) testEmbeddedByValue() {} // UnsafeExtensionContentManagementServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExtensionContentManagementServiceServer will @@ -137,60 +99,29 @@ type UnsafeExtensionContentManagementServiceServer interface { } func RegisterExtensionContentManagementServiceServer(s grpc.ServiceRegistrar, srv ExtensionContentManagementServiceServer) { + // If the following call pancis, it indicates UnimplementedExtensionContentManagementServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExtensionContentManagementService_ServiceDesc, srv) } func _ExtensionContentManagementService_ImportAndReleaseExtensions_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ExtensionContentManagementServiceServer).ImportAndReleaseExtensions(&extensionContentManagementServiceImportAndReleaseExtensionsServer{stream}) + return srv.(ExtensionContentManagementServiceServer).ImportAndReleaseExtensions(&grpc.GenericServerStream[ExtensionData, ImportAndReleaseExtensionsResponse]{ServerStream: stream}) } -type ExtensionContentManagementService_ImportAndReleaseExtensionsServer interface { - SendAndClose(*ImportAndReleaseExtensionsResponse) error - Recv() (*ExtensionData, error) - grpc.ServerStream -} - -type extensionContentManagementServiceImportAndReleaseExtensionsServer struct { - grpc.ServerStream -} - -func (x *extensionContentManagementServiceImportAndReleaseExtensionsServer) SendAndClose(m *ImportAndReleaseExtensionsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *extensionContentManagementServiceImportAndReleaseExtensionsServer) Recv() (*ExtensionData, error) { - m := new(ExtensionData) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExtensionContentManagementService_ImportAndReleaseExtensionsServer = grpc.ClientStreamingServer[ExtensionData, ImportAndReleaseExtensionsResponse] func _ExtensionContentManagementService_ValidateExtensionItems_Handler(srv interface{}, stream grpc.ServerStream) error { - return srv.(ExtensionContentManagementServiceServer).ValidateExtensionItems(&extensionContentManagementServiceValidateExtensionItemsServer{stream}) -} - -type ExtensionContentManagementService_ValidateExtensionItemsServer interface { - SendAndClose(*ValidateExtensionItemsResponse) error - Recv() (*ExtensionData, error) - grpc.ServerStream -} - -type extensionContentManagementServiceValidateExtensionItemsServer struct { - grpc.ServerStream + return srv.(ExtensionContentManagementServiceServer).ValidateExtensionItems(&grpc.GenericServerStream[ExtensionData, ValidateExtensionItemsResponse]{ServerStream: stream}) } -func (x *extensionContentManagementServiceValidateExtensionItemsServer) SendAndClose(m *ValidateExtensionItemsResponse) error { - return x.ServerStream.SendMsg(m) -} - -func (x *extensionContentManagementServiceValidateExtensionItemsServer) Recv() (*ExtensionData, error) { - m := new(ExtensionData) - if err := x.ServerStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type ExtensionContentManagementService_ValidateExtensionItemsServer = grpc.ClientStreamingServer[ExtensionData, ValidateExtensionItemsResponse] // ExtensionContentManagementService_ServiceDesc is the grpc.ServiceDesc for ExtensionContentManagementService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogix/extensions/v1/extension_deployment_service.pb.go b/go/internal/coralogix/extensions/v1/extension_deployment_service.pb.go index f0f42f32..88b229b7 100644 --- a/go/internal/coralogix/extensions/v1/extension_deployment_service.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_deployment_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_deployment_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension_deployment_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/extension_deployment_service_grpc.pb.go index 37bf207f..05f05a28 100644 --- a/go/internal/coralogix/extensions/v1/extension_deployment_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_deployment_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_deployment_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExtensionDeploymentService_GetDeployedExtensions_FullMethodName = "/com.coralogix.extensions.v1.ExtensionDeploymentService/GetDeployedExtensions" @@ -44,8 +44,9 @@ func NewExtensionDeploymentServiceClient(cc grpc.ClientConnInterface) ExtensionD } func (c *extensionDeploymentServiceClient) GetDeployedExtensions(ctx context.Context, in *GetDeployedExtensionsRequest, opts ...grpc.CallOption) (*GetDeployedExtensionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDeployedExtensionsResponse) - err := c.cc.Invoke(ctx, ExtensionDeploymentService_GetDeployedExtensions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionDeploymentService_GetDeployedExtensions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *extensionDeploymentServiceClient) GetDeployedExtensions(ctx context.Con } func (c *extensionDeploymentServiceClient) DeployExtension(ctx context.Context, in *DeployExtensionRequest, opts ...grpc.CallOption) (*DeployExtensionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeployExtensionResponse) - err := c.cc.Invoke(ctx, ExtensionDeploymentService_DeployExtension_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionDeploymentService_DeployExtension_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *extensionDeploymentServiceClient) DeployExtension(ctx context.Context, } func (c *extensionDeploymentServiceClient) UpdateExtension(ctx context.Context, in *UpdateExtensionRequest, opts ...grpc.CallOption) (*UpdateExtensionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateExtensionResponse) - err := c.cc.Invoke(ctx, ExtensionDeploymentService_UpdateExtension_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionDeploymentService_UpdateExtension_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *extensionDeploymentServiceClient) UpdateExtension(ctx context.Context, } func (c *extensionDeploymentServiceClient) UndeployExtension(ctx context.Context, in *UndeployExtensionRequest, opts ...grpc.CallOption) (*UndeployExtensionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UndeployExtensionResponse) - err := c.cc.Invoke(ctx, ExtensionDeploymentService_UndeployExtension_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionDeploymentService_UndeployExtension_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *extensionDeploymentServiceClient) UndeployExtension(ctx context.Context // ExtensionDeploymentServiceServer is the server API for ExtensionDeploymentService service. // All implementations must embed UnimplementedExtensionDeploymentServiceServer -// for forward compatibility +// for forward compatibility. type ExtensionDeploymentServiceServer interface { GetDeployedExtensions(context.Context, *GetDeployedExtensionsRequest) (*GetDeployedExtensionsResponse, error) DeployExtension(context.Context, *DeployExtensionRequest) (*DeployExtensionResponse, error) @@ -90,9 +94,12 @@ type ExtensionDeploymentServiceServer interface { mustEmbedUnimplementedExtensionDeploymentServiceServer() } -// UnimplementedExtensionDeploymentServiceServer must be embedded to have forward compatible implementations. -type UnimplementedExtensionDeploymentServiceServer struct { -} +// UnimplementedExtensionDeploymentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExtensionDeploymentServiceServer struct{} func (UnimplementedExtensionDeploymentServiceServer) GetDeployedExtensions(context.Context, *GetDeployedExtensionsRequest) (*GetDeployedExtensionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDeployedExtensions not implemented") @@ -108,6 +115,7 @@ func (UnimplementedExtensionDeploymentServiceServer) UndeployExtension(context.C } func (UnimplementedExtensionDeploymentServiceServer) mustEmbedUnimplementedExtensionDeploymentServiceServer() { } +func (UnimplementedExtensionDeploymentServiceServer) testEmbeddedByValue() {} // UnsafeExtensionDeploymentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExtensionDeploymentServiceServer will @@ -117,6 +125,13 @@ type UnsafeExtensionDeploymentServiceServer interface { } func RegisterExtensionDeploymentServiceServer(s grpc.ServiceRegistrar, srv ExtensionDeploymentServiceServer) { + // If the following call pancis, it indicates UnimplementedExtensionDeploymentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExtensionDeploymentService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/extensions/v1/extension_service.pb.go b/go/internal/coralogix/extensions/v1/extension_service.pb.go index bc562f07..a899d393 100644 --- a/go/internal/coralogix/extensions/v1/extension_service.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/extension_service_grpc.pb.go index 71c0246b..69be4ef1 100644 --- a/go/internal/coralogix/extensions/v1/extension_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExtensionService_GetAllExtensions_FullMethodName = "/com.coralogix.extensions.v1.ExtensionService/GetAllExtensions" @@ -40,8 +40,9 @@ func NewExtensionServiceClient(cc grpc.ClientConnInterface) ExtensionServiceClie } func (c *extensionServiceClient) GetAllExtensions(ctx context.Context, in *GetAllExtensionsRequest, opts ...grpc.CallOption) (*GetAllExtensionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAllExtensionsResponse) - err := c.cc.Invoke(ctx, ExtensionService_GetAllExtensions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionService_GetAllExtensions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *extensionServiceClient) GetAllExtensions(ctx context.Context, in *GetAl } func (c *extensionServiceClient) GetExtension(ctx context.Context, in *GetExtensionRequest, opts ...grpc.CallOption) (*GetExtensionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetExtensionResponse) - err := c.cc.Invoke(ctx, ExtensionService_GetExtension_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionService_GetExtension_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *extensionServiceClient) GetExtension(ctx context.Context, in *GetExtens // ExtensionServiceServer is the server API for ExtensionService service. // All implementations must embed UnimplementedExtensionServiceServer -// for forward compatibility +// for forward compatibility. type ExtensionServiceServer interface { GetAllExtensions(context.Context, *GetAllExtensionsRequest) (*GetAllExtensionsResponse, error) GetExtension(context.Context, *GetExtensionRequest) (*GetExtensionResponse, error) mustEmbedUnimplementedExtensionServiceServer() } -// UnimplementedExtensionServiceServer must be embedded to have forward compatible implementations. -type UnimplementedExtensionServiceServer struct { -} +// UnimplementedExtensionServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExtensionServiceServer struct{} func (UnimplementedExtensionServiceServer) GetAllExtensions(context.Context, *GetAllExtensionsRequest) (*GetAllExtensionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAllExtensions not implemented") @@ -77,6 +82,7 @@ func (UnimplementedExtensionServiceServer) GetExtension(context.Context, *GetExt return nil, status.Errorf(codes.Unimplemented, "method GetExtension not implemented") } func (UnimplementedExtensionServiceServer) mustEmbedUnimplementedExtensionServiceServer() {} +func (UnimplementedExtensionServiceServer) testEmbeddedByValue() {} // UnsafeExtensionServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExtensionServiceServer will @@ -86,6 +92,13 @@ type UnsafeExtensionServiceServer interface { } func RegisterExtensionServiceServer(s grpc.ServiceRegistrar, srv ExtensionServiceServer) { + // If the following call pancis, it indicates UnimplementedExtensionServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExtensionService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/extensions/v1/extension_testing_service.pb.go b/go/internal/coralogix/extensions/v1/extension_testing_service.pb.go index 6655bac7..37fb4d8d 100644 --- a/go/internal/coralogix/extensions/v1/extension_testing_service.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_testing_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_testing_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/extension_testing_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/extension_testing_service_grpc.pb.go index fd8d77f2..e0691b37 100644 --- a/go/internal/coralogix/extensions/v1/extension_testing_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/extension_testing_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/extension_testing_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExtensionTestingService_InitializeTestingRevision_FullMethodName = "/com.coralogix.extensions.v1.ExtensionTestingService/InitializeTestingRevision" @@ -42,8 +42,9 @@ func NewExtensionTestingServiceClient(cc grpc.ClientConnInterface) ExtensionTest } func (c *extensionTestingServiceClient) InitializeTestingRevision(ctx context.Context, in *InitializeTestingRevisionRequest, opts ...grpc.CallOption) (*InitializeTestingRevisionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InitializeTestingRevisionResponse) - err := c.cc.Invoke(ctx, ExtensionTestingService_InitializeTestingRevision_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionTestingService_InitializeTestingRevision_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *extensionTestingServiceClient) InitializeTestingRevision(ctx context.Co } func (c *extensionTestingServiceClient) CleanupTestingRevision(ctx context.Context, in *CleanupTestingRevisionRequest, opts ...grpc.CallOption) (*CleanupTestingRevisionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CleanupTestingRevisionResponse) - err := c.cc.Invoke(ctx, ExtensionTestingService_CleanupTestingRevision_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionTestingService_CleanupTestingRevision_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *extensionTestingServiceClient) CleanupTestingRevision(ctx context.Conte } func (c *extensionTestingServiceClient) TestExtensionRevision(ctx context.Context, in *TestExtensionRevisionRequest, opts ...grpc.CallOption) (*TestExtensionRevisionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestExtensionRevisionResponse) - err := c.cc.Invoke(ctx, ExtensionTestingService_TestExtensionRevision_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExtensionTestingService_TestExtensionRevision_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *extensionTestingServiceClient) TestExtensionRevision(ctx context.Contex // ExtensionTestingServiceServer is the server API for ExtensionTestingService service. // All implementations must embed UnimplementedExtensionTestingServiceServer -// for forward compatibility +// for forward compatibility. type ExtensionTestingServiceServer interface { InitializeTestingRevision(context.Context, *InitializeTestingRevisionRequest) (*InitializeTestingRevisionResponse, error) CleanupTestingRevision(context.Context, *CleanupTestingRevisionRequest) (*CleanupTestingRevisionResponse, error) @@ -78,9 +81,12 @@ type ExtensionTestingServiceServer interface { mustEmbedUnimplementedExtensionTestingServiceServer() } -// UnimplementedExtensionTestingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedExtensionTestingServiceServer struct { -} +// UnimplementedExtensionTestingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExtensionTestingServiceServer struct{} func (UnimplementedExtensionTestingServiceServer) InitializeTestingRevision(context.Context, *InitializeTestingRevisionRequest) (*InitializeTestingRevisionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InitializeTestingRevision not implemented") @@ -93,6 +99,7 @@ func (UnimplementedExtensionTestingServiceServer) TestExtensionRevision(context. } func (UnimplementedExtensionTestingServiceServer) mustEmbedUnimplementedExtensionTestingServiceServer() { } +func (UnimplementedExtensionTestingServiceServer) testEmbeddedByValue() {} // UnsafeExtensionTestingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExtensionTestingServiceServer will @@ -102,6 +109,13 @@ type UnsafeExtensionTestingServiceServer interface { } func RegisterExtensionTestingServiceServer(s grpc.ServiceRegistrar, srv ExtensionTestingServiceServer) { + // If the following call pancis, it indicates UnimplementedExtensionTestingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExtensionTestingService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/extensions/v1/internal_onboarding_service.pb.go b/go/internal/coralogix/extensions/v1/internal_onboarding_service.pb.go index 573965c2..9e95ad12 100644 --- a/go/internal/coralogix/extensions/v1/internal_onboarding_service.pb.go +++ b/go/internal/coralogix/extensions/v1/internal_onboarding_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/internal_onboarding_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/internal_onboarding_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/internal_onboarding_service_grpc.pb.go index ca6b5c7d..c5d2a816 100644 --- a/go/internal/coralogix/extensions/v1/internal_onboarding_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/internal_onboarding_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/internal_onboarding_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InternalOnboardingService_InternalDeployExtension_FullMethodName = "/com.coralogix.extensions.v1.InternalOnboardingService/InternalDeployExtension" @@ -38,8 +38,9 @@ func NewInternalOnboardingServiceClient(cc grpc.ClientConnInterface) InternalOnb } func (c *internalOnboardingServiceClient) InternalDeployExtension(ctx context.Context, in *InternalDeployExtensionRequest, opts ...grpc.CallOption) (*InternalDeployExtensionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(InternalDeployExtensionResponse) - err := c.cc.Invoke(ctx, InternalOnboardingService_InternalDeployExtension_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalOnboardingService_InternalDeployExtension_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *internalOnboardingServiceClient) InternalDeployExtension(ctx context.Co // InternalOnboardingServiceServer is the server API for InternalOnboardingService service. // All implementations must embed UnimplementedInternalOnboardingServiceServer -// for forward compatibility +// for forward compatibility. type InternalOnboardingServiceServer interface { InternalDeployExtension(context.Context, *InternalDeployExtensionRequest) (*InternalDeployExtensionResponse, error) mustEmbedUnimplementedInternalOnboardingServiceServer() } -// UnimplementedInternalOnboardingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalOnboardingServiceServer struct { -} +// UnimplementedInternalOnboardingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalOnboardingServiceServer struct{} func (UnimplementedInternalOnboardingServiceServer) InternalDeployExtension(context.Context, *InternalDeployExtensionRequest) (*InternalDeployExtensionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method InternalDeployExtension not implemented") } func (UnimplementedInternalOnboardingServiceServer) mustEmbedUnimplementedInternalOnboardingServiceServer() { } +func (UnimplementedInternalOnboardingServiceServer) testEmbeddedByValue() {} // UnsafeInternalOnboardingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalOnboardingServiceServer will @@ -72,6 +77,13 @@ type UnsafeInternalOnboardingServiceServer interface { } func RegisterInternalOnboardingServiceServer(s grpc.ServiceRegistrar, srv InternalOnboardingServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalOnboardingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalOnboardingService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/extensions/v1/quota_service.pb.go b/go/internal/coralogix/extensions/v1/quota_service.pb.go index 7d08b965..1af1ff9a 100644 --- a/go/internal/coralogix/extensions/v1/quota_service.pb.go +++ b/go/internal/coralogix/extensions/v1/quota_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/extensions/v1/quota_service.proto package v1 diff --git a/go/internal/coralogix/extensions/v1/quota_service_grpc.pb.go b/go/internal/coralogix/extensions/v1/quota_service_grpc.pb.go index 44fe527d..2e7aeccf 100644 --- a/go/internal/coralogix/extensions/v1/quota_service_grpc.pb.go +++ b/go/internal/coralogix/extensions/v1/quota_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/extensions/v1/quota_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( QuotaService_GetQuotas_FullMethodName = "/com.coralogix.extensions.v1.QuotaService/GetQuotas" @@ -38,8 +38,9 @@ func NewQuotaServiceClient(cc grpc.ClientConnInterface) QuotaServiceClient { } func (c *quotaServiceClient) GetQuotas(ctx context.Context, in *GetQuotasRequest, opts ...grpc.CallOption) (*GetQuotasResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetQuotasResponse) - err := c.cc.Invoke(ctx, QuotaService_GetQuotas_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, QuotaService_GetQuotas_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *quotaServiceClient) GetQuotas(ctx context.Context, in *GetQuotasRequest // QuotaServiceServer is the server API for QuotaService service. // All implementations must embed UnimplementedQuotaServiceServer -// for forward compatibility +// for forward compatibility. type QuotaServiceServer interface { GetQuotas(context.Context, *GetQuotasRequest) (*GetQuotasResponse, error) mustEmbedUnimplementedQuotaServiceServer() } -// UnimplementedQuotaServiceServer must be embedded to have forward compatible implementations. -type UnimplementedQuotaServiceServer struct { -} +// UnimplementedQuotaServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedQuotaServiceServer struct{} func (UnimplementedQuotaServiceServer) GetQuotas(context.Context, *GetQuotasRequest) (*GetQuotasResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQuotas not implemented") } func (UnimplementedQuotaServiceServer) mustEmbedUnimplementedQuotaServiceServer() {} +func (UnimplementedQuotaServiceServer) testEmbeddedByValue() {} // UnsafeQuotaServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to QuotaServiceServer will @@ -71,6 +76,13 @@ type UnsafeQuotaServiceServer interface { } func RegisterQuotaServiceServer(s grpc.ServiceRegistrar, srv QuotaServiceServer) { + // If the following call pancis, it indicates UnimplementedQuotaServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&QuotaService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/audit_log.pb.go b/go/internal/coralogix/global_mapping/v1/audit_log.pb.go index 8affccf4..ca94cf33 100644 --- a/go/internal/coralogix/global_mapping/v1/audit_log.pb.go +++ b/go/internal/coralogix/global_mapping/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/context_data.pb.go b/go/internal/coralogix/global_mapping/v1/context_data.pb.go index 0499d439..059c59e8 100644 --- a/go/internal/coralogix/global_mapping/v1/context_data.pb.go +++ b/go/internal/coralogix/global_mapping/v1/context_data.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/context_data.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/data_source.pb.go b/go/internal/coralogix/global_mapping/v1/data_source.pb.go index 0e9d4529..a0f59906 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/data_source_internal_service.pb.go b/go/internal/coralogix/global_mapping/v1/data_source_internal_service.pb.go index 13e82b79..ad100928 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source_internal_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source_internal_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/data_source_internal_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/data_source_internal_service_grpc.pb.go index 253fcd4c..71773709 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source_internal_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source_internal_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CompanyDataSourcesInternalService_GetCompanyDataSourcesInternal_FullMethodName = "/com.coralogix.global_mapping.v1.CompanyDataSourcesInternalService/GetCompanyDataSourcesInternal" @@ -38,8 +38,9 @@ func NewCompanyDataSourcesInternalServiceClient(cc grpc.ClientConnInterface) Com } func (c *companyDataSourcesInternalServiceClient) GetCompanyDataSourcesInternal(ctx context.Context, in *GetCompanyDataSourcesInternalRequest, opts ...grpc.CallOption) (*GetCompanyDataSourcesInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyDataSourcesInternalResponse) - err := c.cc.Invoke(ctx, CompanyDataSourcesInternalService_GetCompanyDataSourcesInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompanyDataSourcesInternalService_GetCompanyDataSourcesInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *companyDataSourcesInternalServiceClient) GetCompanyDataSourcesInternal( // CompanyDataSourcesInternalServiceServer is the server API for CompanyDataSourcesInternalService service. // All implementations must embed UnimplementedCompanyDataSourcesInternalServiceServer -// for forward compatibility +// for forward compatibility. type CompanyDataSourcesInternalServiceServer interface { GetCompanyDataSourcesInternal(context.Context, *GetCompanyDataSourcesInternalRequest) (*GetCompanyDataSourcesInternalResponse, error) mustEmbedUnimplementedCompanyDataSourcesInternalServiceServer() } -// UnimplementedCompanyDataSourcesInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCompanyDataSourcesInternalServiceServer struct { -} +// UnimplementedCompanyDataSourcesInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCompanyDataSourcesInternalServiceServer struct{} func (UnimplementedCompanyDataSourcesInternalServiceServer) GetCompanyDataSourcesInternal(context.Context, *GetCompanyDataSourcesInternalRequest) (*GetCompanyDataSourcesInternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCompanyDataSourcesInternal not implemented") } func (UnimplementedCompanyDataSourcesInternalServiceServer) mustEmbedUnimplementedCompanyDataSourcesInternalServiceServer() { } +func (UnimplementedCompanyDataSourcesInternalServiceServer) testEmbeddedByValue() {} // UnsafeCompanyDataSourcesInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CompanyDataSourcesInternalServiceServer will @@ -72,6 +77,13 @@ type UnsafeCompanyDataSourcesInternalServiceServer interface { } func RegisterCompanyDataSourcesInternalServiceServer(s grpc.ServiceRegistrar, srv CompanyDataSourcesInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedCompanyDataSourcesInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CompanyDataSourcesInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/data_source_service.pb.go b/go/internal/coralogix/global_mapping/v1/data_source_service.pb.go index 20b2e24b..35578dd0 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/data_source_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/data_source_service_grpc.pb.go index b897f14a..7163ca1a 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CompanyDataSourcesService_GetCompanyDataSources_FullMethodName = "/com.coralogix.global_mapping.v1.CompanyDataSourcesService/GetCompanyDataSources" @@ -38,8 +38,9 @@ func NewCompanyDataSourcesServiceClient(cc grpc.ClientConnInterface) CompanyData } func (c *companyDataSourcesServiceClient) GetCompanyDataSources(ctx context.Context, in *GetCompanyDataSourcesRequest, opts ...grpc.CallOption) (*GetCompanyDataSourcesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyDataSourcesResponse) - err := c.cc.Invoke(ctx, CompanyDataSourcesService_GetCompanyDataSources_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompanyDataSourcesService_GetCompanyDataSources_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *companyDataSourcesServiceClient) GetCompanyDataSources(ctx context.Cont // CompanyDataSourcesServiceServer is the server API for CompanyDataSourcesService service. // All implementations must embed UnimplementedCompanyDataSourcesServiceServer -// for forward compatibility +// for forward compatibility. type CompanyDataSourcesServiceServer interface { GetCompanyDataSources(context.Context, *GetCompanyDataSourcesRequest) (*GetCompanyDataSourcesResponse, error) mustEmbedUnimplementedCompanyDataSourcesServiceServer() } -// UnimplementedCompanyDataSourcesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCompanyDataSourcesServiceServer struct { -} +// UnimplementedCompanyDataSourcesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCompanyDataSourcesServiceServer struct{} func (UnimplementedCompanyDataSourcesServiceServer) GetCompanyDataSources(context.Context, *GetCompanyDataSourcesRequest) (*GetCompanyDataSourcesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCompanyDataSources not implemented") } func (UnimplementedCompanyDataSourcesServiceServer) mustEmbedUnimplementedCompanyDataSourcesServiceServer() { } +func (UnimplementedCompanyDataSourcesServiceServer) testEmbeddedByValue() {} // UnsafeCompanyDataSourcesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CompanyDataSourcesServiceServer will @@ -72,6 +77,13 @@ type UnsafeCompanyDataSourcesServiceServer interface { } func RegisterCompanyDataSourcesServiceServer(s grpc.ServiceRegistrar, srv CompanyDataSourcesServiceServer) { + // If the following call pancis, it indicates UnimplementedCompanyDataSourcesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CompanyDataSourcesService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/data_source_type.pb.go b/go/internal/coralogix/global_mapping/v1/data_source_type.pb.go index e9752a75..614dbd3a 100644 --- a/go/internal/coralogix/global_mapping/v1/data_source_type.pb.go +++ b/go/internal/coralogix/global_mapping/v1/data_source_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/data_source_type.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/extracted_label.pb.go b/go/internal/coralogix/global_mapping/v1/extracted_label.pb.go index 59088a5a..cc58b0a2 100644 --- a/go/internal/coralogix/global_mapping/v1/extracted_label.pb.go +++ b/go/internal/coralogix/global_mapping/v1/extracted_label.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/extracted_label.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/label_mapping.pb.go b/go/internal/coralogix/global_mapping/v1/label_mapping.pb.go index ae510427..b3c47597 100644 --- a/go/internal/coralogix/global_mapping/v1/label_mapping.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_mapping.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_mapping.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service.pb.go b/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service.pb.go index 4901c927..3b37a032 100644 --- a/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_mappings_internal_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service_grpc.pb.go index dcc9a26c..60608de6 100644 --- a/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_mappings_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_mappings_internal_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( LabelMappingsInternalService_UpsertLabelMappingsInternal_FullMethodName = "/com.coralogix.global_mapping.v1.LabelMappingsInternalService/UpsertLabelMappingsInternal" @@ -42,8 +42,9 @@ func NewLabelMappingsInternalServiceClient(cc grpc.ClientConnInterface) LabelMap } func (c *labelMappingsInternalServiceClient) UpsertLabelMappingsInternal(ctx context.Context, in *UpsertLabelMappingsInternalRequest, opts ...grpc.CallOption) (*UpsertLabelMappingsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertLabelMappingsInternalResponse) - err := c.cc.Invoke(ctx, LabelMappingsInternalService_UpsertLabelMappingsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsInternalService_UpsertLabelMappingsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *labelMappingsInternalServiceClient) UpsertLabelMappingsInternal(ctx con } func (c *labelMappingsInternalServiceClient) GetLabelMappingsInternal(ctx context.Context, in *GetLabelMappingsInternalRequest, opts ...grpc.CallOption) (*GetLabelMappingsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelMappingsInternalResponse) - err := c.cc.Invoke(ctx, LabelMappingsInternalService_GetLabelMappingsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsInternalService_GetLabelMappingsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *labelMappingsInternalServiceClient) GetLabelMappingsInternal(ctx contex } func (c *labelMappingsInternalServiceClient) GetLabelValuesInternal(ctx context.Context, in *GetLabelValuesInternalRequest, opts ...grpc.CallOption) (*GetLabelValuesInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelValuesInternalResponse) - err := c.cc.Invoke(ctx, LabelMappingsInternalService_GetLabelValuesInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsInternalService_GetLabelValuesInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *labelMappingsInternalServiceClient) GetLabelValuesInternal(ctx context. // LabelMappingsInternalServiceServer is the server API for LabelMappingsInternalService service. // All implementations must embed UnimplementedLabelMappingsInternalServiceServer -// for forward compatibility +// for forward compatibility. type LabelMappingsInternalServiceServer interface { UpsertLabelMappingsInternal(context.Context, *UpsertLabelMappingsInternalRequest) (*UpsertLabelMappingsInternalResponse, error) GetLabelMappingsInternal(context.Context, *GetLabelMappingsInternalRequest) (*GetLabelMappingsInternalResponse, error) @@ -78,9 +81,12 @@ type LabelMappingsInternalServiceServer interface { mustEmbedUnimplementedLabelMappingsInternalServiceServer() } -// UnimplementedLabelMappingsInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedLabelMappingsInternalServiceServer struct { -} +// UnimplementedLabelMappingsInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLabelMappingsInternalServiceServer struct{} func (UnimplementedLabelMappingsInternalServiceServer) UpsertLabelMappingsInternal(context.Context, *UpsertLabelMappingsInternalRequest) (*UpsertLabelMappingsInternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpsertLabelMappingsInternal not implemented") @@ -93,6 +99,7 @@ func (UnimplementedLabelMappingsInternalServiceServer) GetLabelValuesInternal(co } func (UnimplementedLabelMappingsInternalServiceServer) mustEmbedUnimplementedLabelMappingsInternalServiceServer() { } +func (UnimplementedLabelMappingsInternalServiceServer) testEmbeddedByValue() {} // UnsafeLabelMappingsInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LabelMappingsInternalServiceServer will @@ -102,6 +109,13 @@ type UnsafeLabelMappingsInternalServiceServer interface { } func RegisterLabelMappingsInternalServiceServer(s grpc.ServiceRegistrar, srv LabelMappingsInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedLabelMappingsInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&LabelMappingsInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/label_mappings_service.pb.go b/go/internal/coralogix/global_mapping/v1/label_mappings_service.pb.go index 30534f2f..d6334e72 100644 --- a/go/internal/coralogix/global_mapping/v1/label_mappings_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_mappings_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_mappings_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/label_mappings_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/label_mappings_service_grpc.pb.go index 9d551d7e..89c70c33 100644 --- a/go/internal/coralogix/global_mapping/v1/label_mappings_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_mappings_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_mappings_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( LabelMappingsService_GetLabelMappings_FullMethodName = "/com.coralogix.global_mapping.v1.LabelMappingsService/GetLabelMappings" @@ -56,8 +56,9 @@ func NewLabelMappingsServiceClient(cc grpc.ClientConnInterface) LabelMappingsSer } func (c *labelMappingsServiceClient) GetLabelMappings(ctx context.Context, in *GetLabelMappingsRequest, opts ...grpc.CallOption) (*GetLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -65,8 +66,9 @@ func (c *labelMappingsServiceClient) GetLabelMappings(ctx context.Context, in *G } func (c *labelMappingsServiceClient) RemoveLabelMappings(ctx context.Context, in *RemoveLabelMappingsRequest, opts ...grpc.CallOption) (*RemoveLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_RemoveLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_RemoveLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -74,8 +76,9 @@ func (c *labelMappingsServiceClient) RemoveLabelMappings(ctx context.Context, in } func (c *labelMappingsServiceClient) UpsertLabelMappings(ctx context.Context, in *UpsertLabelMappingsRequest, opts ...grpc.CallOption) (*UpsertLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_UpsertLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_UpsertLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -83,8 +86,9 @@ func (c *labelMappingsServiceClient) UpsertLabelMappings(ctx context.Context, in } func (c *labelMappingsServiceClient) GetLabels(ctx context.Context, in *GetLabelsRequest, opts ...grpc.CallOption) (*GetLabelsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_GetLabels_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_GetLabels_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,8 +96,9 @@ func (c *labelMappingsServiceClient) GetLabels(ctx context.Context, in *GetLabel } func (c *labelMappingsServiceClient) Extract(ctx context.Context, in *ExtractRequest, opts ...grpc.CallOption) (*ExtractResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ExtractResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_Extract_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_Extract_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -101,8 +106,9 @@ func (c *labelMappingsServiceClient) Extract(ctx context.Context, in *ExtractReq } func (c *labelMappingsServiceClient) GetLabelValues(ctx context.Context, in *GetLabelValuesRequest, opts ...grpc.CallOption) (*GetLabelValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelValuesResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -110,8 +116,9 @@ func (c *labelMappingsServiceClient) GetLabelValues(ctx context.Context, in *Get } func (c *labelMappingsServiceClient) GetCustomLabelMappings(ctx context.Context, in *GetCustomLabelMappingsRequest, opts ...grpc.CallOption) (*GetCustomLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCustomLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_GetCustomLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_GetCustomLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -119,8 +126,9 @@ func (c *labelMappingsServiceClient) GetCustomLabelMappings(ctx context.Context, } func (c *labelMappingsServiceClient) UpsertCustomLabelMappings(ctx context.Context, in *UpsertCustomLabelMappingsRequest, opts ...grpc.CallOption) (*UpsertCustomLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertCustomLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_UpsertCustomLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_UpsertCustomLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -128,8 +136,9 @@ func (c *labelMappingsServiceClient) UpsertCustomLabelMappings(ctx context.Conte } func (c *labelMappingsServiceClient) RemoveCustomLabelMappings(ctx context.Context, in *RemoveCustomLabelMappingsRequest, opts ...grpc.CallOption) (*RemoveCustomLabelMappingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveCustomLabelMappingsResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_RemoveCustomLabelMappings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_RemoveCustomLabelMappings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -137,8 +146,9 @@ func (c *labelMappingsServiceClient) RemoveCustomLabelMappings(ctx context.Conte } func (c *labelMappingsServiceClient) GetLabelKeys(ctx context.Context, in *GetLabelKeysRequest, opts ...grpc.CallOption) (*GetLabelKeysResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLabelKeysResponse) - err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelKeys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LabelMappingsService_GetLabelKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -147,7 +157,7 @@ func (c *labelMappingsServiceClient) GetLabelKeys(ctx context.Context, in *GetLa // LabelMappingsServiceServer is the server API for LabelMappingsService service. // All implementations must embed UnimplementedLabelMappingsServiceServer -// for forward compatibility +// for forward compatibility. type LabelMappingsServiceServer interface { GetLabelMappings(context.Context, *GetLabelMappingsRequest) (*GetLabelMappingsResponse, error) RemoveLabelMappings(context.Context, *RemoveLabelMappingsRequest) (*RemoveLabelMappingsResponse, error) @@ -162,9 +172,12 @@ type LabelMappingsServiceServer interface { mustEmbedUnimplementedLabelMappingsServiceServer() } -// UnimplementedLabelMappingsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedLabelMappingsServiceServer struct { -} +// UnimplementedLabelMappingsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLabelMappingsServiceServer struct{} func (UnimplementedLabelMappingsServiceServer) GetLabelMappings(context.Context, *GetLabelMappingsRequest) (*GetLabelMappingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetLabelMappings not implemented") @@ -197,6 +210,7 @@ func (UnimplementedLabelMappingsServiceServer) GetLabelKeys(context.Context, *Ge return nil, status.Errorf(codes.Unimplemented, "method GetLabelKeys not implemented") } func (UnimplementedLabelMappingsServiceServer) mustEmbedUnimplementedLabelMappingsServiceServer() {} +func (UnimplementedLabelMappingsServiceServer) testEmbeddedByValue() {} // UnsafeLabelMappingsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LabelMappingsServiceServer will @@ -206,6 +220,13 @@ type UnsafeLabelMappingsServiceServer interface { } func RegisterLabelMappingsServiceServer(s grpc.ServiceRegistrar, srv LabelMappingsServiceServer) { + // If the following call pancis, it indicates UnimplementedLabelMappingsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&LabelMappingsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/label_values.pb.go b/go/internal/coralogix/global_mapping/v1/label_values.pb.go index a3a95239..78229c86 100644 --- a/go/internal/coralogix/global_mapping/v1/label_values.pb.go +++ b/go/internal/coralogix/global_mapping/v1/label_values.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/label_values.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/measurement.pb.go b/go/internal/coralogix/global_mapping/v1/measurement.pb.go index 1d145d1b..95896fb2 100644 --- a/go/internal/coralogix/global_mapping/v1/measurement.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurement.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurement.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/measurement_query.pb.go b/go/internal/coralogix/global_mapping/v1/measurement_query.pb.go index 64a8a67f..88f7f47b 100644 --- a/go/internal/coralogix/global_mapping/v1/measurement_query.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurement_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurement_query.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/measurements_internal_service.pb.go b/go/internal/coralogix/global_mapping/v1/measurements_internal_service.pb.go index cde33888..b7e215c4 100644 --- a/go/internal/coralogix/global_mapping/v1/measurements_internal_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurements_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurements_internal_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/measurements_internal_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/measurements_internal_service_grpc.pb.go index a21d3a8a..ee61c2b3 100644 --- a/go/internal/coralogix/global_mapping/v1/measurements_internal_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurements_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurements_internal_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MeasurementsInternalService_UpsertGlobalMeasurementsInternal_FullMethodName = "/com.coralogix.global_mapping.v1.MeasurementsInternalService/UpsertGlobalMeasurementsInternal" @@ -44,8 +44,9 @@ func NewMeasurementsInternalServiceClient(cc grpc.ClientConnInterface) Measureme } func (c *measurementsInternalServiceClient) UpsertGlobalMeasurementsInternal(ctx context.Context, in *UpsertGlobalMeasurementsInternalRequest, opts ...grpc.CallOption) (*UpsertGlobalMeasurementsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertGlobalMeasurementsInternalResponse) - err := c.cc.Invoke(ctx, MeasurementsInternalService_UpsertGlobalMeasurementsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsInternalService_UpsertGlobalMeasurementsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *measurementsInternalServiceClient) UpsertGlobalMeasurementsInternal(ctx } func (c *measurementsInternalServiceClient) RemoveGlobalMeasurementsInternal(ctx context.Context, in *RemoveGlobalMeasurementsInternalRequest, opts ...grpc.CallOption) (*RemoveGlobalMeasurementsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveGlobalMeasurementsInternalResponse) - err := c.cc.Invoke(ctx, MeasurementsInternalService_RemoveGlobalMeasurementsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsInternalService_RemoveGlobalMeasurementsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *measurementsInternalServiceClient) RemoveGlobalMeasurementsInternal(ctx } func (c *measurementsInternalServiceClient) UpsertCompanyProvidersInternal(ctx context.Context, in *UpsertCompanyProvidersInternalRequest, opts ...grpc.CallOption) (*UpsertCompanyProvidersInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertCompanyProvidersInternalResponse) - err := c.cc.Invoke(ctx, MeasurementsInternalService_UpsertCompanyProvidersInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsInternalService_UpsertCompanyProvidersInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *measurementsInternalServiceClient) UpsertCompanyProvidersInternal(ctx c } func (c *measurementsInternalServiceClient) GetMeasurementsInternal(ctx context.Context, in *GetMeasurementsInternalRequest, opts ...grpc.CallOption) (*GetMeasurementsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMeasurementsInternalResponse) - err := c.cc.Invoke(ctx, MeasurementsInternalService_GetMeasurementsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsInternalService_GetMeasurementsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *measurementsInternalServiceClient) GetMeasurementsInternal(ctx context. // MeasurementsInternalServiceServer is the server API for MeasurementsInternalService service. // All implementations must embed UnimplementedMeasurementsInternalServiceServer -// for forward compatibility +// for forward compatibility. type MeasurementsInternalServiceServer interface { UpsertGlobalMeasurementsInternal(context.Context, *UpsertGlobalMeasurementsInternalRequest) (*UpsertGlobalMeasurementsInternalResponse, error) RemoveGlobalMeasurementsInternal(context.Context, *RemoveGlobalMeasurementsInternalRequest) (*RemoveGlobalMeasurementsInternalResponse, error) @@ -90,9 +94,12 @@ type MeasurementsInternalServiceServer interface { mustEmbedUnimplementedMeasurementsInternalServiceServer() } -// UnimplementedMeasurementsInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMeasurementsInternalServiceServer struct { -} +// UnimplementedMeasurementsInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMeasurementsInternalServiceServer struct{} func (UnimplementedMeasurementsInternalServiceServer) UpsertGlobalMeasurementsInternal(context.Context, *UpsertGlobalMeasurementsInternalRequest) (*UpsertGlobalMeasurementsInternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method UpsertGlobalMeasurementsInternal not implemented") @@ -108,6 +115,7 @@ func (UnimplementedMeasurementsInternalServiceServer) GetMeasurementsInternal(co } func (UnimplementedMeasurementsInternalServiceServer) mustEmbedUnimplementedMeasurementsInternalServiceServer() { } +func (UnimplementedMeasurementsInternalServiceServer) testEmbeddedByValue() {} // UnsafeMeasurementsInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MeasurementsInternalServiceServer will @@ -117,6 +125,13 @@ type UnsafeMeasurementsInternalServiceServer interface { } func RegisterMeasurementsInternalServiceServer(s grpc.ServiceRegistrar, srv MeasurementsInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedMeasurementsInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MeasurementsInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/measurements_service.pb.go b/go/internal/coralogix/global_mapping/v1/measurements_service.pb.go index b8f88545..fc22e8d2 100644 --- a/go/internal/coralogix/global_mapping/v1/measurements_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurements_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurements_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/measurements_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/measurements_service_grpc.pb.go index f091e782..73f6820c 100644 --- a/go/internal/coralogix/global_mapping/v1/measurements_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/measurements_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/measurements_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MeasurementsService_GetMeasurements_FullMethodName = "/com.coralogix.global_mapping.v1.MeasurementsService/GetMeasurements" @@ -44,8 +44,9 @@ func NewMeasurementsServiceClient(cc grpc.ClientConnInterface) MeasurementsServi } func (c *measurementsServiceClient) GetMeasurements(ctx context.Context, in *GetMeasurementsRequest, opts ...grpc.CallOption) (*GetMeasurementsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMeasurementsResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurements_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurements_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *measurementsServiceClient) GetMeasurements(ctx context.Context, in *Get } func (c *measurementsServiceClient) UpsertCompanyProviders(ctx context.Context, in *UpsertCompanyProvidersRequest, opts ...grpc.CallOption) (*UpsertCompanyProvidersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpsertCompanyProvidersResponse) - err := c.cc.Invoke(ctx, MeasurementsService_UpsertCompanyProviders_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_UpsertCompanyProviders_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *measurementsServiceClient) UpsertCompanyProviders(ctx context.Context, } func (c *measurementsServiceClient) GetQueries(ctx context.Context, in *GetQueriesRequest, opts ...grpc.CallOption) (*GetQueriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetQueriesResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetQueries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetQueries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *measurementsServiceClient) GetQueries(ctx context.Context, in *GetQueri } func (c *measurementsServiceClient) GetMeasurementsTable(ctx context.Context, in *GetMeasurementsTableRequest, opts ...grpc.CallOption) (*GetMeasurementsTableResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMeasurementsTableResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurementsTable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurementsTable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *measurementsServiceClient) GetMeasurementsTable(ctx context.Context, in // MeasurementsServiceServer is the server API for MeasurementsService service. // All implementations must embed UnimplementedMeasurementsServiceServer -// for forward compatibility +// for forward compatibility. type MeasurementsServiceServer interface { GetMeasurements(context.Context, *GetMeasurementsRequest) (*GetMeasurementsResponse, error) UpsertCompanyProviders(context.Context, *UpsertCompanyProvidersRequest) (*UpsertCompanyProvidersResponse, error) @@ -90,9 +94,12 @@ type MeasurementsServiceServer interface { mustEmbedUnimplementedMeasurementsServiceServer() } -// UnimplementedMeasurementsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMeasurementsServiceServer struct { -} +// UnimplementedMeasurementsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMeasurementsServiceServer struct{} func (UnimplementedMeasurementsServiceServer) GetMeasurements(context.Context, *GetMeasurementsRequest) (*GetMeasurementsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetMeasurements not implemented") @@ -107,6 +114,7 @@ func (UnimplementedMeasurementsServiceServer) GetMeasurementsTable(context.Conte return nil, status.Errorf(codes.Unimplemented, "method GetMeasurementsTable not implemented") } func (UnimplementedMeasurementsServiceServer) mustEmbedUnimplementedMeasurementsServiceServer() {} +func (UnimplementedMeasurementsServiceServer) testEmbeddedByValue() {} // UnsafeMeasurementsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MeasurementsServiceServer will @@ -116,6 +124,13 @@ type UnsafeMeasurementsServiceServer interface { } func RegisterMeasurementsServiceServer(s grpc.ServiceRegistrar, srv MeasurementsServiceServer) { + // If the following call pancis, it indicates UnimplementedMeasurementsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MeasurementsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/providers_service.pb.go b/go/internal/coralogix/global_mapping/v1/providers_service.pb.go index dbfe3126..0f5201ca 100644 --- a/go/internal/coralogix/global_mapping/v1/providers_service.pb.go +++ b/go/internal/coralogix/global_mapping/v1/providers_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/providers_service.proto package v1 diff --git a/go/internal/coralogix/global_mapping/v1/providers_service_grpc.pb.go b/go/internal/coralogix/global_mapping/v1/providers_service_grpc.pb.go index 5f969fc3..e91a2386 100644 --- a/go/internal/coralogix/global_mapping/v1/providers_service_grpc.pb.go +++ b/go/internal/coralogix/global_mapping/v1/providers_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/global_mapping/v1/providers_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( CompanyProvidersService_GetCompanyProviders_FullMethodName = "/com.coralogix.global_mapping.v1.CompanyProvidersService/GetCompanyProviders" @@ -38,8 +38,9 @@ func NewCompanyProvidersServiceClient(cc grpc.ClientConnInterface) CompanyProvid } func (c *companyProvidersServiceClient) GetCompanyProviders(ctx context.Context, in *GetCompanyProvidersRequest, opts ...grpc.CallOption) (*GetCompanyProvidersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyProvidersResponse) - err := c.cc.Invoke(ctx, CompanyProvidersService_GetCompanyProviders_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, CompanyProvidersService_GetCompanyProviders_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *companyProvidersServiceClient) GetCompanyProviders(ctx context.Context, // CompanyProvidersServiceServer is the server API for CompanyProvidersService service. // All implementations must embed UnimplementedCompanyProvidersServiceServer -// for forward compatibility +// for forward compatibility. type CompanyProvidersServiceServer interface { GetCompanyProviders(context.Context, *GetCompanyProvidersRequest) (*GetCompanyProvidersResponse, error) mustEmbedUnimplementedCompanyProvidersServiceServer() } -// UnimplementedCompanyProvidersServiceServer must be embedded to have forward compatible implementations. -type UnimplementedCompanyProvidersServiceServer struct { -} +// UnimplementedCompanyProvidersServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedCompanyProvidersServiceServer struct{} func (UnimplementedCompanyProvidersServiceServer) GetCompanyProviders(context.Context, *GetCompanyProvidersRequest) (*GetCompanyProvidersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCompanyProviders not implemented") } func (UnimplementedCompanyProvidersServiceServer) mustEmbedUnimplementedCompanyProvidersServiceServer() { } +func (UnimplementedCompanyProvidersServiceServer) testEmbeddedByValue() {} // UnsafeCompanyProvidersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CompanyProvidersServiceServer will @@ -72,6 +77,13 @@ type UnsafeCompanyProvidersServiceServer interface { } func RegisterCompanyProvidersServiceServer(s grpc.ServiceRegistrar, srv CompanyProvidersServiceServer) { + // If the following call pancis, it indicates UnimplementedCompanyProvidersServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&CompanyProvidersService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/global_mapping/v1/query_pagination.pb.go b/go/internal/coralogix/global_mapping/v1/query_pagination.pb.go index 19060edc..69e65c35 100644 --- a/go/internal/coralogix/global_mapping/v1/query_pagination.pb.go +++ b/go/internal/coralogix/global_mapping/v1/query_pagination.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/global_mapping/v1/query_pagination.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/audit_log.pb.go b/go/internal/coralogix/integrations/v1/audit_log.pb.go index 1da86262..2668616c 100644 --- a/go/internal/coralogix/integrations/v1/audit_log.pb.go +++ b/go/internal/coralogix/integrations/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/contextual_data_integration_service.pb.go b/go/internal/coralogix/integrations/v1/contextual_data_integration_service.pb.go index 07c7eef2..99f55eb6 100644 --- a/go/internal/coralogix/integrations/v1/contextual_data_integration_service.pb.go +++ b/go/internal/coralogix/integrations/v1/contextual_data_integration_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/contextual_data_integration_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/contextual_data_integration_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/contextual_data_integration_service_grpc.pb.go index 47697639..0d7a7d71 100644 --- a/go/internal/coralogix/integrations/v1/contextual_data_integration_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/contextual_data_integration_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/contextual_data_integration_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ContextualDataIntegrationService_GetContextualDataIntegrations_FullMethodName = "/com.coralogix.integrations.v1.ContextualDataIntegrationService/GetContextualDataIntegrations" @@ -50,8 +50,9 @@ func NewContextualDataIntegrationServiceClient(cc grpc.ClientConnInterface) Cont } func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrations(ctx context.Context, in *GetContextualDataIntegrationsRequest, opts ...grpc.CallOption) (*GetContextualDataIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetContextualDataIntegrationsResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrations(c } func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrationDefinition(ctx context.Context, in *GetContextualDataIntegrationDefinitionRequest, opts ...grpc.CallOption) (*GetContextualDataIntegrationDefinitionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetContextualDataIntegrationDefinitionResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrationDefinition_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrationDefinition_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrationDef } func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrationDetails(ctx context.Context, in *GetContextualDataIntegrationDetailsRequest, opts ...grpc.CallOption) (*GetContextualDataIntegrationDetailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetContextualDataIntegrationDetailsResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrationDetails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_GetContextualDataIntegrationDetails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *contextualDataIntegrationServiceClient) GetContextualDataIntegrationDet } func (c *contextualDataIntegrationServiceClient) TestContextualDataIntegration(ctx context.Context, in *TestContextualDataIntegrationRequest, opts ...grpc.CallOption) (*TestContextualDataIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestContextualDataIntegrationResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_TestContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_TestContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *contextualDataIntegrationServiceClient) TestContextualDataIntegration(c } func (c *contextualDataIntegrationServiceClient) SaveContextualDataIntegration(ctx context.Context, in *SaveContextualDataIntegrationRequest, opts ...grpc.CallOption) (*SaveContextualDataIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SaveContextualDataIntegrationResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_SaveContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_SaveContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *contextualDataIntegrationServiceClient) SaveContextualDataIntegration(c } func (c *contextualDataIntegrationServiceClient) UpdateContextualDataIntegration(ctx context.Context, in *UpdateContextualDataIntegrationRequest, opts ...grpc.CallOption) (*UpdateContextualDataIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateContextualDataIntegrationResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_UpdateContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_UpdateContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *contextualDataIntegrationServiceClient) UpdateContextualDataIntegration } func (c *contextualDataIntegrationServiceClient) DeleteContextualDataIntegration(ctx context.Context, in *DeleteContextualDataIntegrationRequest, opts ...grpc.CallOption) (*DeleteContextualDataIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteContextualDataIntegrationResponse) - err := c.cc.Invoke(ctx, ContextualDataIntegrationService_DeleteContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ContextualDataIntegrationService_DeleteContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *contextualDataIntegrationServiceClient) DeleteContextualDataIntegration // ContextualDataIntegrationServiceServer is the server API for ContextualDataIntegrationService service. // All implementations must embed UnimplementedContextualDataIntegrationServiceServer -// for forward compatibility +// for forward compatibility. type ContextualDataIntegrationServiceServer interface { GetContextualDataIntegrations(context.Context, *GetContextualDataIntegrationsRequest) (*GetContextualDataIntegrationsResponse, error) GetContextualDataIntegrationDefinition(context.Context, *GetContextualDataIntegrationDefinitionRequest) (*GetContextualDataIntegrationDefinitionResponse, error) @@ -126,9 +133,12 @@ type ContextualDataIntegrationServiceServer interface { mustEmbedUnimplementedContextualDataIntegrationServiceServer() } -// UnimplementedContextualDataIntegrationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedContextualDataIntegrationServiceServer struct { -} +// UnimplementedContextualDataIntegrationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedContextualDataIntegrationServiceServer struct{} func (UnimplementedContextualDataIntegrationServiceServer) GetContextualDataIntegrations(context.Context, *GetContextualDataIntegrationsRequest) (*GetContextualDataIntegrationsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetContextualDataIntegrations not implemented") @@ -153,6 +163,7 @@ func (UnimplementedContextualDataIntegrationServiceServer) DeleteContextualDataI } func (UnimplementedContextualDataIntegrationServiceServer) mustEmbedUnimplementedContextualDataIntegrationServiceServer() { } +func (UnimplementedContextualDataIntegrationServiceServer) testEmbeddedByValue() {} // UnsafeContextualDataIntegrationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ContextualDataIntegrationServiceServer will @@ -162,6 +173,13 @@ type UnsafeContextualDataIntegrationServiceServer interface { } func RegisterContextualDataIntegrationServiceServer(s grpc.ServiceRegistrar, srv ContextualDataIntegrationServiceServer) { + // If the following call pancis, it indicates UnimplementedContextualDataIntegrationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ContextualDataIntegrationService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/external_token_service.pb.go b/go/internal/coralogix/integrations/v1/external_token_service.pb.go index 8610f088..7ff8612a 100644 --- a/go/internal/coralogix/integrations/v1/external_token_service.pb.go +++ b/go/internal/coralogix/integrations/v1/external_token_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/external_token_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/external_token_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/external_token_service_grpc.pb.go index 8c10b3f7..d87883fa 100644 --- a/go/internal/coralogix/integrations/v1/external_token_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/external_token_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/external_token_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ExternalTokenService_GenerateNewToken_FullMethodName = "/com.coralogix.integrations.v1.ExternalTokenService/GenerateNewToken" @@ -40,8 +40,9 @@ func NewExternalTokenServiceClient(cc grpc.ClientConnInterface) ExternalTokenSer } func (c *externalTokenServiceClient) GenerateNewToken(ctx context.Context, in *GenerateNewTokenRequest, opts ...grpc.CallOption) (*GenerateNewTokenResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GenerateNewTokenResponse) - err := c.cc.Invoke(ctx, ExternalTokenService_GenerateNewToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExternalTokenService_GenerateNewToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *externalTokenServiceClient) GenerateNewToken(ctx context.Context, in *G } func (c *externalTokenServiceClient) UpdateToken(ctx context.Context, in *UpdateTokenRequest, opts ...grpc.CallOption) (*UpdateTokenResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateTokenResponse) - err := c.cc.Invoke(ctx, ExternalTokenService_UpdateToken_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ExternalTokenService_UpdateToken_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *externalTokenServiceClient) UpdateToken(ctx context.Context, in *Update // ExternalTokenServiceServer is the server API for ExternalTokenService service. // All implementations must embed UnimplementedExternalTokenServiceServer -// for forward compatibility +// for forward compatibility. type ExternalTokenServiceServer interface { GenerateNewToken(context.Context, *GenerateNewTokenRequest) (*GenerateNewTokenResponse, error) UpdateToken(context.Context, *UpdateTokenRequest) (*UpdateTokenResponse, error) mustEmbedUnimplementedExternalTokenServiceServer() } -// UnimplementedExternalTokenServiceServer must be embedded to have forward compatible implementations. -type UnimplementedExternalTokenServiceServer struct { -} +// UnimplementedExternalTokenServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedExternalTokenServiceServer struct{} func (UnimplementedExternalTokenServiceServer) GenerateNewToken(context.Context, *GenerateNewTokenRequest) (*GenerateNewTokenResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GenerateNewToken not implemented") @@ -77,6 +82,7 @@ func (UnimplementedExternalTokenServiceServer) UpdateToken(context.Context, *Upd return nil, status.Errorf(codes.Unimplemented, "method UpdateToken not implemented") } func (UnimplementedExternalTokenServiceServer) mustEmbedUnimplementedExternalTokenServiceServer() {} +func (UnimplementedExternalTokenServiceServer) testEmbeddedByValue() {} // UnsafeExternalTokenServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ExternalTokenServiceServer will @@ -86,6 +92,13 @@ type UnsafeExternalTokenServiceServer interface { } func RegisterExternalTokenServiceServer(s grpc.ServiceRegistrar, srv ExternalTokenServiceServer) { + // If the following call pancis, it indicates UnimplementedExternalTokenServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ExternalTokenService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/integration.pb.go b/go/internal/coralogix/integrations/v1/integration.pb.go index 3c3f375b..c1f11865 100644 --- a/go/internal/coralogix/integrations/v1/integration.pb.go +++ b/go/internal/coralogix/integrations/v1/integration.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/integration.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service.pb.go b/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service.pb.go index 78b34441..e4688e95 100644 --- a/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service.pb.go +++ b/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/integration_extensions_deployment_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service_grpc.pb.go index 6a72db4d..da6aabb1 100644 --- a/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/integration_extensions_deployment_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/integration_extensions_deployment_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( IntegrationExtensionsDeploymentService_DeployIntegrationExtensions_FullMethodName = "/com.coralogix.integrations.v1.IntegrationExtensionsDeploymentService/DeployIntegrationExtensions" @@ -38,8 +38,9 @@ func NewIntegrationExtensionsDeploymentServiceClient(cc grpc.ClientConnInterface } func (c *integrationExtensionsDeploymentServiceClient) DeployIntegrationExtensions(ctx context.Context, in *DeployIntegrationExtensionsRequest, opts ...grpc.CallOption) (*DeployIntegrationExtensionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeployIntegrationExtensionsResponse) - err := c.cc.Invoke(ctx, IntegrationExtensionsDeploymentService_DeployIntegrationExtensions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationExtensionsDeploymentService_DeployIntegrationExtensions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *integrationExtensionsDeploymentServiceClient) DeployIntegrationExtensio // IntegrationExtensionsDeploymentServiceServer is the server API for IntegrationExtensionsDeploymentService service. // All implementations must embed UnimplementedIntegrationExtensionsDeploymentServiceServer -// for forward compatibility +// for forward compatibility. type IntegrationExtensionsDeploymentServiceServer interface { DeployIntegrationExtensions(context.Context, *DeployIntegrationExtensionsRequest) (*DeployIntegrationExtensionsResponse, error) mustEmbedUnimplementedIntegrationExtensionsDeploymentServiceServer() } -// UnimplementedIntegrationExtensionsDeploymentServiceServer must be embedded to have forward compatible implementations. -type UnimplementedIntegrationExtensionsDeploymentServiceServer struct { -} +// UnimplementedIntegrationExtensionsDeploymentServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedIntegrationExtensionsDeploymentServiceServer struct{} func (UnimplementedIntegrationExtensionsDeploymentServiceServer) DeployIntegrationExtensions(context.Context, *DeployIntegrationExtensionsRequest) (*DeployIntegrationExtensionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DeployIntegrationExtensions not implemented") } func (UnimplementedIntegrationExtensionsDeploymentServiceServer) mustEmbedUnimplementedIntegrationExtensionsDeploymentServiceServer() { } +func (UnimplementedIntegrationExtensionsDeploymentServiceServer) testEmbeddedByValue() {} // UnsafeIntegrationExtensionsDeploymentServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to IntegrationExtensionsDeploymentServiceServer will @@ -72,6 +77,13 @@ type UnsafeIntegrationExtensionsDeploymentServiceServer interface { } func RegisterIntegrationExtensionsDeploymentServiceServer(s grpc.ServiceRegistrar, srv IntegrationExtensionsDeploymentServiceServer) { + // If the following call pancis, it indicates UnimplementedIntegrationExtensionsDeploymentServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&IntegrationExtensionsDeploymentService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/integration_service.pb.go b/go/internal/coralogix/integrations/v1/integration_service.pb.go index fb52dff3..37b6158f 100644 --- a/go/internal/coralogix/integrations/v1/integration_service.pb.go +++ b/go/internal/coralogix/integrations/v1/integration_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/integration_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/integration_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/integration_service_grpc.pb.go index 1164fa37..1881d8af 100644 --- a/go/internal/coralogix/integrations/v1/integration_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/integration_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/integration_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( IntegrationService_ListManagedIntegrationKeys_FullMethodName = "/com.coralogix.integrations.v1.IntegrationService/ListManagedIntegrationKeys" @@ -62,8 +62,9 @@ func NewIntegrationServiceClient(cc grpc.ClientConnInterface) IntegrationService } func (c *integrationServiceClient) ListManagedIntegrationKeys(ctx context.Context, in *ListManagedIntegrationKeysRequest, opts ...grpc.CallOption) (*ListManagedIntegrationKeysResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListManagedIntegrationKeysResponse) - err := c.cc.Invoke(ctx, IntegrationService_ListManagedIntegrationKeys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_ListManagedIntegrationKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +72,9 @@ func (c *integrationServiceClient) ListManagedIntegrationKeys(ctx context.Contex } func (c *integrationServiceClient) GetDeployedIntegration(ctx context.Context, in *GetDeployedIntegrationRequest, opts ...grpc.CallOption) (*GetDeployedIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDeployedIntegrationResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetDeployedIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetDeployedIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +82,9 @@ func (c *integrationServiceClient) GetDeployedIntegration(ctx context.Context, i } func (c *integrationServiceClient) GetIntegrations(ctx context.Context, in *GetIntegrationsRequest, opts ...grpc.CallOption) (*GetIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetIntegrationsResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,8 +92,9 @@ func (c *integrationServiceClient) GetIntegrations(ctx context.Context, in *GetI } func (c *integrationServiceClient) GetIntegrationDefinition(ctx context.Context, in *GetIntegrationDefinitionRequest, opts ...grpc.CallOption) (*GetIntegrationDefinitionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetIntegrationDefinitionResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetIntegrationDefinition_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetIntegrationDefinition_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -98,8 +102,9 @@ func (c *integrationServiceClient) GetIntegrationDefinition(ctx context.Context, } func (c *integrationServiceClient) GetIntegrationDetails(ctx context.Context, in *GetIntegrationDetailsRequest, opts ...grpc.CallOption) (*GetIntegrationDetailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetIntegrationDetailsResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetIntegrationDetails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetIntegrationDetails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -107,8 +112,9 @@ func (c *integrationServiceClient) GetIntegrationDetails(ctx context.Context, in } func (c *integrationServiceClient) GetManagedIntegrationStatus(ctx context.Context, in *GetManagedIntegrationStatusRequest, opts ...grpc.CallOption) (*GetManagedIntegrationStatusResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetManagedIntegrationStatusResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetManagedIntegrationStatus_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetManagedIntegrationStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -116,8 +122,9 @@ func (c *integrationServiceClient) GetManagedIntegrationStatus(ctx context.Conte } func (c *integrationServiceClient) SaveIntegration(ctx context.Context, in *SaveIntegrationRequest, opts ...grpc.CallOption) (*SaveIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SaveIntegrationResponse) - err := c.cc.Invoke(ctx, IntegrationService_SaveIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_SaveIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,8 +132,9 @@ func (c *integrationServiceClient) SaveIntegration(ctx context.Context, in *Save } func (c *integrationServiceClient) UpdateIntegration(ctx context.Context, in *UpdateIntegrationRequest, opts ...grpc.CallOption) (*UpdateIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateIntegrationResponse) - err := c.cc.Invoke(ctx, IntegrationService_UpdateIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_UpdateIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -134,8 +142,9 @@ func (c *integrationServiceClient) UpdateIntegration(ctx context.Context, in *Up } func (c *integrationServiceClient) DeleteIntegration(ctx context.Context, in *DeleteIntegrationRequest, opts ...grpc.CallOption) (*DeleteIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteIntegrationResponse) - err := c.cc.Invoke(ctx, IntegrationService_DeleteIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_DeleteIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -143,8 +152,9 @@ func (c *integrationServiceClient) DeleteIntegration(ctx context.Context, in *De } func (c *integrationServiceClient) GetTemplate(ctx context.Context, in *GetTemplateRequest, opts ...grpc.CallOption) (*GetTemplateResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTemplateResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetTemplate_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetTemplate_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -152,8 +162,9 @@ func (c *integrationServiceClient) GetTemplate(ctx context.Context, in *GetTempl } func (c *integrationServiceClient) GetRumApplicationVersionData(ctx context.Context, in *GetRumApplicationVersionDataRequest, opts ...grpc.CallOption) (*GetRumApplicationVersionDataResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRumApplicationVersionDataResponse) - err := c.cc.Invoke(ctx, IntegrationService_GetRumApplicationVersionData_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_GetRumApplicationVersionData_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -161,8 +172,9 @@ func (c *integrationServiceClient) GetRumApplicationVersionData(ctx context.Cont } func (c *integrationServiceClient) SyncRumData(ctx context.Context, in *SyncRumDataRequest, opts ...grpc.CallOption) (*SyncRumDataResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SyncRumDataResponse) - err := c.cc.Invoke(ctx, IntegrationService_SyncRumData_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_SyncRumData_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -170,8 +182,9 @@ func (c *integrationServiceClient) SyncRumData(ctx context.Context, in *SyncRumD } func (c *integrationServiceClient) TestIntegration(ctx context.Context, in *TestIntegrationRequest, opts ...grpc.CallOption) (*TestIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestIntegrationResponse) - err := c.cc.Invoke(ctx, IntegrationService_TestIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, IntegrationService_TestIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -180,7 +193,7 @@ func (c *integrationServiceClient) TestIntegration(ctx context.Context, in *Test // IntegrationServiceServer is the server API for IntegrationService service. // All implementations must embed UnimplementedIntegrationServiceServer -// for forward compatibility +// for forward compatibility. type IntegrationServiceServer interface { ListManagedIntegrationKeys(context.Context, *ListManagedIntegrationKeysRequest) (*ListManagedIntegrationKeysResponse, error) GetDeployedIntegration(context.Context, *GetDeployedIntegrationRequest) (*GetDeployedIntegrationResponse, error) @@ -198,9 +211,12 @@ type IntegrationServiceServer interface { mustEmbedUnimplementedIntegrationServiceServer() } -// UnimplementedIntegrationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedIntegrationServiceServer struct { -} +// UnimplementedIntegrationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedIntegrationServiceServer struct{} func (UnimplementedIntegrationServiceServer) ListManagedIntegrationKeys(context.Context, *ListManagedIntegrationKeysRequest) (*ListManagedIntegrationKeysResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListManagedIntegrationKeys not implemented") @@ -242,6 +258,7 @@ func (UnimplementedIntegrationServiceServer) TestIntegration(context.Context, *T return nil, status.Errorf(codes.Unimplemented, "method TestIntegration not implemented") } func (UnimplementedIntegrationServiceServer) mustEmbedUnimplementedIntegrationServiceServer() {} +func (UnimplementedIntegrationServiceServer) testEmbeddedByValue() {} // UnsafeIntegrationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to IntegrationServiceServer will @@ -251,6 +268,13 @@ type UnsafeIntegrationServiceServer interface { } func RegisterIntegrationServiceServer(s grpc.ServiceRegistrar, srv IntegrationServiceServer) { + // If the following call pancis, it indicates UnimplementedIntegrationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&IntegrationService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/permission_check_service.pb.go b/go/internal/coralogix/integrations/v1/permission_check_service.pb.go index f7d801ea..628dc454 100644 --- a/go/internal/coralogix/integrations/v1/permission_check_service.pb.go +++ b/go/internal/coralogix/integrations/v1/permission_check_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/permission_check_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/permission_check_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/permission_check_service_grpc.pb.go index 6f3c3001..601f357c 100644 --- a/go/internal/coralogix/integrations/v1/permission_check_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/permission_check_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/permission_check_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PermissionCheckService_CheckApiKeyPermission_FullMethodName = "/com.coralogix.integrations.v1.PermissionCheckService/CheckApiKeyPermission" @@ -38,8 +38,9 @@ func NewPermissionCheckServiceClient(cc grpc.ClientConnInterface) PermissionChec } func (c *permissionCheckServiceClient) CheckApiKeyPermission(ctx context.Context, in *CheckApiKeyPermissionRequest, opts ...grpc.CallOption) (*CheckApiKeyPermissionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CheckApiKeyPermissionResponse) - err := c.cc.Invoke(ctx, PermissionCheckService_CheckApiKeyPermission_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PermissionCheckService_CheckApiKeyPermission_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *permissionCheckServiceClient) CheckApiKeyPermission(ctx context.Context // PermissionCheckServiceServer is the server API for PermissionCheckService service. // All implementations must embed UnimplementedPermissionCheckServiceServer -// for forward compatibility +// for forward compatibility. type PermissionCheckServiceServer interface { CheckApiKeyPermission(context.Context, *CheckApiKeyPermissionRequest) (*CheckApiKeyPermissionResponse, error) mustEmbedUnimplementedPermissionCheckServiceServer() } -// UnimplementedPermissionCheckServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPermissionCheckServiceServer struct { -} +// UnimplementedPermissionCheckServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPermissionCheckServiceServer struct{} func (UnimplementedPermissionCheckServiceServer) CheckApiKeyPermission(context.Context, *CheckApiKeyPermissionRequest) (*CheckApiKeyPermissionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CheckApiKeyPermission not implemented") } func (UnimplementedPermissionCheckServiceServer) mustEmbedUnimplementedPermissionCheckServiceServer() { } +func (UnimplementedPermissionCheckServiceServer) testEmbeddedByValue() {} // UnsafePermissionCheckServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PermissionCheckServiceServer will @@ -72,6 +77,13 @@ type UnsafePermissionCheckServiceServer interface { } func RegisterPermissionCheckServiceServer(s grpc.ServiceRegistrar, srv PermissionCheckServiceServer) { + // If the following call pancis, it indicates UnimplementedPermissionCheckServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PermissionCheckService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/push_based_platform.pb.go b/go/internal/coralogix/integrations/v1/push_based_platform.pb.go index 4170eab2..3daf5405 100644 --- a/go/internal/coralogix/integrations/v1/push_based_platform.pb.go +++ b/go/internal/coralogix/integrations/v1/push_based_platform.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/push_based_platform.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service.pb.go b/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service.pb.go index ad53cf07..1a51be27 100644 --- a/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service.pb.go +++ b/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/pushbased_contextual_data_integration_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service_grpc.pb.go index 4f210e22..b2a7916a 100644 --- a/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/pushbased_contextual_data_integration_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/pushbased_contextual_data_integration_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PushBasedContextualDataIntegrationService_CreatePushBasedContextualDataIntegration_FullMethodName = "/com.coralogix.integrations.v1.PushBasedContextualDataIntegrationService/CreatePushBasedContextualDataIntegration" @@ -46,8 +46,9 @@ func NewPushBasedContextualDataIntegrationServiceClient(cc grpc.ClientConnInterf } func (c *pushBasedContextualDataIntegrationServiceClient) CreatePushBasedContextualDataIntegration(ctx context.Context, in *CreatePushBasedIntegrationRequest, opts ...grpc.CallOption) (*CreatePushBasedIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreatePushBasedIntegrationResponse) - err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_CreatePushBasedContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_CreatePushBasedContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *pushBasedContextualDataIntegrationServiceClient) CreatePushBasedContext } func (c *pushBasedContextualDataIntegrationServiceClient) UpdatePushBasedContextualDataIntegration(ctx context.Context, in *UpdatePushBasedContextualDataIntegrationsRequest, opts ...grpc.CallOption) (*UpdatePushBasedContextualDataIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdatePushBasedContextualDataIntegrationsResponse) - err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_UpdatePushBasedContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_UpdatePushBasedContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *pushBasedContextualDataIntegrationServiceClient) UpdatePushBasedContext } func (c *pushBasedContextualDataIntegrationServiceClient) ListPushBasedContextualDataIntegrations(ctx context.Context, in *ListPushBasedContextualDataIntegrationsRequest, opts ...grpc.CallOption) (*ListPushBasedContextualDataIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPushBasedContextualDataIntegrationsResponse) - err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_ListPushBasedContextualDataIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_ListPushBasedContextualDataIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *pushBasedContextualDataIntegrationServiceClient) ListPushBasedContextua } func (c *pushBasedContextualDataIntegrationServiceClient) DeletePushBasedContextualDataIntegration(ctx context.Context, in *DeletePushBasedContextualDataIntegrationRequest, opts ...grpc.CallOption) (*DeletePushBasedContextualDataIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeletePushBasedContextualDataIntegrationResponse) - err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_DeletePushBasedContextualDataIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_DeletePushBasedContextualDataIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *pushBasedContextualDataIntegrationServiceClient) DeletePushBasedContext } func (c *pushBasedContextualDataIntegrationServiceClient) CountPushBasedContextualDataIntegrations(ctx context.Context, in *CountPushBasedContextualDataIntegrationsRequest, opts ...grpc.CallOption) (*CountPushBasedContextualDataIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CountPushBasedContextualDataIntegrationsResponse) - err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_CountPushBasedContextualDataIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PushBasedContextualDataIntegrationService_CountPushBasedContextualDataIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *pushBasedContextualDataIntegrationServiceClient) CountPushBasedContextu // PushBasedContextualDataIntegrationServiceServer is the server API for PushBasedContextualDataIntegrationService service. // All implementations must embed UnimplementedPushBasedContextualDataIntegrationServiceServer -// for forward compatibility +// for forward compatibility. type PushBasedContextualDataIntegrationServiceServer interface { CreatePushBasedContextualDataIntegration(context.Context, *CreatePushBasedIntegrationRequest) (*CreatePushBasedIntegrationResponse, error) UpdatePushBasedContextualDataIntegration(context.Context, *UpdatePushBasedContextualDataIntegrationsRequest) (*UpdatePushBasedContextualDataIntegrationsResponse, error) @@ -102,9 +107,12 @@ type PushBasedContextualDataIntegrationServiceServer interface { mustEmbedUnimplementedPushBasedContextualDataIntegrationServiceServer() } -// UnimplementedPushBasedContextualDataIntegrationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPushBasedContextualDataIntegrationServiceServer struct { -} +// UnimplementedPushBasedContextualDataIntegrationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPushBasedContextualDataIntegrationServiceServer struct{} func (UnimplementedPushBasedContextualDataIntegrationServiceServer) CreatePushBasedContextualDataIntegration(context.Context, *CreatePushBasedIntegrationRequest) (*CreatePushBasedIntegrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreatePushBasedContextualDataIntegration not implemented") @@ -123,6 +131,7 @@ func (UnimplementedPushBasedContextualDataIntegrationServiceServer) CountPushBas } func (UnimplementedPushBasedContextualDataIntegrationServiceServer) mustEmbedUnimplementedPushBasedContextualDataIntegrationServiceServer() { } +func (UnimplementedPushBasedContextualDataIntegrationServiceServer) testEmbeddedByValue() {} // UnsafePushBasedContextualDataIntegrationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PushBasedContextualDataIntegrationServiceServer will @@ -132,6 +141,13 @@ type UnsafePushBasedContextualDataIntegrationServiceServer interface { } func RegisterPushBasedContextualDataIntegrationServiceServer(s grpc.ServiceRegistrar, srv PushBasedContextualDataIntegrationServiceServer) { + // If the following call pancis, it indicates UnimplementedPushBasedContextualDataIntegrationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PushBasedContextualDataIntegrationService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/integrations/v1/webhook.pb.go b/go/internal/coralogix/integrations/v1/webhook.pb.go index e7a41eb9..3b4519af 100644 --- a/go/internal/coralogix/integrations/v1/webhook.pb.go +++ b/go/internal/coralogix/integrations/v1/webhook.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/webhook.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/webhook_integration_service.pb.go b/go/internal/coralogix/integrations/v1/webhook_integration_service.pb.go index e1c6a0c4..5dc48fb7 100644 --- a/go/internal/coralogix/integrations/v1/webhook_integration_service.pb.go +++ b/go/internal/coralogix/integrations/v1/webhook_integration_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/integrations/v1/webhook_integration_service.proto package v1 diff --git a/go/internal/coralogix/integrations/v1/webhook_integration_service_grpc.pb.go b/go/internal/coralogix/integrations/v1/webhook_integration_service_grpc.pb.go index 5e09f24e..655d4bab 100644 --- a/go/internal/coralogix/integrations/v1/webhook_integration_service_grpc.pb.go +++ b/go/internal/coralogix/integrations/v1/webhook_integration_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/integrations/v1/webhook_integration_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( WebhookIntegrationService_CreateWebhookIntegration_FullMethodName = "/com.coralogix.integrations.v1.WebhookIntegrationService/CreateWebhookIntegration" @@ -46,8 +46,9 @@ func NewWebhookIntegrationServiceClient(cc grpc.ClientConnInterface) WebhookInte } func (c *webhookIntegrationServiceClient) CreateWebhookIntegration(ctx context.Context, in *CreateWebhookIntegrationRequest, opts ...grpc.CallOption) (*CreateWebhookIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateWebhookIntegrationResponse) - err := c.cc.Invoke(ctx, WebhookIntegrationService_CreateWebhookIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WebhookIntegrationService_CreateWebhookIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *webhookIntegrationServiceClient) CreateWebhookIntegration(ctx context.C } func (c *webhookIntegrationServiceClient) ListWebhookIntegrations(ctx context.Context, in *ListWebhookIntegrationsRequest, opts ...grpc.CallOption) (*ListWebhookIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListWebhookIntegrationsResponse) - err := c.cc.Invoke(ctx, WebhookIntegrationService_ListWebhookIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WebhookIntegrationService_ListWebhookIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *webhookIntegrationServiceClient) ListWebhookIntegrations(ctx context.Co } func (c *webhookIntegrationServiceClient) DeleteWebhookIntegration(ctx context.Context, in *DeleteWebhookIntegrationRequest, opts ...grpc.CallOption) (*DeleteWebhookIntegrationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteWebhookIntegrationResponse) - err := c.cc.Invoke(ctx, WebhookIntegrationService_DeleteWebhookIntegration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WebhookIntegrationService_DeleteWebhookIntegration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *webhookIntegrationServiceClient) DeleteWebhookIntegration(ctx context.C } func (c *webhookIntegrationServiceClient) ToggleWebhookIntegrationActivation(ctx context.Context, in *ToggleWebhookIntegrationActivationRequest, opts ...grpc.CallOption) (*ToggleWebhookIntegrationActivationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ToggleWebhookIntegrationActivationResponse) - err := c.cc.Invoke(ctx, WebhookIntegrationService_ToggleWebhookIntegrationActivation_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WebhookIntegrationService_ToggleWebhookIntegrationActivation_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *webhookIntegrationServiceClient) ToggleWebhookIntegrationActivation(ctx } func (c *webhookIntegrationServiceClient) CountWebhookIntegrations(ctx context.Context, in *CountWebhookIntegrationsRequest, opts ...grpc.CallOption) (*CountWebhookIntegrationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CountWebhookIntegrationsResponse) - err := c.cc.Invoke(ctx, WebhookIntegrationService_CountWebhookIntegrations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, WebhookIntegrationService_CountWebhookIntegrations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *webhookIntegrationServiceClient) CountWebhookIntegrations(ctx context.C // WebhookIntegrationServiceServer is the server API for WebhookIntegrationService service. // All implementations must embed UnimplementedWebhookIntegrationServiceServer -// for forward compatibility +// for forward compatibility. type WebhookIntegrationServiceServer interface { CreateWebhookIntegration(context.Context, *CreateWebhookIntegrationRequest) (*CreateWebhookIntegrationResponse, error) ListWebhookIntegrations(context.Context, *ListWebhookIntegrationsRequest) (*ListWebhookIntegrationsResponse, error) @@ -102,9 +107,12 @@ type WebhookIntegrationServiceServer interface { mustEmbedUnimplementedWebhookIntegrationServiceServer() } -// UnimplementedWebhookIntegrationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedWebhookIntegrationServiceServer struct { -} +// UnimplementedWebhookIntegrationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedWebhookIntegrationServiceServer struct{} func (UnimplementedWebhookIntegrationServiceServer) CreateWebhookIntegration(context.Context, *CreateWebhookIntegrationRequest) (*CreateWebhookIntegrationResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateWebhookIntegration not implemented") @@ -123,6 +131,7 @@ func (UnimplementedWebhookIntegrationServiceServer) CountWebhookIntegrations(con } func (UnimplementedWebhookIntegrationServiceServer) mustEmbedUnimplementedWebhookIntegrationServiceServer() { } +func (UnimplementedWebhookIntegrationServiceServer) testEmbeddedByValue() {} // UnsafeWebhookIntegrationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to WebhookIntegrationServiceServer will @@ -132,6 +141,13 @@ type UnsafeWebhookIntegrationServiceServer interface { } func RegisterWebhookIntegrationServiceServer(s grpc.ServiceRegistrar, srv WebhookIntegrationServiceServer) { + // If the following call pancis, it indicates UnimplementedWebhookIntegrationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&WebhookIntegrationService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/measurements/v1/measurements_service.pb.go b/go/internal/coralogix/measurements/v1/measurements_service.pb.go index 09399e06..f2700235 100644 --- a/go/internal/coralogix/measurements/v1/measurements_service.pb.go +++ b/go/internal/coralogix/measurements/v1/measurements_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/measurements/v1/measurements_service.proto package v1 diff --git a/go/internal/coralogix/measurements/v1/measurements_service_grpc.pb.go b/go/internal/coralogix/measurements/v1/measurements_service_grpc.pb.go index a6aa5093..cd837b59 100644 --- a/go/internal/coralogix/measurements/v1/measurements_service_grpc.pb.go +++ b/go/internal/coralogix/measurements/v1/measurements_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/measurements/v1/measurements_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MeasurementsService_GetQueries_FullMethodName = "/com.coralogix.measurements.v1.MeasurementsService/GetQueries" @@ -42,8 +42,9 @@ func NewMeasurementsServiceClient(cc grpc.ClientConnInterface) MeasurementsServi } func (c *measurementsServiceClient) GetQueries(ctx context.Context, in *GetQueriesRequest, opts ...grpc.CallOption) (*GetQueriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetQueriesResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetQueries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetQueries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *measurementsServiceClient) GetQueries(ctx context.Context, in *GetQueri } func (c *measurementsServiceClient) GetMeasurementsTable(ctx context.Context, in *GetMeasurementsTableRequest, opts ...grpc.CallOption) (*GetMeasurementsTableResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetMeasurementsTableResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurementsTable_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetMeasurementsTable_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *measurementsServiceClient) GetMeasurementsTable(ctx context.Context, in } func (c *measurementsServiceClient) GetHierarchy(ctx context.Context, in *GetHierarchyRequest, opts ...grpc.CallOption) (*GetHierarchyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetHierarchyResponse) - err := c.cc.Invoke(ctx, MeasurementsService_GetHierarchy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MeasurementsService_GetHierarchy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *measurementsServiceClient) GetHierarchy(ctx context.Context, in *GetHie // MeasurementsServiceServer is the server API for MeasurementsService service. // All implementations must embed UnimplementedMeasurementsServiceServer -// for forward compatibility +// for forward compatibility. type MeasurementsServiceServer interface { GetQueries(context.Context, *GetQueriesRequest) (*GetQueriesResponse, error) GetMeasurementsTable(context.Context, *GetMeasurementsTableRequest) (*GetMeasurementsTableResponse, error) @@ -78,9 +81,12 @@ type MeasurementsServiceServer interface { mustEmbedUnimplementedMeasurementsServiceServer() } -// UnimplementedMeasurementsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMeasurementsServiceServer struct { -} +// UnimplementedMeasurementsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMeasurementsServiceServer struct{} func (UnimplementedMeasurementsServiceServer) GetQueries(context.Context, *GetQueriesRequest) (*GetQueriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetQueries not implemented") @@ -92,6 +98,7 @@ func (UnimplementedMeasurementsServiceServer) GetHierarchy(context.Context, *Get return nil, status.Errorf(codes.Unimplemented, "method GetHierarchy not implemented") } func (UnimplementedMeasurementsServiceServer) mustEmbedUnimplementedMeasurementsServiceServer() {} +func (UnimplementedMeasurementsServiceServer) testEmbeddedByValue() {} // UnsafeMeasurementsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MeasurementsServiceServer will @@ -101,6 +108,13 @@ type UnsafeMeasurementsServiceServer interface { } func RegisterMeasurementsServiceServer(s grpc.ServiceRegistrar, srv MeasurementsServiceServer) { + // If the following call pancis, it indicates UnimplementedMeasurementsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MeasurementsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/metrics/metrics-configurator.pb.go b/go/internal/coralogix/metrics/metrics-configurator.pb.go index 51730c80..b0bfc307 100644 --- a/go/internal/coralogix/metrics/metrics-configurator.pb.go +++ b/go/internal/coralogix/metrics/metrics-configurator.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/metrics/metrics-configurator.proto package metrics diff --git a/go/internal/coralogix/metrics/metrics-configurator_grpc.pb.go b/go/internal/coralogix/metrics/metrics-configurator_grpc.pb.go index e7c5d79c..c1d66016 100644 --- a/go/internal/coralogix/metrics/metrics-configurator_grpc.pb.go +++ b/go/internal/coralogix/metrics/metrics-configurator_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/metrics/metrics-configurator.proto package metrics @@ -16,8 +16,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MetricsConfiguratorPublicService_ConfigureTenant_FullMethodName = "/com.coralogix.metrics.metrics_configurator.MetricsConfiguratorPublicService/ConfigureTenant" @@ -49,8 +49,9 @@ func NewMetricsConfiguratorPublicServiceClient(cc grpc.ClientConnInterface) Metr } func (c *metricsConfiguratorPublicServiceClient) ConfigureTenant(ctx context.Context, in *ConfigureTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_ConfigureTenant_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_ConfigureTenant_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -58,8 +59,9 @@ func (c *metricsConfiguratorPublicServiceClient) ConfigureTenant(ctx context.Con } func (c *metricsConfiguratorPublicServiceClient) Update(ctx context.Context, in *UpdateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_Update_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_Update_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -67,8 +69,9 @@ func (c *metricsConfiguratorPublicServiceClient) Update(ctx context.Context, in } func (c *metricsConfiguratorPublicServiceClient) ValidateBucket(ctx context.Context, in *ValidateBucketRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_ValidateBucket_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_ValidateBucket_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -76,8 +79,9 @@ func (c *metricsConfiguratorPublicServiceClient) ValidateBucket(ctx context.Cont } func (c *metricsConfiguratorPublicServiceClient) GetTenantConfig(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetTenantConfigResponseV2, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTenantConfigResponseV2) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_GetTenantConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_GetTenantConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,8 +89,9 @@ func (c *metricsConfiguratorPublicServiceClient) GetTenantConfig(ctx context.Con } func (c *metricsConfiguratorPublicServiceClient) EnableArchive(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_EnableArchive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_EnableArchive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -94,8 +99,9 @@ func (c *metricsConfiguratorPublicServiceClient) EnableArchive(ctx context.Conte } func (c *metricsConfiguratorPublicServiceClient) DisableArchive(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_DisableArchive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorPublicService_DisableArchive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,7 +110,7 @@ func (c *metricsConfiguratorPublicServiceClient) DisableArchive(ctx context.Cont // MetricsConfiguratorPublicServiceServer is the server API for MetricsConfiguratorPublicService service. // All implementations must embed UnimplementedMetricsConfiguratorPublicServiceServer -// for forward compatibility +// for forward compatibility. type MetricsConfiguratorPublicServiceServer interface { ConfigureTenant(context.Context, *ConfigureTenantRequest) (*emptypb.Empty, error) Update(context.Context, *UpdateRequest) (*emptypb.Empty, error) @@ -115,9 +121,12 @@ type MetricsConfiguratorPublicServiceServer interface { mustEmbedUnimplementedMetricsConfiguratorPublicServiceServer() } -// UnimplementedMetricsConfiguratorPublicServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsConfiguratorPublicServiceServer struct { -} +// UnimplementedMetricsConfiguratorPublicServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMetricsConfiguratorPublicServiceServer struct{} func (UnimplementedMetricsConfiguratorPublicServiceServer) ConfigureTenant(context.Context, *ConfigureTenantRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method ConfigureTenant not implemented") @@ -139,6 +148,7 @@ func (UnimplementedMetricsConfiguratorPublicServiceServer) DisableArchive(contex } func (UnimplementedMetricsConfiguratorPublicServiceServer) mustEmbedUnimplementedMetricsConfiguratorPublicServiceServer() { } +func (UnimplementedMetricsConfiguratorPublicServiceServer) testEmbeddedByValue() {} // UnsafeMetricsConfiguratorPublicServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MetricsConfiguratorPublicServiceServer will @@ -148,6 +158,13 @@ type UnsafeMetricsConfiguratorPublicServiceServer interface { } func RegisterMetricsConfiguratorPublicServiceServer(s grpc.ServiceRegistrar, srv MetricsConfiguratorPublicServiceServer) { + // If the following call pancis, it indicates UnimplementedMetricsConfiguratorPublicServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MetricsConfiguratorPublicService_ServiceDesc, srv) } @@ -323,8 +340,9 @@ func NewMetricsConfiguratorServiceClient(cc grpc.ClientConnInterface) MetricsCon } func (c *metricsConfiguratorServiceClient) GetTenantConfig(ctx context.Context, in *GetTenantConfigRequest, opts ...grpc.CallOption) (*GetTenantConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTenantConfigResponse) - err := c.cc.Invoke(ctx, MetricsConfiguratorService_GetTenantConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorService_GetTenantConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -332,8 +350,9 @@ func (c *metricsConfiguratorServiceClient) GetTenantConfig(ctx context.Context, } func (c *metricsConfiguratorServiceClient) ListTenantConfigs(ctx context.Context, in *ListTenantConfigsRequest, opts ...grpc.CallOption) (*ListTenantConfigsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTenantConfigsResponse) - err := c.cc.Invoke(ctx, MetricsConfiguratorService_ListTenantConfigs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorService_ListTenantConfigs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -341,8 +360,9 @@ func (c *metricsConfiguratorServiceClient) ListTenantConfigs(ctx context.Context } func (c *metricsConfiguratorServiceClient) ListHostStoreConfigs(ctx context.Context, in *ListHotStoreConfigsRequest, opts ...grpc.CallOption) (*ListHotStoreConfigsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListHotStoreConfigsResponse) - err := c.cc.Invoke(ctx, MetricsConfiguratorService_ListHostStoreConfigs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorService_ListHostStoreConfigs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -350,8 +370,9 @@ func (c *metricsConfiguratorServiceClient) ListHostStoreConfigs(ctx context.Cont } func (c *metricsConfiguratorServiceClient) MigrateTenant(ctx context.Context, in *MigrateTenantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorService_MigrateTenant_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorService_MigrateTenant_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -359,8 +380,9 @@ func (c *metricsConfiguratorServiceClient) MigrateTenant(ctx context.Context, in } func (c *metricsConfiguratorServiceClient) Update(ctx context.Context, in *InternalUpdateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsConfiguratorService_Update_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsConfiguratorService_Update_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -369,7 +391,7 @@ func (c *metricsConfiguratorServiceClient) Update(ctx context.Context, in *Inter // MetricsConfiguratorServiceServer is the server API for MetricsConfiguratorService service. // All implementations must embed UnimplementedMetricsConfiguratorServiceServer -// for forward compatibility +// for forward compatibility. type MetricsConfiguratorServiceServer interface { GetTenantConfig(context.Context, *GetTenantConfigRequest) (*GetTenantConfigResponse, error) ListTenantConfigs(context.Context, *ListTenantConfigsRequest) (*ListTenantConfigsResponse, error) @@ -379,9 +401,12 @@ type MetricsConfiguratorServiceServer interface { mustEmbedUnimplementedMetricsConfiguratorServiceServer() } -// UnimplementedMetricsConfiguratorServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsConfiguratorServiceServer struct { -} +// UnimplementedMetricsConfiguratorServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMetricsConfiguratorServiceServer struct{} func (UnimplementedMetricsConfiguratorServiceServer) GetTenantConfig(context.Context, *GetTenantConfigRequest) (*GetTenantConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTenantConfig not implemented") @@ -400,6 +425,7 @@ func (UnimplementedMetricsConfiguratorServiceServer) Update(context.Context, *In } func (UnimplementedMetricsConfiguratorServiceServer) mustEmbedUnimplementedMetricsConfiguratorServiceServer() { } +func (UnimplementedMetricsConfiguratorServiceServer) testEmbeddedByValue() {} // UnsafeMetricsConfiguratorServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MetricsConfiguratorServiceServer will @@ -409,6 +435,13 @@ type UnsafeMetricsConfiguratorServiceServer interface { } func RegisterMetricsConfiguratorServiceServer(s grpc.ServiceRegistrar, srv MetricsConfiguratorServiceServer) { + // If the following call pancis, it indicates UnimplementedMetricsConfiguratorServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MetricsConfiguratorService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/metrics/metrics-tco.pb.go b/go/internal/coralogix/metrics/metrics-tco.pb.go index 3b329cc2..53305ffe 100644 --- a/go/internal/coralogix/metrics/metrics-tco.pb.go +++ b/go/internal/coralogix/metrics/metrics-tco.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/metrics/metrics-tco.proto package metrics diff --git a/go/internal/coralogix/metrics/metrics-tco_grpc.pb.go b/go/internal/coralogix/metrics/metrics-tco_grpc.pb.go index 77e29710..f9dc78bc 100644 --- a/go/internal/coralogix/metrics/metrics-tco_grpc.pb.go +++ b/go/internal/coralogix/metrics/metrics-tco_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/metrics/metrics-tco.proto package metrics @@ -16,8 +16,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MetricsTcoService_Add_FullMethodName = "/com.coralogix.metrics.metrics_tco.MetricsTcoService/Add" @@ -43,8 +43,9 @@ func NewMetricsTcoServiceClient(cc grpc.ClientConnInterface) MetricsTcoServiceCl } func (c *metricsTcoServiceClient) Add(ctx context.Context, in *AddRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsTcoService_Add_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsTcoService_Add_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -52,8 +53,9 @@ func (c *metricsTcoServiceClient) Add(ctx context.Context, in *AddRequest, opts } func (c *metricsTcoServiceClient) Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, MetricsTcoService_Delete_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsTcoService_Delete_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +63,9 @@ func (c *metricsTcoServiceClient) Delete(ctx context.Context, in *DeleteRequest, } func (c *metricsTcoServiceClient) Get(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetResponse) - err := c.cc.Invoke(ctx, MetricsTcoService_Get_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsTcoService_Get_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,7 +74,7 @@ func (c *metricsTcoServiceClient) Get(ctx context.Context, in *emptypb.Empty, op // MetricsTcoServiceServer is the server API for MetricsTcoService service. // All implementations must embed UnimplementedMetricsTcoServiceServer -// for forward compatibility +// for forward compatibility. type MetricsTcoServiceServer interface { Add(context.Context, *AddRequest) (*emptypb.Empty, error) Delete(context.Context, *DeleteRequest) (*emptypb.Empty, error) @@ -79,9 +82,12 @@ type MetricsTcoServiceServer interface { mustEmbedUnimplementedMetricsTcoServiceServer() } -// UnimplementedMetricsTcoServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsTcoServiceServer struct { -} +// UnimplementedMetricsTcoServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMetricsTcoServiceServer struct{} func (UnimplementedMetricsTcoServiceServer) Add(context.Context, *AddRequest) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Add not implemented") @@ -93,6 +99,7 @@ func (UnimplementedMetricsTcoServiceServer) Get(context.Context, *emptypb.Empty) return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") } func (UnimplementedMetricsTcoServiceServer) mustEmbedUnimplementedMetricsTcoServiceServer() {} +func (UnimplementedMetricsTcoServiceServer) testEmbeddedByValue() {} // UnsafeMetricsTcoServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MetricsTcoServiceServer will @@ -102,6 +109,13 @@ type UnsafeMetricsTcoServiceServer interface { } func RegisterMetricsTcoServiceServer(s grpc.ServiceRegistrar, srv MetricsTcoServiceServer) { + // If the following call pancis, it indicates UnimplementedMetricsTcoServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MetricsTcoService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/openapi/v1/annotations.pb.go b/go/internal/coralogix/openapi/v1/annotations.pb.go index f148da5f..e350f1be 100644 --- a/go/internal/coralogix/openapi/v1/annotations.pb.go +++ b/go/internal/coralogix/openapi/v1/annotations.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/openapi/v1/annotations.proto package v1 diff --git a/go/internal/coralogix/outgoing_webhooks/v1/audit_log.pb.go b/go/internal/coralogix/outgoing_webhooks/v1/audit_log.pb.go index d72faea5..29b46fce 100644 --- a/go/internal/coralogix/outgoing_webhooks/v1/audit_log.pb.go +++ b/go/internal/coralogix/outgoing_webhooks/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/outgoing_webhooks/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook.pb.go b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook.pb.go index e52d0ac4..61b10f8f 100644 --- a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook.pb.go +++ b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/outgoing_webhooks/v1/outgoing_webhook.proto package v1 diff --git a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.pb.go b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.pb.go index a80d2db0..aecd8ed6 100644 --- a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.pb.go +++ b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.proto package v1 diff --git a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service_grpc.pb.go b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service_grpc.pb.go index e8ca6e99..8e07266e 100644 --- a/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service_grpc.pb.go +++ b/go/internal/coralogix/outgoing_webhooks/v1/outgoing_webhook_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/outgoing_webhooks/v1/outgoing_webhook_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( OutgoingWebhooksService_ListOutgoingWebhookTypes_FullMethodName = "/com.coralogix.outgoing_webhooks.v1.OutgoingWebhooksService/ListOutgoingWebhookTypes" @@ -60,8 +60,9 @@ func NewOutgoingWebhooksServiceClient(cc grpc.ClientConnInterface) OutgoingWebho } func (c *outgoingWebhooksServiceClient) ListOutgoingWebhookTypes(ctx context.Context, in *ListOutgoingWebhookTypesRequest, opts ...grpc.CallOption) (*ListOutgoingWebhookTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOutgoingWebhookTypesResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutgoingWebhookTypes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutgoingWebhookTypes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -69,8 +70,9 @@ func (c *outgoingWebhooksServiceClient) ListOutgoingWebhookTypes(ctx context.Con } func (c *outgoingWebhooksServiceClient) GetOutgoingWebhookTypeDetails(ctx context.Context, in *GetOutgoingWebhookTypeDetailsRequest, opts ...grpc.CallOption) (*GetOutgoingWebhookTypeDetailsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOutgoingWebhookTypeDetailsResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_GetOutgoingWebhookTypeDetails_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_GetOutgoingWebhookTypeDetails_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -78,8 +80,9 @@ func (c *outgoingWebhooksServiceClient) GetOutgoingWebhookTypeDetails(ctx contex } func (c *outgoingWebhooksServiceClient) ListOutgoingWebhooks(ctx context.Context, in *ListOutgoingWebhooksRequest, opts ...grpc.CallOption) (*ListOutgoingWebhooksResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOutgoingWebhooksResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutgoingWebhooks_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutgoingWebhooks_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -87,8 +90,9 @@ func (c *outgoingWebhooksServiceClient) ListOutgoingWebhooks(ctx context.Context } func (c *outgoingWebhooksServiceClient) ListOutboundWebhooksSummary(ctx context.Context, in *ListOutboundWebhooksSummaryRequest, opts ...grpc.CallOption) (*ListOutboundWebhooksSummaryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOutboundWebhooksSummaryResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutboundWebhooksSummary_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListOutboundWebhooksSummary_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -96,8 +100,9 @@ func (c *outgoingWebhooksServiceClient) ListOutboundWebhooksSummary(ctx context. } func (c *outgoingWebhooksServiceClient) ListAllOutgoingWebhooks(ctx context.Context, in *ListAllOutgoingWebhooksRequest, opts ...grpc.CallOption) (*ListAllOutgoingWebhooksResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAllOutgoingWebhooksResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListAllOutgoingWebhooks_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListAllOutgoingWebhooks_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -105,8 +110,9 @@ func (c *outgoingWebhooksServiceClient) ListAllOutgoingWebhooks(ctx context.Cont } func (c *outgoingWebhooksServiceClient) GetOutgoingWebhook(ctx context.Context, in *GetOutgoingWebhookRequest, opts ...grpc.CallOption) (*GetOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_GetOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_GetOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,8 +120,9 @@ func (c *outgoingWebhooksServiceClient) GetOutgoingWebhook(ctx context.Context, } func (c *outgoingWebhooksServiceClient) CreateOutgoingWebhook(ctx context.Context, in *CreateOutgoingWebhookRequest, opts ...grpc.CallOption) (*CreateOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_CreateOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_CreateOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -123,8 +130,9 @@ func (c *outgoingWebhooksServiceClient) CreateOutgoingWebhook(ctx context.Contex } func (c *outgoingWebhooksServiceClient) UpdateOutgoingWebhook(ctx context.Context, in *UpdateOutgoingWebhookRequest, opts ...grpc.CallOption) (*UpdateOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_UpdateOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_UpdateOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -132,8 +140,9 @@ func (c *outgoingWebhooksServiceClient) UpdateOutgoingWebhook(ctx context.Contex } func (c *outgoingWebhooksServiceClient) DeleteOutgoingWebhook(ctx context.Context, in *DeleteOutgoingWebhookRequest, opts ...grpc.CallOption) (*DeleteOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_DeleteOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_DeleteOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -141,8 +150,9 @@ func (c *outgoingWebhooksServiceClient) DeleteOutgoingWebhook(ctx context.Contex } func (c *outgoingWebhooksServiceClient) TestOutgoingWebhook(ctx context.Context, in *TestOutgoingWebhookRequest, opts ...grpc.CallOption) (*TestOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_TestOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_TestOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -150,8 +160,9 @@ func (c *outgoingWebhooksServiceClient) TestOutgoingWebhook(ctx context.Context, } func (c *outgoingWebhooksServiceClient) TestExistingOutgoingWebhook(ctx context.Context, in *TestExistingOutgoingWebhookRequest, opts ...grpc.CallOption) (*TestOutgoingWebhookResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestOutgoingWebhookResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_TestExistingOutgoingWebhook_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_TestExistingOutgoingWebhook_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -159,8 +170,9 @@ func (c *outgoingWebhooksServiceClient) TestExistingOutgoingWebhook(ctx context. } func (c *outgoingWebhooksServiceClient) ListIbmEventNotificationsInstances(ctx context.Context, in *ListIbmEventNotificationsInstancesRequest, opts ...grpc.CallOption) (*ListIbmEventNotificationsInstancesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListIbmEventNotificationsInstancesResponse) - err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListIbmEventNotificationsInstances_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, OutgoingWebhooksService_ListIbmEventNotificationsInstances_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -169,7 +181,7 @@ func (c *outgoingWebhooksServiceClient) ListIbmEventNotificationsInstances(ctx c // OutgoingWebhooksServiceServer is the server API for OutgoingWebhooksService service. // All implementations must embed UnimplementedOutgoingWebhooksServiceServer -// for forward compatibility +// for forward compatibility. type OutgoingWebhooksServiceServer interface { ListOutgoingWebhookTypes(context.Context, *ListOutgoingWebhookTypesRequest) (*ListOutgoingWebhookTypesResponse, error) GetOutgoingWebhookTypeDetails(context.Context, *GetOutgoingWebhookTypeDetailsRequest) (*GetOutgoingWebhookTypeDetailsResponse, error) @@ -186,9 +198,12 @@ type OutgoingWebhooksServiceServer interface { mustEmbedUnimplementedOutgoingWebhooksServiceServer() } -// UnimplementedOutgoingWebhooksServiceServer must be embedded to have forward compatible implementations. -type UnimplementedOutgoingWebhooksServiceServer struct { -} +// UnimplementedOutgoingWebhooksServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedOutgoingWebhooksServiceServer struct{} func (UnimplementedOutgoingWebhooksServiceServer) ListOutgoingWebhookTypes(context.Context, *ListOutgoingWebhookTypesRequest) (*ListOutgoingWebhookTypesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOutgoingWebhookTypes not implemented") @@ -228,6 +243,7 @@ func (UnimplementedOutgoingWebhooksServiceServer) ListIbmEventNotificationsInsta } func (UnimplementedOutgoingWebhooksServiceServer) mustEmbedUnimplementedOutgoingWebhooksServiceServer() { } +func (UnimplementedOutgoingWebhooksServiceServer) testEmbeddedByValue() {} // UnsafeOutgoingWebhooksServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to OutgoingWebhooksServiceServer will @@ -237,6 +253,13 @@ type UnsafeOutgoingWebhooksServiceServer interface { } func RegisterOutgoingWebhooksServiceServer(s grpc.ServiceRegistrar, srv OutgoingWebhooksServiceServer) { + // If the following call pancis, it indicates UnimplementedOutgoingWebhooksServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&OutgoingWebhooksService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/permissions/v1/actions_resources.pb.go b/go/internal/coralogix/permissions/v1/actions_resources.pb.go index 5b3978bf..2cb1144e 100644 --- a/go/internal/coralogix/permissions/v1/actions_resources.pb.go +++ b/go/internal/coralogix/permissions/v1/actions_resources.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/permissions/v1/actions_resources.proto package v1 diff --git a/go/internal/coralogix/permissions/v1/common.pb.go b/go/internal/coralogix/permissions/v1/common.pb.go index 3b1f6706..13e958a9 100644 --- a/go/internal/coralogix/permissions/v1/common.pb.go +++ b/go/internal/coralogix/permissions/v1/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/permissions/v1/common.proto package v1 diff --git a/go/internal/coralogix/permissions/v1/permission_definitions.pb.go b/go/internal/coralogix/permissions/v1/permission_definitions.pb.go index aa79c21f..4c942f06 100644 --- a/go/internal/coralogix/permissions/v1/permission_definitions.pb.go +++ b/go/internal/coralogix/permissions/v1/permission_definitions.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/permissions/models/v1/permission_definitions.proto package v1 diff --git a/go/internal/coralogix/permissions/v1/permissions_mgmt.pb.go b/go/internal/coralogix/permissions/v1/permissions_mgmt.pb.go index 7c1de6b5..0cc21431 100644 --- a/go/internal/coralogix/permissions/v1/permissions_mgmt.pb.go +++ b/go/internal/coralogix/permissions/v1/permissions_mgmt.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/permissions/v1/permissions_mgmt.proto package v1 diff --git a/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service.pb.go b/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service.pb.go index ab48d112..75deac35 100644 --- a/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service.pb.go +++ b/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/permissions/v1/team_permissions_mgmt_service.proto package v1 diff --git a/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service_grpc.pb.go b/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service_grpc.pb.go index c24fcaec..3e51fd1f 100644 --- a/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service_grpc.pb.go +++ b/go/internal/coralogix/permissions/v1/team_permissions_mgmt_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/permissions/v1/team_permissions_mgmt_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TeamPermissionsMgmtService_GetTeamGroup_FullMethodName = "/com.coralogix.permissions.v1.TeamPermissionsMgmtService/GetTeamGroup" @@ -37,6 +37,8 @@ const ( // TeamPermissionsMgmtServiceClient is the client API for TeamPermissionsMgmtService 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. +// +// / Service for creating and managing team groups, roles, users and scopes. type TeamPermissionsMgmtServiceClient interface { // / Fetch team group for given team id GetTeamGroup(ctx context.Context, in *GetTeamGroupRequest, opts ...grpc.CallOption) (*GetTeamGroupResponse, error) @@ -75,8 +77,9 @@ func NewTeamPermissionsMgmtServiceClient(cc grpc.ClientConnInterface) TeamPermis } func (c *teamPermissionsMgmtServiceClient) GetTeamGroup(ctx context.Context, in *GetTeamGroupRequest, opts ...grpc.CallOption) (*GetTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +87,9 @@ func (c *teamPermissionsMgmtServiceClient) GetTeamGroup(ctx context.Context, in } func (c *teamPermissionsMgmtServiceClient) GetTeamGroupByName(ctx context.Context, in *GetTeamGroupByNameRequest, opts ...grpc.CallOption) (*GetTeamGroupByNameResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamGroupByNameResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroupByName_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroupByName_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +97,9 @@ func (c *teamPermissionsMgmtServiceClient) GetTeamGroupByName(ctx context.Contex } func (c *teamPermissionsMgmtServiceClient) GetTeamGroups(ctx context.Context, in *GetTeamGroupsRequest, opts ...grpc.CallOption) (*GetTeamGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamGroupsResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -102,8 +107,9 @@ func (c *teamPermissionsMgmtServiceClient) GetTeamGroups(ctx context.Context, in } func (c *teamPermissionsMgmtServiceClient) CreateTeamGroup(ctx context.Context, in *CreateTeamGroupRequest, opts ...grpc.CallOption) (*CreateTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_CreateTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_CreateTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -111,8 +117,9 @@ func (c *teamPermissionsMgmtServiceClient) CreateTeamGroup(ctx context.Context, } func (c *teamPermissionsMgmtServiceClient) UpdateTeamGroup(ctx context.Context, in *UpdateTeamGroupRequest, opts ...grpc.CallOption) (*UpdateTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_UpdateTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_UpdateTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -120,8 +127,9 @@ func (c *teamPermissionsMgmtServiceClient) UpdateTeamGroup(ctx context.Context, } func (c *teamPermissionsMgmtServiceClient) DeleteTeamGroup(ctx context.Context, in *DeleteTeamGroupRequest, opts ...grpc.CallOption) (*DeleteTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_DeleteTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_DeleteTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -129,8 +137,9 @@ func (c *teamPermissionsMgmtServiceClient) DeleteTeamGroup(ctx context.Context, } func (c *teamPermissionsMgmtServiceClient) GetGroupUsers(ctx context.Context, in *GetGroupUsersRequest, opts ...grpc.CallOption) (*GetGroupUsersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetGroupUsersResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetGroupUsers_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetGroupUsers_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -138,8 +147,9 @@ func (c *teamPermissionsMgmtServiceClient) GetGroupUsers(ctx context.Context, in } func (c *teamPermissionsMgmtServiceClient) AddUsersToTeamGroup(ctx context.Context, in *AddUsersToTeamGroupRequest, opts ...grpc.CallOption) (*AddUsersToTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddUsersToTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_AddUsersToTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_AddUsersToTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -147,8 +157,9 @@ func (c *teamPermissionsMgmtServiceClient) AddUsersToTeamGroup(ctx context.Conte } func (c *teamPermissionsMgmtServiceClient) AddUsersToTeamGroups(ctx context.Context, in *AddUsersToTeamGroupsRequest, opts ...grpc.CallOption) (*AddUsersToTeamGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddUsersToTeamGroupsResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_AddUsersToTeamGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_AddUsersToTeamGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -156,8 +167,9 @@ func (c *teamPermissionsMgmtServiceClient) AddUsersToTeamGroups(ctx context.Cont } func (c *teamPermissionsMgmtServiceClient) RemoveUsersFromTeamGroup(ctx context.Context, in *RemoveUsersFromTeamGroupRequest, opts ...grpc.CallOption) (*RemoveUsersFromTeamGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveUsersFromTeamGroupResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_RemoveUsersFromTeamGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_RemoveUsersFromTeamGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -165,8 +177,9 @@ func (c *teamPermissionsMgmtServiceClient) RemoveUsersFromTeamGroup(ctx context. } func (c *teamPermissionsMgmtServiceClient) RemoveUsersFromTeamGroups(ctx context.Context, in *RemoveUsersFromTeamGroupsRequest, opts ...grpc.CallOption) (*RemoveUsersFromTeamGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RemoveUsersFromTeamGroupsResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_RemoveUsersFromTeamGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_RemoveUsersFromTeamGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -174,8 +187,9 @@ func (c *teamPermissionsMgmtServiceClient) RemoveUsersFromTeamGroups(ctx context } func (c *teamPermissionsMgmtServiceClient) SetTeamGroupScope(ctx context.Context, in *SetTeamGroupScopeRequest, opts ...grpc.CallOption) (*SetTeamGroupScopeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetTeamGroupScopeResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_SetTeamGroupScope_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_SetTeamGroupScope_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -183,8 +197,9 @@ func (c *teamPermissionsMgmtServiceClient) SetTeamGroupScope(ctx context.Context } func (c *teamPermissionsMgmtServiceClient) GetTeamGroupScope(ctx context.Context, in *GetTeamGroupScopeRequest, opts ...grpc.CallOption) (*GetTeamGroupScopeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamGroupScopeResponse) - err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroupScope_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamPermissionsMgmtService_GetTeamGroupScope_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -193,7 +208,9 @@ func (c *teamPermissionsMgmtServiceClient) GetTeamGroupScope(ctx context.Context // TeamPermissionsMgmtServiceServer is the server API for TeamPermissionsMgmtService service. // All implementations must embed UnimplementedTeamPermissionsMgmtServiceServer -// for forward compatibility +// for forward compatibility. +// +// / Service for creating and managing team groups, roles, users and scopes. type TeamPermissionsMgmtServiceServer interface { // / Fetch team group for given team id GetTeamGroup(context.Context, *GetTeamGroupRequest) (*GetTeamGroupResponse, error) @@ -224,9 +241,12 @@ type TeamPermissionsMgmtServiceServer interface { mustEmbedUnimplementedTeamPermissionsMgmtServiceServer() } -// UnimplementedTeamPermissionsMgmtServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTeamPermissionsMgmtServiceServer struct { -} +// UnimplementedTeamPermissionsMgmtServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTeamPermissionsMgmtServiceServer struct{} func (UnimplementedTeamPermissionsMgmtServiceServer) GetTeamGroup(context.Context, *GetTeamGroupRequest) (*GetTeamGroupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTeamGroup not implemented") @@ -269,6 +289,7 @@ func (UnimplementedTeamPermissionsMgmtServiceServer) GetTeamGroupScope(context.C } func (UnimplementedTeamPermissionsMgmtServiceServer) mustEmbedUnimplementedTeamPermissionsMgmtServiceServer() { } +func (UnimplementedTeamPermissionsMgmtServiceServer) testEmbeddedByValue() {} // UnsafeTeamPermissionsMgmtServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TeamPermissionsMgmtServiceServer will @@ -278,6 +299,13 @@ type UnsafeTeamPermissionsMgmtServiceServer interface { } func RegisterTeamPermissionsMgmtServiceServer(s grpc.ServiceRegistrar, srv TeamPermissionsMgmtServiceServer) { + // If the following call pancis, it indicates UnimplementedTeamPermissionsMgmtServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TeamPermissionsMgmtService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/quota/v1/archive_retention.pb.go b/go/internal/coralogix/quota/v1/archive_retention.pb.go index f24a59e7..5b95a284 100644 --- a/go/internal/coralogix/quota/v1/archive_retention.pb.go +++ b/go/internal/coralogix/quota/v1/archive_retention.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/archive_retention.proto package v1 diff --git a/go/internal/coralogix/quota/v1/atomic_overwrite_policies_request.pb.go b/go/internal/coralogix/quota/v1/atomic_overwrite_policies_request.pb.go index 9da88501..498a4924 100644 --- a/go/internal/coralogix/quota/v1/atomic_overwrite_policies_request.pb.go +++ b/go/internal/coralogix/quota/v1/atomic_overwrite_policies_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/atomic_overwrite_policies_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/atomic_overwrite_policies_response.pb.go b/go/internal/coralogix/quota/v1/atomic_overwrite_policies_response.pb.go index 6701d1fe..8154f0ee 100644 --- a/go/internal/coralogix/quota/v1/atomic_overwrite_policies_response.pb.go +++ b/go/internal/coralogix/quota/v1/atomic_overwrite_policies_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/atomic_overwrite_policies_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/audit_log.pb.go b/go/internal/coralogix/quota/v1/audit_log.pb.go index 8421487d..bc43d741 100644 --- a/go/internal/coralogix/quota/v1/audit_log.pb.go +++ b/go/internal/coralogix/quota/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/quota/v1/bulk_create_policy_request.pb.go b/go/internal/coralogix/quota/v1/bulk_create_policy_request.pb.go index 441bf5b3..dd18b164 100644 --- a/go/internal/coralogix/quota/v1/bulk_create_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/bulk_create_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/bulk_create_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/bulk_create_policy_response.pb.go b/go/internal/coralogix/quota/v1/bulk_create_policy_response.pb.go index 1d5347fe..850d6e68 100644 --- a/go/internal/coralogix/quota/v1/bulk_create_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/bulk_create_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/bulk_create_policy_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/bulk_test_log_policies_request.pb.go b/go/internal/coralogix/quota/v1/bulk_test_log_policies_request.pb.go index 0b2cc101..be9da85b 100644 --- a/go/internal/coralogix/quota/v1/bulk_test_log_policies_request.pb.go +++ b/go/internal/coralogix/quota/v1/bulk_test_log_policies_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/bulk_test_log_policies_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/bulk_test_log_policies_response.pb.go b/go/internal/coralogix/quota/v1/bulk_test_log_policies_response.pb.go index 0a8dba9d..7158837d 100644 --- a/go/internal/coralogix/quota/v1/bulk_test_log_policies_response.pb.go +++ b/go/internal/coralogix/quota/v1/bulk_test_log_policies_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/bulk_test_log_policies_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/create_policy_request.pb.go b/go/internal/coralogix/quota/v1/create_policy_request.pb.go index a868e85d..64487331 100644 --- a/go/internal/coralogix/quota/v1/create_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/create_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/create_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/create_policy_response.pb.go b/go/internal/coralogix/quota/v1/create_policy_response.pb.go index 0289c381..5ced594f 100644 --- a/go/internal/coralogix/quota/v1/create_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/create_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/create_policy_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/delete_policy_request.pb.go b/go/internal/coralogix/quota/v1/delete_policy_request.pb.go index 2a4c6fe8..f3d661fa 100644 --- a/go/internal/coralogix/quota/v1/delete_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/delete_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/delete_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/delete_policy_response.pb.go b/go/internal/coralogix/quota/v1/delete_policy_response.pb.go index 56bfcb4f..34f1e524 100644 --- a/go/internal/coralogix/quota/v1/delete_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/delete_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/delete_policy_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/enums.pb.go b/go/internal/coralogix/quota/v1/enums.pb.go index 497c47be..01626f6c 100644 --- a/go/internal/coralogix/quota/v1/enums.pb.go +++ b/go/internal/coralogix/quota/v1/enums.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/enums.proto package v1 diff --git a/go/internal/coralogix/quota/v1/get_company_policies_request.pb.go b/go/internal/coralogix/quota/v1/get_company_policies_request.pb.go index 63438532..337ff2cd 100644 --- a/go/internal/coralogix/quota/v1/get_company_policies_request.pb.go +++ b/go/internal/coralogix/quota/v1/get_company_policies_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/get_company_policies_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/get_company_policies_response.pb.go b/go/internal/coralogix/quota/v1/get_company_policies_response.pb.go index 895cf47d..225af84b 100644 --- a/go/internal/coralogix/quota/v1/get_company_policies_response.pb.go +++ b/go/internal/coralogix/quota/v1/get_company_policies_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/get_company_policies_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/get_policy_request.pb.go b/go/internal/coralogix/quota/v1/get_policy_request.pb.go index 844b671e..40b53206 100644 --- a/go/internal/coralogix/quota/v1/get_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/get_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/get_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/get_policy_response.pb.go b/go/internal/coralogix/quota/v1/get_policy_response.pb.go index 468519e0..1ed8821f 100644 --- a/go/internal/coralogix/quota/v1/get_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/get_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/get_policy_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/internal_policies_service.pb.go b/go/internal/coralogix/quota/v1/internal_policies_service.pb.go index 548d66e3..b4af80d7 100644 --- a/go/internal/coralogix/quota/v1/internal_policies_service.pb.go +++ b/go/internal/coralogix/quota/v1/internal_policies_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/internal_policies_service.proto package v1 diff --git a/go/internal/coralogix/quota/v1/internal_policies_service_grpc.pb.go b/go/internal/coralogix/quota/v1/internal_policies_service_grpc.pb.go index c88d98b6..c4f2e210 100644 --- a/go/internal/coralogix/quota/v1/internal_policies_service_grpc.pb.go +++ b/go/internal/coralogix/quota/v1/internal_policies_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/quota/v1/internal_policies_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InternalPoliciesService_GetPolicy_FullMethodName = "/com.coralogix.quota.v1.InternalPoliciesService/GetPolicy" @@ -52,8 +52,9 @@ func NewInternalPoliciesServiceClient(cc grpc.ClientConnInterface) InternalPolic } func (c *internalPoliciesServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPolicyResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_GetPolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_GetPolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *internalPoliciesServiceClient) GetPolicy(ctx context.Context, in *GetPo } func (c *internalPoliciesServiceClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreatePolicyResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_CreatePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_CreatePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *internalPoliciesServiceClient) CreatePolicy(ctx context.Context, in *Cr } func (c *internalPoliciesServiceClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*UpdatePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdatePolicyResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_UpdatePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_UpdatePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *internalPoliciesServiceClient) UpdatePolicy(ctx context.Context, in *Up } func (c *internalPoliciesServiceClient) GetCompanyPolicies(ctx context.Context, in *GetCompanyPoliciesRequest, opts ...grpc.CallOption) (*GetCompanyPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyPoliciesResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_GetCompanyPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_GetCompanyPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *internalPoliciesServiceClient) GetCompanyPolicies(ctx context.Context, } func (c *internalPoliciesServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeletePolicyResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_DeletePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_DeletePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *internalPoliciesServiceClient) DeletePolicy(ctx context.Context, in *De } func (c *internalPoliciesServiceClient) ReorderPolicies(ctx context.Context, in *ReorderPoliciesRequest, opts ...grpc.CallOption) (*ReorderPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReorderPoliciesResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_ReorderPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_ReorderPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *internalPoliciesServiceClient) ReorderPolicies(ctx context.Context, in } func (c *internalPoliciesServiceClient) BulkTestLogPolicies(ctx context.Context, in *BulkTestLogPoliciesRequest, opts ...grpc.CallOption) (*BulkTestLogPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BulkTestLogPoliciesResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_BulkTestLogPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_BulkTestLogPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *internalPoliciesServiceClient) BulkTestLogPolicies(ctx context.Context, } func (c *internalPoliciesServiceClient) TogglePolicy(ctx context.Context, in *TogglePolicyRequest, opts ...grpc.CallOption) (*TogglePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TogglePolicyResponse) - err := c.cc.Invoke(ctx, InternalPoliciesService_TogglePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InternalPoliciesService_TogglePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *internalPoliciesServiceClient) TogglePolicy(ctx context.Context, in *To // InternalPoliciesServiceServer is the server API for InternalPoliciesService service. // All implementations must embed UnimplementedInternalPoliciesServiceServer -// for forward compatibility +// for forward compatibility. type InternalPoliciesServiceServer interface { GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error) @@ -138,9 +146,12 @@ type InternalPoliciesServiceServer interface { mustEmbedUnimplementedInternalPoliciesServiceServer() } -// UnimplementedInternalPoliciesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInternalPoliciesServiceServer struct { -} +// UnimplementedInternalPoliciesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInternalPoliciesServiceServer struct{} func (UnimplementedInternalPoliciesServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") @@ -168,6 +179,7 @@ func (UnimplementedInternalPoliciesServiceServer) TogglePolicy(context.Context, } func (UnimplementedInternalPoliciesServiceServer) mustEmbedUnimplementedInternalPoliciesServiceServer() { } +func (UnimplementedInternalPoliciesServiceServer) testEmbeddedByValue() {} // UnsafeInternalPoliciesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InternalPoliciesServiceServer will @@ -177,6 +189,13 @@ type UnsafeInternalPoliciesServiceServer interface { } func RegisterInternalPoliciesServiceServer(s grpc.ServiceRegistrar, srv InternalPoliciesServiceServer) { + // If the following call pancis, it indicates UnimplementedInternalPoliciesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InternalPoliciesService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/quota/v1/log_meta_field_values.pb.go b/go/internal/coralogix/quota/v1/log_meta_field_values.pb.go index 4e9b80e4..cd80a4be 100644 --- a/go/internal/coralogix/quota/v1/log_meta_field_values.pb.go +++ b/go/internal/coralogix/quota/v1/log_meta_field_values.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/log_meta_field_values.proto package v1 diff --git a/go/internal/coralogix/quota/v1/log_rules.pb.go b/go/internal/coralogix/quota/v1/log_rules.pb.go index 3c89a53c..d5bca3cc 100644 --- a/go/internal/coralogix/quota/v1/log_rules.pb.go +++ b/go/internal/coralogix/quota/v1/log_rules.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/log_rules.proto package v1 diff --git a/go/internal/coralogix/quota/v1/policies_service.pb.go b/go/internal/coralogix/quota/v1/policies_service.pb.go index 2ccbf3bc..3f74a066 100644 --- a/go/internal/coralogix/quota/v1/policies_service.pb.go +++ b/go/internal/coralogix/quota/v1/policies_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/policies_service.proto package v1 diff --git a/go/internal/coralogix/quota/v1/policies_service_grpc.pb.go b/go/internal/coralogix/quota/v1/policies_service_grpc.pb.go index aa702c32..d02c2c74 100644 --- a/go/internal/coralogix/quota/v1/policies_service_grpc.pb.go +++ b/go/internal/coralogix/quota/v1/policies_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/quota/v1/policies_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PoliciesService_GetPolicy_FullMethodName = "/com.coralogix.quota.v1.PoliciesService/GetPolicy" @@ -58,8 +58,9 @@ func NewPoliciesServiceClient(cc grpc.ClientConnInterface) PoliciesServiceClient } func (c *policiesServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequest, opts ...grpc.CallOption) (*GetPolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_GetPolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_GetPolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -67,8 +68,9 @@ func (c *policiesServiceClient) GetPolicy(ctx context.Context, in *GetPolicyRequ } func (c *policiesServiceClient) CreatePolicy(ctx context.Context, in *CreatePolicyRequest, opts ...grpc.CallOption) (*CreatePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreatePolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_CreatePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_CreatePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -76,8 +78,9 @@ func (c *policiesServiceClient) CreatePolicy(ctx context.Context, in *CreatePoli } func (c *policiesServiceClient) UpdatePolicy(ctx context.Context, in *UpdatePolicyRequest, opts ...grpc.CallOption) (*UpdatePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdatePolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_UpdatePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_UpdatePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -85,8 +88,9 @@ func (c *policiesServiceClient) UpdatePolicy(ctx context.Context, in *UpdatePoli } func (c *policiesServiceClient) GetCompanyPolicies(ctx context.Context, in *GetCompanyPoliciesRequest, opts ...grpc.CallOption) (*GetCompanyPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyPoliciesResponse) - err := c.cc.Invoke(ctx, PoliciesService_GetCompanyPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_GetCompanyPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -94,8 +98,9 @@ func (c *policiesServiceClient) GetCompanyPolicies(ctx context.Context, in *GetC } func (c *policiesServiceClient) DeletePolicy(ctx context.Context, in *DeletePolicyRequest, opts ...grpc.CallOption) (*DeletePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeletePolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_DeletePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_DeletePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,8 +108,9 @@ func (c *policiesServiceClient) DeletePolicy(ctx context.Context, in *DeletePoli } func (c *policiesServiceClient) ReorderPolicies(ctx context.Context, in *ReorderPoliciesRequest, opts ...grpc.CallOption) (*ReorderPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReorderPoliciesResponse) - err := c.cc.Invoke(ctx, PoliciesService_ReorderPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_ReorderPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -112,8 +118,9 @@ func (c *policiesServiceClient) ReorderPolicies(ctx context.Context, in *Reorder } func (c *policiesServiceClient) BulkTestLogPolicies(ctx context.Context, in *BulkTestLogPoliciesRequest, opts ...grpc.CallOption) (*BulkTestLogPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BulkTestLogPoliciesResponse) - err := c.cc.Invoke(ctx, PoliciesService_BulkTestLogPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_BulkTestLogPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -121,8 +128,9 @@ func (c *policiesServiceClient) BulkTestLogPolicies(ctx context.Context, in *Bul } func (c *policiesServiceClient) TogglePolicy(ctx context.Context, in *TogglePolicyRequest, opts ...grpc.CallOption) (*TogglePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TogglePolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_TogglePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_TogglePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -130,8 +138,9 @@ func (c *policiesServiceClient) TogglePolicy(ctx context.Context, in *TogglePoli } func (c *policiesServiceClient) AtomicBatchCreatePolicy(ctx context.Context, in *AtomicBatchCreatePolicyRequest, opts ...grpc.CallOption) (*AtomicBatchCreatePolicyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicBatchCreatePolicyResponse) - err := c.cc.Invoke(ctx, PoliciesService_AtomicBatchCreatePolicy_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_AtomicBatchCreatePolicy_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,8 +148,9 @@ func (c *policiesServiceClient) AtomicBatchCreatePolicy(ctx context.Context, in } func (c *policiesServiceClient) AtomicOverwriteLogPolicies(ctx context.Context, in *AtomicOverwriteLogPoliciesRequest, opts ...grpc.CallOption) (*AtomicOverwriteLogPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicOverwriteLogPoliciesResponse) - err := c.cc.Invoke(ctx, PoliciesService_AtomicOverwriteLogPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_AtomicOverwriteLogPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -148,8 +158,9 @@ func (c *policiesServiceClient) AtomicOverwriteLogPolicies(ctx context.Context, } func (c *policiesServiceClient) AtomicOverwriteSpanPolicies(ctx context.Context, in *AtomicOverwriteSpanPoliciesRequest, opts ...grpc.CallOption) (*AtomicOverwriteSpanPoliciesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicOverwriteSpanPoliciesResponse) - err := c.cc.Invoke(ctx, PoliciesService_AtomicOverwriteSpanPolicies_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PoliciesService_AtomicOverwriteSpanPolicies_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -158,7 +169,7 @@ func (c *policiesServiceClient) AtomicOverwriteSpanPolicies(ctx context.Context, // PoliciesServiceServer is the server API for PoliciesService service. // All implementations must embed UnimplementedPoliciesServiceServer -// for forward compatibility +// for forward compatibility. type PoliciesServiceServer interface { GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) CreatePolicy(context.Context, *CreatePolicyRequest) (*CreatePolicyResponse, error) @@ -174,9 +185,12 @@ type PoliciesServiceServer interface { mustEmbedUnimplementedPoliciesServiceServer() } -// UnimplementedPoliciesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPoliciesServiceServer struct { -} +// UnimplementedPoliciesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPoliciesServiceServer struct{} func (UnimplementedPoliciesServiceServer) GetPolicy(context.Context, *GetPolicyRequest) (*GetPolicyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPolicy not implemented") @@ -212,6 +226,7 @@ func (UnimplementedPoliciesServiceServer) AtomicOverwriteSpanPolicies(context.Co return nil, status.Errorf(codes.Unimplemented, "method AtomicOverwriteSpanPolicies not implemented") } func (UnimplementedPoliciesServiceServer) mustEmbedUnimplementedPoliciesServiceServer() {} +func (UnimplementedPoliciesServiceServer) testEmbeddedByValue() {} // UnsafePoliciesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PoliciesServiceServer will @@ -221,6 +236,13 @@ type UnsafePoliciesServiceServer interface { } func RegisterPoliciesServiceServer(s grpc.ServiceRegistrar, srv PoliciesServiceServer) { + // If the following call pancis, it indicates UnimplementedPoliciesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PoliciesService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/quota/v1/policy.pb.go b/go/internal/coralogix/quota/v1/policy.pb.go index 4f01243c..be054aa5 100644 --- a/go/internal/coralogix/quota/v1/policy.pb.go +++ b/go/internal/coralogix/quota/v1/policy.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/policy.proto package v1 diff --git a/go/internal/coralogix/quota/v1/policy_order.pb.go b/go/internal/coralogix/quota/v1/policy_order.pb.go index c87a59b1..c1893036 100644 --- a/go/internal/coralogix/quota/v1/policy_order.pb.go +++ b/go/internal/coralogix/quota/v1/policy_order.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/policy_order.proto package v1 diff --git a/go/internal/coralogix/quota/v1/reorder_policies_request.pb.go b/go/internal/coralogix/quota/v1/reorder_policies_request.pb.go index adb194e8..3e01ec38 100644 --- a/go/internal/coralogix/quota/v1/reorder_policies_request.pb.go +++ b/go/internal/coralogix/quota/v1/reorder_policies_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/reorder_policies_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/reorder_policies_response.pb.go b/go/internal/coralogix/quota/v1/reorder_policies_response.pb.go index c55a8e96..42dab997 100644 --- a/go/internal/coralogix/quota/v1/reorder_policies_response.pb.go +++ b/go/internal/coralogix/quota/v1/reorder_policies_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/reorder_policies_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/rule.pb.go b/go/internal/coralogix/quota/v1/rule.pb.go index e6da2d67..e0305fab 100644 --- a/go/internal/coralogix/quota/v1/rule.pb.go +++ b/go/internal/coralogix/quota/v1/rule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/rule.proto package v1 diff --git a/go/internal/coralogix/quota/v1/span_rules.pb.go b/go/internal/coralogix/quota/v1/span_rules.pb.go index 5aad77f0..353736c5 100644 --- a/go/internal/coralogix/quota/v1/span_rules.pb.go +++ b/go/internal/coralogix/quota/v1/span_rules.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/span_rules.proto package v1 diff --git a/go/internal/coralogix/quota/v1/tag_rule.pb.go b/go/internal/coralogix/quota/v1/tag_rule.pb.go index a1af6a70..d24155ee 100644 --- a/go/internal/coralogix/quota/v1/tag_rule.pb.go +++ b/go/internal/coralogix/quota/v1/tag_rule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/tag_rule.proto package v1 diff --git a/go/internal/coralogix/quota/v1/test_policies_result.pb.go b/go/internal/coralogix/quota/v1/test_policies_result.pb.go index 0dec3c4a..5a9f633b 100644 --- a/go/internal/coralogix/quota/v1/test_policies_result.pb.go +++ b/go/internal/coralogix/quota/v1/test_policies_result.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/test_policies_result.proto package v1 diff --git a/go/internal/coralogix/quota/v1/toggle_policy_request.pb.go b/go/internal/coralogix/quota/v1/toggle_policy_request.pb.go index add87883..95b4ee26 100644 --- a/go/internal/coralogix/quota/v1/toggle_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/toggle_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/toggle_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/toggle_policy_response.pb.go b/go/internal/coralogix/quota/v1/toggle_policy_response.pb.go index ae287740..b6a86106 100644 --- a/go/internal/coralogix/quota/v1/toggle_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/toggle_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/toggle_policy_response.proto package v1 diff --git a/go/internal/coralogix/quota/v1/update_policy_request.pb.go b/go/internal/coralogix/quota/v1/update_policy_request.pb.go index 83a3d254..4c96246e 100644 --- a/go/internal/coralogix/quota/v1/update_policy_request.pb.go +++ b/go/internal/coralogix/quota/v1/update_policy_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/update_policy_request.proto package v1 diff --git a/go/internal/coralogix/quota/v1/update_policy_response.pb.go b/go/internal/coralogix/quota/v1/update_policy_response.pb.go index 121273eb..f377666e 100644 --- a/go/internal/coralogix/quota/v1/update_policy_response.pb.go +++ b/go/internal/coralogix/quota/v1/update_policy_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/quota/v1/update_policy_response.proto package v1 diff --git a/go/internal/coralogix/rules/v1/rule.pb.go b/go/internal/coralogix/rules/v1/rule.pb.go index 7fea4230..25beff52 100644 --- a/go/internal/coralogix/rules/v1/rule.pb.go +++ b/go/internal/coralogix/rules/v1/rule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/rules/v1/rule.proto package v1 diff --git a/go/internal/coralogix/rules/v1/rule_group.pb.go b/go/internal/coralogix/rules/v1/rule_group.pb.go index 2b29e320..401c7b73 100644 --- a/go/internal/coralogix/rules/v1/rule_group.pb.go +++ b/go/internal/coralogix/rules/v1/rule_group.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/rules/v1/rule_group.proto package v1 diff --git a/go/internal/coralogix/rules/v1/rule_groups_service.pb.go b/go/internal/coralogix/rules/v1/rule_groups_service.pb.go index 26777e48..0a8c38f9 100644 --- a/go/internal/coralogix/rules/v1/rule_groups_service.pb.go +++ b/go/internal/coralogix/rules/v1/rule_groups_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/rules/v1/rule_groups_service.proto package v1 diff --git a/go/internal/coralogix/rules/v1/rule_groups_service_grpc.pb.go b/go/internal/coralogix/rules/v1/rule_groups_service_grpc.pb.go index b761ee12..eeabcb6c 100644 --- a/go/internal/coralogix/rules/v1/rule_groups_service_grpc.pb.go +++ b/go/internal/coralogix/rules/v1/rule_groups_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/rules/v1/rule_groups_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RuleGroupsService_GetRuleGroup_FullMethodName = "/com.coralogix.rules.v1.RuleGroupsService/GetRuleGroup" @@ -52,8 +52,9 @@ func NewRuleGroupsServiceClient(cc grpc.ClientConnInterface) RuleGroupsServiceCl } func (c *ruleGroupsServiceClient) GetRuleGroup(ctx context.Context, in *GetRuleGroupRequest, opts ...grpc.CallOption) (*GetRuleGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRuleGroupResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_GetRuleGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_GetRuleGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *ruleGroupsServiceClient) GetRuleGroup(ctx context.Context, in *GetRuleG } func (c *ruleGroupsServiceClient) ListRuleGroups(ctx context.Context, in *ListRuleGroupsRequest, opts ...grpc.CallOption) (*ListRuleGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRuleGroupsResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_ListRuleGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_ListRuleGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *ruleGroupsServiceClient) ListRuleGroups(ctx context.Context, in *ListRu } func (c *ruleGroupsServiceClient) CreateRuleGroup(ctx context.Context, in *CreateRuleGroupRequest, opts ...grpc.CallOption) (*CreateRuleGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateRuleGroupResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_CreateRuleGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_CreateRuleGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *ruleGroupsServiceClient) CreateRuleGroup(ctx context.Context, in *Creat } func (c *ruleGroupsServiceClient) UpdateRuleGroup(ctx context.Context, in *UpdateRuleGroupRequest, opts ...grpc.CallOption) (*UpdateRuleGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateRuleGroupResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_UpdateRuleGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_UpdateRuleGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *ruleGroupsServiceClient) UpdateRuleGroup(ctx context.Context, in *Updat } func (c *ruleGroupsServiceClient) DeleteRuleGroup(ctx context.Context, in *DeleteRuleGroupRequest, opts ...grpc.CallOption) (*DeleteRuleGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteRuleGroupResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_DeleteRuleGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_DeleteRuleGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *ruleGroupsServiceClient) DeleteRuleGroup(ctx context.Context, in *Delet } func (c *ruleGroupsServiceClient) BulkDeleteRuleGroup(ctx context.Context, in *BulkDeleteRuleGroupRequest, opts ...grpc.CallOption) (*BulkDeleteRuleGroupResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BulkDeleteRuleGroupResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_BulkDeleteRuleGroup_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_BulkDeleteRuleGroup_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *ruleGroupsServiceClient) BulkDeleteRuleGroup(ctx context.Context, in *B } func (c *ruleGroupsServiceClient) GetRuleGroupModelMapping(ctx context.Context, in *GetRuleGroupModelMappingRequest, opts ...grpc.CallOption) (*GetRuleGroupModelMappingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRuleGroupModelMappingResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_GetRuleGroupModelMapping_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_GetRuleGroupModelMapping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *ruleGroupsServiceClient) GetRuleGroupModelMapping(ctx context.Context, } func (c *ruleGroupsServiceClient) GetCompanyUsageLimits(ctx context.Context, in *GetCompanyUsageLimitsRequest, opts ...grpc.CallOption) (*GetCompanyUsageLimitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCompanyUsageLimitsResponse) - err := c.cc.Invoke(ctx, RuleGroupsService_GetCompanyUsageLimits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupsService_GetCompanyUsageLimits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *ruleGroupsServiceClient) GetCompanyUsageLimits(ctx context.Context, in // RuleGroupsServiceServer is the server API for RuleGroupsService service. // All implementations must embed UnimplementedRuleGroupsServiceServer -// for forward compatibility +// for forward compatibility. type RuleGroupsServiceServer interface { GetRuleGroup(context.Context, *GetRuleGroupRequest) (*GetRuleGroupResponse, error) ListRuleGroups(context.Context, *ListRuleGroupsRequest) (*ListRuleGroupsResponse, error) @@ -138,9 +146,12 @@ type RuleGroupsServiceServer interface { mustEmbedUnimplementedRuleGroupsServiceServer() } -// UnimplementedRuleGroupsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRuleGroupsServiceServer struct { -} +// UnimplementedRuleGroupsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRuleGroupsServiceServer struct{} func (UnimplementedRuleGroupsServiceServer) GetRuleGroup(context.Context, *GetRuleGroupRequest) (*GetRuleGroupResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetRuleGroup not implemented") @@ -167,6 +178,7 @@ func (UnimplementedRuleGroupsServiceServer) GetCompanyUsageLimits(context.Contex return nil, status.Errorf(codes.Unimplemented, "method GetCompanyUsageLimits not implemented") } func (UnimplementedRuleGroupsServiceServer) mustEmbedUnimplementedRuleGroupsServiceServer() {} +func (UnimplementedRuleGroupsServiceServer) testEmbeddedByValue() {} // UnsafeRuleGroupsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RuleGroupsServiceServer will @@ -176,6 +188,13 @@ type UnsafeRuleGroupsServiceServer interface { } func RegisterRuleGroupsServiceServer(s grpc.ServiceRegistrar, srv RuleGroupsServiceServer) { + // If the following call pancis, it indicates UnimplementedRuleGroupsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RuleGroupsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/rules/v1/rule_matcher.pb.go b/go/internal/coralogix/rules/v1/rule_matcher.pb.go index 4a230a8f..7f3a2d2c 100644 --- a/go/internal/coralogix/rules/v1/rule_matcher.pb.go +++ b/go/internal/coralogix/rules/v1/rule_matcher.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/rules/v1/rule_matcher.proto package v1 diff --git a/go/internal/coralogix/rules/v1/rule_subgroup.pb.go b/go/internal/coralogix/rules/v1/rule_subgroup.pb.go index 8494a22a..8e3f21d8 100644 --- a/go/internal/coralogix/rules/v1/rule_subgroup.pb.go +++ b/go/internal/coralogix/rules/v1/rule_subgroup.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/rules/v1/rule_subgroup.proto package v1 diff --git a/go/internal/coralogix/tags/v1/audit_log.pb.go b/go/internal/coralogix/tags/v1/audit_log.pb.go index 0a5d1c6d..13917c42 100644 --- a/go/internal/coralogix/tags/v1/audit_log.pb.go +++ b/go/internal/coralogix/tags/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/tags/v1/audit_log.proto package v1 diff --git a/go/internal/coralogix/tags/v1/tag.pb.go b/go/internal/coralogix/tags/v1/tag.pb.go index 8a91147a..6ea40458 100644 --- a/go/internal/coralogix/tags/v1/tag.pb.go +++ b/go/internal/coralogix/tags/v1/tag.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/tags/v1/tag.proto package v1 diff --git a/go/internal/coralogix/tags/v1/tag_external_service.pb.go b/go/internal/coralogix/tags/v1/tag_external_service.pb.go index 835eeeaa..9f37fee4 100644 --- a/go/internal/coralogix/tags/v1/tag_external_service.pb.go +++ b/go/internal/coralogix/tags/v1/tag_external_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/tags/v1/tag_external_service.proto package v1 diff --git a/go/internal/coralogix/tags/v1/tag_external_service_grpc.pb.go b/go/internal/coralogix/tags/v1/tag_external_service_grpc.pb.go index f31b3b13..0f76fffb 100644 --- a/go/internal/coralogix/tags/v1/tag_external_service_grpc.pb.go +++ b/go/internal/coralogix/tags/v1/tag_external_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/tags/v1/tag_external_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TagsExternalService_CreateExternalTag_FullMethodName = "/com.coralogix.tags.v1.TagsExternalService/CreateExternalTag" @@ -46,8 +46,9 @@ func NewTagsExternalServiceClient(cc grpc.ClientConnInterface) TagsExternalServi } func (c *tagsExternalServiceClient) CreateExternalTag(ctx context.Context, in *CreateExternalTagRequest, opts ...grpc.CallOption) (*CreateExternalTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateExternalTagResponse) - err := c.cc.Invoke(ctx, TagsExternalService_CreateExternalTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsExternalService_CreateExternalTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *tagsExternalServiceClient) CreateExternalTag(ctx context.Context, in *C } func (c *tagsExternalServiceClient) AddExternalTag(ctx context.Context, in *AddExternalTagRequest, opts ...grpc.CallOption) (*AddExternalTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AddExternalTagResponse) - err := c.cc.Invoke(ctx, TagsExternalService_AddExternalTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsExternalService_AddExternalTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *tagsExternalServiceClient) AddExternalTag(ctx context.Context, in *AddE } func (c *tagsExternalServiceClient) CreateBitbucketTag(ctx context.Context, in *CreateBitbucketTagRequest, opts ...grpc.CallOption) (*CreateBitbucketTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateBitbucketTagResponse) - err := c.cc.Invoke(ctx, TagsExternalService_CreateBitbucketTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsExternalService_CreateBitbucketTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *tagsExternalServiceClient) CreateBitbucketTag(ctx context.Context, in * } func (c *tagsExternalServiceClient) CreateTfsTag(ctx context.Context, in *CreateTfsTagRequest, opts ...grpc.CallOption) (*CreateTfsTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTfsTagResponse) - err := c.cc.Invoke(ctx, TagsExternalService_CreateTfsTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsExternalService_CreateTfsTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *tagsExternalServiceClient) CreateTfsTag(ctx context.Context, in *Create } func (c *tagsExternalServiceClient) CreateGitlabTag(ctx context.Context, in *CreateGitlabTagRequest, opts ...grpc.CallOption) (*CreateGitlabTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateGitlabTagResponse) - err := c.cc.Invoke(ctx, TagsExternalService_CreateGitlabTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsExternalService_CreateGitlabTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *tagsExternalServiceClient) CreateGitlabTag(ctx context.Context, in *Cre // TagsExternalServiceServer is the server API for TagsExternalService service. // All implementations must embed UnimplementedTagsExternalServiceServer -// for forward compatibility +// for forward compatibility. type TagsExternalServiceServer interface { CreateExternalTag(context.Context, *CreateExternalTagRequest) (*CreateExternalTagResponse, error) AddExternalTag(context.Context, *AddExternalTagRequest) (*AddExternalTagResponse, error) @@ -102,9 +107,12 @@ type TagsExternalServiceServer interface { mustEmbedUnimplementedTagsExternalServiceServer() } -// UnimplementedTagsExternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTagsExternalServiceServer struct { -} +// UnimplementedTagsExternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTagsExternalServiceServer struct{} func (UnimplementedTagsExternalServiceServer) CreateExternalTag(context.Context, *CreateExternalTagRequest) (*CreateExternalTagResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateExternalTag not implemented") @@ -122,6 +130,7 @@ func (UnimplementedTagsExternalServiceServer) CreateGitlabTag(context.Context, * return nil, status.Errorf(codes.Unimplemented, "method CreateGitlabTag not implemented") } func (UnimplementedTagsExternalServiceServer) mustEmbedUnimplementedTagsExternalServiceServer() {} +func (UnimplementedTagsExternalServiceServer) testEmbeddedByValue() {} // UnsafeTagsExternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TagsExternalServiceServer will @@ -131,6 +140,13 @@ type UnsafeTagsExternalServiceServer interface { } func RegisterTagsExternalServiceServer(s grpc.ServiceRegistrar, srv TagsExternalServiceServer) { + // If the following call pancis, it indicates UnimplementedTagsExternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TagsExternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/tags/v1/tag_service.pb.go b/go/internal/coralogix/tags/v1/tag_service.pb.go index dfb323e0..8d934453 100644 --- a/go/internal/coralogix/tags/v1/tag_service.pb.go +++ b/go/internal/coralogix/tags/v1/tag_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/tags/v1/tag_service.proto package v1 diff --git a/go/internal/coralogix/tags/v1/tag_service_grpc.pb.go b/go/internal/coralogix/tags/v1/tag_service_grpc.pb.go index d51f0d39..a60fa0d2 100644 --- a/go/internal/coralogix/tags/v1/tag_service_grpc.pb.go +++ b/go/internal/coralogix/tags/v1/tag_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogix/tags/v1/tag_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TagsService_CreateTag_FullMethodName = "/com.coralogix.tags.v1.TagsService/CreateTag" @@ -50,8 +50,9 @@ func NewTagsServiceClient(cc grpc.ClientConnInterface) TagsServiceClient { } func (c *tagsServiceClient) CreateTag(ctx context.Context, in *CreateTagRequest, opts ...grpc.CallOption) (*CreateTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTagResponse) - err := c.cc.Invoke(ctx, TagsService_CreateTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_CreateTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *tagsServiceClient) CreateTag(ctx context.Context, in *CreateTagRequest, } func (c *tagsServiceClient) GetTags(ctx context.Context, in *GetTagsRequest, opts ...grpc.CallOption) (*GetTagsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTagsResponse) - err := c.cc.Invoke(ctx, TagsService_GetTags_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_GetTags_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *tagsServiceClient) GetTags(ctx context.Context, in *GetTagsRequest, opt } func (c *tagsServiceClient) UpdateTag(ctx context.Context, in *UpdateTagRequest, opts ...grpc.CallOption) (*UpdateTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateTagResponse) - err := c.cc.Invoke(ctx, TagsService_UpdateTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_UpdateTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *tagsServiceClient) UpdateTag(ctx context.Context, in *UpdateTagRequest, } func (c *tagsServiceClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, opts ...grpc.CallOption) (*DeleteTagResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteTagResponse) - err := c.cc.Invoke(ctx, TagsService_DeleteTag_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_DeleteTag_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *tagsServiceClient) DeleteTag(ctx context.Context, in *DeleteTagRequest, } func (c *tagsServiceClient) GetTagSummary(ctx context.Context, in *GetTagSummaryRequest, opts ...grpc.CallOption) (*GetTagSummaryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTagSummaryResponse) - err := c.cc.Invoke(ctx, TagsService_GetTagSummary_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_GetTagSummary_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *tagsServiceClient) GetTagSummary(ctx context.Context, in *GetTagSummary } func (c *tagsServiceClient) GetTagAlerts(ctx context.Context, in *GetTagAlertsRequest, opts ...grpc.CallOption) (*GetTagAlertsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTagAlertsResponse) - err := c.cc.Invoke(ctx, TagsService_GetTagAlerts_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_GetTagAlerts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *tagsServiceClient) GetTagAlerts(ctx context.Context, in *GetTagAlertsRe } func (c *tagsServiceClient) GetTagErrorVolume(ctx context.Context, in *GetTagErrorVolumeRequest, opts ...grpc.CallOption) (*GetTagErrorVolumeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTagErrorVolumeResponse) - err := c.cc.Invoke(ctx, TagsService_GetTagErrorVolume_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TagsService_GetTagErrorVolume_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *tagsServiceClient) GetTagErrorVolume(ctx context.Context, in *GetTagErr // TagsServiceServer is the server API for TagsService service. // All implementations must embed UnimplementedTagsServiceServer -// for forward compatibility +// for forward compatibility. type TagsServiceServer interface { CreateTag(context.Context, *CreateTagRequest) (*CreateTagResponse, error) GetTags(context.Context, *GetTagsRequest) (*GetTagsResponse, error) @@ -126,9 +133,12 @@ type TagsServiceServer interface { mustEmbedUnimplementedTagsServiceServer() } -// UnimplementedTagsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTagsServiceServer struct { -} +// UnimplementedTagsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTagsServiceServer struct{} func (UnimplementedTagsServiceServer) CreateTag(context.Context, *CreateTagRequest) (*CreateTagResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTag not implemented") @@ -152,6 +162,7 @@ func (UnimplementedTagsServiceServer) GetTagErrorVolume(context.Context, *GetTag return nil, status.Errorf(codes.Unimplemented, "method GetTagErrorVolume not implemented") } func (UnimplementedTagsServiceServer) mustEmbedUnimplementedTagsServiceServer() {} +func (UnimplementedTagsServiceServer) testEmbeddedByValue() {} // UnsafeTagsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TagsServiceServer will @@ -161,6 +172,13 @@ type UnsafeTagsServiceServer interface { } func RegisterTagsServiceServer(s grpc.ServiceRegistrar, srv TagsServiceServer) { + // If the following call pancis, it indicates UnimplementedTagsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TagsService_ServiceDesc, srv) } diff --git a/go/internal/coralogix/tags/v1/tag_type.pb.go b/go/internal/coralogix/tags/v1/tag_type.pb.go index ea2de9b4..f48ac409 100644 --- a/go/internal/coralogix/tags/v1/tag_type.pb.go +++ b/go/internal/coralogix/tags/v1/tag_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogix/tags/v1/tag_type.proto package v1 diff --git a/go/internal/coralogixapis/aaa/apikeys/v3/api_keys.pb.go b/go/internal/coralogixapis/aaa/apikeys/v3/api_keys.pb.go index 9d430d8d..86920501 100644 --- a/go/internal/coralogixapis/aaa/apikeys/v3/api_keys.pb.go +++ b/go/internal/coralogixapis/aaa/apikeys/v3/api_keys.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/apikeys/v3/api_keys.proto package v3 diff --git a/go/internal/coralogixapis/aaa/apikeys/v3/api_keys_grpc.pb.go b/go/internal/coralogixapis/aaa/apikeys/v3/api_keys_grpc.pb.go index d23a9f67..cee18857 100644 --- a/go/internal/coralogixapis/aaa/apikeys/v3/api_keys_grpc.pb.go +++ b/go/internal/coralogixapis/aaa/apikeys/v3/api_keys_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/aaa/apikeys/v3/api_keys.proto package v3 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApiKeysService_CreateApiKey_FullMethodName = "/com.coralogixapis.aaa.apikeys.v3.ApiKeysService/CreateApiKey" @@ -46,8 +46,9 @@ func NewApiKeysServiceClient(cc grpc.ClientConnInterface) ApiKeysServiceClient { } func (c *apiKeysServiceClient) CreateApiKey(ctx context.Context, in *CreateApiKeyRequest, opts ...grpc.CallOption) (*CreateApiKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateApiKeyResponse) - err := c.cc.Invoke(ctx, ApiKeysService_CreateApiKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApiKeysService_CreateApiKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *apiKeysServiceClient) CreateApiKey(ctx context.Context, in *CreateApiKe } func (c *apiKeysServiceClient) GetApiKey(ctx context.Context, in *GetApiKeyRequest, opts ...grpc.CallOption) (*GetApiKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApiKeyResponse) - err := c.cc.Invoke(ctx, ApiKeysService_GetApiKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApiKeysService_GetApiKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *apiKeysServiceClient) GetApiKey(ctx context.Context, in *GetApiKeyReque } func (c *apiKeysServiceClient) GetSendDataApiKeys(ctx context.Context, in *GetSendDataApiKeysRequest, opts ...grpc.CallOption) (*GetSendDataApiKeysResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSendDataApiKeysResponse) - err := c.cc.Invoke(ctx, ApiKeysService_GetSendDataApiKeys_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApiKeysService_GetSendDataApiKeys_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *apiKeysServiceClient) GetSendDataApiKeys(ctx context.Context, in *GetSe } func (c *apiKeysServiceClient) DeleteApiKey(ctx context.Context, in *DeleteApiKeyRequest, opts ...grpc.CallOption) (*DeleteApiKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteApiKeyResponse) - err := c.cc.Invoke(ctx, ApiKeysService_DeleteApiKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApiKeysService_DeleteApiKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *apiKeysServiceClient) DeleteApiKey(ctx context.Context, in *DeleteApiKe } func (c *apiKeysServiceClient) UpdateApiKey(ctx context.Context, in *UpdateApiKeyRequest, opts ...grpc.CallOption) (*UpdateApiKeyResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateApiKeyResponse) - err := c.cc.Invoke(ctx, ApiKeysService_UpdateApiKey_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApiKeysService_UpdateApiKey_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *apiKeysServiceClient) UpdateApiKey(ctx context.Context, in *UpdateApiKe // ApiKeysServiceServer is the server API for ApiKeysService service. // All implementations must embed UnimplementedApiKeysServiceServer -// for forward compatibility +// for forward compatibility. type ApiKeysServiceServer interface { CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) GetApiKey(context.Context, *GetApiKeyRequest) (*GetApiKeyResponse, error) @@ -102,9 +107,12 @@ type ApiKeysServiceServer interface { mustEmbedUnimplementedApiKeysServiceServer() } -// UnimplementedApiKeysServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApiKeysServiceServer struct { -} +// UnimplementedApiKeysServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApiKeysServiceServer struct{} func (UnimplementedApiKeysServiceServer) CreateApiKey(context.Context, *CreateApiKeyRequest) (*CreateApiKeyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateApiKey not implemented") @@ -122,6 +130,7 @@ func (UnimplementedApiKeysServiceServer) UpdateApiKey(context.Context, *UpdateAp return nil, status.Errorf(codes.Unimplemented, "method UpdateApiKey not implemented") } func (UnimplementedApiKeysServiceServer) mustEmbedUnimplementedApiKeysServiceServer() {} +func (UnimplementedApiKeysServiceServer) testEmbeddedByValue() {} // UnsafeApiKeysServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApiKeysServiceServer will @@ -131,6 +140,13 @@ type UnsafeApiKeysServiceServer interface { } func RegisterApiKeysServiceServer(s grpc.ServiceRegistrar, srv ApiKeysServiceServer) { + // If the following call pancis, it indicates UnimplementedApiKeysServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApiKeysService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/aaa/organisations/v2/team_service.pb.go b/go/internal/coralogixapis/aaa/organisations/v2/team_service.pb.go index 818b993b..c6ae0c1e 100644 --- a/go/internal/coralogixapis/aaa/organisations/v2/team_service.pb.go +++ b/go/internal/coralogixapis/aaa/organisations/v2/team_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/organisations/v2/team_service.proto package v2 diff --git a/go/internal/coralogixapis/aaa/organisations/v2/team_service_grpc.pb.go b/go/internal/coralogixapis/aaa/organisations/v2/team_service_grpc.pb.go index 31d98038..f85042a6 100644 --- a/go/internal/coralogixapis/aaa/organisations/v2/team_service_grpc.pb.go +++ b/go/internal/coralogixapis/aaa/organisations/v2/team_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/aaa/organisations/v2/team_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TeamService_CreateTeamInOrg_FullMethodName = "/com.coralogixapis.aaa.organisations.v2.TeamService/CreateTeamInOrg" @@ -52,8 +52,9 @@ func NewTeamServiceClient(cc grpc.ClientConnInterface) TeamServiceClient { } func (c *teamServiceClient) CreateTeamInOrg(ctx context.Context, in *CreateTeamInOrgRequest, opts ...grpc.CallOption) (*CreateTeamInOrgResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateTeamInOrgResponse) - err := c.cc.Invoke(ctx, TeamService_CreateTeamInOrg_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_CreateTeamInOrg_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *teamServiceClient) CreateTeamInOrg(ctx context.Context, in *CreateTeamI } func (c *teamServiceClient) MoveQuota(ctx context.Context, in *MoveQuotaRequest, opts ...grpc.CallOption) (*MoveQuotaResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(MoveQuotaResponse) - err := c.cc.Invoke(ctx, TeamService_MoveQuota_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_MoveQuota_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *teamServiceClient) MoveQuota(ctx context.Context, in *MoveQuotaRequest, } func (c *teamServiceClient) GetTeamQuota(ctx context.Context, in *GetTeamQuotaRequest, opts ...grpc.CallOption) (*GetTeamQuotaResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamQuotaResponse) - err := c.cc.Invoke(ctx, TeamService_GetTeamQuota_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_GetTeamQuota_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *teamServiceClient) GetTeamQuota(ctx context.Context, in *GetTeamQuotaRe } func (c *teamServiceClient) SetDailyQuota(ctx context.Context, in *SetDailyQuotaRequest, opts ...grpc.CallOption) (*SetDailyQuotaResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetDailyQuotaResponse) - err := c.cc.Invoke(ctx, TeamService_SetDailyQuota_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_SetDailyQuota_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *teamServiceClient) SetDailyQuota(ctx context.Context, in *SetDailyQuota } func (c *teamServiceClient) UpdateTeam(ctx context.Context, in *UpdateTeamRequest, opts ...grpc.CallOption) (*UpdateTeamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateTeamResponse) - err := c.cc.Invoke(ctx, TeamService_UpdateTeam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_UpdateTeam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *teamServiceClient) UpdateTeam(ctx context.Context, in *UpdateTeamReques } func (c *teamServiceClient) GetTeam(ctx context.Context, in *GetTeamRequest, opts ...grpc.CallOption) (*GetTeamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamResponse) - err := c.cc.Invoke(ctx, TeamService_GetTeam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_GetTeam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *teamServiceClient) GetTeam(ctx context.Context, in *GetTeamRequest, opt } func (c *teamServiceClient) DeleteTeam(ctx context.Context, in *DeleteTeamRequest, opts ...grpc.CallOption) (*DeleteTeamResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteTeamResponse) - err := c.cc.Invoke(ctx, TeamService_DeleteTeam_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_DeleteTeam_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *teamServiceClient) DeleteTeam(ctx context.Context, in *DeleteTeamReques } func (c *teamServiceClient) ListTeams(ctx context.Context, in *ListTeamsRequest, opts ...grpc.CallOption) (*ListTeamsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTeamsResponse) - err := c.cc.Invoke(ctx, TeamService_ListTeams_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamService_ListTeams_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *teamServiceClient) ListTeams(ctx context.Context, in *ListTeamsRequest, // TeamServiceServer is the server API for TeamService service. // All implementations must embed UnimplementedTeamServiceServer -// for forward compatibility +// for forward compatibility. type TeamServiceServer interface { CreateTeamInOrg(context.Context, *CreateTeamInOrgRequest) (*CreateTeamInOrgResponse, error) MoveQuota(context.Context, *MoveQuotaRequest) (*MoveQuotaResponse, error) @@ -138,9 +146,12 @@ type TeamServiceServer interface { mustEmbedUnimplementedTeamServiceServer() } -// UnimplementedTeamServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTeamServiceServer struct { -} +// UnimplementedTeamServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTeamServiceServer struct{} func (UnimplementedTeamServiceServer) CreateTeamInOrg(context.Context, *CreateTeamInOrgRequest) (*CreateTeamInOrgResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateTeamInOrg not implemented") @@ -167,6 +178,7 @@ func (UnimplementedTeamServiceServer) ListTeams(context.Context, *ListTeamsReque return nil, status.Errorf(codes.Unimplemented, "method ListTeams not implemented") } func (UnimplementedTeamServiceServer) mustEmbedUnimplementedTeamServiceServer() {} +func (UnimplementedTeamServiceServer) testEmbeddedByValue() {} // UnsafeTeamServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TeamServiceServer will @@ -176,6 +188,13 @@ type UnsafeTeamServiceServer interface { } func RegisterTeamServiceServer(s grpc.ServiceRegistrar, srv TeamServiceServer) { + // If the following call pancis, it indicates UnimplementedTeamServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TeamService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/aaa/organisations/v2/types.pb.go b/go/internal/coralogixapis/aaa/organisations/v2/types.pb.go index d8c7ca62..48402e83 100644 --- a/go/internal/coralogixapis/aaa/organisations/v2/types.pb.go +++ b/go/internal/coralogixapis/aaa/organisations/v2/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/organisations/v2/types.proto package v2 diff --git a/go/internal/coralogixapis/aaa/rbac/v2/permissions.pb.go b/go/internal/coralogixapis/aaa/rbac/v2/permissions.pb.go index 1725b660..36d7d9f4 100644 --- a/go/internal/coralogixapis/aaa/rbac/v2/permissions.pb.go +++ b/go/internal/coralogixapis/aaa/rbac/v2/permissions.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/rbac/v2/permissions.proto package v2 diff --git a/go/internal/coralogixapis/aaa/rbac/v2/permissions_grpc.pb.go b/go/internal/coralogixapis/aaa/rbac/v2/permissions_grpc.pb.go index c7d55c34..d816e188 100644 --- a/go/internal/coralogixapis/aaa/rbac/v2/permissions_grpc.pb.go +++ b/go/internal/coralogixapis/aaa/rbac/v2/permissions_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/aaa/rbac/v2/permissions.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PermissionsService_ListAllPermissions_FullMethodName = "/com.coralogixapis.aaa.rbac.v2.PermissionsService/ListAllPermissions" @@ -38,8 +38,9 @@ func NewPermissionsServiceClient(cc grpc.ClientConnInterface) PermissionsService } func (c *permissionsServiceClient) ListAllPermissions(ctx context.Context, in *ListAllPermissionsRequest, opts ...grpc.CallOption) (*ListAllPermissionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAllPermissionsResponse) - err := c.cc.Invoke(ctx, PermissionsService_ListAllPermissions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PermissionsService_ListAllPermissions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *permissionsServiceClient) ListAllPermissions(ctx context.Context, in *L // PermissionsServiceServer is the server API for PermissionsService service. // All implementations must embed UnimplementedPermissionsServiceServer -// for forward compatibility +// for forward compatibility. type PermissionsServiceServer interface { ListAllPermissions(context.Context, *ListAllPermissionsRequest) (*ListAllPermissionsResponse, error) mustEmbedUnimplementedPermissionsServiceServer() } -// UnimplementedPermissionsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPermissionsServiceServer struct { -} +// UnimplementedPermissionsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPermissionsServiceServer struct{} func (UnimplementedPermissionsServiceServer) ListAllPermissions(context.Context, *ListAllPermissionsRequest) (*ListAllPermissionsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAllPermissions not implemented") } func (UnimplementedPermissionsServiceServer) mustEmbedUnimplementedPermissionsServiceServer() {} +func (UnimplementedPermissionsServiceServer) testEmbeddedByValue() {} // UnsafePermissionsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PermissionsServiceServer will @@ -71,6 +76,13 @@ type UnsafePermissionsServiceServer interface { } func RegisterPermissionsServiceServer(s grpc.ServiceRegistrar, srv PermissionsServiceServer) { + // If the following call pancis, it indicates UnimplementedPermissionsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PermissionsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/aaa/rbac/v2/roles.pb.go b/go/internal/coralogixapis/aaa/rbac/v2/roles.pb.go index 6e7f2e21..44cc20b9 100644 --- a/go/internal/coralogixapis/aaa/rbac/v2/roles.pb.go +++ b/go/internal/coralogixapis/aaa/rbac/v2/roles.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/rbac/v2/roles.proto package v2 diff --git a/go/internal/coralogixapis/aaa/rbac/v2/roles_grpc.pb.go b/go/internal/coralogixapis/aaa/rbac/v2/roles_grpc.pb.go index 387f4b97..10edfd10 100644 --- a/go/internal/coralogixapis/aaa/rbac/v2/roles_grpc.pb.go +++ b/go/internal/coralogixapis/aaa/rbac/v2/roles_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/aaa/rbac/v2/roles.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RoleManagementService_ListSystemRoles_FullMethodName = "/com.coralogixapis.aaa.rbac.v2.RoleManagementService/ListSystemRoles" @@ -48,8 +48,9 @@ func NewRoleManagementServiceClient(cc grpc.ClientConnInterface) RoleManagementS } func (c *roleManagementServiceClient) ListSystemRoles(ctx context.Context, in *ListSystemRolesRequest, opts ...grpc.CallOption) (*ListSystemRolesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSystemRolesResponse) - err := c.cc.Invoke(ctx, RoleManagementService_ListSystemRoles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_ListSystemRoles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *roleManagementServiceClient) ListSystemRoles(ctx context.Context, in *L } func (c *roleManagementServiceClient) ListCustomRoles(ctx context.Context, in *ListCustomRolesRequest, opts ...grpc.CallOption) (*ListCustomRolesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCustomRolesResponse) - err := c.cc.Invoke(ctx, RoleManagementService_ListCustomRoles_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_ListCustomRoles_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *roleManagementServiceClient) ListCustomRoles(ctx context.Context, in *L } func (c *roleManagementServiceClient) GetCustomRole(ctx context.Context, in *GetCustomRoleRequest, opts ...grpc.CallOption) (*GetCustomRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetCustomRoleResponse) - err := c.cc.Invoke(ctx, RoleManagementService_GetCustomRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_GetCustomRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *roleManagementServiceClient) GetCustomRole(ctx context.Context, in *Get } func (c *roleManagementServiceClient) CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateRoleResponse) - err := c.cc.Invoke(ctx, RoleManagementService_CreateRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_CreateRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +88,9 @@ func (c *roleManagementServiceClient) CreateRole(ctx context.Context, in *Create } func (c *roleManagementServiceClient) UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateRoleResponse) - err := c.cc.Invoke(ctx, RoleManagementService_UpdateRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_UpdateRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +98,9 @@ func (c *roleManagementServiceClient) UpdateRole(ctx context.Context, in *Update } func (c *roleManagementServiceClient) DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteRoleResponse) - err := c.cc.Invoke(ctx, RoleManagementService_DeleteRole_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RoleManagementService_DeleteRole_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,7 +109,7 @@ func (c *roleManagementServiceClient) DeleteRole(ctx context.Context, in *Delete // RoleManagementServiceServer is the server API for RoleManagementService service. // All implementations must embed UnimplementedRoleManagementServiceServer -// for forward compatibility +// for forward compatibility. type RoleManagementServiceServer interface { ListSystemRoles(context.Context, *ListSystemRolesRequest) (*ListSystemRolesResponse, error) ListCustomRoles(context.Context, *ListCustomRolesRequest) (*ListCustomRolesResponse, error) @@ -114,9 +120,12 @@ type RoleManagementServiceServer interface { mustEmbedUnimplementedRoleManagementServiceServer() } -// UnimplementedRoleManagementServiceServer must be embedded to have forward compatible implementations. -type UnimplementedRoleManagementServiceServer struct { -} +// UnimplementedRoleManagementServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRoleManagementServiceServer struct{} func (UnimplementedRoleManagementServiceServer) ListSystemRoles(context.Context, *ListSystemRolesRequest) (*ListSystemRolesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListSystemRoles not implemented") @@ -137,6 +146,7 @@ func (UnimplementedRoleManagementServiceServer) DeleteRole(context.Context, *Del return nil, status.Errorf(codes.Unimplemented, "method DeleteRole not implemented") } func (UnimplementedRoleManagementServiceServer) mustEmbedUnimplementedRoleManagementServiceServer() {} +func (UnimplementedRoleManagementServiceServer) testEmbeddedByValue() {} // UnsafeRoleManagementServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RoleManagementServiceServer will @@ -146,6 +156,13 @@ type UnsafeRoleManagementServiceServer interface { } func RegisterRoleManagementServiceServer(s grpc.ServiceRegistrar, srv RoleManagementServiceServer) { + // If the following call pancis, it indicates UnimplementedRoleManagementServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RoleManagementService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/aaa/sso/v2/saml.pb.go b/go/internal/coralogixapis/aaa/sso/v2/saml.pb.go index db602042..7af14c88 100644 --- a/go/internal/coralogixapis/aaa/sso/v2/saml.pb.go +++ b/go/internal/coralogixapis/aaa/sso/v2/saml.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/aaa/sso/v2/saml.proto package v2 diff --git a/go/internal/coralogixapis/aaa/sso/v2/saml_grpc.pb.go b/go/internal/coralogixapis/aaa/sso/v2/saml_grpc.pb.go index 7993e502..ada08dae 100644 --- a/go/internal/coralogixapis/aaa/sso/v2/saml_grpc.pb.go +++ b/go/internal/coralogixapis/aaa/sso/v2/saml_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/aaa/sso/v2/saml.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( SamlConfigurationService_GetSPParameters_FullMethodName = "/com.coralogixapis.aaa.sso.v2.SamlConfigurationService/GetSPParameters" @@ -44,8 +44,9 @@ func NewSamlConfigurationServiceClient(cc grpc.ClientConnInterface) SamlConfigur } func (c *samlConfigurationServiceClient) GetSPParameters(ctx context.Context, in *GetSPParametersRequest, opts ...grpc.CallOption) (*GetSPParametersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSPParametersResponse) - err := c.cc.Invoke(ctx, SamlConfigurationService_GetSPParameters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SamlConfigurationService_GetSPParameters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *samlConfigurationServiceClient) GetSPParameters(ctx context.Context, in } func (c *samlConfigurationServiceClient) SetIDPParameters(ctx context.Context, in *SetIDPParametersRequest, opts ...grpc.CallOption) (*SetIDPParametersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetIDPParametersResponse) - err := c.cc.Invoke(ctx, SamlConfigurationService_SetIDPParameters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SamlConfigurationService_SetIDPParameters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *samlConfigurationServiceClient) SetIDPParameters(ctx context.Context, i } func (c *samlConfigurationServiceClient) SetActive(ctx context.Context, in *SetActiveRequest, opts ...grpc.CallOption) (*SetActiveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetActiveResponse) - err := c.cc.Invoke(ctx, SamlConfigurationService_SetActive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SamlConfigurationService_SetActive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *samlConfigurationServiceClient) SetActive(ctx context.Context, in *SetA } func (c *samlConfigurationServiceClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConfigurationResponse) - err := c.cc.Invoke(ctx, SamlConfigurationService_GetConfiguration_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SamlConfigurationService_GetConfiguration_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *samlConfigurationServiceClient) GetConfiguration(ctx context.Context, i // SamlConfigurationServiceServer is the server API for SamlConfigurationService service. // All implementations must embed UnimplementedSamlConfigurationServiceServer -// for forward compatibility +// for forward compatibility. type SamlConfigurationServiceServer interface { GetSPParameters(context.Context, *GetSPParametersRequest) (*GetSPParametersResponse, error) SetIDPParameters(context.Context, *SetIDPParametersRequest) (*SetIDPParametersResponse, error) @@ -90,9 +94,12 @@ type SamlConfigurationServiceServer interface { mustEmbedUnimplementedSamlConfigurationServiceServer() } -// UnimplementedSamlConfigurationServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSamlConfigurationServiceServer struct { -} +// UnimplementedSamlConfigurationServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSamlConfigurationServiceServer struct{} func (UnimplementedSamlConfigurationServiceServer) GetSPParameters(context.Context, *GetSPParametersRequest) (*GetSPParametersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetSPParameters not implemented") @@ -108,6 +115,7 @@ func (UnimplementedSamlConfigurationServiceServer) GetConfiguration(context.Cont } func (UnimplementedSamlConfigurationServiceServer) mustEmbedUnimplementedSamlConfigurationServiceServer() { } +func (UnimplementedSamlConfigurationServiceServer) testEmbeddedByValue() {} // UnsafeSamlConfigurationServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SamlConfigurationServiceServer will @@ -117,6 +125,13 @@ type UnsafeSamlConfigurationServiceServer interface { } func RegisterSamlConfigurationServiceServer(s grpc.ServiceRegistrar, srv SamlConfigurationServiceServer) { + // If the following call pancis, it indicates UnimplementedSamlConfigurationServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SamlConfigurationService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/actions/v2/actions_service.pb.go b/go/internal/coralogixapis/actions/v2/actions_service.pb.go index 57670f2f..14b329c6 100644 --- a/go/internal/coralogixapis/actions/v2/actions_service.pb.go +++ b/go/internal/coralogixapis/actions/v2/actions_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/actions/v2/actions_service.proto package v2 diff --git a/go/internal/coralogixapis/actions/v2/actions_service_grpc.pb.go b/go/internal/coralogixapis/actions/v2/actions_service_grpc.pb.go index df9b7246..c482e6a5 100644 --- a/go/internal/coralogixapis/actions/v2/actions_service_grpc.pb.go +++ b/go/internal/coralogixapis/actions/v2/actions_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/actions/v2/actions_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ActionsService_CreateAction_FullMethodName = "/com.coralogixapis.actions.v2.ActionsService/CreateAction" @@ -50,8 +50,9 @@ func NewActionsServiceClient(cc grpc.ClientConnInterface) ActionsServiceClient { } func (c *actionsServiceClient) CreateAction(ctx context.Context, in *CreateActionRequest, opts ...grpc.CallOption) (*CreateActionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateActionResponse) - err := c.cc.Invoke(ctx, ActionsService_CreateAction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_CreateAction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *actionsServiceClient) CreateAction(ctx context.Context, in *CreateActio } func (c *actionsServiceClient) ReplaceAction(ctx context.Context, in *ReplaceActionRequest, opts ...grpc.CallOption) (*ReplaceActionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceActionResponse) - err := c.cc.Invoke(ctx, ActionsService_ReplaceAction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_ReplaceAction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *actionsServiceClient) ReplaceAction(ctx context.Context, in *ReplaceAct } func (c *actionsServiceClient) DeleteAction(ctx context.Context, in *DeleteActionRequest, opts ...grpc.CallOption) (*DeleteActionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteActionResponse) - err := c.cc.Invoke(ctx, ActionsService_DeleteAction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_DeleteAction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *actionsServiceClient) DeleteAction(ctx context.Context, in *DeleteActio } func (c *actionsServiceClient) GetAction(ctx context.Context, in *GetActionRequest, opts ...grpc.CallOption) (*GetActionResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetActionResponse) - err := c.cc.Invoke(ctx, ActionsService_GetAction_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_GetAction_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *actionsServiceClient) GetAction(ctx context.Context, in *GetActionReque } func (c *actionsServiceClient) ListActions(ctx context.Context, in *ListActionsRequest, opts ...grpc.CallOption) (*ListActionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListActionsResponse) - err := c.cc.Invoke(ctx, ActionsService_ListActions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_ListActions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *actionsServiceClient) ListActions(ctx context.Context, in *ListActionsR } func (c *actionsServiceClient) OrderActions(ctx context.Context, in *OrderActionsRequest, opts ...grpc.CallOption) (*OrderActionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OrderActionsResponse) - err := c.cc.Invoke(ctx, ActionsService_OrderActions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_OrderActions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *actionsServiceClient) OrderActions(ctx context.Context, in *OrderAction } func (c *actionsServiceClient) AtomicBatchExecuteActions(ctx context.Context, in *AtomicBatchExecuteActionsRequest, opts ...grpc.CallOption) (*AtomicBatchExecuteActionsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicBatchExecuteActionsResponse) - err := c.cc.Invoke(ctx, ActionsService_AtomicBatchExecuteActions_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ActionsService_AtomicBatchExecuteActions_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *actionsServiceClient) AtomicBatchExecuteActions(ctx context.Context, in // ActionsServiceServer is the server API for ActionsService service. // All implementations must embed UnimplementedActionsServiceServer -// for forward compatibility +// for forward compatibility. type ActionsServiceServer interface { CreateAction(context.Context, *CreateActionRequest) (*CreateActionResponse, error) ReplaceAction(context.Context, *ReplaceActionRequest) (*ReplaceActionResponse, error) @@ -126,9 +133,12 @@ type ActionsServiceServer interface { mustEmbedUnimplementedActionsServiceServer() } -// UnimplementedActionsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedActionsServiceServer struct { -} +// UnimplementedActionsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedActionsServiceServer struct{} func (UnimplementedActionsServiceServer) CreateAction(context.Context, *CreateActionRequest) (*CreateActionResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateAction not implemented") @@ -152,6 +162,7 @@ func (UnimplementedActionsServiceServer) AtomicBatchExecuteActions(context.Conte return nil, status.Errorf(codes.Unimplemented, "method AtomicBatchExecuteActions not implemented") } func (UnimplementedActionsServiceServer) mustEmbedUnimplementedActionsServiceServer() {} +func (UnimplementedActionsServiceServer) testEmbeddedByValue() {} // UnsafeActionsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActionsServiceServer will @@ -161,6 +172,13 @@ type UnsafeActionsServiceServer interface { } func RegisterActionsServiceServer(s grpc.ServiceRegistrar, srv ActionsServiceServer) { + // If the following call pancis, it indicates UnimplementedActionsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ActionsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.pb.go index 9287af02..12a69532 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/active_timeframe.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.pb.go index 95cd723c..6be71e4c 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_filter.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.pb.go index 8ab7085a..92083aca 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_request.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.pb.go index d976a9fe..7db0a52b 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_response.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.pb.go index f0822e48..4b744fc9 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.pb.go index 2f4ebf33..c1203edc 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service_grpc.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service_grpc.pb.go index 5aa55cf0..8af7a98e 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service_grpc.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AlertSchedulerRuleService_GetAlertSchedulerRule_FullMethodName = "/com.coralogixapis.alerting.alert_scheduler_rule_protobuf.v1.AlertSchedulerRuleService/GetAlertSchedulerRule" @@ -50,8 +50,9 @@ func NewAlertSchedulerRuleServiceClient(cc grpc.ClientConnInterface) AlertSchedu } func (c *alertSchedulerRuleServiceClient) GetAlertSchedulerRule(ctx context.Context, in *GetAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_GetAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_GetAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *alertSchedulerRuleServiceClient) GetAlertSchedulerRule(ctx context.Cont } func (c *alertSchedulerRuleServiceClient) CreateAlertSchedulerRule(ctx context.Context, in *CreateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_CreateAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_CreateAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *alertSchedulerRuleServiceClient) CreateAlertSchedulerRule(ctx context.C } func (c *alertSchedulerRuleServiceClient) UpdateAlertSchedulerRule(ctx context.Context, in *UpdateAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_UpdateAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_UpdateAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *alertSchedulerRuleServiceClient) UpdateAlertSchedulerRule(ctx context.C } func (c *alertSchedulerRuleServiceClient) DeleteAlertSchedulerRule(ctx context.Context, in *DeleteAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*DeleteAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_DeleteAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_DeleteAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *alertSchedulerRuleServiceClient) DeleteAlertSchedulerRule(ctx context.C } func (c *alertSchedulerRuleServiceClient) GetBulkAlertSchedulerRule(ctx context.Context, in *GetBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*GetBulkAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBulkAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_GetBulkAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_GetBulkAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *alertSchedulerRuleServiceClient) GetBulkAlertSchedulerRule(ctx context. } func (c *alertSchedulerRuleServiceClient) CreateBulkAlertSchedulerRule(ctx context.Context, in *CreateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*CreateBulkAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateBulkAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_CreateBulkAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_CreateBulkAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *alertSchedulerRuleServiceClient) CreateBulkAlertSchedulerRule(ctx conte } func (c *alertSchedulerRuleServiceClient) UpdateBulkAlertSchedulerRule(ctx context.Context, in *UpdateBulkAlertSchedulerRuleRequest, opts ...grpc.CallOption) (*UpdateBulkAlertSchedulerRuleResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateBulkAlertSchedulerRuleResponse) - err := c.cc.Invoke(ctx, AlertSchedulerRuleService_UpdateBulkAlertSchedulerRule_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertSchedulerRuleService_UpdateBulkAlertSchedulerRule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *alertSchedulerRuleServiceClient) UpdateBulkAlertSchedulerRule(ctx conte // AlertSchedulerRuleServiceServer is the server API for AlertSchedulerRuleService service. // All implementations must embed UnimplementedAlertSchedulerRuleServiceServer -// for forward compatibility +// for forward compatibility. type AlertSchedulerRuleServiceServer interface { GetAlertSchedulerRule(context.Context, *GetAlertSchedulerRuleRequest) (*GetAlertSchedulerRuleResponse, error) CreateAlertSchedulerRule(context.Context, *CreateAlertSchedulerRuleRequest) (*CreateAlertSchedulerRuleResponse, error) @@ -126,9 +133,12 @@ type AlertSchedulerRuleServiceServer interface { mustEmbedUnimplementedAlertSchedulerRuleServiceServer() } -// UnimplementedAlertSchedulerRuleServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAlertSchedulerRuleServiceServer struct { -} +// UnimplementedAlertSchedulerRuleServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAlertSchedulerRuleServiceServer struct{} func (UnimplementedAlertSchedulerRuleServiceServer) GetAlertSchedulerRule(context.Context, *GetAlertSchedulerRuleRequest) (*GetAlertSchedulerRuleResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAlertSchedulerRule not implemented") @@ -153,6 +163,7 @@ func (UnimplementedAlertSchedulerRuleServiceServer) UpdateBulkAlertSchedulerRule } func (UnimplementedAlertSchedulerRuleServiceServer) mustEmbedUnimplementedAlertSchedulerRuleServiceServer() { } +func (UnimplementedAlertSchedulerRuleServiceServer) testEmbeddedByValue() {} // UnsafeAlertSchedulerRuleServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AlertSchedulerRuleServiceServer will @@ -162,6 +173,13 @@ type UnsafeAlertSchedulerRuleServiceServer interface { } func RegisterAlertSchedulerRuleServiceServer(s grpc.ServiceRegistrar, srv AlertSchedulerRuleServiceServer) { + // If the following call pancis, it indicates UnimplementedAlertSchedulerRuleServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AlertSchedulerRuleService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.pb.go index 130d9de7..3fd20afa 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/alert_scheduler_rule_timeframe.proto package v1 diff --git a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.pb.go b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.pb.go index 491cb626..84c106af 100644 --- a/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.pb.go +++ b/go/internal/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/alert_scheduler_rule_protobuf/v1/schedule.proto package v1 diff --git a/go/internal/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.pb.go b/go/internal/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.pb.go index 43f71754..79a99873 100644 --- a/go/internal/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.pb.go +++ b/go/internal/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerting/meta_labels_protobuf/v1/meta_labels.proto package v1 diff --git a/go/internal/coralogixapis/alerts/v3/activity_analysis.pb.go b/go/internal/coralogixapis/alerts/v3/activity_analysis.pb.go index e066f7bf..591c49de 100644 --- a/go/internal/coralogixapis/alerts/v3/activity_analysis.pb.go +++ b/go/internal/coralogixapis/alerts/v3/activity_analysis.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/activity_analysis/activity_analysis.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def.pb.go index 2f42203c..255e6587 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def_notification_group.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def_notification_group.pb.go index d69340f2..681a0afb 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def_notification_group.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def_notification_group.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_notification_group.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def_priority.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def_priority.pb.go index 5d10497c..1200e873 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def_priority.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def_priority.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_priority.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def_scheduling.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def_scheduling.pb.go index 5816232d..30b57efc 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def_scheduling.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def_scheduling.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_scheduling.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def_severity.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def_severity.pb.go index 0420635c..24ab83ab 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def_severity.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def_severity.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_severity.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_def_type.pb.go b/go/internal/coralogixapis/alerts/v3/alert_def_type.pb.go index ca2b4e43..915aeba6 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_def_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_def_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service.pb.go b/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service.pb.go index 98c417f2..d83b5389 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_defs_internal_service.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service_grpc.pb.go b/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service_grpc.pb.go index 110fdd6d..7810d003 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service_grpc.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_defs_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_defs_internal_service.proto package v3 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AlertDefsInternalService_GetAlertDefByVersionIdInternal_FullMethodName = "/com.coralogixapis.alerts.v3.AlertDefsInternalService/GetAlertDefByVersionIdInternal" @@ -38,8 +38,9 @@ func NewAlertDefsInternalServiceClient(cc grpc.ClientConnInterface) AlertDefsInt } func (c *alertDefsInternalServiceClient) GetAlertDefByVersionIdInternal(ctx context.Context, in *GetAlertDefByVersionIdInternalRequest, opts ...grpc.CallOption) (*GetAlertDefByVersionIdInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertDefByVersionIdInternalResponse) - err := c.cc.Invoke(ctx, AlertDefsInternalService_GetAlertDefByVersionIdInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsInternalService_GetAlertDefByVersionIdInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *alertDefsInternalServiceClient) GetAlertDefByVersionIdInternal(ctx cont // AlertDefsInternalServiceServer is the server API for AlertDefsInternalService service. // All implementations must embed UnimplementedAlertDefsInternalServiceServer -// for forward compatibility +// for forward compatibility. type AlertDefsInternalServiceServer interface { GetAlertDefByVersionIdInternal(context.Context, *GetAlertDefByVersionIdInternalRequest) (*GetAlertDefByVersionIdInternalResponse, error) mustEmbedUnimplementedAlertDefsInternalServiceServer() } -// UnimplementedAlertDefsInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAlertDefsInternalServiceServer struct { -} +// UnimplementedAlertDefsInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAlertDefsInternalServiceServer struct{} func (UnimplementedAlertDefsInternalServiceServer) GetAlertDefByVersionIdInternal(context.Context, *GetAlertDefByVersionIdInternalRequest) (*GetAlertDefByVersionIdInternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAlertDefByVersionIdInternal not implemented") } func (UnimplementedAlertDefsInternalServiceServer) mustEmbedUnimplementedAlertDefsInternalServiceServer() { } +func (UnimplementedAlertDefsInternalServiceServer) testEmbeddedByValue() {} // UnsafeAlertDefsInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AlertDefsInternalServiceServer will @@ -72,6 +77,13 @@ type UnsafeAlertDefsInternalServiceServer interface { } func RegisterAlertDefsInternalServiceServer(s grpc.ServiceRegistrar, srv AlertDefsInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedAlertDefsInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AlertDefsInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/alerts/v3/alert_defs_service.pb.go b/go/internal/coralogixapis/alerts/v3/alert_defs_service.pb.go index 95925314..62d7b7bf 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_defs_service.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_defs_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_defs_service.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_defs_service_grpc.pb.go b/go/internal/coralogixapis/alerts/v3/alert_defs_service_grpc.pb.go index 50b14ad2..cbf3f470 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_defs_service_grpc.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_defs_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_defs_service.proto package v3 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AlertDefsService_GetAlertDef_FullMethodName = "/com.coralogixapis.alerts.v3.AlertDefsService/GetAlertDef" @@ -39,7 +39,7 @@ type AlertDefsServiceClient interface { CreateAlertDef(ctx context.Context, in *CreateAlertDefRequest, opts ...grpc.CallOption) (*CreateAlertDefResponse, error) ReplaceAlertDef(ctx context.Context, in *ReplaceAlertDefRequest, opts ...grpc.CallOption) (*ReplaceAlertDefResponse, error) ListAlertDefs(ctx context.Context, in *ListAlertDefsRequest, opts ...grpc.CallOption) (*ListAlertDefsResponse, error) - DownloadAlerts(ctx context.Context, in *DownloadAlertsRequest, opts ...grpc.CallOption) (AlertDefsService_DownloadAlertsClient, error) + DownloadAlerts(ctx context.Context, in *DownloadAlertsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DownloadAlertsResponse], error) DeleteAlertDef(ctx context.Context, in *DeleteAlertDefRequest, opts ...grpc.CallOption) (*DeleteAlertDefResponse, error) SetActive(ctx context.Context, in *SetActiveRequest, opts ...grpc.CallOption) (*SetActiveResponse, error) } @@ -53,8 +53,9 @@ func NewAlertDefsServiceClient(cc grpc.ClientConnInterface) AlertDefsServiceClie } func (c *alertDefsServiceClient) GetAlertDef(ctx context.Context, in *GetAlertDefRequest, opts ...grpc.CallOption) (*GetAlertDefResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertDefResponse) - err := c.cc.Invoke(ctx, AlertDefsService_GetAlertDef_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_GetAlertDef_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +63,9 @@ func (c *alertDefsServiceClient) GetAlertDef(ctx context.Context, in *GetAlertDe } func (c *alertDefsServiceClient) GetAlertDefByVersionId(ctx context.Context, in *GetAlertDefByVersionIdRequest, opts ...grpc.CallOption) (*GetAlertDefByVersionIdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertDefByVersionIdResponse) - err := c.cc.Invoke(ctx, AlertDefsService_GetAlertDefByVersionId_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_GetAlertDefByVersionId_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +73,9 @@ func (c *alertDefsServiceClient) GetAlertDefByVersionId(ctx context.Context, in } func (c *alertDefsServiceClient) CreateAlertDef(ctx context.Context, in *CreateAlertDefRequest, opts ...grpc.CallOption) (*CreateAlertDefResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateAlertDefResponse) - err := c.cc.Invoke(ctx, AlertDefsService_CreateAlertDef_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_CreateAlertDef_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -80,8 +83,9 @@ func (c *alertDefsServiceClient) CreateAlertDef(ctx context.Context, in *CreateA } func (c *alertDefsServiceClient) ReplaceAlertDef(ctx context.Context, in *ReplaceAlertDefRequest, opts ...grpc.CallOption) (*ReplaceAlertDefResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceAlertDefResponse) - err := c.cc.Invoke(ctx, AlertDefsService_ReplaceAlertDef_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_ReplaceAlertDef_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -89,20 +93,22 @@ func (c *alertDefsServiceClient) ReplaceAlertDef(ctx context.Context, in *Replac } func (c *alertDefsServiceClient) ListAlertDefs(ctx context.Context, in *ListAlertDefsRequest, opts ...grpc.CallOption) (*ListAlertDefsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAlertDefsResponse) - err := c.cc.Invoke(ctx, AlertDefsService_ListAlertDefs_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_ListAlertDefs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *alertDefsServiceClient) DownloadAlerts(ctx context.Context, in *DownloadAlertsRequest, opts ...grpc.CallOption) (AlertDefsService_DownloadAlertsClient, error) { - stream, err := c.cc.NewStream(ctx, &AlertDefsService_ServiceDesc.Streams[0], AlertDefsService_DownloadAlerts_FullMethodName, opts...) +func (c *alertDefsServiceClient) DownloadAlerts(ctx context.Context, in *DownloadAlertsRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[DownloadAlertsResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &AlertDefsService_ServiceDesc.Streams[0], AlertDefsService_DownloadAlerts_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &alertDefsServiceDownloadAlertsClient{stream} + x := &grpc.GenericClientStream[DownloadAlertsRequest, DownloadAlertsResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -112,26 +118,13 @@ func (c *alertDefsServiceClient) DownloadAlerts(ctx context.Context, in *Downloa return x, nil } -type AlertDefsService_DownloadAlertsClient interface { - Recv() (*DownloadAlertsResponse, error) - grpc.ClientStream -} - -type alertDefsServiceDownloadAlertsClient struct { - grpc.ClientStream -} - -func (x *alertDefsServiceDownloadAlertsClient) Recv() (*DownloadAlertsResponse, error) { - m := new(DownloadAlertsResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AlertDefsService_DownloadAlertsClient = grpc.ServerStreamingClient[DownloadAlertsResponse] func (c *alertDefsServiceClient) DeleteAlertDef(ctx context.Context, in *DeleteAlertDefRequest, opts ...grpc.CallOption) (*DeleteAlertDefResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteAlertDefResponse) - err := c.cc.Invoke(ctx, AlertDefsService_DeleteAlertDef_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_DeleteAlertDef_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -139,8 +132,9 @@ func (c *alertDefsServiceClient) DeleteAlertDef(ctx context.Context, in *DeleteA } func (c *alertDefsServiceClient) SetActive(ctx context.Context, in *SetActiveRequest, opts ...grpc.CallOption) (*SetActiveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetActiveResponse) - err := c.cc.Invoke(ctx, AlertDefsService_SetActive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertDefsService_SetActive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -149,7 +143,7 @@ func (c *alertDefsServiceClient) SetActive(ctx context.Context, in *SetActiveReq // AlertDefsServiceServer is the server API for AlertDefsService service. // All implementations must embed UnimplementedAlertDefsServiceServer -// for forward compatibility +// for forward compatibility. type AlertDefsServiceServer interface { // Get Alert Def by non changing ID AKA UniqueIdentifier GetAlertDef(context.Context, *GetAlertDefRequest) (*GetAlertDefResponse, error) @@ -157,15 +151,18 @@ type AlertDefsServiceServer interface { CreateAlertDef(context.Context, *CreateAlertDefRequest) (*CreateAlertDefResponse, error) ReplaceAlertDef(context.Context, *ReplaceAlertDefRequest) (*ReplaceAlertDefResponse, error) ListAlertDefs(context.Context, *ListAlertDefsRequest) (*ListAlertDefsResponse, error) - DownloadAlerts(*DownloadAlertsRequest, AlertDefsService_DownloadAlertsServer) error + DownloadAlerts(*DownloadAlertsRequest, grpc.ServerStreamingServer[DownloadAlertsResponse]) error DeleteAlertDef(context.Context, *DeleteAlertDefRequest) (*DeleteAlertDefResponse, error) SetActive(context.Context, *SetActiveRequest) (*SetActiveResponse, error) mustEmbedUnimplementedAlertDefsServiceServer() } -// UnimplementedAlertDefsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAlertDefsServiceServer struct { -} +// UnimplementedAlertDefsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAlertDefsServiceServer struct{} func (UnimplementedAlertDefsServiceServer) GetAlertDef(context.Context, *GetAlertDefRequest) (*GetAlertDefResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAlertDef not implemented") @@ -182,7 +179,7 @@ func (UnimplementedAlertDefsServiceServer) ReplaceAlertDef(context.Context, *Rep func (UnimplementedAlertDefsServiceServer) ListAlertDefs(context.Context, *ListAlertDefsRequest) (*ListAlertDefsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListAlertDefs not implemented") } -func (UnimplementedAlertDefsServiceServer) DownloadAlerts(*DownloadAlertsRequest, AlertDefsService_DownloadAlertsServer) error { +func (UnimplementedAlertDefsServiceServer) DownloadAlerts(*DownloadAlertsRequest, grpc.ServerStreamingServer[DownloadAlertsResponse]) error { return status.Errorf(codes.Unimplemented, "method DownloadAlerts not implemented") } func (UnimplementedAlertDefsServiceServer) DeleteAlertDef(context.Context, *DeleteAlertDefRequest) (*DeleteAlertDefResponse, error) { @@ -192,6 +189,7 @@ func (UnimplementedAlertDefsServiceServer) SetActive(context.Context, *SetActive return nil, status.Errorf(codes.Unimplemented, "method SetActive not implemented") } func (UnimplementedAlertDefsServiceServer) mustEmbedUnimplementedAlertDefsServiceServer() {} +func (UnimplementedAlertDefsServiceServer) testEmbeddedByValue() {} // UnsafeAlertDefsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AlertDefsServiceServer will @@ -201,6 +199,13 @@ type UnsafeAlertDefsServiceServer interface { } func RegisterAlertDefsServiceServer(s grpc.ServiceRegistrar, srv AlertDefsServiceServer) { + // If the following call pancis, it indicates UnimplementedAlertDefsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AlertDefsService_ServiceDesc, srv) } @@ -299,21 +304,11 @@ func _AlertDefsService_DownloadAlerts_Handler(srv interface{}, stream grpc.Serve if err := stream.RecvMsg(m); err != nil { return err } - return srv.(AlertDefsServiceServer).DownloadAlerts(m, &alertDefsServiceDownloadAlertsServer{stream}) -} - -type AlertDefsService_DownloadAlertsServer interface { - Send(*DownloadAlertsResponse) error - grpc.ServerStream + return srv.(AlertDefsServiceServer).DownloadAlerts(m, &grpc.GenericServerStream[DownloadAlertsRequest, DownloadAlertsResponse]{ServerStream: stream}) } -type alertDefsServiceDownloadAlertsServer struct { - grpc.ServerStream -} - -func (x *alertDefsServiceDownloadAlertsServer) Send(m *DownloadAlertsResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type AlertDefsService_DownloadAlertsServer = grpc.ServerStreamingServer[DownloadAlertsResponse] func _AlertDefsService_DeleteAlertDef_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteAlertDefRequest) diff --git a/go/internal/coralogixapis/alerts/v3/alert_event.pb.go b/go/internal/coralogixapis/alerts/v3/alert_event.pb.go index 71e070a8..27d68d77 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_event.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/alert_event.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_event_payload.pb.go b/go/internal/coralogixapis/alerts/v3/alert_event_payload.pb.go index 5ba12232..9920b01a 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_event_payload.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_event_payload.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/alert_event_payload.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_event_service.pb.go b/go/internal/coralogixapis/alerts/v3/alert_event_service.pb.go index 52af8f64..161e84a7 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_event_service.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_event_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/alert_event_service.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/alert_event_service_grpc.pb.go b/go/internal/coralogixapis/alerts/v3/alert_event_service_grpc.pb.go index bd1497de..b83c5ec6 100644 --- a/go/internal/coralogixapis/alerts/v3/alert_event_service_grpc.pb.go +++ b/go/internal/coralogixapis/alerts/v3/alert_event_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/alert_event_service.proto package v3 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( AlertEventService_GetAlertEvent_FullMethodName = "/com.coralogixapis.alerts.v3.AlertEventService/GetAlertEvent" @@ -40,8 +40,9 @@ func NewAlertEventServiceClient(cc grpc.ClientConnInterface) AlertEventServiceCl } func (c *alertEventServiceClient) GetAlertEvent(ctx context.Context, in *GetAlertEventRequest, opts ...grpc.CallOption) (*GetAlertEventResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertEventResponse) - err := c.cc.Invoke(ctx, AlertEventService_GetAlertEvent_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertEventService_GetAlertEvent_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *alertEventServiceClient) GetAlertEvent(ctx context.Context, in *GetAler } func (c *alertEventServiceClient) GetAlertEventsStats(ctx context.Context, in *GetAlertEventStatsRequest, opts ...grpc.CallOption) (*GetAlertEventStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAlertEventStatsResponse) - err := c.cc.Invoke(ctx, AlertEventService_GetAlertEventsStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, AlertEventService_GetAlertEventsStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *alertEventServiceClient) GetAlertEventsStats(ctx context.Context, in *G // AlertEventServiceServer is the server API for AlertEventService service. // All implementations must embed UnimplementedAlertEventServiceServer -// for forward compatibility +// for forward compatibility. type AlertEventServiceServer interface { GetAlertEvent(context.Context, *GetAlertEventRequest) (*GetAlertEventResponse, error) GetAlertEventsStats(context.Context, *GetAlertEventStatsRequest) (*GetAlertEventStatsResponse, error) mustEmbedUnimplementedAlertEventServiceServer() } -// UnimplementedAlertEventServiceServer must be embedded to have forward compatible implementations. -type UnimplementedAlertEventServiceServer struct { -} +// UnimplementedAlertEventServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedAlertEventServiceServer struct{} func (UnimplementedAlertEventServiceServer) GetAlertEvent(context.Context, *GetAlertEventRequest) (*GetAlertEventResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetAlertEvent not implemented") @@ -77,6 +82,7 @@ func (UnimplementedAlertEventServiceServer) GetAlertEventsStats(context.Context, return nil, status.Errorf(codes.Unimplemented, "method GetAlertEventsStats not implemented") } func (UnimplementedAlertEventServiceServer) mustEmbedUnimplementedAlertEventServiceServer() {} +func (UnimplementedAlertEventServiceServer) testEmbeddedByValue() {} // UnsafeAlertEventServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AlertEventServiceServer will @@ -86,6 +92,13 @@ type UnsafeAlertEventServiceServer interface { } func RegisterAlertEventServiceServer(s grpc.ServiceRegistrar, srv AlertEventServiceServer) { + // If the following call pancis, it indicates UnimplementedAlertEventServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&AlertEventService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/alerts/v3/common.pb.go b/go/internal/coralogixapis/alerts/v3/common.pb.go index 197e3a69..1489e7fb 100644 --- a/go/internal/coralogixapis/alerts/v3/common.pb.go +++ b/go/internal/coralogixapis/alerts/v3/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/common.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/commons.pb.go b/go/internal/coralogixapis/alerts/v3/commons.pb.go index 4cc68eea..65837b7f 100644 --- a/go/internal/coralogixapis/alerts/v3/commons.pb.go +++ b/go/internal/coralogixapis/alerts/v3/commons.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/commons.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_flow.pb.go b/go/internal/coralogixapis/alerts/v3/event_flow.pb.go index 4bd1a4e1..66297095 100644 --- a/go/internal/coralogixapis/alerts/v3/event_flow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_flow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/flow/event_flow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_flow_match.pb.go b/go/internal/coralogixapis/alerts/v3/event_flow_match.pb.go index aced8569..a823187b 100644 --- a/go/internal/coralogixapis/alerts/v3/event_flow_match.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_flow_match.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/flow/event_flow_match.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_less_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_less_than.pb.go index 5a420921..3c18812b 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_less_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_less_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_less_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_less_than_or_equals.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_less_than_or_equals.pb.go index da6b0230..34b6cb00 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_less_than_or_equals.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_less_than_or_equals.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_less_than_or_equals.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_more_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_more_than.pb.go index ec7ad434..1839c43f 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_more_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_more_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_more_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_or_equals.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_or_equals.pb.go index c36a2e17..5e075002 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_or_equals.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_or_equals.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_more_than_or_equals.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual.pb.go index 568d5bd0..25d6c5f0 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_more_than_usual.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual_enriched.pb.go index 22a25c9b..cdb5c2ec 100644 --- a/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_metric_more_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/metric/event_metric_more_than_usual_enriched.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_new_value.pb.go b/go/internal/coralogixapis/alerts/v3/event_new_value.pb.go index a1169df9..99b86e60 100644 --- a/go/internal/coralogixapis/alerts/v3/event_new_value.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_new_value.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/new_value/event_new_value.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_ratio_less_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_ratio_less_than.pb.go index b7c62aca..0af53c83 100644 --- a/go/internal/coralogixapis/alerts/v3/event_ratio_less_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_ratio_less_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/ratio/event_ratio_less_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_ratio_more_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_ratio_more_than.pb.go index f86586a0..b5894550 100644 --- a/go/internal/coralogixapis/alerts/v3/event_ratio_more_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_ratio_more_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/ratio/event_ratio_more_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_standard_immediate.pb.go b/go/internal/coralogixapis/alerts/v3/event_standard_immediate.pb.go index 4bdb6301..c4ac570f 100644 --- a/go/internal/coralogixapis/alerts/v3/event_standard_immediate.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_standard_immediate.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/standard/event_standard_immediate.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_standard_less_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_standard_less_than.pb.go index 3c54aba2..9a4b2083 100644 --- a/go/internal/coralogixapis/alerts/v3/event_standard_less_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_standard_less_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/standard/event_standard_less_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_standard_more_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_standard_more_than.pb.go index 32a12f27..fa46b15b 100644 --- a/go/internal/coralogixapis/alerts/v3/event_standard_more_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_standard_more_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/standard/event_standard_more_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_standard_more_than_usual.pb.go b/go/internal/coralogixapis/alerts/v3/event_standard_more_than_usual.pb.go index ed0baa7a..6e243e1e 100644 --- a/go/internal/coralogixapis/alerts/v3/event_standard_more_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_standard_more_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/standard/event_standard_more_than_usual.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_time_relative_less_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_time_relative_less_than.pb.go index 48188558..d5302224 100644 --- a/go/internal/coralogixapis/alerts/v3/event_time_relative_less_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_time_relative_less_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/time_relative/event_time_relative_less_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_time_relative_more_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_time_relative_more_than.pb.go index 0de374de..9be99072 100644 --- a/go/internal/coralogixapis/alerts/v3/event_time_relative_more_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_time_relative_more_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/time_relative/event_time_relative_more_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_tracing_immediate.pb.go b/go/internal/coralogixapis/alerts/v3/event_tracing_immediate.pb.go index b929a7f7..f9311610 100644 --- a/go/internal/coralogixapis/alerts/v3/event_tracing_immediate.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_tracing_immediate.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/tracing/event_tracing_immediate.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_tracing_more_than.pb.go b/go/internal/coralogixapis/alerts/v3/event_tracing_more_than.pb.go index 81c57f22..9dad9f4e 100644 --- a/go/internal/coralogixapis/alerts/v3/event_tracing_more_than.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_tracing_more_than.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/tracing/event_tracing_more_than.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/event_unique_count.pb.go b/go/internal/coralogixapis/alerts/v3/event_unique_count.pb.go index 7787abad..0dff71cb 100644 --- a/go/internal/coralogixapis/alerts/v3/event_unique_count.pb.go +++ b/go/internal/coralogixapis/alerts/v3/event_unique_count.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/unique_count/event_unique_count.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/flow_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/flow_type_definition.pb.go index cc9256a5..3693179b 100644 --- a/go/internal/coralogixapis/alerts/v3/flow_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/flow_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/flow/flow_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_anomaly_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/logs_anomaly_condition_type.pb.go index 00583760..6db32016 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_anomaly_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_anomaly_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/anomaly/logs_anomaly_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_anomaly_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_anomaly_type_definition.pb.go index 34452199..131d2e14 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_anomaly_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_anomaly_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_anomaly_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_filter.pb.go b/go/internal/coralogixapis/alerts/v3/logs_filter.pb.go index 01a72a06..39ae37c9 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_filter.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_filter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_filter.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_immediate_notification.pb.go b/go/internal/coralogixapis/alerts/v3/logs_immediate_notification.pb.go index 60af2b87..4f5da02e 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_immediate_notification.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_immediate_notification.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/notification/logs_immediate_notification.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_immediate_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_immediate_type_definition.pb.go index b03ae7e4..db345e3b 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_immediate_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_immediate_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_immediate_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_new_value_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/logs_new_value_timewindow.pb.go index 94b42891..74f0d022 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_new_value_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_new_value_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/new_value/logs_new_value_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_new_value_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_new_value_type_definition.pb.go index 4801e099..38c2731e 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_new_value_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_new_value_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_new_value_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_ratio_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/logs_ratio_condition_type.pb.go index 3375d2f7..3f1370f9 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_ratio_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_ratio_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_ratio_group_by_for.pb.go b/go/internal/coralogixapis/alerts/v3/logs_ratio_group_by_for.pb.go index 7937af92..52d6279a 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_ratio_group_by_for.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_ratio_group_by_for.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_group_by_for.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_ratio_threshold_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_ratio_threshold_type_definition.pb.go index 21976028..f9362237 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_ratio_threshold_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_ratio_threshold_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_ratio_threshold_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_ratio_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/logs_ratio_timewindow.pb.go index a9b785b0..a04db3a9 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_ratio_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_ratio_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/ratio/logs_ratio_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_threshold_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/logs_threshold_condition_type.pb.go index fd08f295..1c334775 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_threshold_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_threshold_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/threshold/logs_threshold_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_threshold_notification.pb.go b/go/internal/coralogixapis/alerts/v3/logs_threshold_notification.pb.go index 172d1379..24d88312 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_threshold_notification.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_threshold_notification.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/notification/logs_threshold_notification.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_threshold_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_threshold_type_definition.pb.go index 954dbda4..debe92e4 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_threshold_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_threshold_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_threshold_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_time_relative_compared_to.pb.go b/go/internal/coralogixapis/alerts/v3/logs_time_relative_compared_to.pb.go index 4d32f0e7..1205337c 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_time_relative_compared_to.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_time_relative_compared_to.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_compared_to.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_time_relative_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/logs_time_relative_condition_type.pb.go index 34162617..943114e0 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_time_relative_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_time_relative_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/time_relative/logs_time_relative_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_time_relative_threshold_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_time_relative_threshold_type_definition.pb.go index ab484844..54ffe0bf 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_time_relative_threshold_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_time_relative_threshold_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_time_relative_threshold_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/logs_timewindow.pb.go index d493eee2..7ec8fef1 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/common/logs_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_unique_count_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/logs_unique_count_type_definition.pb.go index 7758519b..901f7ad3 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_unique_count_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_unique_count_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/logs_unique_count_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/logs_unique_value_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/logs_unique_value_timewindow.pb.go index 89b81536..f7435ffe 100644 --- a/go/internal/coralogixapis/alerts/v3/logs_unique_value_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/logs_unique_value_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/logs/unique_count/logs_unique_value_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_anomaly_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/metric_anomaly_condition_type.pb.go index ebd1ff73..e433b304 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_anomaly_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_anomaly_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/anomaly/metric_anomaly_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_anomaly_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/metric_anomaly_type_definition.pb.go index 9df1c879..891248bd 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_anomaly_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_anomaly_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_anomaly_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_threshold_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/metric_threshold_condition_type.pb.go index cfb522e2..71a540ed 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_threshold_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_threshold_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_threshold_missing_values.pb.go b/go/internal/coralogixapis/alerts/v3/metric_threshold_missing_values.pb.go index ea26eb58..f21590aa 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_threshold_missing_values.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_threshold_missing_values.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/threshold/metric_threshold_missing_values.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_threshold_notification.pb.go b/go/internal/coralogixapis/alerts/v3/metric_threshold_notification.pb.go index 7aaca72d..3a8152e6 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_threshold_notification.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_threshold_notification.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/notification/metric_threshold_notification.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_threshold_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/metric_threshold_type_definition.pb.go index efb3d41a..6316785f 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_threshold_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_threshold_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/metric_threshold_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metric_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/metric_timewindow.pb.go index 141d03d5..dcc0c018 100644 --- a/go/internal/coralogixapis/alerts/v3/metric_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metric_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metric_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/metrics_filter.pb.go b/go/internal/coralogixapis/alerts/v3/metrics_filter.pb.go index 78cf31e5..439ac021 100644 --- a/go/internal/coralogixapis/alerts/v3/metrics_filter.pb.go +++ b/go/internal/coralogixapis/alerts/v3/metrics_filter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/metric/common/metrics_filter.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/notification_destination.pb.go b/go/internal/coralogixapis/alerts/v3/notification_destination.pb.go index f1250f6b..8e0ce6bd 100644 --- a/go/internal/coralogixapis/alerts/v3/notification_destination.pb.go +++ b/go/internal/coralogixapis/alerts/v3/notification_destination.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/notification_destination.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/notification_event.pb.go b/go/internal/coralogixapis/alerts/v3/notification_event.pb.go index 6da10da3..a837fbc9 100644 --- a/go/internal/coralogixapis/alerts/v3/notification_event.pb.go +++ b/go/internal/coralogixapis/alerts/v3/notification_event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/notification/notification_event.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/overrides.pb.go b/go/internal/coralogixapis/alerts/v3/overrides.pb.go index d31a34e1..25005259 100644 --- a/go/internal/coralogixapis/alerts/v3/overrides.pb.go +++ b/go/internal/coralogixapis/alerts/v3/overrides.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/overrides.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/ratio_special_values.pb.go b/go/internal/coralogixapis/alerts/v3/ratio_special_values.pb.go index 5490573f..27dfe9da 100644 --- a/go/internal/coralogixapis/alerts/v3/ratio_special_values.pb.go +++ b/go/internal/coralogixapis/alerts/v3/ratio_special_values.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/ratio_special_values.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/span_time_range.pb.go b/go/internal/coralogixapis/alerts/v3/span_time_range.pb.go index 8a7fbf29..d0a2970f 100644 --- a/go/internal/coralogixapis/alerts/v3/span_time_range.pb.go +++ b/go/internal/coralogixapis/alerts/v3/span_time_range.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/event/payload/tracing/span_time_range.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/tracing_filter.pb.go b/go/internal/coralogixapis/alerts/v3/tracing_filter.pb.go index 3f0c242d..c1ae7aa5 100644 --- a/go/internal/coralogixapis/alerts/v3/tracing_filter.pb.go +++ b/go/internal/coralogixapis/alerts/v3/tracing_filter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/common/tracing_filter.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/tracing_immediate_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/tracing_immediate_type_definition.pb.go index c408cbb9..b0df813b 100644 --- a/go/internal/coralogixapis/alerts/v3/tracing_immediate_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/tracing_immediate_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_immediate_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/tracing_threshold_condition_type.pb.go b/go/internal/coralogixapis/alerts/v3/tracing_threshold_condition_type.pb.go index 5c10a750..1f3cb770 100644 --- a/go/internal/coralogixapis/alerts/v3/tracing_threshold_condition_type.pb.go +++ b/go/internal/coralogixapis/alerts/v3/tracing_threshold_condition_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_condition_type.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/tracing_threshold_timewindow.pb.go b/go/internal/coralogixapis/alerts/v3/tracing_threshold_timewindow.pb.go index abc344ad..87365bc4 100644 --- a/go/internal/coralogixapis/alerts/v3/tracing_threshold_timewindow.pb.go +++ b/go/internal/coralogixapis/alerts/v3/tracing_threshold_timewindow.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/threshold/tracing_threshold_timewindow.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/tracing_threshold_type_definition.pb.go b/go/internal/coralogixapis/alerts/v3/tracing_threshold_type_definition.pb.go index 151fbe63..5519133e 100644 --- a/go/internal/coralogixapis/alerts/v3/tracing_threshold_type_definition.pb.go +++ b/go/internal/coralogixapis/alerts/v3/tracing_threshold_type_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/tracing/tracing_threshold_type_definition.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v3/undetected_values_management.pb.go b/go/internal/coralogixapis/alerts/v3/undetected_values_management.pb.go index 12a7572b..b9ceae3d 100644 --- a/go/internal/coralogixapis/alerts/v3/undetected_values_management.pb.go +++ b/go/internal/coralogixapis/alerts/v3/undetected_values_management.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v3/alert_def_type_definition/undetected_values_management.proto package v3 diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual.pb.go index 13a37273..384965ae 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual.proto package metric diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual_enriched.pb.go index 9d305f47..a127172a 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_metric_less_than_usual_enriched.proto package metric diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual.pb.go index 95b61ae2..7f6a0ca8 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual.proto package metric diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual_enriched.pb.go index 77790980..0f369518 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_metric_more_than_usual_enriched.proto package metric diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_unusual_prediction.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_unusual_prediction.pb.go index 10edbade..79616f00 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_unusual_prediction.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_metric_unusual_prediction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_metric_unusual_prediction.proto package metric diff --git a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_unusual_payload.pb.go b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_unusual_payload.pb.go index a1ea2486..6f04112c 100644 --- a/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_unusual_payload.pb.go +++ b/go/internal/coralogixapis/alerts/v4/event/payload/metric/event_unusual_payload.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v4/event/payload/metric/event_unusual_payload.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual.pb.go index 93b63392..35e49180 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual_enriched.pb.go index a5553888..7639a964 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_less_than_usual_enriched.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual.pb.go index 48d9c781..e575a81d 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual_enriched.pb.go index f842c724..21adbf08 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_more_than_usual_enriched.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_payload.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_payload.pb.go index 11425f05..b4abf452 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_payload.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_payload.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_payload.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_prediction.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_prediction.pb.go index 149f46f2..8b74f182 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_prediction.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_prediction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/metric/event_metric_unusual_prediction.proto package metric diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual.pb.go index da6fba18..2f1e0267 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual.proto package standard diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual_enriched.pb.go index cd0060c6..74a3d542 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/standard/event_standard_less_than_usual_enriched.proto package standard diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual.pb.go index f2624e7d..ac76967c 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual.proto package standard diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual_enriched.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual_enriched.pb.go index ceb7e1c5..8a1b0041 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual_enriched.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual_enriched.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/standard/event_standard_more_than_usual_enriched.proto package standard diff --git a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_unusual_payload.pb.go b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_unusual_payload.pb.go index 1c7f0ee0..295013bb 100644 --- a/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_unusual_payload.pb.go +++ b/go/internal/coralogixapis/alerts/v5/event/payload/standard/event_standard_unusual_payload.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/alerts/v5/event/payload/standard/event_standard_unusual_payload.proto package standard diff --git a/go/internal/coralogixapis/apm/common/v2/alert_meta_label.pb.go b/go/internal/coralogixapis/apm/common/v2/alert_meta_label.pb.go index b16d37cf..6f438607 100644 --- a/go/internal/coralogixapis/apm/common/v2/alert_meta_label.pb.go +++ b/go/internal/coralogixapis/apm/common/v2/alert_meta_label.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/common/v2/alert_meta_label.proto package v2 diff --git a/go/internal/coralogixapis/apm/common/v2/audit_log.pb.go b/go/internal/coralogixapis/apm/common/v2/audit_log.pb.go index f90bbbe7..6ca10ddb 100644 --- a/go/internal/coralogixapis/apm/common/v2/audit_log.pb.go +++ b/go/internal/coralogixapis/apm/common/v2/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/common/v2/audit_log.proto package v2 diff --git a/go/internal/coralogixapis/apm/common/v2/data_source.pb.go b/go/internal/coralogixapis/apm/common/v2/data_source.pb.go index 4bb5887a..74e89603 100644 --- a/go/internal/coralogixapis/apm/common/v2/data_source.pb.go +++ b/go/internal/coralogixapis/apm/common/v2/data_source.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/common/v2/data_source.proto package v2 diff --git a/go/internal/coralogixapis/apm/common/v2/order_by.pb.go b/go/internal/coralogixapis/apm/common/v2/order_by.pb.go index 6c7e745b..cadf9da4 100644 --- a/go/internal/coralogixapis/apm/common/v2/order_by.pb.go +++ b/go/internal/coralogixapis/apm/common/v2/order_by.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/common/v2/order_by.proto package v2 diff --git a/go/internal/coralogixapis/apm/common/v2/time_range.pb.go b/go/internal/coralogixapis/apm/common/v2/time_range.pb.go index d44091bd..c0009a96 100644 --- a/go/internal/coralogixapis/apm/common/v2/time_range.pb.go +++ b/go/internal/coralogixapis/apm/common/v2/time_range.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/common/v2/time_range.proto package v2 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster.pb.go index af92ba70..54a52b3d 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/cluster.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_filters.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_filters.pb.go index 313a4410..fe02a12a 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_filters.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_filters.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/cluster_filters.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_options.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_options.pb.go index c0051d8a..f85e1670 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_options.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_options.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/cluster_options.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_widget_wrapper.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_widget_wrapper.pb.go index 1a169043..1a669cb7 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_widget_wrapper.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/cluster_widget_wrapper.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/cluster_widget_wrapper.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.pb.go index e0e98272..2a0aa6c2 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service_grpc.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service_grpc.pb.go index bf62a45a..47088b33 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/clusters_measurments_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ClustersService_ListClusters_FullMethodName = "/com.coralogixapis.apm.queries.k8s.v1.ClustersService/ListClusters" @@ -46,8 +46,9 @@ func NewClustersServiceClient(cc grpc.ClientConnInterface) ClustersServiceClient } func (c *clustersServiceClient) ListClusters(ctx context.Context, in *ListClustersRequest, opts ...grpc.CallOption) (*ListClustersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListClustersResponse) - err := c.cc.Invoke(ctx, ClustersService_ListClusters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ClustersService_ListClusters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *clustersServiceClient) ListClusters(ctx context.Context, in *ListCluste } func (c *clustersServiceClient) ListClusterStats(ctx context.Context, in *ListClusterStatsRequest, opts ...grpc.CallOption) (*ListClusterStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListClusterStatsResponse) - err := c.cc.Invoke(ctx, ClustersService_ListClusterStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ClustersService_ListClusterStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *clustersServiceClient) ListClusterStats(ctx context.Context, in *ListCl } func (c *clustersServiceClient) ListClusterTopK(ctx context.Context, in *ListClusterTopKRequest, opts ...grpc.CallOption) (*ListClusterTopKResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListClusterTopKResponse) - err := c.cc.Invoke(ctx, ClustersService_ListClusterTopK_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ClustersService_ListClusterTopK_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *clustersServiceClient) ListClusterTopK(ctx context.Context, in *ListClu } func (c *clustersServiceClient) ListClusterMetrics(ctx context.Context, in *ListClusterMetricsRequest, opts ...grpc.CallOption) (*ListClusterMetricsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListClusterMetricsResponse) - err := c.cc.Invoke(ctx, ClustersService_ListClusterMetrics_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ClustersService_ListClusterMetrics_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *clustersServiceClient) ListClusterMetrics(ctx context.Context, in *List } func (c *clustersServiceClient) ListNames(ctx context.Context, in *ListNamesRequest, opts ...grpc.CallOption) (*ListNamesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListNamesResponse) - err := c.cc.Invoke(ctx, ClustersService_ListNames_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ClustersService_ListNames_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *clustersServiceClient) ListNames(ctx context.Context, in *ListNamesRequ // ClustersServiceServer is the server API for ClustersService service. // All implementations must embed UnimplementedClustersServiceServer -// for forward compatibility +// for forward compatibility. type ClustersServiceServer interface { ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error) ListClusterStats(context.Context, *ListClusterStatsRequest) (*ListClusterStatsResponse, error) @@ -102,9 +107,12 @@ type ClustersServiceServer interface { mustEmbedUnimplementedClustersServiceServer() } -// UnimplementedClustersServiceServer must be embedded to have forward compatible implementations. -type UnimplementedClustersServiceServer struct { -} +// UnimplementedClustersServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedClustersServiceServer struct{} func (UnimplementedClustersServiceServer) ListClusters(context.Context, *ListClustersRequest) (*ListClustersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListClusters not implemented") @@ -122,6 +130,7 @@ func (UnimplementedClustersServiceServer) ListNames(context.Context, *ListNamesR return nil, status.Errorf(codes.Unimplemented, "method ListNames not implemented") } func (UnimplementedClustersServiceServer) mustEmbedUnimplementedClustersServiceServer() {} +func (UnimplementedClustersServiceServer) testEmbeddedByValue() {} // UnsafeClustersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ClustersServiceServer will @@ -131,6 +140,13 @@ type UnsafeClustersServiceServer interface { } func RegisterClustersServiceServer(s grpc.ServiceRegistrar, srv ClustersServiceServer) { + // If the following call pancis, it indicates UnimplementedClustersServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ClustersService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters.pb.go index ec0441a2..c6892b46 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/infra_filters.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service.pb.go index 6a66375c..7443594c 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/infra_filters_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service_grpc.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service_grpc.pb.go index 223d9e1a..72296ff0 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/infra_filters_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/infra_filters_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( InfraFiltersService_ListFilters_FullMethodName = "/com.coralogixapis.apm.queries.k8s.v1.InfraFiltersService/ListFilters" @@ -38,8 +38,9 @@ func NewInfraFiltersServiceClient(cc grpc.ClientConnInterface) InfraFiltersServi } func (c *infraFiltersServiceClient) ListFilters(ctx context.Context, in *ListFiltersRequest, opts ...grpc.CallOption) (*ListFiltersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFiltersResponse) - err := c.cc.Invoke(ctx, InfraFiltersService_ListFilters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, InfraFiltersService_ListFilters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *infraFiltersServiceClient) ListFilters(ctx context.Context, in *ListFil // InfraFiltersServiceServer is the server API for InfraFiltersService service. // All implementations must embed UnimplementedInfraFiltersServiceServer -// for forward compatibility +// for forward compatibility. type InfraFiltersServiceServer interface { ListFilters(context.Context, *ListFiltersRequest) (*ListFiltersResponse, error) mustEmbedUnimplementedInfraFiltersServiceServer() } -// UnimplementedInfraFiltersServiceServer must be embedded to have forward compatible implementations. -type UnimplementedInfraFiltersServiceServer struct { -} +// UnimplementedInfraFiltersServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedInfraFiltersServiceServer struct{} func (UnimplementedInfraFiltersServiceServer) ListFilters(context.Context, *ListFiltersRequest) (*ListFiltersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListFilters not implemented") } func (UnimplementedInfraFiltersServiceServer) mustEmbedUnimplementedInfraFiltersServiceServer() {} +func (UnimplementedInfraFiltersServiceServer) testEmbeddedByValue() {} // UnsafeInfraFiltersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to InfraFiltersServiceServer will @@ -71,6 +76,13 @@ type UnsafeInfraFiltersServiceServer interface { } func RegisterInfraFiltersServiceServer(s grpc.ServiceRegistrar, srv InfraFiltersServiceServer) { + // If the following call pancis, it indicates UnimplementedInfraFiltersServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&InfraFiltersService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/queries/k8s/v1/objects.pb.go b/go/internal/coralogixapis/apm/queries/k8s/v1/objects.pb.go index a4491870..4392f50a 100644 --- a/go/internal/coralogixapis/apm/queries/k8s/v1/objects.pb.go +++ b/go/internal/coralogixapis/apm/queries/k8s/v1/objects.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/k8s/v1/objects.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/v1/event.pb.go b/go/internal/coralogixapis/apm/queries/v1/event.pb.go index 4acec9f9..717edaaf 100644 --- a/go/internal/coralogixapis/apm/queries/v1/event.pb.go +++ b/go/internal/coralogixapis/apm/queries/v1/event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/v1/event.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/v1/events_service.pb.go b/go/internal/coralogixapis/apm/queries/v1/events_service.pb.go index faaea04b..4ae765f3 100644 --- a/go/internal/coralogixapis/apm/queries/v1/events_service.pb.go +++ b/go/internal/coralogixapis/apm/queries/v1/events_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/queries/v1/events_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/queries/v1/events_service_grpc.pb.go b/go/internal/coralogixapis/apm/queries/v1/events_service_grpc.pb.go index 6356df55..45a3fa4e 100644 --- a/go/internal/coralogixapis/apm/queries/v1/events_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/queries/v1/events_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/queries/v1/events_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( EventsService_ListEvents_FullMethodName = "/com.coralogixapis.apm.queries.v1.EventsService/ListEvents" @@ -40,8 +40,9 @@ func NewEventsServiceClient(cc grpc.ClientConnInterface) EventsServiceClient { // Deprecated: Do not use. func (c *eventsServiceClient) ListEvents(ctx context.Context, in *ListEventsRequest, opts ...grpc.CallOption) (*ListEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListEventsResponse) - err := c.cc.Invoke(ctx, EventsService_ListEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EventsService_ListEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -50,21 +51,25 @@ func (c *eventsServiceClient) ListEvents(ctx context.Context, in *ListEventsRequ // EventsServiceServer is the server API for EventsService service. // All implementations must embed UnimplementedEventsServiceServer -// for forward compatibility +// for forward compatibility. type EventsServiceServer interface { // Deprecated: Do not use. ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) mustEmbedUnimplementedEventsServiceServer() } -// UnimplementedEventsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEventsServiceServer struct { -} +// UnimplementedEventsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEventsServiceServer struct{} func (UnimplementedEventsServiceServer) ListEvents(context.Context, *ListEventsRequest) (*ListEventsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented") } func (UnimplementedEventsServiceServer) mustEmbedUnimplementedEventsServiceServer() {} +func (UnimplementedEventsServiceServer) testEmbeddedByValue() {} // UnsafeEventsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EventsServiceServer will @@ -74,6 +79,13 @@ type UnsafeEventsServiceServer interface { } func RegisterEventsServiceServer(s grpc.ServiceRegistrar, srv EventsServiceServer) { + // If the following call pancis, it indicates UnimplementedEventsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&EventsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/requirements/v2/data_source_requirements.pb.go b/go/internal/coralogixapis/apm/requirements/v2/data_source_requirements.pb.go index 0e207562..4954d93f 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/data_source_requirements.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/data_source_requirements.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/data_source_requirements.proto package v2 diff --git a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.pb.go b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.pb.go index 04a5202f..bde20f3b 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.proto package v2 diff --git a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service_grpc.pb.go b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service_grpc.pb.go index 62bdd5af..72b9607e 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/feature_requirements_internal_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( FeatureRequirementsInternalService_ValidateFeatureRequirementsInternal_FullMethodName = "/com.coralogixapis.apm.requirements.v2.FeatureRequirementsInternalService/ValidateFeatureRequirementsInternal" @@ -40,8 +40,9 @@ func NewFeatureRequirementsInternalServiceClient(cc grpc.ClientConnInterface) Fe } func (c *featureRequirementsInternalServiceClient) ValidateFeatureRequirementsInternal(ctx context.Context, in *ValidateFeatureRequirementsInternalRequest, opts ...grpc.CallOption) (*ValidateFeatureRequirementsInternalResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateFeatureRequirementsInternalResponse) - err := c.cc.Invoke(ctx, FeatureRequirementsInternalService_ValidateFeatureRequirementsInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FeatureRequirementsInternalService_ValidateFeatureRequirementsInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *featureRequirementsInternalServiceClient) ValidateFeatureRequirementsIn } func (c *featureRequirementsInternalServiceClient) ListFeatureRequirementsInternalDataSources(ctx context.Context, in *ListFeatureRequirementsInternalDataSourcesRequest, opts ...grpc.CallOption) (*ListFeatureRequirementsInternalDataSourcesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFeatureRequirementsInternalDataSourcesResponse) - err := c.cc.Invoke(ctx, FeatureRequirementsInternalService_ListFeatureRequirementsInternalDataSources_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FeatureRequirementsInternalService_ListFeatureRequirementsInternalDataSources_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *featureRequirementsInternalServiceClient) ListFeatureRequirementsIntern // FeatureRequirementsInternalServiceServer is the server API for FeatureRequirementsInternalService service. // All implementations must embed UnimplementedFeatureRequirementsInternalServiceServer -// for forward compatibility +// for forward compatibility. type FeatureRequirementsInternalServiceServer interface { ValidateFeatureRequirementsInternal(context.Context, *ValidateFeatureRequirementsInternalRequest) (*ValidateFeatureRequirementsInternalResponse, error) ListFeatureRequirementsInternalDataSources(context.Context, *ListFeatureRequirementsInternalDataSourcesRequest) (*ListFeatureRequirementsInternalDataSourcesResponse, error) mustEmbedUnimplementedFeatureRequirementsInternalServiceServer() } -// UnimplementedFeatureRequirementsInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedFeatureRequirementsInternalServiceServer struct { -} +// UnimplementedFeatureRequirementsInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFeatureRequirementsInternalServiceServer struct{} func (UnimplementedFeatureRequirementsInternalServiceServer) ValidateFeatureRequirementsInternal(context.Context, *ValidateFeatureRequirementsInternalRequest) (*ValidateFeatureRequirementsInternalResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateFeatureRequirementsInternal not implemented") @@ -78,6 +83,7 @@ func (UnimplementedFeatureRequirementsInternalServiceServer) ListFeatureRequirem } func (UnimplementedFeatureRequirementsInternalServiceServer) mustEmbedUnimplementedFeatureRequirementsInternalServiceServer() { } +func (UnimplementedFeatureRequirementsInternalServiceServer) testEmbeddedByValue() {} // UnsafeFeatureRequirementsInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FeatureRequirementsInternalServiceServer will @@ -87,6 +93,13 @@ type UnsafeFeatureRequirementsInternalServiceServer interface { } func RegisterFeatureRequirementsInternalServiceServer(s grpc.ServiceRegistrar, srv FeatureRequirementsInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedFeatureRequirementsInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&FeatureRequirementsInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service.pb.go b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service.pb.go index cda132e3..d87de8f2 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/feature_requirements_service.proto package v2 diff --git a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service_grpc.pb.go b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service_grpc.pb.go index b3f961cf..27fc84d0 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/feature_requirements_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/feature_requirements_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( FeatureRequirementsService_ValidateFeatureRequirements_FullMethodName = "/com.coralogixapis.apm.requirements.v2.FeatureRequirementsService/ValidateFeatureRequirements" @@ -40,8 +40,9 @@ func NewFeatureRequirementsServiceClient(cc grpc.ClientConnInterface) FeatureReq } func (c *featureRequirementsServiceClient) ValidateFeatureRequirements(ctx context.Context, in *ValidateFeatureRequirementsRequest, opts ...grpc.CallOption) (*ValidateFeatureRequirementsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ValidateFeatureRequirementsResponse) - err := c.cc.Invoke(ctx, FeatureRequirementsService_ValidateFeatureRequirements_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FeatureRequirementsService_ValidateFeatureRequirements_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *featureRequirementsServiceClient) ValidateFeatureRequirements(ctx conte } func (c *featureRequirementsServiceClient) ListFeatureRequirementsDataSources(ctx context.Context, in *ListFeatureRequirementsDataSourcesRequest, opts ...grpc.CallOption) (*ListFeatureRequirementsDataSourcesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListFeatureRequirementsDataSourcesResponse) - err := c.cc.Invoke(ctx, FeatureRequirementsService_ListFeatureRequirementsDataSources_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, FeatureRequirementsService_ListFeatureRequirementsDataSources_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *featureRequirementsServiceClient) ListFeatureRequirementsDataSources(ct // FeatureRequirementsServiceServer is the server API for FeatureRequirementsService service. // All implementations must embed UnimplementedFeatureRequirementsServiceServer -// for forward compatibility +// for forward compatibility. type FeatureRequirementsServiceServer interface { ValidateFeatureRequirements(context.Context, *ValidateFeatureRequirementsRequest) (*ValidateFeatureRequirementsResponse, error) ListFeatureRequirementsDataSources(context.Context, *ListFeatureRequirementsDataSourcesRequest) (*ListFeatureRequirementsDataSourcesResponse, error) mustEmbedUnimplementedFeatureRequirementsServiceServer() } -// UnimplementedFeatureRequirementsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedFeatureRequirementsServiceServer struct { -} +// UnimplementedFeatureRequirementsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedFeatureRequirementsServiceServer struct{} func (UnimplementedFeatureRequirementsServiceServer) ValidateFeatureRequirements(context.Context, *ValidateFeatureRequirementsRequest) (*ValidateFeatureRequirementsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ValidateFeatureRequirements not implemented") @@ -78,6 +83,7 @@ func (UnimplementedFeatureRequirementsServiceServer) ListFeatureRequirementsData } func (UnimplementedFeatureRequirementsServiceServer) mustEmbedUnimplementedFeatureRequirementsServiceServer() { } +func (UnimplementedFeatureRequirementsServiceServer) testEmbeddedByValue() {} // UnsafeFeatureRequirementsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to FeatureRequirementsServiceServer will @@ -87,6 +93,13 @@ type UnsafeFeatureRequirementsServiceServer interface { } func RegisterFeatureRequirementsServiceServer(s grpc.ServiceRegistrar, srv FeatureRequirementsServiceServer) { + // If the following call pancis, it indicates UnimplementedFeatureRequirementsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&FeatureRequirementsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/requirements/v2/features.pb.go b/go/internal/coralogixapis/apm/requirements/v2/features.pb.go index fab56d98..e575fd54 100644 --- a/go/internal/coralogixapis/apm/requirements/v2/features.pb.go +++ b/go/internal/coralogixapis/apm/requirements/v2/features.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/requirements/v2/features.proto package v2 diff --git a/go/internal/coralogixapis/apm/services/v1/apm_service.pb.go b/go/internal/coralogixapis/apm/services/v1/apm_service.pb.go index 9ae0f1a1..a6dbd019 100644 --- a/go/internal/coralogixapis/apm/services/v1/apm_service.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/apm_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/apm_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/services/v1/apm_service_service.pb.go b/go/internal/coralogixapis/apm/services/v1/apm_service_service.pb.go index f3c20e04..a6f33ec2 100644 --- a/go/internal/coralogixapis/apm/services/v1/apm_service_service.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/apm_service_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/apm_service_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/services/v1/apm_service_service_grpc.pb.go b/go/internal/coralogixapis/apm/services/v1/apm_service_service_grpc.pb.go index 8a13d39d..15e3fe0c 100644 --- a/go/internal/coralogixapis/apm/services/v1/apm_service_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/apm_service_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/apm_service_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApmServiceService_GetApmService_FullMethodName = "/com.coralogixapis.apm.services.v1.ApmServiceService/GetApmService" @@ -44,8 +44,9 @@ func NewApmServiceServiceClient(cc grpc.ClientConnInterface) ApmServiceServiceCl } func (c *apmServiceServiceClient) GetApmService(ctx context.Context, in *GetApmServiceRequest, opts ...grpc.CallOption) (*GetApmServiceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApmServiceResponse) - err := c.cc.Invoke(ctx, ApmServiceService_GetApmService_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmServiceService_GetApmService_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *apmServiceServiceClient) GetApmService(ctx context.Context, in *GetApmS } func (c *apmServiceServiceClient) BatchGetApmServices(ctx context.Context, in *BatchGetApmServicesRequest, opts ...grpc.CallOption) (*BatchGetApmServicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetApmServicesResponse) - err := c.cc.Invoke(ctx, ApmServiceService_BatchGetApmServices_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmServiceService_BatchGetApmServices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *apmServiceServiceClient) BatchGetApmServices(ctx context.Context, in *B } func (c *apmServiceServiceClient) DeleteApmService(ctx context.Context, in *DeleteApmServiceRequest, opts ...grpc.CallOption) (*DeleteApmServiceResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteApmServiceResponse) - err := c.cc.Invoke(ctx, ApmServiceService_DeleteApmService_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmServiceService_DeleteApmService_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *apmServiceServiceClient) DeleteApmService(ctx context.Context, in *Dele } func (c *apmServiceServiceClient) ListApmServices(ctx context.Context, in *ListApmServicesRequest, opts ...grpc.CallOption) (*ListApmServicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListApmServicesResponse) - err := c.cc.Invoke(ctx, ApmServiceService_ListApmServices_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApmServiceService_ListApmServices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *apmServiceServiceClient) ListApmServices(ctx context.Context, in *ListA // ApmServiceServiceServer is the server API for ApmServiceService service. // All implementations must embed UnimplementedApmServiceServiceServer -// for forward compatibility +// for forward compatibility. type ApmServiceServiceServer interface { GetApmService(context.Context, *GetApmServiceRequest) (*GetApmServiceResponse, error) BatchGetApmServices(context.Context, *BatchGetApmServicesRequest) (*BatchGetApmServicesResponse, error) @@ -90,9 +94,12 @@ type ApmServiceServiceServer interface { mustEmbedUnimplementedApmServiceServiceServer() } -// UnimplementedApmServiceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApmServiceServiceServer struct { -} +// UnimplementedApmServiceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApmServiceServiceServer struct{} func (UnimplementedApmServiceServiceServer) GetApmService(context.Context, *GetApmServiceRequest) (*GetApmServiceResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetApmService not implemented") @@ -107,6 +114,7 @@ func (UnimplementedApmServiceServiceServer) ListApmServices(context.Context, *Li return nil, status.Errorf(codes.Unimplemented, "method ListApmServices not implemented") } func (UnimplementedApmServiceServiceServer) mustEmbedUnimplementedApmServiceServiceServer() {} +func (UnimplementedApmServiceServiceServer) testEmbeddedByValue() {} // UnsafeApmServiceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApmServiceServiceServer will @@ -116,6 +124,13 @@ type UnsafeApmServiceServiceServer interface { } func RegisterApmServiceServiceServer(s grpc.ServiceRegistrar, srv ApmServiceServiceServer) { + // If the following call pancis, it indicates UnimplementedApmServiceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApmServiceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/services/v1/service_slo.pb.go b/go/internal/coralogixapis/apm/services/v1/service_slo.pb.go index cc23289d..625024ff 100644 --- a/go/internal/coralogixapis/apm/services/v1/service_slo.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/service_slo.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/service_slo.proto package v1 diff --git a/go/internal/coralogixapis/apm/services/v1/service_slo_service.pb.go b/go/internal/coralogixapis/apm/services/v1/service_slo_service.pb.go index 44a2b87a..9ba6b43e 100644 --- a/go/internal/coralogixapis/apm/services/v1/service_slo_service.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/service_slo_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/service_slo_service.proto package v1 diff --git a/go/internal/coralogixapis/apm/services/v1/service_slo_service_grpc.pb.go b/go/internal/coralogixapis/apm/services/v1/service_slo_service_grpc.pb.go index 3a8e5f38..218f581b 100644 --- a/go/internal/coralogixapis/apm/services/v1/service_slo_service_grpc.pb.go +++ b/go/internal/coralogixapis/apm/services/v1/service_slo_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/apm/services/v1/service_slo_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ServiceSloService_GetServiceSlo_FullMethodName = "/com.coralogixapis.apm.services.v1.ServiceSloService/GetServiceSlo" @@ -48,8 +48,9 @@ func NewServiceSloServiceClient(cc grpc.ClientConnInterface) ServiceSloServiceCl } func (c *serviceSloServiceClient) GetServiceSlo(ctx context.Context, in *GetServiceSloRequest, opts ...grpc.CallOption) (*GetServiceSloResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetServiceSloResponse) - err := c.cc.Invoke(ctx, ServiceSloService_GetServiceSlo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_GetServiceSlo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +58,9 @@ func (c *serviceSloServiceClient) GetServiceSlo(ctx context.Context, in *GetServ } func (c *serviceSloServiceClient) CreateServiceSlo(ctx context.Context, in *CreateServiceSloRequest, opts ...grpc.CallOption) (*CreateServiceSloResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateServiceSloResponse) - err := c.cc.Invoke(ctx, ServiceSloService_CreateServiceSlo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_CreateServiceSlo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +68,9 @@ func (c *serviceSloServiceClient) CreateServiceSlo(ctx context.Context, in *Crea } func (c *serviceSloServiceClient) ReplaceServiceSlo(ctx context.Context, in *ReplaceServiceSloRequest, opts ...grpc.CallOption) (*ReplaceServiceSloResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceServiceSloResponse) - err := c.cc.Invoke(ctx, ServiceSloService_ReplaceServiceSlo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_ReplaceServiceSlo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +78,9 @@ func (c *serviceSloServiceClient) ReplaceServiceSlo(ctx context.Context, in *Rep } func (c *serviceSloServiceClient) DeleteServiceSlo(ctx context.Context, in *DeleteServiceSloRequest, opts ...grpc.CallOption) (*DeleteServiceSloResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteServiceSloResponse) - err := c.cc.Invoke(ctx, ServiceSloService_DeleteServiceSlo_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_DeleteServiceSlo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +88,9 @@ func (c *serviceSloServiceClient) DeleteServiceSlo(ctx context.Context, in *Dele } func (c *serviceSloServiceClient) ListServiceSlos(ctx context.Context, in *ListServiceSlosRequest, opts ...grpc.CallOption) (*ListServiceSlosResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListServiceSlosResponse) - err := c.cc.Invoke(ctx, ServiceSloService_ListServiceSlos_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_ListServiceSlos_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +98,9 @@ func (c *serviceSloServiceClient) ListServiceSlos(ctx context.Context, in *ListS } func (c *serviceSloServiceClient) BatchGetServiceSlos(ctx context.Context, in *BatchGetServiceSlosRequest, opts ...grpc.CallOption) (*BatchGetServiceSlosResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetServiceSlosResponse) - err := c.cc.Invoke(ctx, ServiceSloService_BatchGetServiceSlos_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ServiceSloService_BatchGetServiceSlos_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,7 +109,7 @@ func (c *serviceSloServiceClient) BatchGetServiceSlos(ctx context.Context, in *B // ServiceSloServiceServer is the server API for ServiceSloService service. // All implementations must embed UnimplementedServiceSloServiceServer -// for forward compatibility +// for forward compatibility. type ServiceSloServiceServer interface { GetServiceSlo(context.Context, *GetServiceSloRequest) (*GetServiceSloResponse, error) CreateServiceSlo(context.Context, *CreateServiceSloRequest) (*CreateServiceSloResponse, error) @@ -114,9 +120,12 @@ type ServiceSloServiceServer interface { mustEmbedUnimplementedServiceSloServiceServer() } -// UnimplementedServiceSloServiceServer must be embedded to have forward compatible implementations. -type UnimplementedServiceSloServiceServer struct { -} +// UnimplementedServiceSloServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedServiceSloServiceServer struct{} func (UnimplementedServiceSloServiceServer) GetServiceSlo(context.Context, *GetServiceSloRequest) (*GetServiceSloResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetServiceSlo not implemented") @@ -137,6 +146,7 @@ func (UnimplementedServiceSloServiceServer) BatchGetServiceSlos(context.Context, return nil, status.Errorf(codes.Unimplemented, "method BatchGetServiceSlos not implemented") } func (UnimplementedServiceSloServiceServer) mustEmbedUnimplementedServiceSloServiceServer() {} +func (UnimplementedServiceSloServiceServer) testEmbeddedByValue() {} // UnsafeServiceSloServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ServiceSloServiceServer will @@ -146,6 +156,13 @@ type UnsafeServiceSloServiceServer interface { } func RegisterServiceSloServiceServer(s grpc.ServiceRegistrar, srv ServiceSloServiceServer) { + // If the following call pancis, it indicates UnimplementedServiceSloServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ServiceSloService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/apm/widgets/v1/coordinate.pb.go b/go/internal/coralogixapis/apm/widgets/v1/coordinate.pb.go index 437f1129..67379bc5 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/coordinate.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/coordinate.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/coordinate.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/donut.pb.go b/go/internal/coralogixapis/apm/widgets/v1/donut.pb.go index 48ce7b06..b714d76f 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/donut.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/donut.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/donut.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/float_result.pb.go b/go/internal/coralogixapis/apm/widgets/v1/float_result.pb.go index ad9ac5eb..1d769a6e 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/float_result.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/float_result.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/float_result.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/gauge.pb.go b/go/internal/coralogixapis/apm/widgets/v1/gauge.pb.go index 3a4dc2ef..691cf2e9 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/gauge.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/gauge.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/gauge.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/line_chart.pb.go b/go/internal/coralogixapis/apm/widgets/v1/line_chart.pb.go index 6c7c5f34..fbda98a4 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/line_chart.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/line_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/line_chart.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/map_chart.pb.go b/go/internal/coralogixapis/apm/widgets/v1/map_chart.pb.go index 00f72d65..e73b8960 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/map_chart.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/map_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/map_chart.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/map_point_value.pb.go b/go/internal/coralogixapis/apm/widgets/v1/map_point_value.pb.go index 3f140644..ccc66c7e 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/map_point_value.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/map_point_value.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/map_point_value.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/multi_stat.pb.go b/go/internal/coralogixapis/apm/widgets/v1/multi_stat.pb.go index df524795..00027951 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/multi_stat.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/multi_stat.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/multi_stat.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/row_wrapper.pb.go b/go/internal/coralogixapis/apm/widgets/v1/row_wrapper.pb.go index 4d163fa5..7bbeb225 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/row_wrapper.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/row_wrapper.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/row_wrapper.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/stat.pb.go b/go/internal/coralogixapis/apm/widgets/v1/stat.pb.go index 9af38711..cd10d14e 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/stat.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/stat.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/stat.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/topk.pb.go b/go/internal/coralogixapis/apm/widgets/v1/topk.pb.go index 5b23bc11..6bbd47ec 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/topk.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/topk.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/topk.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/topk_multi_value.pb.go b/go/internal/coralogixapis/apm/widgets/v1/topk_multi_value.pb.go index 7b37fa4f..11a55918 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/topk_multi_value.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/topk_multi_value.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/topk_multi_value.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/units.pb.go b/go/internal/coralogixapis/apm/widgets/v1/units.pb.go index 370c49a2..47ed2c34 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/units.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/units.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/units.proto package v1 diff --git a/go/internal/coralogixapis/apm/widgets/v1/widget_group.pb.go b/go/internal/coralogixapis/apm/widgets/v1/widget_group.pb.go index cc390490..e7ffd02b 100644 --- a/go/internal/coralogixapis/apm/widgets/v1/widget_group.pb.go +++ b/go/internal/coralogixapis/apm/widgets/v1/widget_group.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm/widgets/v1/widget_group.proto package v1 diff --git a/go/internal/coralogixapis/apm_shared/common/queries.pb.go b/go/internal/coralogixapis/apm_shared/common/queries.pb.go index 3ea22bbd..5693c86f 100644 --- a/go/internal/coralogixapis/apm_shared/common/queries.pb.go +++ b/go/internal/coralogixapis/apm_shared/common/queries.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/apm_shared/common/queries.proto package common diff --git a/go/internal/coralogixapis/dashboards/v1/annotation.pb.go b/go/internal/coralogixapis/dashboards/v1/annotation.pb.go index 3ae68924..46e55983 100644 --- a/go/internal/coralogixapis/dashboards/v1/annotation.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/annotation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/annotation.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/annotation_event.pb.go b/go/internal/coralogixapis/dashboards/v1/annotation_event.pb.go index 304515f5..d8a7025a 100644 --- a/go/internal/coralogixapis/dashboards/v1/annotation_event.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/annotation_event.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/annotation_event.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service.pb.go index 9a7fbda6..a80cbd13 100644 --- a/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/archive_logs_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service_grpc.pb.go index 6e6e643e..66ca0cb0 100644 --- a/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/archive_logs_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/archive_logs_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ArchiveLogsDataSourceService_SearchArchiveLogsTimeSeries_FullMethodName = "/com.coralogixapis.dashboards.v1.services.ArchiveLogsDataSourceService/SearchArchiveLogsTimeSeries" @@ -50,8 +50,9 @@ func NewArchiveLogsDataSourceServiceClient(cc grpc.ClientConnInterface) ArchiveL } func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsTimeSeries(ctx context.Context, in *SearchArchiveLogsTimeSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveLogsTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveLogsTimeSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsTimeSeries(ctx con } func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEvents(ctx context.Context, in *SearchArchiveLogsEventsRequest, opts ...grpc.CallOption) (*SearchArchiveLogsEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveLogsEventsResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEvents(ctx context } func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEventsCount(ctx context.Context, in *SearchArchiveLogsEventsCountRequest, opts ...grpc.CallOption) (*SearchArchiveLogsEventsCountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveLogsEventsCountResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEventsCount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEventsCount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEventsCount(ctx co } func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEventGroups(ctx context.Context, in *SearchArchiveLogsEventGroupsRequest, opts ...grpc.CallOption) (*SearchArchiveLogsEventGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveLogsEventGroupsResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEventGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsEventGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsEventGroups(ctx co } func (c *archiveLogsDataSourceServiceClient) SearchArchiveGroupedLogsSeries(ctx context.Context, in *SearchArchiveGroupedLogsSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveGroupedLogsSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveGroupedLogsSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveGroupedLogsSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveGroupedLogsSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveGroupedLogsSeries(ctx } func (c *archiveLogsDataSourceServiceClient) SearchArchiveGroupedLogsTimeSeries(ctx context.Context, in *SearchArchiveGroupedLogsTimeSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveGroupedLogsTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveGroupedLogsTimeSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveGroupedLogsTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveGroupedLogsTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveGroupedLogsTimeSeries( } func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsGroupedValues(ctx context.Context, in *SearchArchiveLogsGroupedValuesRequest, opts ...grpc.CallOption) (*SearchArchiveLogsGroupedValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveLogsGroupedValuesResponse) - err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsGroupedValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveLogsDataSourceService_SearchArchiveLogsGroupedValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *archiveLogsDataSourceServiceClient) SearchArchiveLogsGroupedValues(ctx // ArchiveLogsDataSourceServiceServer is the server API for ArchiveLogsDataSourceService service. // All implementations must embed UnimplementedArchiveLogsDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type ArchiveLogsDataSourceServiceServer interface { SearchArchiveLogsTimeSeries(context.Context, *SearchArchiveLogsTimeSeriesRequest) (*SearchArchiveLogsTimeSeriesResponse, error) SearchArchiveLogsEvents(context.Context, *SearchArchiveLogsEventsRequest) (*SearchArchiveLogsEventsResponse, error) @@ -126,9 +133,12 @@ type ArchiveLogsDataSourceServiceServer interface { mustEmbedUnimplementedArchiveLogsDataSourceServiceServer() } -// UnimplementedArchiveLogsDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedArchiveLogsDataSourceServiceServer struct { -} +// UnimplementedArchiveLogsDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedArchiveLogsDataSourceServiceServer struct{} func (UnimplementedArchiveLogsDataSourceServiceServer) SearchArchiveLogsTimeSeries(context.Context, *SearchArchiveLogsTimeSeriesRequest) (*SearchArchiveLogsTimeSeriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchArchiveLogsTimeSeries not implemented") @@ -153,6 +163,7 @@ func (UnimplementedArchiveLogsDataSourceServiceServer) SearchArchiveLogsGroupedV } func (UnimplementedArchiveLogsDataSourceServiceServer) mustEmbedUnimplementedArchiveLogsDataSourceServiceServer() { } +func (UnimplementedArchiveLogsDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeArchiveLogsDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ArchiveLogsDataSourceServiceServer will @@ -162,6 +173,13 @@ type UnsafeArchiveLogsDataSourceServiceServer interface { } func RegisterArchiveLogsDataSourceServiceServer(s grpc.ServiceRegistrar, srv ArchiveLogsDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedArchiveLogsDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ArchiveLogsDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service.pb.go index 4f921dea..8f42e8fd 100644 --- a/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/archive_spans_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service_grpc.pb.go index 7494fa26..f1610026 100644 --- a/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/archive_spans_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/archive_spans_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ArchiveSpansDataSourceService_SearchArchiveSpansTimeSeries_FullMethodName = "/com.coralogixapis.dashboards.v1.services.ArchiveSpansDataSourceService/SearchArchiveSpansTimeSeries" @@ -50,8 +50,9 @@ func NewArchiveSpansDataSourceServiceClient(cc grpc.ClientConnInterface) Archive } func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansTimeSeries(ctx context.Context, in *SearchArchiveSpansTimeSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveSpansTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveSpansTimeSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansTimeSeries(ctx c } func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEvents(ctx context.Context, in *SearchArchiveSpansEventsRequest, opts ...grpc.CallOption) (*SearchArchiveSpansEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveSpansEventsResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEvents(ctx conte } func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEventsCount(ctx context.Context, in *SearchArchiveSpansEventsCountRequest, opts ...grpc.CallOption) (*SearchArchiveSpansEventsCountResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveSpansEventsCountResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEventsCount_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEventsCount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEventsCount(ctx } func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEventGroups(ctx context.Context, in *SearchArchiveSpansEventGroupsRequest, opts ...grpc.CallOption) (*SearchArchiveSpansEventGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveSpansEventGroupsResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEventGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansEventGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansEventGroups(ctx } func (c *archiveSpansDataSourceServiceClient) SearchArchiveGroupedSpansSeries(ctx context.Context, in *SearchArchiveGroupedSpansSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveGroupedSpansSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveGroupedSpansSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveGroupedSpansSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveGroupedSpansSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveGroupedSpansSeries(ct } func (c *archiveSpansDataSourceServiceClient) SearchArchiveGroupedSpansTimeSeries(ctx context.Context, in *SearchArchiveGroupedSpansTimeSeriesRequest, opts ...grpc.CallOption) (*SearchArchiveGroupedSpansTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveGroupedSpansTimeSeriesResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveGroupedSpansTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveGroupedSpansTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveGroupedSpansTimeSerie } func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansGroupedValues(ctx context.Context, in *SearchArchiveSpansGroupedValuesRequest, opts ...grpc.CallOption) (*SearchArchiveSpansGroupedValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchArchiveSpansGroupedValuesResponse) - err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansGroupedValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ArchiveSpansDataSourceService_SearchArchiveSpansGroupedValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *archiveSpansDataSourceServiceClient) SearchArchiveSpansGroupedValues(ct // ArchiveSpansDataSourceServiceServer is the server API for ArchiveSpansDataSourceService service. // All implementations must embed UnimplementedArchiveSpansDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type ArchiveSpansDataSourceServiceServer interface { SearchArchiveSpansTimeSeries(context.Context, *SearchArchiveSpansTimeSeriesRequest) (*SearchArchiveSpansTimeSeriesResponse, error) SearchArchiveSpansEvents(context.Context, *SearchArchiveSpansEventsRequest) (*SearchArchiveSpansEventsResponse, error) @@ -126,9 +133,12 @@ type ArchiveSpansDataSourceServiceServer interface { mustEmbedUnimplementedArchiveSpansDataSourceServiceServer() } -// UnimplementedArchiveSpansDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedArchiveSpansDataSourceServiceServer struct { -} +// UnimplementedArchiveSpansDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedArchiveSpansDataSourceServiceServer struct{} func (UnimplementedArchiveSpansDataSourceServiceServer) SearchArchiveSpansTimeSeries(context.Context, *SearchArchiveSpansTimeSeriesRequest) (*SearchArchiveSpansTimeSeriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchArchiveSpansTimeSeries not implemented") @@ -153,6 +163,7 @@ func (UnimplementedArchiveSpansDataSourceServiceServer) SearchArchiveSpansGroupe } func (UnimplementedArchiveSpansDataSourceServiceServer) mustEmbedUnimplementedArchiveSpansDataSourceServiceServer() { } +func (UnimplementedArchiveSpansDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeArchiveSpansDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ArchiveSpansDataSourceServiceServer will @@ -162,6 +173,13 @@ type UnsafeArchiveSpansDataSourceServiceServer interface { } func RegisterArchiveSpansDataSourceServiceServer(s grpc.ServiceRegistrar, srv ArchiveSpansDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedArchiveSpansDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ArchiveSpansDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/bar_chart.pb.go b/go/internal/coralogixapis/dashboards/v1/bar_chart.pb.go index 20dcc70e..815e56b0 100644 --- a/go/internal/coralogixapis/dashboards/v1/bar_chart.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/bar_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/bar_chart.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/colors_by.pb.go b/go/internal/coralogixapis/dashboards/v1/colors_by.pb.go index db79f3b4..8d9eb652 100644 --- a/go/internal/coralogixapis/dashboards/v1/colors_by.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/colors_by.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/colors_by.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dashboard.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboard.pb.go index 61e46e95..78908fec 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboard.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboard.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/dashboard.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service.pb.go index a0185c66..06aadcc6 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboard_catalog_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service_grpc.pb.go index 5599323a..245f8b32 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboard_catalog_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboard_catalog_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DashboardCatalogService_GetDashboardCatalog_FullMethodName = "/com.coralogixapis.dashboards.v1.services.DashboardCatalogService/GetDashboardCatalog" @@ -38,8 +38,9 @@ func NewDashboardCatalogServiceClient(cc grpc.ClientConnInterface) DashboardCata } func (c *dashboardCatalogServiceClient) GetDashboardCatalog(ctx context.Context, in *GetDashboardCatalogRequest, opts ...grpc.CallOption) (*GetDashboardCatalogResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDashboardCatalogResponse) - err := c.cc.Invoke(ctx, DashboardCatalogService_GetDashboardCatalog_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardCatalogService_GetDashboardCatalog_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,21 +49,25 @@ func (c *dashboardCatalogServiceClient) GetDashboardCatalog(ctx context.Context, // DashboardCatalogServiceServer is the server API for DashboardCatalogService service. // All implementations must embed UnimplementedDashboardCatalogServiceServer -// for forward compatibility +// for forward compatibility. type DashboardCatalogServiceServer interface { GetDashboardCatalog(context.Context, *GetDashboardCatalogRequest) (*GetDashboardCatalogResponse, error) mustEmbedUnimplementedDashboardCatalogServiceServer() } -// UnimplementedDashboardCatalogServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDashboardCatalogServiceServer struct { -} +// UnimplementedDashboardCatalogServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDashboardCatalogServiceServer struct{} func (UnimplementedDashboardCatalogServiceServer) GetDashboardCatalog(context.Context, *GetDashboardCatalogRequest) (*GetDashboardCatalogResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDashboardCatalog not implemented") } func (UnimplementedDashboardCatalogServiceServer) mustEmbedUnimplementedDashboardCatalogServiceServer() { } +func (UnimplementedDashboardCatalogServiceServer) testEmbeddedByValue() {} // UnsafeDashboardCatalogServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DashboardCatalogServiceServer will @@ -72,6 +77,13 @@ type UnsafeDashboardCatalogServiceServer interface { } func RegisterDashboardCatalogServiceServer(s grpc.ServiceRegistrar, srv DashboardCatalogServiceServer) { + // If the following call pancis, it indicates UnimplementedDashboardCatalogServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DashboardCatalogService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service.pb.go index 4ce877a1..26af9fba 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboard_folders_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service_grpc.pb.go index 9b40f0c3..67ac2806 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboard_folders_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboard_folders_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DashboardFoldersService_ListDashboardFolders_FullMethodName = "/com.coralogixapis.dashboards.v1.services.DashboardFoldersService/ListDashboardFolders" @@ -46,8 +46,9 @@ func NewDashboardFoldersServiceClient(cc grpc.ClientConnInterface) DashboardFold } func (c *dashboardFoldersServiceClient) ListDashboardFolders(ctx context.Context, in *ListDashboardFoldersRequest, opts ...grpc.CallOption) (*ListDashboardFoldersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListDashboardFoldersResponse) - err := c.cc.Invoke(ctx, DashboardFoldersService_ListDashboardFolders_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardFoldersService_ListDashboardFolders_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *dashboardFoldersServiceClient) ListDashboardFolders(ctx context.Context } func (c *dashboardFoldersServiceClient) GetDashboardFolder(ctx context.Context, in *GetDashboardFolderRequest, opts ...grpc.CallOption) (*GetDashboardFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDashboardFolderResponse) - err := c.cc.Invoke(ctx, DashboardFoldersService_GetDashboardFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardFoldersService_GetDashboardFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *dashboardFoldersServiceClient) GetDashboardFolder(ctx context.Context, } func (c *dashboardFoldersServiceClient) CreateDashboardFolder(ctx context.Context, in *CreateDashboardFolderRequest, opts ...grpc.CallOption) (*CreateDashboardFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateDashboardFolderResponse) - err := c.cc.Invoke(ctx, DashboardFoldersService_CreateDashboardFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardFoldersService_CreateDashboardFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *dashboardFoldersServiceClient) CreateDashboardFolder(ctx context.Contex } func (c *dashboardFoldersServiceClient) ReplaceDashboardFolder(ctx context.Context, in *ReplaceDashboardFolderRequest, opts ...grpc.CallOption) (*ReplaceDashboardFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceDashboardFolderResponse) - err := c.cc.Invoke(ctx, DashboardFoldersService_ReplaceDashboardFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardFoldersService_ReplaceDashboardFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *dashboardFoldersServiceClient) ReplaceDashboardFolder(ctx context.Conte } func (c *dashboardFoldersServiceClient) DeleteDashboardFolder(ctx context.Context, in *DeleteDashboardFolderRequest, opts ...grpc.CallOption) (*DeleteDashboardFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteDashboardFolderResponse) - err := c.cc.Invoke(ctx, DashboardFoldersService_DeleteDashboardFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardFoldersService_DeleteDashboardFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *dashboardFoldersServiceClient) DeleteDashboardFolder(ctx context.Contex // DashboardFoldersServiceServer is the server API for DashboardFoldersService service. // All implementations must embed UnimplementedDashboardFoldersServiceServer -// for forward compatibility +// for forward compatibility. type DashboardFoldersServiceServer interface { ListDashboardFolders(context.Context, *ListDashboardFoldersRequest) (*ListDashboardFoldersResponse, error) GetDashboardFolder(context.Context, *GetDashboardFolderRequest) (*GetDashboardFolderResponse, error) @@ -102,9 +107,12 @@ type DashboardFoldersServiceServer interface { mustEmbedUnimplementedDashboardFoldersServiceServer() } -// UnimplementedDashboardFoldersServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDashboardFoldersServiceServer struct { -} +// UnimplementedDashboardFoldersServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDashboardFoldersServiceServer struct{} func (UnimplementedDashboardFoldersServiceServer) ListDashboardFolders(context.Context, *ListDashboardFoldersRequest) (*ListDashboardFoldersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListDashboardFolders not implemented") @@ -123,6 +131,7 @@ func (UnimplementedDashboardFoldersServiceServer) DeleteDashboardFolder(context. } func (UnimplementedDashboardFoldersServiceServer) mustEmbedUnimplementedDashboardFoldersServiceServer() { } +func (UnimplementedDashboardFoldersServiceServer) testEmbeddedByValue() {} // UnsafeDashboardFoldersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DashboardFoldersServiceServer will @@ -132,6 +141,13 @@ type UnsafeDashboardFoldersServiceServer interface { } func RegisterDashboardFoldersServiceServer(s grpc.ServiceRegistrar, srv DashboardFoldersServiceServer) { + // If the following call pancis, it indicates UnimplementedDashboardFoldersServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DashboardFoldersService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/dashboards_service.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboards_service.pb.go index 5c2f87d6..d2279abd 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboards_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboards_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboards_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dashboards_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/dashboards_service_grpc.pb.go index aa9d14cd..fbecddb3 100644 --- a/go/internal/coralogixapis/dashboards/v1/dashboards_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dashboards_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dashboards_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DashboardsService_CreateDashboard_FullMethodName = "/com.coralogixapis.dashboards.v1.services.DashboardsService/CreateDashboard" @@ -52,8 +52,9 @@ func NewDashboardsServiceClient(cc grpc.ClientConnInterface) DashboardsServiceCl } func (c *dashboardsServiceClient) CreateDashboard(ctx context.Context, in *CreateDashboardRequest, opts ...grpc.CallOption) (*CreateDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_CreateDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_CreateDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *dashboardsServiceClient) CreateDashboard(ctx context.Context, in *Creat } func (c *dashboardsServiceClient) ReplaceDashboard(ctx context.Context, in *ReplaceDashboardRequest, opts ...grpc.CallOption) (*ReplaceDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_ReplaceDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_ReplaceDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *dashboardsServiceClient) ReplaceDashboard(ctx context.Context, in *Repl } func (c *dashboardsServiceClient) DeleteDashboard(ctx context.Context, in *DeleteDashboardRequest, opts ...grpc.CallOption) (*DeleteDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_DeleteDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_DeleteDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *dashboardsServiceClient) DeleteDashboard(ctx context.Context, in *Delet } func (c *dashboardsServiceClient) GetDashboard(ctx context.Context, in *GetDashboardRequest, opts ...grpc.CallOption) (*GetDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_GetDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_GetDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *dashboardsServiceClient) GetDashboard(ctx context.Context, in *GetDashb } func (c *dashboardsServiceClient) PinDashboard(ctx context.Context, in *PinDashboardRequest, opts ...grpc.CallOption) (*PinDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PinDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_PinDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_PinDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *dashboardsServiceClient) PinDashboard(ctx context.Context, in *PinDashb } func (c *dashboardsServiceClient) UnpinDashboard(ctx context.Context, in *UnpinDashboardRequest, opts ...grpc.CallOption) (*UnpinDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnpinDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_UnpinDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_UnpinDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *dashboardsServiceClient) UnpinDashboard(ctx context.Context, in *UnpinD } func (c *dashboardsServiceClient) ReplaceDefaultDashboard(ctx context.Context, in *ReplaceDefaultDashboardRequest, opts ...grpc.CallOption) (*ReplaceDefaultDashboardResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceDefaultDashboardResponse) - err := c.cc.Invoke(ctx, DashboardsService_ReplaceDefaultDashboard_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_ReplaceDefaultDashboard_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *dashboardsServiceClient) ReplaceDefaultDashboard(ctx context.Context, i } func (c *dashboardsServiceClient) AssignDashboardFolder(ctx context.Context, in *AssignDashboardFolderRequest, opts ...grpc.CallOption) (*AssignDashboardFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AssignDashboardFolderResponse) - err := c.cc.Invoke(ctx, DashboardsService_AssignDashboardFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DashboardsService_AssignDashboardFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *dashboardsServiceClient) AssignDashboardFolder(ctx context.Context, in // DashboardsServiceServer is the server API for DashboardsService service. // All implementations must embed UnimplementedDashboardsServiceServer -// for forward compatibility +// for forward compatibility. type DashboardsServiceServer interface { CreateDashboard(context.Context, *CreateDashboardRequest) (*CreateDashboardResponse, error) ReplaceDashboard(context.Context, *ReplaceDashboardRequest) (*ReplaceDashboardResponse, error) @@ -138,9 +146,12 @@ type DashboardsServiceServer interface { mustEmbedUnimplementedDashboardsServiceServer() } -// UnimplementedDashboardsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDashboardsServiceServer struct { -} +// UnimplementedDashboardsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDashboardsServiceServer struct{} func (UnimplementedDashboardsServiceServer) CreateDashboard(context.Context, *CreateDashboardRequest) (*CreateDashboardResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateDashboard not implemented") @@ -167,6 +178,7 @@ func (UnimplementedDashboardsServiceServer) AssignDashboardFolder(context.Contex return nil, status.Errorf(codes.Unimplemented, "method AssignDashboardFolder not implemented") } func (UnimplementedDashboardsServiceServer) mustEmbedUnimplementedDashboardsServiceServer() {} +func (UnimplementedDashboardsServiceServer) testEmbeddedByValue() {} // UnsafeDashboardsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DashboardsServiceServer will @@ -176,6 +188,13 @@ type UnsafeDashboardsServiceServer interface { } func RegisterDashboardsServiceServer(s grpc.ServiceRegistrar, srv DashboardsServiceServer) { + // If the following call pancis, it indicates UnimplementedDashboardsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DashboardsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/data_mode_type.pb.go b/go/internal/coralogixapis/dashboards/v1/data_mode_type.pb.go index 472656ad..38f87d28 100644 --- a/go/internal/coralogixapis/dashboards/v1/data_mode_type.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/data_mode_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/data_mode_type.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/data_table.pb.go b/go/internal/coralogixapis/dashboards/v1/data_table.pb.go index f7665b40..9f965462 100644 --- a/go/internal/coralogixapis/dashboards/v1/data_table.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/data_table.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/data_table.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service.pb.go index d507068a..6ed445bf 100644 --- a/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dataprime_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service_grpc.pb.go index 8a764f4f..f9433752 100644 --- a/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dataprime_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/dataprime_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataprimeDataSourceService_SearchDataprime_FullMethodName = "/com.coralogixapis.dashboards.v1.services.DataprimeDataSourceService/SearchDataprime" @@ -40,8 +40,9 @@ func NewDataprimeDataSourceServiceClient(cc grpc.ClientConnInterface) DataprimeD } func (c *dataprimeDataSourceServiceClient) SearchDataprime(ctx context.Context, in *SearchDataprimeRequest, opts ...grpc.CallOption) (*SearchDataprimeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchDataprimeResponse) - err := c.cc.Invoke(ctx, DataprimeDataSourceService_SearchDataprime_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataprimeDataSourceService_SearchDataprime_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *dataprimeDataSourceServiceClient) SearchDataprime(ctx context.Context, } func (c *dataprimeDataSourceServiceClient) SearchDataprimeArchive(ctx context.Context, in *SearchDataprimeArchiveRequest, opts ...grpc.CallOption) (*SearchDataprimeArchiveResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchDataprimeArchiveResponse) - err := c.cc.Invoke(ctx, DataprimeDataSourceService_SearchDataprimeArchive_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DataprimeDataSourceService_SearchDataprimeArchive_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *dataprimeDataSourceServiceClient) SearchDataprimeArchive(ctx context.Co // DataprimeDataSourceServiceServer is the server API for DataprimeDataSourceService service. // All implementations must embed UnimplementedDataprimeDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type DataprimeDataSourceServiceServer interface { SearchDataprime(context.Context, *SearchDataprimeRequest) (*SearchDataprimeResponse, error) SearchDataprimeArchive(context.Context, *SearchDataprimeArchiveRequest) (*SearchDataprimeArchiveResponse, error) mustEmbedUnimplementedDataprimeDataSourceServiceServer() } -// UnimplementedDataprimeDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDataprimeDataSourceServiceServer struct { -} +// UnimplementedDataprimeDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataprimeDataSourceServiceServer struct{} func (UnimplementedDataprimeDataSourceServiceServer) SearchDataprime(context.Context, *SearchDataprimeRequest) (*SearchDataprimeResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchDataprime not implemented") @@ -78,6 +83,7 @@ func (UnimplementedDataprimeDataSourceServiceServer) SearchDataprimeArchive(cont } func (UnimplementedDataprimeDataSourceServiceServer) mustEmbedUnimplementedDataprimeDataSourceServiceServer() { } +func (UnimplementedDataprimeDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeDataprimeDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataprimeDataSourceServiceServer will @@ -87,6 +93,13 @@ type UnsafeDataprimeDataSourceServiceServer interface { } func RegisterDataprimeDataSourceServiceServer(s grpc.ServiceRegistrar, srv DataprimeDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedDataprimeDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataprimeDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/dataprime_result.pb.go b/go/internal/coralogixapis/dashboards/v1/dataprime_result.pb.go index 4775fcf6..df33f6a3 100644 --- a/go/internal/coralogixapis/dashboards/v1/dataprime_result.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/dataprime_result.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/dataprime_result.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/filter.pb.go b/go/internal/coralogixapis/dashboards/v1/filter.pb.go index 9a7a2c6c..5e05be56 100644 --- a/go/internal/coralogixapis/dashboards/v1/filter.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/filter.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/filter.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/folder.pb.go b/go/internal/coralogixapis/dashboards/v1/folder.pb.go index fcc3976c..2787e744 100644 --- a/go/internal/coralogixapis/dashboards/v1/folder.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/folder.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/folder.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/folder_path.pb.go b/go/internal/coralogixapis/dashboards/v1/folder_path.pb.go index 29c14a58..a732a020 100644 --- a/go/internal/coralogixapis/dashboards/v1/folder_path.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/folder_path.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/folder_path.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/gauge.pb.go b/go/internal/coralogixapis/dashboards/v1/gauge.pb.go index a0e77e19..04a17aaf 100644 --- a/go/internal/coralogixapis/dashboards/v1/gauge.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/gauge.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/gauge.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/group.pb.go b/go/internal/coralogixapis/dashboards/v1/group.pb.go index c16232cc..6d6c2caf 100644 --- a/go/internal/coralogixapis/dashboards/v1/group.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/group.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/group.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/group_limit.pb.go b/go/internal/coralogixapis/dashboards/v1/group_limit.pb.go index 762929cc..766bc04d 100644 --- a/go/internal/coralogixapis/dashboards/v1/group_limit.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/group_limit.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/group_limit.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/grouped_series.pb.go b/go/internal/coralogixapis/dashboards/v1/grouped_series.pb.go index 0615ac73..f1865e87 100644 --- a/go/internal/coralogixapis/dashboards/v1/grouped_series.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/grouped_series.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/grouped_series.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/hexagon.pb.go b/go/internal/coralogixapis/dashboards/v1/hexagon.pb.go index a2af1dd8..13ca87f8 100644 --- a/go/internal/coralogixapis/dashboards/v1/hexagon.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/hexagon.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/hexagon.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/horizontal_bar_chart.pb.go b/go/internal/coralogixapis/dashboards/v1/horizontal_bar_chart.pb.go index 23ff60c2..ae08faf5 100644 --- a/go/internal/coralogixapis/dashboards/v1/horizontal_bar_chart.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/horizontal_bar_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/horizontal_bar_chart.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/labelled_value.pb.go b/go/internal/coralogixapis/dashboards/v1/labelled_value.pb.go index 9cf4b5e7..1409479e 100644 --- a/go/internal/coralogixapis/dashboards/v1/labelled_value.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/labelled_value.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/labelled_value.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/layout.pb.go b/go/internal/coralogixapis/dashboards/v1/layout.pb.go index 0468116c..93383964 100644 --- a/go/internal/coralogixapis/dashboards/v1/layout.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/layout.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/layout.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/legend.pb.go b/go/internal/coralogixapis/dashboards/v1/legend.pb.go index 55a5f682..bf7a1d5f 100644 --- a/go/internal/coralogixapis/dashboards/v1/legend.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/legend.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/legend.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/line_chart.pb.go b/go/internal/coralogixapis/dashboards/v1/line_chart.pb.go index be6eb802..336cf900 100644 --- a/go/internal/coralogixapis/dashboards/v1/line_chart.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/line_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/line_chart.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/log_severity_level.pb.go b/go/internal/coralogixapis/dashboards/v1/log_severity_level.pb.go index bbf6e158..cd3a6b37 100644 --- a/go/internal/coralogixapis/dashboards/v1/log_severity_level.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/log_severity_level.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/log_severity_level.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/logs_aggregation.pb.go b/go/internal/coralogixapis/dashboards/v1/logs_aggregation.pb.go index cd877c5c..649a1f00 100644 --- a/go/internal/coralogixapis/dashboards/v1/logs_aggregation.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/logs_aggregation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/logs_aggregation.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/logs_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/logs_data_source_service.pb.go index f1d87056..2ac9a7c3 100644 --- a/go/internal/coralogixapis/dashboards/v1/logs_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/logs_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/logs_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/logs_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/logs_data_source_service_grpc.pb.go index 9f1c5629..47042f13 100644 --- a/go/internal/coralogixapis/dashboards/v1/logs_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/logs_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/logs_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( LogsDataSourceService_SearchLogsTimeSeries_FullMethodName = "/com.coralogixapis.dashboards.v1.services.LogsDataSourceService/SearchLogsTimeSeries" @@ -50,8 +50,9 @@ func NewLogsDataSourceServiceClient(cc grpc.ClientConnInterface) LogsDataSourceS } func (c *logsDataSourceServiceClient) SearchLogsTimeSeries(ctx context.Context, in *SearchLogsTimeSeriesRequest, opts ...grpc.CallOption) (*SearchLogsTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsTimeSeriesResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *logsDataSourceServiceClient) SearchLogsTimeSeries(ctx context.Context, } func (c *logsDataSourceServiceClient) SearchLogsEvents(ctx context.Context, in *SearchLogsEventsRequest, opts ...grpc.CallOption) (*SearchLogsEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsEventsResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *logsDataSourceServiceClient) SearchLogsEvents(ctx context.Context, in * } func (c *logsDataSourceServiceClient) SearchGroupedLogsSeries(ctx context.Context, in *SearchGroupedLogsSeriesRequest, opts ...grpc.CallOption) (*SearchGroupedLogsSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchGroupedLogsSeriesResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchGroupedLogsSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchGroupedLogsSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *logsDataSourceServiceClient) SearchGroupedLogsSeries(ctx context.Contex } func (c *logsDataSourceServiceClient) SearchLogsGroupedTimeSeries(ctx context.Context, in *SearchLogsGroupedTimeSeriesRequest, opts ...grpc.CallOption) (*SearchLogsGroupedTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsGroupedTimeSeriesResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsGroupedTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsGroupedTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *logsDataSourceServiceClient) SearchLogsGroupedTimeSeries(ctx context.Co } func (c *logsDataSourceServiceClient) SearchLogsEventGroups(ctx context.Context, in *SearchLogsEventGroupsRequest, opts ...grpc.CallOption) (*SearchLogsEventGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsEventGroupsResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsEventGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsEventGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *logsDataSourceServiceClient) SearchLogsEventGroups(ctx context.Context, } func (c *logsDataSourceServiceClient) SearchLogsAnnotationEvents(ctx context.Context, in *SearchLogsAnnotationEventsRequest, opts ...grpc.CallOption) (*SearchLogsAnnotationEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsAnnotationEventsResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsAnnotationEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsAnnotationEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *logsDataSourceServiceClient) SearchLogsAnnotationEvents(ctx context.Con } func (c *logsDataSourceServiceClient) SearchLogsGroupedValues(ctx context.Context, in *SearchLogsGroupedValuesRequest, opts ...grpc.CallOption) (*SearchLogsGroupedValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchLogsGroupedValuesResponse) - err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsGroupedValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, LogsDataSourceService_SearchLogsGroupedValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *logsDataSourceServiceClient) SearchLogsGroupedValues(ctx context.Contex // LogsDataSourceServiceServer is the server API for LogsDataSourceService service. // All implementations must embed UnimplementedLogsDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type LogsDataSourceServiceServer interface { SearchLogsTimeSeries(context.Context, *SearchLogsTimeSeriesRequest) (*SearchLogsTimeSeriesResponse, error) SearchLogsEvents(context.Context, *SearchLogsEventsRequest) (*SearchLogsEventsResponse, error) @@ -126,9 +133,12 @@ type LogsDataSourceServiceServer interface { mustEmbedUnimplementedLogsDataSourceServiceServer() } -// UnimplementedLogsDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedLogsDataSourceServiceServer struct { -} +// UnimplementedLogsDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedLogsDataSourceServiceServer struct{} func (UnimplementedLogsDataSourceServiceServer) SearchLogsTimeSeries(context.Context, *SearchLogsTimeSeriesRequest) (*SearchLogsTimeSeriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchLogsTimeSeries not implemented") @@ -152,6 +162,7 @@ func (UnimplementedLogsDataSourceServiceServer) SearchLogsGroupedValues(context. return nil, status.Errorf(codes.Unimplemented, "method SearchLogsGroupedValues not implemented") } func (UnimplementedLogsDataSourceServiceServer) mustEmbedUnimplementedLogsDataSourceServiceServer() {} +func (UnimplementedLogsDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeLogsDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to LogsDataSourceServiceServer will @@ -161,6 +172,13 @@ type UnsafeLogsDataSourceServiceServer interface { } func RegisterLogsDataSourceServiceServer(s grpc.ServiceRegistrar, srv LogsDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedLogsDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&LogsDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/markdown.pb.go b/go/internal/coralogixapis/dashboards/v1/markdown.pb.go index 48d3bbe5..ed0c4de6 100644 --- a/go/internal/coralogixapis/dashboards/v1/markdown.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/markdown.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/markdown.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/metrics_aggregation_type.pb.go b/go/internal/coralogixapis/dashboards/v1/metrics_aggregation_type.pb.go index 5f4359c8..81360e33 100644 --- a/go/internal/coralogixapis/dashboards/v1/metrics_aggregation_type.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/metrics_aggregation_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/metrics_aggregation_type.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service.pb.go index 4277ac0f..19024e1c 100644 --- a/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/metrics_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service_grpc.pb.go index b60f9e4a..7b11ba1d 100644 --- a/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/metrics_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/metrics_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( MetricsDataSourceService_SearchMetricsTimeSeries_FullMethodName = "/com.coralogixapis.dashboards.v1.services.MetricsDataSourceService/SearchMetricsTimeSeries" @@ -50,8 +50,9 @@ func NewMetricsDataSourceServiceClient(cc grpc.ClientConnInterface) MetricsDataS } func (c *metricsDataSourceServiceClient) SearchMetricsTimeSeries(ctx context.Context, in *SearchMetricsTimeSeriesRequest, opts ...grpc.CallOption) (*SearchMetricsTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsTimeSeriesResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsTimeSeries(ctx context.Con } func (c *metricsDataSourceServiceClient) SearchMetricsTimeValues(ctx context.Context, in *SearchMetricsTimeValuesRequest, opts ...grpc.CallOption) (*SearchMetricsTimeValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsTimeValuesResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsTimeValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsTimeValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsTimeValues(ctx context.Con } func (c *metricsDataSourceServiceClient) SearchMetricsGroupedSeries(ctx context.Context, in *SearchMetricsGroupedSeriesRequest, opts ...grpc.CallOption) (*SearchMetricsGroupedSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsGroupedSeriesResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsGroupedSeries(ctx context. } func (c *metricsDataSourceServiceClient) SearchMetricsGroupedTimeSeries(ctx context.Context, in *SearchMetricsGroupedTimeSeriesRequest, opts ...grpc.CallOption) (*SearchMetricsGroupedTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsGroupedTimeSeriesResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsGroupedTimeSeries(ctx cont } func (c *metricsDataSourceServiceClient) SearchMetricsEvents(ctx context.Context, in *SearchMetricsEventsRequest, opts ...grpc.CallOption) (*SearchMetricsEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsEventsResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsEvents(ctx context.Context } func (c *metricsDataSourceServiceClient) SearchMetricsAnnotationEvents(ctx context.Context, in *SearchMetricsAnnotationEventsRequest, opts ...grpc.CallOption) (*SearchMetricsAnnotationEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsAnnotationEventsResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsAnnotationEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsAnnotationEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *metricsDataSourceServiceClient) SearchMetricsAnnotationEvents(ctx conte } func (c *metricsDataSourceServiceClient) SearchMetricsGroupedValues(ctx context.Context, in *SearchMetricsGroupedValuesRequest, opts ...grpc.CallOption) (*SearchMetricsGroupedValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchMetricsGroupedValuesResponse) - err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, MetricsDataSourceService_SearchMetricsGroupedValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *metricsDataSourceServiceClient) SearchMetricsGroupedValues(ctx context. // MetricsDataSourceServiceServer is the server API for MetricsDataSourceService service. // All implementations must embed UnimplementedMetricsDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type MetricsDataSourceServiceServer interface { SearchMetricsTimeSeries(context.Context, *SearchMetricsTimeSeriesRequest) (*SearchMetricsTimeSeriesResponse, error) SearchMetricsTimeValues(context.Context, *SearchMetricsTimeValuesRequest) (*SearchMetricsTimeValuesResponse, error) @@ -126,9 +133,12 @@ type MetricsDataSourceServiceServer interface { mustEmbedUnimplementedMetricsDataSourceServiceServer() } -// UnimplementedMetricsDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedMetricsDataSourceServiceServer struct { -} +// UnimplementedMetricsDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedMetricsDataSourceServiceServer struct{} func (UnimplementedMetricsDataSourceServiceServer) SearchMetricsTimeSeries(context.Context, *SearchMetricsTimeSeriesRequest) (*SearchMetricsTimeSeriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchMetricsTimeSeries not implemented") @@ -153,6 +163,7 @@ func (UnimplementedMetricsDataSourceServiceServer) SearchMetricsGroupedValues(co } func (UnimplementedMetricsDataSourceServiceServer) mustEmbedUnimplementedMetricsDataSourceServiceServer() { } +func (UnimplementedMetricsDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeMetricsDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to MetricsDataSourceServiceServer will @@ -162,6 +173,13 @@ type UnsafeMetricsDataSourceServiceServer interface { } func RegisterMetricsDataSourceServiceServer(s grpc.ServiceRegistrar, srv MetricsDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedMetricsDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&MetricsDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/metrics_query_editor_mode.pb.go b/go/internal/coralogixapis/dashboards/v1/metrics_query_editor_mode.pb.go index 6f0623e3..582a90cf 100644 --- a/go/internal/coralogixapis/dashboards/v1/metrics_query_editor_mode.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/metrics_query_editor_mode.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/metrics_query_editor_mode.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/observation_field.pb.go b/go/internal/coralogixapis/dashboards/v1/observation_field.pb.go index 0ea7855d..a647ab75 100644 --- a/go/internal/coralogixapis/dashboards/v1/observation_field.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/observation_field.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/observation_field.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/order_direction.pb.go b/go/internal/coralogixapis/dashboards/v1/order_direction.pb.go index 9cdf93f6..c911d30a 100644 --- a/go/internal/coralogixapis/dashboards/v1/order_direction.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/order_direction.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/order_direction.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/ordering_field.pb.go b/go/internal/coralogixapis/dashboards/v1/ordering_field.pb.go index 737ea5f0..d5431483 100644 --- a/go/internal/coralogixapis/dashboards/v1/ordering_field.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/ordering_field.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/ordering_field.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/pagination.pb.go b/go/internal/coralogixapis/dashboards/v1/pagination.pb.go index 788f0dd8..68776b17 100644 --- a/go/internal/coralogixapis/dashboards/v1/pagination.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/pagination.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/pagination.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/pie_chart.pb.go b/go/internal/coralogixapis/dashboards/v1/pie_chart.pb.go index 4c586cfc..2afca9c3 100644 --- a/go/internal/coralogixapis/dashboards/v1/pie_chart.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/pie_chart.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/pie_chart.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/query.pb.go b/go/internal/coralogixapis/dashboards/v1/query.pb.go index bd31be36..32339512 100644 --- a/go/internal/coralogixapis/dashboards/v1/query.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/query.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/scale.pb.go b/go/internal/coralogixapis/dashboards/v1/scale.pb.go index 8c72e288..79c0751f 100644 --- a/go/internal/coralogixapis/dashboards/v1/scale.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/scale.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/scale.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/sort_by.pb.go b/go/internal/coralogixapis/dashboards/v1/sort_by.pb.go index d8f1df12..41b3cdc7 100644 --- a/go/internal/coralogixapis/dashboards/v1/sort_by.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/sort_by.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/sort_by.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/span_field.pb.go b/go/internal/coralogixapis/dashboards/v1/span_field.pb.go index 541d39e5..94980eca 100644 --- a/go/internal/coralogixapis/dashboards/v1/span_field.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/span_field.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/span_field.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/spans_aggregation.pb.go b/go/internal/coralogixapis/dashboards/v1/spans_aggregation.pb.go index 23064ef9..d3f5bf08 100644 --- a/go/internal/coralogixapis/dashboards/v1/spans_aggregation.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/spans_aggregation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/spans_aggregation.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/spans_data_source_service.pb.go b/go/internal/coralogixapis/dashboards/v1/spans_data_source_service.pb.go index 518cda7f..9e24ecb8 100644 --- a/go/internal/coralogixapis/dashboards/v1/spans_data_source_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/spans_data_source_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/spans_data_source_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/spans_data_source_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/spans_data_source_service_grpc.pb.go index b4fa9ab8..df6fc7b3 100644 --- a/go/internal/coralogixapis/dashboards/v1/spans_data_source_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/spans_data_source_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/spans_data_source_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( SpansDataSourceService_SearchSpansTimeSeries_FullMethodName = "/com.coralogixapis.dashboards.v1.services.SpansDataSourceService/SearchSpansTimeSeries" @@ -50,8 +50,9 @@ func NewSpansDataSourceServiceClient(cc grpc.ClientConnInterface) SpansDataSourc } func (c *spansDataSourceServiceClient) SearchSpansTimeSeries(ctx context.Context, in *SearchSpansTimeSeriesRequest, opts ...grpc.CallOption) (*SearchSpansTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansTimeSeriesResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +60,9 @@ func (c *spansDataSourceServiceClient) SearchSpansTimeSeries(ctx context.Context } func (c *spansDataSourceServiceClient) SearchSpansEvents(ctx context.Context, in *SearchSpansEventsRequest, opts ...grpc.CallOption) (*SearchSpansEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansEventsResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +70,9 @@ func (c *spansDataSourceServiceClient) SearchSpansEvents(ctx context.Context, in } func (c *spansDataSourceServiceClient) SearchSpansEventGroups(ctx context.Context, in *SearchSpansEventGroupsRequest, opts ...grpc.CallOption) (*SearchSpansEventGroupsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansEventGroupsResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansEventGroups_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansEventGroups_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +80,9 @@ func (c *spansDataSourceServiceClient) SearchSpansEventGroups(ctx context.Contex } func (c *spansDataSourceServiceClient) SearchGroupedSpansSeries(ctx context.Context, in *SearchGroupedSpansSeriesRequest, opts ...grpc.CallOption) (*SearchGroupedSpansSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchGroupedSpansSeriesResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchGroupedSpansSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchGroupedSpansSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +90,9 @@ func (c *spansDataSourceServiceClient) SearchGroupedSpansSeries(ctx context.Cont } func (c *spansDataSourceServiceClient) SearchSpansGroupedTimeSeries(ctx context.Context, in *SearchSpansGroupedTimeSeriesRequest, opts ...grpc.CallOption) (*SearchSpansGroupedTimeSeriesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansGroupedTimeSeriesResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansGroupedTimeSeries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansGroupedTimeSeries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +100,9 @@ func (c *spansDataSourceServiceClient) SearchSpansGroupedTimeSeries(ctx context. } func (c *spansDataSourceServiceClient) SearchSpansAnnotationEvents(ctx context.Context, in *SearchSpansAnnotationEventsRequest, opts ...grpc.CallOption) (*SearchSpansAnnotationEventsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansAnnotationEventsResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansAnnotationEvents_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansAnnotationEvents_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +110,9 @@ func (c *spansDataSourceServiceClient) SearchSpansAnnotationEvents(ctx context.C } func (c *spansDataSourceServiceClient) SearchSpansGroupedValues(ctx context.Context, in *SearchSpansGroupedValuesRequest, opts ...grpc.CallOption) (*SearchSpansGroupedValuesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchSpansGroupedValuesResponse) - err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansGroupedValues_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, SpansDataSourceService_SearchSpansGroupedValues_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +121,7 @@ func (c *spansDataSourceServiceClient) SearchSpansGroupedValues(ctx context.Cont // SpansDataSourceServiceServer is the server API for SpansDataSourceService service. // All implementations must embed UnimplementedSpansDataSourceServiceServer -// for forward compatibility +// for forward compatibility. type SpansDataSourceServiceServer interface { SearchSpansTimeSeries(context.Context, *SearchSpansTimeSeriesRequest) (*SearchSpansTimeSeriesResponse, error) SearchSpansEvents(context.Context, *SearchSpansEventsRequest) (*SearchSpansEventsResponse, error) @@ -126,9 +133,12 @@ type SpansDataSourceServiceServer interface { mustEmbedUnimplementedSpansDataSourceServiceServer() } -// UnimplementedSpansDataSourceServiceServer must be embedded to have forward compatible implementations. -type UnimplementedSpansDataSourceServiceServer struct { -} +// UnimplementedSpansDataSourceServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedSpansDataSourceServiceServer struct{} func (UnimplementedSpansDataSourceServiceServer) SearchSpansTimeSeries(context.Context, *SearchSpansTimeSeriesRequest) (*SearchSpansTimeSeriesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchSpansTimeSeries not implemented") @@ -153,6 +163,7 @@ func (UnimplementedSpansDataSourceServiceServer) SearchSpansGroupedValues(contex } func (UnimplementedSpansDataSourceServiceServer) mustEmbedUnimplementedSpansDataSourceServiceServer() { } +func (UnimplementedSpansDataSourceServiceServer) testEmbeddedByValue() {} // UnsafeSpansDataSourceServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SpansDataSourceServiceServer will @@ -162,6 +173,13 @@ type UnsafeSpansDataSourceServiceServer interface { } func RegisterSpansDataSourceServiceServer(s grpc.ServiceRegistrar, srv SpansDataSourceServiceServer) { + // If the following call pancis, it indicates UnimplementedSpansDataSourceServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&SpansDataSourceService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/team_settings_service.pb.go b/go/internal/coralogixapis/dashboards/v1/team_settings_service.pb.go index 82aa4759..825ca723 100644 --- a/go/internal/coralogixapis/dashboards/v1/team_settings_service.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/team_settings_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/team_settings_service.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/team_settings_service_grpc.pb.go b/go/internal/coralogixapis/dashboards/v1/team_settings_service_grpc.pb.go index 09b792c3..85376846 100644 --- a/go/internal/coralogixapis/dashboards/v1/team_settings_service_grpc.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/team_settings_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/services/team_settings_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TeamSettingsService_GetTeamSettings_FullMethodName = "/com.coralogixapis.dashboards.v1.services.TeamSettingsService/GetTeamSettings" @@ -38,8 +38,9 @@ func NewTeamSettingsServiceClient(cc grpc.ClientConnInterface) TeamSettingsServi } func (c *teamSettingsServiceClient) GetTeamSettings(ctx context.Context, in *GetTeamSettingsRequest, opts ...grpc.CallOption) (*GetTeamSettingsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTeamSettingsResponse) - err := c.cc.Invoke(ctx, TeamSettingsService_GetTeamSettings_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TeamSettingsService_GetTeamSettings_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +49,24 @@ func (c *teamSettingsServiceClient) GetTeamSettings(ctx context.Context, in *Get // TeamSettingsServiceServer is the server API for TeamSettingsService service. // All implementations must embed UnimplementedTeamSettingsServiceServer -// for forward compatibility +// for forward compatibility. type TeamSettingsServiceServer interface { GetTeamSettings(context.Context, *GetTeamSettingsRequest) (*GetTeamSettingsResponse, error) mustEmbedUnimplementedTeamSettingsServiceServer() } -// UnimplementedTeamSettingsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTeamSettingsServiceServer struct { -} +// UnimplementedTeamSettingsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTeamSettingsServiceServer struct{} func (UnimplementedTeamSettingsServiceServer) GetTeamSettings(context.Context, *GetTeamSettingsRequest) (*GetTeamSettingsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTeamSettings not implemented") } func (UnimplementedTeamSettingsServiceServer) mustEmbedUnimplementedTeamSettingsServiceServer() {} +func (UnimplementedTeamSettingsServiceServer) testEmbeddedByValue() {} // UnsafeTeamSettingsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TeamSettingsServiceServer will @@ -71,6 +76,13 @@ type UnsafeTeamSettingsServiceServer interface { } func RegisterTeamSettingsServiceServer(s grpc.ServiceRegistrar, srv TeamSettingsServiceServer) { + // If the following call pancis, it indicates UnimplementedTeamSettingsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TeamSettingsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/dashboards/v1/thresholds.pb.go b/go/internal/coralogixapis/dashboards/v1/thresholds.pb.go index 4fcbe4c8..dc0b5286 100644 --- a/go/internal/coralogixapis/dashboards/v1/thresholds.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/thresholds.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/thresholds.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/time_frame.pb.go b/go/internal/coralogixapis/dashboards/v1/time_frame.pb.go index 5e52af12..91d95a5b 100644 --- a/go/internal/coralogixapis/dashboards/v1/time_frame.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/time_frame.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/time_frame.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/time_series.pb.go b/go/internal/coralogixapis/dashboards/v1/time_series.pb.go index f6da4360..f87a2ade 100644 --- a/go/internal/coralogixapis/dashboards/v1/time_series.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/time_series.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/common/time_series.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/types.pb.go b/go/internal/coralogixapis/dashboards/v1/types.pb.go index 2cb01c8e..c2871a54 100644 --- a/go/internal/coralogixapis/dashboards/v1/types.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/types.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/types.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/units.pb.go b/go/internal/coralogixapis/dashboards/v1/units.pb.go index 4a01101b..014b8619 100644 --- a/go/internal/coralogixapis/dashboards/v1/units.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/units.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widgets/common/units.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/variable.pb.go b/go/internal/coralogixapis/dashboards/v1/variable.pb.go index 2e5e4c13..b1998e3f 100644 --- a/go/internal/coralogixapis/dashboards/v1/variable.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/variable.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/variable.proto package v1 diff --git a/go/internal/coralogixapis/dashboards/v1/widget.pb.go b/go/internal/coralogixapis/dashboards/v1/widget.pb.go index 63555a62..e8970b56 100644 --- a/go/internal/coralogixapis/dashboards/v1/widget.pb.go +++ b/go/internal/coralogixapis/dashboards/v1/widget.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dashboards/v1/ast/widget.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/aggregation_type.pb.go b/go/internal/coralogixapis/database_catalog/v1/aggregation_type.pb.go index d1de4ecb..e11e3798 100644 --- a/go/internal/coralogixapis/database_catalog/v1/aggregation_type.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/aggregation_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/aggregation_type.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/apdex_service.pb.go b/go/internal/coralogixapis/database_catalog/v1/apdex_service.pb.go index 42891dd7..e436eb81 100644 --- a/go/internal/coralogixapis/database_catalog/v1/apdex_service.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/apdex_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/apdex_service.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/apdex_service_grpc.pb.go b/go/internal/coralogixapis/database_catalog/v1/apdex_service_grpc.pb.go index 7fe06c17..33c6df25 100644 --- a/go/internal/coralogixapis/database_catalog/v1/apdex_service_grpc.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/apdex_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/apdex_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ApdexService_GetApdexThreshold_FullMethodName = "/com.coralogixapis.database_catalog.v1.ApdexService/GetApdexThreshold" @@ -42,8 +42,9 @@ func NewApdexServiceClient(cc grpc.ClientConnInterface) ApdexServiceClient { } func (c *apdexServiceClient) GetApdexThreshold(ctx context.Context, in *GetApdexThresholdRequest, opts ...grpc.CallOption) (*GetApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_GetApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_GetApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -51,8 +52,9 @@ func (c *apdexServiceClient) GetApdexThreshold(ctx context.Context, in *GetApdex } func (c *apdexServiceClient) ReplaceApdexThreshold(ctx context.Context, in *ReplaceApdexThresholdRequest, opts ...grpc.CallOption) (*ReplaceApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_ReplaceApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_ReplaceApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -60,8 +62,9 @@ func (c *apdexServiceClient) ReplaceApdexThreshold(ctx context.Context, in *Repl } func (c *apdexServiceClient) BatchExecuteApdexThreshold(ctx context.Context, in *BatchExecuteApdexThresholdRequest, opts ...grpc.CallOption) (*BatchExecuteApdexThresholdResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchExecuteApdexThresholdResponse) - err := c.cc.Invoke(ctx, ApdexService_BatchExecuteApdexThreshold_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ApdexService_BatchExecuteApdexThreshold_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,7 +73,7 @@ func (c *apdexServiceClient) BatchExecuteApdexThreshold(ctx context.Context, in // ApdexServiceServer is the server API for ApdexService service. // All implementations must embed UnimplementedApdexServiceServer -// for forward compatibility +// for forward compatibility. type ApdexServiceServer interface { GetApdexThreshold(context.Context, *GetApdexThresholdRequest) (*GetApdexThresholdResponse, error) ReplaceApdexThreshold(context.Context, *ReplaceApdexThresholdRequest) (*ReplaceApdexThresholdResponse, error) @@ -78,9 +81,12 @@ type ApdexServiceServer interface { mustEmbedUnimplementedApdexServiceServer() } -// UnimplementedApdexServiceServer must be embedded to have forward compatible implementations. -type UnimplementedApdexServiceServer struct { -} +// UnimplementedApdexServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedApdexServiceServer struct{} func (UnimplementedApdexServiceServer) GetApdexThreshold(context.Context, *GetApdexThresholdRequest) (*GetApdexThresholdResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetApdexThreshold not implemented") @@ -92,6 +98,7 @@ func (UnimplementedApdexServiceServer) BatchExecuteApdexThreshold(context.Contex return nil, status.Errorf(codes.Unimplemented, "method BatchExecuteApdexThreshold not implemented") } func (UnimplementedApdexServiceServer) mustEmbedUnimplementedApdexServiceServer() {} +func (UnimplementedApdexServiceServer) testEmbeddedByValue() {} // UnsafeApdexServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ApdexServiceServer will @@ -101,6 +108,13 @@ type UnsafeApdexServiceServer interface { } func RegisterApdexServiceServer(s grpc.ServiceRegistrar, srv ApdexServiceServer) { + // If the following call pancis, it indicates UnimplementedApdexServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ApdexService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/database_catalog/v1/blueprints.pb.go b/go/internal/coralogixapis/database_catalog/v1/blueprints.pb.go index cd2c1a2f..cc689078 100644 --- a/go/internal/coralogixapis/database_catalog/v1/blueprints.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/blueprints.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/blueprints.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/blueprints_service.pb.go b/go/internal/coralogixapis/database_catalog/v1/blueprints_service.pb.go index e38ac82e..913101df 100644 --- a/go/internal/coralogixapis/database_catalog/v1/blueprints_service.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/blueprints_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/blueprints_service.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/blueprints_service_grpc.pb.go b/go/internal/coralogixapis/database_catalog/v1/blueprints_service_grpc.pb.go index 05ceb374..59374890 100644 --- a/go/internal/coralogixapis/database_catalog/v1/blueprints_service_grpc.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/blueprints_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/blueprints_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( BlueprintsService_GetBlueprintsColumnsStream_FullMethodName = "/com.coralogixapis.database_catalog.v1.BlueprintsService/GetBlueprintsColumnsStream" @@ -28,9 +28,9 @@ const ( // // 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 BlueprintsServiceClient interface { - GetBlueprintsColumnsStream(ctx context.Context, in *GetBlueprintsColumnsStreamRequest, opts ...grpc.CallOption) (BlueprintsService_GetBlueprintsColumnsStreamClient, error) + GetBlueprintsColumnsStream(ctx context.Context, in *GetBlueprintsColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetBlueprintsColumnsStreamResponse], error) GetBlueprintStats(ctx context.Context, in *GetBlueprintStatsRequest, opts ...grpc.CallOption) (*GetBlueprintStatsResponse, error) - GetBlueprintGraphsStream(ctx context.Context, in *GetBlueprintGraphsStreamRequest, opts ...grpc.CallOption) (BlueprintsService_GetBlueprintGraphsStreamClient, error) + GetBlueprintGraphsStream(ctx context.Context, in *GetBlueprintGraphsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetBlueprintGraphsStreamResponse], error) } type blueprintsServiceClient struct { @@ -41,12 +41,13 @@ func NewBlueprintsServiceClient(cc grpc.ClientConnInterface) BlueprintsServiceCl return &blueprintsServiceClient{cc} } -func (c *blueprintsServiceClient) GetBlueprintsColumnsStream(ctx context.Context, in *GetBlueprintsColumnsStreamRequest, opts ...grpc.CallOption) (BlueprintsService_GetBlueprintsColumnsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &BlueprintsService_ServiceDesc.Streams[0], BlueprintsService_GetBlueprintsColumnsStream_FullMethodName, opts...) +func (c *blueprintsServiceClient) GetBlueprintsColumnsStream(ctx context.Context, in *GetBlueprintsColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetBlueprintsColumnsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &BlueprintsService_ServiceDesc.Streams[0], BlueprintsService_GetBlueprintsColumnsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &blueprintsServiceGetBlueprintsColumnsStreamClient{stream} + x := &grpc.GenericClientStream[GetBlueprintsColumnsStreamRequest, GetBlueprintsColumnsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -56,38 +57,26 @@ func (c *blueprintsServiceClient) GetBlueprintsColumnsStream(ctx context.Context return x, nil } -type BlueprintsService_GetBlueprintsColumnsStreamClient interface { - Recv() (*GetBlueprintsColumnsStreamResponse, error) - grpc.ClientStream -} - -type blueprintsServiceGetBlueprintsColumnsStreamClient struct { - grpc.ClientStream -} - -func (x *blueprintsServiceGetBlueprintsColumnsStreamClient) Recv() (*GetBlueprintsColumnsStreamResponse, error) { - m := new(GetBlueprintsColumnsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlueprintsService_GetBlueprintsColumnsStreamClient = grpc.ServerStreamingClient[GetBlueprintsColumnsStreamResponse] func (c *blueprintsServiceClient) GetBlueprintStats(ctx context.Context, in *GetBlueprintStatsRequest, opts ...grpc.CallOption) (*GetBlueprintStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetBlueprintStatsResponse) - err := c.cc.Invoke(ctx, BlueprintsService_GetBlueprintStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, BlueprintsService_GetBlueprintStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *blueprintsServiceClient) GetBlueprintGraphsStream(ctx context.Context, in *GetBlueprintGraphsStreamRequest, opts ...grpc.CallOption) (BlueprintsService_GetBlueprintGraphsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &BlueprintsService_ServiceDesc.Streams[1], BlueprintsService_GetBlueprintGraphsStream_FullMethodName, opts...) +func (c *blueprintsServiceClient) GetBlueprintGraphsStream(ctx context.Context, in *GetBlueprintGraphsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetBlueprintGraphsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &BlueprintsService_ServiceDesc.Streams[1], BlueprintsService_GetBlueprintGraphsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &blueprintsServiceGetBlueprintGraphsStreamClient{stream} + x := &grpc.GenericClientStream[GetBlueprintGraphsStreamRequest, GetBlueprintGraphsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -97,47 +86,37 @@ func (c *blueprintsServiceClient) GetBlueprintGraphsStream(ctx context.Context, return x, nil } -type BlueprintsService_GetBlueprintGraphsStreamClient interface { - Recv() (*GetBlueprintGraphsStreamResponse, error) - grpc.ClientStream -} - -type blueprintsServiceGetBlueprintGraphsStreamClient struct { - grpc.ClientStream -} - -func (x *blueprintsServiceGetBlueprintGraphsStreamClient) Recv() (*GetBlueprintGraphsStreamResponse, error) { - m := new(GetBlueprintGraphsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlueprintsService_GetBlueprintGraphsStreamClient = grpc.ServerStreamingClient[GetBlueprintGraphsStreamResponse] // BlueprintsServiceServer is the server API for BlueprintsService service. // All implementations must embed UnimplementedBlueprintsServiceServer -// for forward compatibility +// for forward compatibility. type BlueprintsServiceServer interface { - GetBlueprintsColumnsStream(*GetBlueprintsColumnsStreamRequest, BlueprintsService_GetBlueprintsColumnsStreamServer) error + GetBlueprintsColumnsStream(*GetBlueprintsColumnsStreamRequest, grpc.ServerStreamingServer[GetBlueprintsColumnsStreamResponse]) error GetBlueprintStats(context.Context, *GetBlueprintStatsRequest) (*GetBlueprintStatsResponse, error) - GetBlueprintGraphsStream(*GetBlueprintGraphsStreamRequest, BlueprintsService_GetBlueprintGraphsStreamServer) error + GetBlueprintGraphsStream(*GetBlueprintGraphsStreamRequest, grpc.ServerStreamingServer[GetBlueprintGraphsStreamResponse]) error mustEmbedUnimplementedBlueprintsServiceServer() } -// UnimplementedBlueprintsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedBlueprintsServiceServer struct { -} +// UnimplementedBlueprintsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedBlueprintsServiceServer struct{} -func (UnimplementedBlueprintsServiceServer) GetBlueprintsColumnsStream(*GetBlueprintsColumnsStreamRequest, BlueprintsService_GetBlueprintsColumnsStreamServer) error { +func (UnimplementedBlueprintsServiceServer) GetBlueprintsColumnsStream(*GetBlueprintsColumnsStreamRequest, grpc.ServerStreamingServer[GetBlueprintsColumnsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetBlueprintsColumnsStream not implemented") } func (UnimplementedBlueprintsServiceServer) GetBlueprintStats(context.Context, *GetBlueprintStatsRequest) (*GetBlueprintStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetBlueprintStats not implemented") } -func (UnimplementedBlueprintsServiceServer) GetBlueprintGraphsStream(*GetBlueprintGraphsStreamRequest, BlueprintsService_GetBlueprintGraphsStreamServer) error { +func (UnimplementedBlueprintsServiceServer) GetBlueprintGraphsStream(*GetBlueprintGraphsStreamRequest, grpc.ServerStreamingServer[GetBlueprintGraphsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetBlueprintGraphsStream not implemented") } func (UnimplementedBlueprintsServiceServer) mustEmbedUnimplementedBlueprintsServiceServer() {} +func (UnimplementedBlueprintsServiceServer) testEmbeddedByValue() {} // UnsafeBlueprintsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to BlueprintsServiceServer will @@ -147,6 +126,13 @@ type UnsafeBlueprintsServiceServer interface { } func RegisterBlueprintsServiceServer(s grpc.ServiceRegistrar, srv BlueprintsServiceServer) { + // If the following call pancis, it indicates UnimplementedBlueprintsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&BlueprintsService_ServiceDesc, srv) } @@ -155,21 +141,11 @@ func _BlueprintsService_GetBlueprintsColumnsStream_Handler(srv interface{}, stre if err := stream.RecvMsg(m); err != nil { return err } - return srv.(BlueprintsServiceServer).GetBlueprintsColumnsStream(m, &blueprintsServiceGetBlueprintsColumnsStreamServer{stream}) + return srv.(BlueprintsServiceServer).GetBlueprintsColumnsStream(m, &grpc.GenericServerStream[GetBlueprintsColumnsStreamRequest, GetBlueprintsColumnsStreamResponse]{ServerStream: stream}) } -type BlueprintsService_GetBlueprintsColumnsStreamServer interface { - Send(*GetBlueprintsColumnsStreamResponse) error - grpc.ServerStream -} - -type blueprintsServiceGetBlueprintsColumnsStreamServer struct { - grpc.ServerStream -} - -func (x *blueprintsServiceGetBlueprintsColumnsStreamServer) Send(m *GetBlueprintsColumnsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlueprintsService_GetBlueprintsColumnsStreamServer = grpc.ServerStreamingServer[GetBlueprintsColumnsStreamResponse] func _BlueprintsService_GetBlueprintStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBlueprintStatsRequest) @@ -194,21 +170,11 @@ func _BlueprintsService_GetBlueprintGraphsStream_Handler(srv interface{}, stream if err := stream.RecvMsg(m); err != nil { return err } - return srv.(BlueprintsServiceServer).GetBlueprintGraphsStream(m, &blueprintsServiceGetBlueprintGraphsStreamServer{stream}) -} - -type BlueprintsService_GetBlueprintGraphsStreamServer interface { - Send(*GetBlueprintGraphsStreamResponse) error - grpc.ServerStream + return srv.(BlueprintsServiceServer).GetBlueprintGraphsStream(m, &grpc.GenericServerStream[GetBlueprintGraphsStreamRequest, GetBlueprintGraphsStreamResponse]{ServerStream: stream}) } -type blueprintsServiceGetBlueprintGraphsStreamServer struct { - grpc.ServerStream -} - -func (x *blueprintsServiceGetBlueprintGraphsStreamServer) Send(m *GetBlueprintGraphsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type BlueprintsService_GetBlueprintGraphsStreamServer = grpc.ServerStreamingServer[GetBlueprintGraphsStreamResponse] // BlueprintsService_ServiceDesc is the grpc.ServiceDesc for BlueprintsService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogixapis/database_catalog/v1/database.pb.go b/go/internal/coralogixapis/database_catalog/v1/database.pb.go index 25dc8a28..110d02dc 100644 --- a/go/internal/coralogixapis/database_catalog/v1/database.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/database.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/database.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice.pb.go b/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice.pb.go index a9de5fc8..72f3c778 100644 --- a/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/database_catalog_sevice.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice_grpc.pb.go b/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice_grpc.pb.go index 7efbe381..159b9c70 100644 --- a/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice_grpc.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/database_catalog_sevice_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/database_catalog_sevice.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DatabaseCatalogService_GetDatabasesColumnsStream_FullMethodName = "/com.coralogixapis.database_catalog.v1.DatabaseCatalogService/GetDatabasesColumnsStream" @@ -35,10 +35,10 @@ const ( // // 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 DatabaseCatalogServiceClient interface { - GetDatabasesColumnsStream(ctx context.Context, in *GetDatabasesColumnsStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabasesColumnsStreamClient, error) - GetDatabaseRequestLatencyGraphStream(ctx context.Context, in *GetDatabaseRequestLatencyGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamClient, error) - GetDatabaseErrorsGraphStream(ctx context.Context, in *GetDatabaseErrorsGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseErrorsGraphStreamClient, error) - GetDatabaseStatementsGraphStream(ctx context.Context, in *GetDatabaseStatementsGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseStatementsGraphStreamClient, error) + GetDatabasesColumnsStream(ctx context.Context, in *GetDatabasesColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabasesColumnsStreamResponse], error) + GetDatabaseRequestLatencyGraphStream(ctx context.Context, in *GetDatabaseRequestLatencyGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseRequestLatencyGraphStreamResponse], error) + GetDatabaseErrorsGraphStream(ctx context.Context, in *GetDatabaseErrorsGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseErrorsGraphStreamResponse], error) + GetDatabaseStatementsGraphStream(ctx context.Context, in *GetDatabaseStatementsGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseStatementsGraphStreamResponse], error) UpdateDatabaseCatalogFilters(ctx context.Context, in *UpdateDatabaseCatalogFiltersRequest, opts ...grpc.CallOption) (*UpdateDatabaseCatalogFiltersResponse, error) GetDatabaseCatalogFilters(ctx context.Context, in *GetDatabaseCatalogFiltersRequest, opts ...grpc.CallOption) (*GetDatabaseCatalogFiltersResponse, error) ListCallingServices(ctx context.Context, in *ListCallingServicesRequest, opts ...grpc.CallOption) (*ListCallingServicesResponse, error) @@ -55,12 +55,13 @@ func NewDatabaseCatalogServiceClient(cc grpc.ClientConnInterface) DatabaseCatalo return &databaseCatalogServiceClient{cc} } -func (c *databaseCatalogServiceClient) GetDatabasesColumnsStream(ctx context.Context, in *GetDatabasesColumnsStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabasesColumnsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[0], DatabaseCatalogService_GetDatabasesColumnsStream_FullMethodName, opts...) +func (c *databaseCatalogServiceClient) GetDatabasesColumnsStream(ctx context.Context, in *GetDatabasesColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabasesColumnsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[0], DatabaseCatalogService_GetDatabasesColumnsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseCatalogServiceGetDatabasesColumnsStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabasesColumnsStreamRequest, GetDatabasesColumnsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -70,29 +71,16 @@ func (c *databaseCatalogServiceClient) GetDatabasesColumnsStream(ctx context.Con return x, nil } -type DatabaseCatalogService_GetDatabasesColumnsStreamClient interface { - Recv() (*GetDatabasesColumnsStreamResponse, error) - grpc.ClientStream -} - -type databaseCatalogServiceGetDatabasesColumnsStreamClient struct { - grpc.ClientStream -} - -func (x *databaseCatalogServiceGetDatabasesColumnsStreamClient) Recv() (*GetDatabasesColumnsStreamResponse, error) { - m := new(GetDatabasesColumnsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabasesColumnsStreamClient = grpc.ServerStreamingClient[GetDatabasesColumnsStreamResponse] -func (c *databaseCatalogServiceClient) GetDatabaseRequestLatencyGraphStream(ctx context.Context, in *GetDatabaseRequestLatencyGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[1], DatabaseCatalogService_GetDatabaseRequestLatencyGraphStream_FullMethodName, opts...) +func (c *databaseCatalogServiceClient) GetDatabaseRequestLatencyGraphStream(ctx context.Context, in *GetDatabaseRequestLatencyGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseRequestLatencyGraphStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[1], DatabaseCatalogService_GetDatabaseRequestLatencyGraphStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseRequestLatencyGraphStreamRequest, GetDatabaseRequestLatencyGraphStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -102,29 +90,16 @@ func (c *databaseCatalogServiceClient) GetDatabaseRequestLatencyGraphStream(ctx return x, nil } -type DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamClient interface { - Recv() (*GetDatabaseRequestLatencyGraphStreamResponse, error) - grpc.ClientStream -} - -type databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamClient struct { - grpc.ClientStream -} - -func (x *databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamClient) Recv() (*GetDatabaseRequestLatencyGraphStreamResponse, error) { - m := new(GetDatabaseRequestLatencyGraphStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamClient = grpc.ServerStreamingClient[GetDatabaseRequestLatencyGraphStreamResponse] -func (c *databaseCatalogServiceClient) GetDatabaseErrorsGraphStream(ctx context.Context, in *GetDatabaseErrorsGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseErrorsGraphStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[2], DatabaseCatalogService_GetDatabaseErrorsGraphStream_FullMethodName, opts...) +func (c *databaseCatalogServiceClient) GetDatabaseErrorsGraphStream(ctx context.Context, in *GetDatabaseErrorsGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseErrorsGraphStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[2], DatabaseCatalogService_GetDatabaseErrorsGraphStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseCatalogServiceGetDatabaseErrorsGraphStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseErrorsGraphStreamRequest, GetDatabaseErrorsGraphStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -134,29 +109,16 @@ func (c *databaseCatalogServiceClient) GetDatabaseErrorsGraphStream(ctx context. return x, nil } -type DatabaseCatalogService_GetDatabaseErrorsGraphStreamClient interface { - Recv() (*GetDatabaseErrorsGraphStreamResponse, error) - grpc.ClientStream -} - -type databaseCatalogServiceGetDatabaseErrorsGraphStreamClient struct { - grpc.ClientStream -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseErrorsGraphStreamClient = grpc.ServerStreamingClient[GetDatabaseErrorsGraphStreamResponse] -func (x *databaseCatalogServiceGetDatabaseErrorsGraphStreamClient) Recv() (*GetDatabaseErrorsGraphStreamResponse, error) { - m := new(GetDatabaseErrorsGraphStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -func (c *databaseCatalogServiceClient) GetDatabaseStatementsGraphStream(ctx context.Context, in *GetDatabaseStatementsGraphStreamRequest, opts ...grpc.CallOption) (DatabaseCatalogService_GetDatabaseStatementsGraphStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[3], DatabaseCatalogService_GetDatabaseStatementsGraphStream_FullMethodName, opts...) +func (c *databaseCatalogServiceClient) GetDatabaseStatementsGraphStream(ctx context.Context, in *GetDatabaseStatementsGraphStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseStatementsGraphStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseCatalogService_ServiceDesc.Streams[3], DatabaseCatalogService_GetDatabaseStatementsGraphStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseCatalogServiceGetDatabaseStatementsGraphStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseStatementsGraphStreamRequest, GetDatabaseStatementsGraphStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -166,26 +128,13 @@ func (c *databaseCatalogServiceClient) GetDatabaseStatementsGraphStream(ctx cont return x, nil } -type DatabaseCatalogService_GetDatabaseStatementsGraphStreamClient interface { - Recv() (*GetDatabaseStatementsGraphStreamResponse, error) - grpc.ClientStream -} - -type databaseCatalogServiceGetDatabaseStatementsGraphStreamClient struct { - grpc.ClientStream -} - -func (x *databaseCatalogServiceGetDatabaseStatementsGraphStreamClient) Recv() (*GetDatabaseStatementsGraphStreamResponse, error) { - m := new(GetDatabaseStatementsGraphStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseStatementsGraphStreamClient = grpc.ServerStreamingClient[GetDatabaseStatementsGraphStreamResponse] func (c *databaseCatalogServiceClient) UpdateDatabaseCatalogFilters(ctx context.Context, in *UpdateDatabaseCatalogFiltersRequest, opts ...grpc.CallOption) (*UpdateDatabaseCatalogFiltersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateDatabaseCatalogFiltersResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_UpdateDatabaseCatalogFilters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_UpdateDatabaseCatalogFilters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -193,8 +142,9 @@ func (c *databaseCatalogServiceClient) UpdateDatabaseCatalogFilters(ctx context. } func (c *databaseCatalogServiceClient) GetDatabaseCatalogFilters(ctx context.Context, in *GetDatabaseCatalogFiltersRequest, opts ...grpc.CallOption) (*GetDatabaseCatalogFiltersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatabaseCatalogFiltersResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_GetDatabaseCatalogFilters_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_GetDatabaseCatalogFilters_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -202,8 +152,9 @@ func (c *databaseCatalogServiceClient) GetDatabaseCatalogFilters(ctx context.Con } func (c *databaseCatalogServiceClient) ListCallingServices(ctx context.Context, in *ListCallingServicesRequest, opts ...grpc.CallOption) (*ListCallingServicesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListCallingServicesResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_ListCallingServices_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_ListCallingServices_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -211,8 +162,9 @@ func (c *databaseCatalogServiceClient) ListCallingServices(ctx context.Context, } func (c *databaseCatalogServiceClient) ListTables(ctx context.Context, in *ListTablesRequest, opts ...grpc.CallOption) (*ListTablesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListTablesResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_ListTables_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_ListTables_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -220,8 +172,9 @@ func (c *databaseCatalogServiceClient) ListTables(ctx context.Context, in *ListT } func (c *databaseCatalogServiceClient) GetAffectedAlerts(ctx context.Context, in *GetAffectedAlertsRequest, opts ...grpc.CallOption) (*GetAffectedAlertsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAffectedAlertsResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_GetAffectedAlerts_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_GetAffectedAlerts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -229,8 +182,9 @@ func (c *databaseCatalogServiceClient) GetAffectedAlerts(ctx context.Context, in } func (c *databaseCatalogServiceClient) GetDbHierarchyInfoFromTags(ctx context.Context, in *GetDbHierarchyInfoFromTagsRequest, opts ...grpc.CallOption) (*GetDbHierarchyInfoFromTagsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDbHierarchyInfoFromTagsResponse) - err := c.cc.Invoke(ctx, DatabaseCatalogService_GetDbHierarchyInfoFromTags_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseCatalogService_GetDbHierarchyInfoFromTags_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -239,12 +193,12 @@ func (c *databaseCatalogServiceClient) GetDbHierarchyInfoFromTags(ctx context.Co // DatabaseCatalogServiceServer is the server API for DatabaseCatalogService service. // All implementations must embed UnimplementedDatabaseCatalogServiceServer -// for forward compatibility +// for forward compatibility. type DatabaseCatalogServiceServer interface { - GetDatabasesColumnsStream(*GetDatabasesColumnsStreamRequest, DatabaseCatalogService_GetDatabasesColumnsStreamServer) error - GetDatabaseRequestLatencyGraphStream(*GetDatabaseRequestLatencyGraphStreamRequest, DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamServer) error - GetDatabaseErrorsGraphStream(*GetDatabaseErrorsGraphStreamRequest, DatabaseCatalogService_GetDatabaseErrorsGraphStreamServer) error - GetDatabaseStatementsGraphStream(*GetDatabaseStatementsGraphStreamRequest, DatabaseCatalogService_GetDatabaseStatementsGraphStreamServer) error + GetDatabasesColumnsStream(*GetDatabasesColumnsStreamRequest, grpc.ServerStreamingServer[GetDatabasesColumnsStreamResponse]) error + GetDatabaseRequestLatencyGraphStream(*GetDatabaseRequestLatencyGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseRequestLatencyGraphStreamResponse]) error + GetDatabaseErrorsGraphStream(*GetDatabaseErrorsGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseErrorsGraphStreamResponse]) error + GetDatabaseStatementsGraphStream(*GetDatabaseStatementsGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseStatementsGraphStreamResponse]) error UpdateDatabaseCatalogFilters(context.Context, *UpdateDatabaseCatalogFiltersRequest) (*UpdateDatabaseCatalogFiltersResponse, error) GetDatabaseCatalogFilters(context.Context, *GetDatabaseCatalogFiltersRequest) (*GetDatabaseCatalogFiltersResponse, error) ListCallingServices(context.Context, *ListCallingServicesRequest) (*ListCallingServicesResponse, error) @@ -254,20 +208,23 @@ type DatabaseCatalogServiceServer interface { mustEmbedUnimplementedDatabaseCatalogServiceServer() } -// UnimplementedDatabaseCatalogServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDatabaseCatalogServiceServer struct { -} +// UnimplementedDatabaseCatalogServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatabaseCatalogServiceServer struct{} -func (UnimplementedDatabaseCatalogServiceServer) GetDatabasesColumnsStream(*GetDatabasesColumnsStreamRequest, DatabaseCatalogService_GetDatabasesColumnsStreamServer) error { +func (UnimplementedDatabaseCatalogServiceServer) GetDatabasesColumnsStream(*GetDatabasesColumnsStreamRequest, grpc.ServerStreamingServer[GetDatabasesColumnsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabasesColumnsStream not implemented") } -func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseRequestLatencyGraphStream(*GetDatabaseRequestLatencyGraphStreamRequest, DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamServer) error { +func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseRequestLatencyGraphStream(*GetDatabaseRequestLatencyGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseRequestLatencyGraphStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseRequestLatencyGraphStream not implemented") } -func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseErrorsGraphStream(*GetDatabaseErrorsGraphStreamRequest, DatabaseCatalogService_GetDatabaseErrorsGraphStreamServer) error { +func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseErrorsGraphStream(*GetDatabaseErrorsGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseErrorsGraphStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseErrorsGraphStream not implemented") } -func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseStatementsGraphStream(*GetDatabaseStatementsGraphStreamRequest, DatabaseCatalogService_GetDatabaseStatementsGraphStreamServer) error { +func (UnimplementedDatabaseCatalogServiceServer) GetDatabaseStatementsGraphStream(*GetDatabaseStatementsGraphStreamRequest, grpc.ServerStreamingServer[GetDatabaseStatementsGraphStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseStatementsGraphStream not implemented") } func (UnimplementedDatabaseCatalogServiceServer) UpdateDatabaseCatalogFilters(context.Context, *UpdateDatabaseCatalogFiltersRequest) (*UpdateDatabaseCatalogFiltersResponse, error) { @@ -290,6 +247,7 @@ func (UnimplementedDatabaseCatalogServiceServer) GetDbHierarchyInfoFromTags(cont } func (UnimplementedDatabaseCatalogServiceServer) mustEmbedUnimplementedDatabaseCatalogServiceServer() { } +func (UnimplementedDatabaseCatalogServiceServer) testEmbeddedByValue() {} // UnsafeDatabaseCatalogServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatabaseCatalogServiceServer will @@ -299,6 +257,13 @@ type UnsafeDatabaseCatalogServiceServer interface { } func RegisterDatabaseCatalogServiceServer(s grpc.ServiceRegistrar, srv DatabaseCatalogServiceServer) { + // If the following call pancis, it indicates UnimplementedDatabaseCatalogServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DatabaseCatalogService_ServiceDesc, srv) } @@ -307,84 +272,44 @@ func _DatabaseCatalogService_GetDatabasesColumnsStream_Handler(srv interface{}, if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseCatalogServiceServer).GetDatabasesColumnsStream(m, &databaseCatalogServiceGetDatabasesColumnsStreamServer{stream}) + return srv.(DatabaseCatalogServiceServer).GetDatabasesColumnsStream(m, &grpc.GenericServerStream[GetDatabasesColumnsStreamRequest, GetDatabasesColumnsStreamResponse]{ServerStream: stream}) } -type DatabaseCatalogService_GetDatabasesColumnsStreamServer interface { - Send(*GetDatabasesColumnsStreamResponse) error - grpc.ServerStream -} - -type databaseCatalogServiceGetDatabasesColumnsStreamServer struct { - grpc.ServerStream -} - -func (x *databaseCatalogServiceGetDatabasesColumnsStreamServer) Send(m *GetDatabasesColumnsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabasesColumnsStreamServer = grpc.ServerStreamingServer[GetDatabasesColumnsStreamResponse] func _DatabaseCatalogService_GetDatabaseRequestLatencyGraphStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetDatabaseRequestLatencyGraphStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseCatalogServiceServer).GetDatabaseRequestLatencyGraphStream(m, &databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamServer{stream}) + return srv.(DatabaseCatalogServiceServer).GetDatabaseRequestLatencyGraphStream(m, &grpc.GenericServerStream[GetDatabaseRequestLatencyGraphStreamRequest, GetDatabaseRequestLatencyGraphStreamResponse]{ServerStream: stream}) } -type DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamServer interface { - Send(*GetDatabaseRequestLatencyGraphStreamResponse) error - grpc.ServerStream -} - -type databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamServer struct { - grpc.ServerStream -} - -func (x *databaseCatalogServiceGetDatabaseRequestLatencyGraphStreamServer) Send(m *GetDatabaseRequestLatencyGraphStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseRequestLatencyGraphStreamServer = grpc.ServerStreamingServer[GetDatabaseRequestLatencyGraphStreamResponse] func _DatabaseCatalogService_GetDatabaseErrorsGraphStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetDatabaseErrorsGraphStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseCatalogServiceServer).GetDatabaseErrorsGraphStream(m, &databaseCatalogServiceGetDatabaseErrorsGraphStreamServer{stream}) -} - -type DatabaseCatalogService_GetDatabaseErrorsGraphStreamServer interface { - Send(*GetDatabaseErrorsGraphStreamResponse) error - grpc.ServerStream -} - -type databaseCatalogServiceGetDatabaseErrorsGraphStreamServer struct { - grpc.ServerStream + return srv.(DatabaseCatalogServiceServer).GetDatabaseErrorsGraphStream(m, &grpc.GenericServerStream[GetDatabaseErrorsGraphStreamRequest, GetDatabaseErrorsGraphStreamResponse]{ServerStream: stream}) } -func (x *databaseCatalogServiceGetDatabaseErrorsGraphStreamServer) Send(m *GetDatabaseErrorsGraphStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseErrorsGraphStreamServer = grpc.ServerStreamingServer[GetDatabaseErrorsGraphStreamResponse] func _DatabaseCatalogService_GetDatabaseStatementsGraphStream_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(GetDatabaseStatementsGraphStreamRequest) if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseCatalogServiceServer).GetDatabaseStatementsGraphStream(m, &databaseCatalogServiceGetDatabaseStatementsGraphStreamServer{stream}) -} - -type DatabaseCatalogService_GetDatabaseStatementsGraphStreamServer interface { - Send(*GetDatabaseStatementsGraphStreamResponse) error - grpc.ServerStream + return srv.(DatabaseCatalogServiceServer).GetDatabaseStatementsGraphStream(m, &grpc.GenericServerStream[GetDatabaseStatementsGraphStreamRequest, GetDatabaseStatementsGraphStreamResponse]{ServerStream: stream}) } -type databaseCatalogServiceGetDatabaseStatementsGraphStreamServer struct { - grpc.ServerStream -} - -func (x *databaseCatalogServiceGetDatabaseStatementsGraphStreamServer) Send(m *GetDatabaseStatementsGraphStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseCatalogService_GetDatabaseStatementsGraphStreamServer = grpc.ServerStreamingServer[GetDatabaseStatementsGraphStreamResponse] func _DatabaseCatalogService_UpdateDatabaseCatalogFilters_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UpdateDatabaseCatalogFiltersRequest) diff --git a/go/internal/coralogixapis/database_catalog/v1/database_operation.pb.go b/go/internal/coralogixapis/database_catalog/v1/database_operation.pb.go index 8619a71d..f9c0bded 100644 --- a/go/internal/coralogixapis/database_catalog/v1/database_operation.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/database_operation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/database_operation.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/error_graph_type.pb.go b/go/internal/coralogixapis/database_catalog/v1/error_graph_type.pb.go index 369600b6..f69e0cb1 100644 --- a/go/internal/coralogixapis/database_catalog/v1/error_graph_type.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/error_graph_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/error_graph_type.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/operations_service.pb.go b/go/internal/coralogixapis/database_catalog/v1/operations_service.pb.go index bd1f3f23..35fc2167 100644 --- a/go/internal/coralogixapis/database_catalog/v1/operations_service.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/operations_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/operations_service.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/operations_service_grpc.pb.go b/go/internal/coralogixapis/database_catalog/v1/operations_service_grpc.pb.go index 68094142..3c2e6512 100644 --- a/go/internal/coralogixapis/database_catalog/v1/operations_service_grpc.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/operations_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/operations_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DatabaseOperationsService_GetDatabaseOperationsColumnsStream_FullMethodName = "/com.coralogixapis.database_catalog.v1.DatabaseOperationsService/GetDatabaseOperationsColumnsStream" @@ -33,14 +33,14 @@ const ( // // 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 DatabaseOperationsServiceClient interface { - GetDatabaseOperationsColumnsStream(ctx context.Context, in *GetDatabaseOperationsColumnsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsColumnsStreamClient, error) + GetDatabaseOperationsColumnsStream(ctx context.Context, in *GetDatabaseOperationsColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsColumnsStreamResponse], error) GetDatabaseOperationsRequests(ctx context.Context, in *GetDatabaseOperationsRequestsRequest, opts ...grpc.CallOption) (*GetDatabaseOperationsRequestsResponse, error) - GetDatabaseOperationsErrorsStream(ctx context.Context, in *GetDatabaseOperationsErrorsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsErrorsStreamClient, error) + GetDatabaseOperationsErrorsStream(ctx context.Context, in *GetDatabaseOperationsErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsErrorsStreamResponse], error) GetDatabaseOperationsTimeConsuming(ctx context.Context, in *GetDatabaseOperationsTimeConsumingRequest, opts ...grpc.CallOption) (*GetDatabaseOperationsTimeConsumingResponse, error) - GetDatabaseOperationsResponseTimeStream(ctx context.Context, in *GetDatabaseOperationsResponseTimeStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamClient, error) + GetDatabaseOperationsResponseTimeStream(ctx context.Context, in *GetDatabaseOperationsResponseTimeStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsResponseTimeStreamResponse], error) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) GetOperationStats(ctx context.Context, in *GetOperationStatsRequest, opts ...grpc.CallOption) (*GetOperationStatsResponse, error) - GetDatabaseOperationGraphsStream(ctx context.Context, in *GetDatabaseOperationGraphsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationGraphsStreamClient, error) + GetDatabaseOperationGraphsStream(ctx context.Context, in *GetDatabaseOperationGraphsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationGraphsStreamResponse], error) } type databaseOperationsServiceClient struct { @@ -51,12 +51,13 @@ func NewDatabaseOperationsServiceClient(cc grpc.ClientConnInterface) DatabaseOpe return &databaseOperationsServiceClient{cc} } -func (c *databaseOperationsServiceClient) GetDatabaseOperationsColumnsStream(ctx context.Context, in *GetDatabaseOperationsColumnsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsColumnsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[0], DatabaseOperationsService_GetDatabaseOperationsColumnsStream_FullMethodName, opts...) +func (c *databaseOperationsServiceClient) GetDatabaseOperationsColumnsStream(ctx context.Context, in *GetDatabaseOperationsColumnsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsColumnsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[0], DatabaseOperationsService_GetDatabaseOperationsColumnsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseOperationsServiceGetDatabaseOperationsColumnsStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseOperationsColumnsStreamRequest, GetDatabaseOperationsColumnsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -66,38 +67,26 @@ func (c *databaseOperationsServiceClient) GetDatabaseOperationsColumnsStream(ctx return x, nil } -type DatabaseOperationsService_GetDatabaseOperationsColumnsStreamClient interface { - Recv() (*GetDatabaseOperationsColumnsStreamResponse, error) - grpc.ClientStream -} - -type databaseOperationsServiceGetDatabaseOperationsColumnsStreamClient struct { - grpc.ClientStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationsColumnsStreamClient) Recv() (*GetDatabaseOperationsColumnsStreamResponse, error) { - m := new(GetDatabaseOperationsColumnsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsColumnsStreamClient = grpc.ServerStreamingClient[GetDatabaseOperationsColumnsStreamResponse] func (c *databaseOperationsServiceClient) GetDatabaseOperationsRequests(ctx context.Context, in *GetDatabaseOperationsRequestsRequest, opts ...grpc.CallOption) (*GetDatabaseOperationsRequestsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatabaseOperationsRequestsResponse) - err := c.cc.Invoke(ctx, DatabaseOperationsService_GetDatabaseOperationsRequests_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseOperationsService_GetDatabaseOperationsRequests_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *databaseOperationsServiceClient) GetDatabaseOperationsErrorsStream(ctx context.Context, in *GetDatabaseOperationsErrorsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsErrorsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[1], DatabaseOperationsService_GetDatabaseOperationsErrorsStream_FullMethodName, opts...) +func (c *databaseOperationsServiceClient) GetDatabaseOperationsErrorsStream(ctx context.Context, in *GetDatabaseOperationsErrorsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsErrorsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[1], DatabaseOperationsService_GetDatabaseOperationsErrorsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseOperationsServiceGetDatabaseOperationsErrorsStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseOperationsErrorsStreamRequest, GetDatabaseOperationsErrorsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -107,38 +96,26 @@ func (c *databaseOperationsServiceClient) GetDatabaseOperationsErrorsStream(ctx return x, nil } -type DatabaseOperationsService_GetDatabaseOperationsErrorsStreamClient interface { - Recv() (*GetDatabaseOperationsErrorsStreamResponse, error) - grpc.ClientStream -} - -type databaseOperationsServiceGetDatabaseOperationsErrorsStreamClient struct { - grpc.ClientStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationsErrorsStreamClient) Recv() (*GetDatabaseOperationsErrorsStreamResponse, error) { - m := new(GetDatabaseOperationsErrorsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsErrorsStreamClient = grpc.ServerStreamingClient[GetDatabaseOperationsErrorsStreamResponse] func (c *databaseOperationsServiceClient) GetDatabaseOperationsTimeConsuming(ctx context.Context, in *GetDatabaseOperationsTimeConsumingRequest, opts ...grpc.CallOption) (*GetDatabaseOperationsTimeConsumingResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDatabaseOperationsTimeConsumingResponse) - err := c.cc.Invoke(ctx, DatabaseOperationsService_GetDatabaseOperationsTimeConsuming_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseOperationsService_GetDatabaseOperationsTimeConsuming_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *databaseOperationsServiceClient) GetDatabaseOperationsResponseTimeStream(ctx context.Context, in *GetDatabaseOperationsResponseTimeStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[2], DatabaseOperationsService_GetDatabaseOperationsResponseTimeStream_FullMethodName, opts...) +func (c *databaseOperationsServiceClient) GetDatabaseOperationsResponseTimeStream(ctx context.Context, in *GetDatabaseOperationsResponseTimeStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationsResponseTimeStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[2], DatabaseOperationsService_GetDatabaseOperationsResponseTimeStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseOperationsResponseTimeStreamRequest, GetDatabaseOperationsResponseTimeStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -148,26 +125,13 @@ func (c *databaseOperationsServiceClient) GetDatabaseOperationsResponseTimeStrea return x, nil } -type DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamClient interface { - Recv() (*GetDatabaseOperationsResponseTimeStreamResponse, error) - grpc.ClientStream -} - -type databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamClient struct { - grpc.ClientStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamClient) Recv() (*GetDatabaseOperationsResponseTimeStreamResponse, error) { - m := new(GetDatabaseOperationsResponseTimeStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamClient = grpc.ServerStreamingClient[GetDatabaseOperationsResponseTimeStreamResponse] func (c *databaseOperationsServiceClient) ListOperations(ctx context.Context, in *ListOperationsRequest, opts ...grpc.CallOption) (*ListOperationsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOperationsResponse) - err := c.cc.Invoke(ctx, DatabaseOperationsService_ListOperations_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseOperationsService_ListOperations_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -175,20 +139,22 @@ func (c *databaseOperationsServiceClient) ListOperations(ctx context.Context, in } func (c *databaseOperationsServiceClient) GetOperationStats(ctx context.Context, in *GetOperationStatsRequest, opts ...grpc.CallOption) (*GetOperationStatsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetOperationStatsResponse) - err := c.cc.Invoke(ctx, DatabaseOperationsService_GetOperationStats_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseOperationsService_GetOperationStats_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } -func (c *databaseOperationsServiceClient) GetDatabaseOperationGraphsStream(ctx context.Context, in *GetDatabaseOperationGraphsStreamRequest, opts ...grpc.CallOption) (DatabaseOperationsService_GetDatabaseOperationGraphsStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[3], DatabaseOperationsService_GetDatabaseOperationGraphsStream_FullMethodName, opts...) +func (c *databaseOperationsServiceClient) GetDatabaseOperationGraphsStream(ctx context.Context, in *GetDatabaseOperationGraphsStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOperationGraphsStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseOperationsService_ServiceDesc.Streams[3], DatabaseOperationsService_GetDatabaseOperationGraphsStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseOperationsServiceGetDatabaseOperationGraphsStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseOperationGraphsStreamRequest, GetDatabaseOperationGraphsStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -198,55 +164,44 @@ func (c *databaseOperationsServiceClient) GetDatabaseOperationGraphsStream(ctx c return x, nil } -type DatabaseOperationsService_GetDatabaseOperationGraphsStreamClient interface { - Recv() (*GetDatabaseOperationGraphsStreamResponse, error) - grpc.ClientStream -} - -type databaseOperationsServiceGetDatabaseOperationGraphsStreamClient struct { - grpc.ClientStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationGraphsStreamClient) Recv() (*GetDatabaseOperationGraphsStreamResponse, error) { - m := new(GetDatabaseOperationGraphsStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationGraphsStreamClient = grpc.ServerStreamingClient[GetDatabaseOperationGraphsStreamResponse] // DatabaseOperationsServiceServer is the server API for DatabaseOperationsService service. // All implementations must embed UnimplementedDatabaseOperationsServiceServer -// for forward compatibility +// for forward compatibility. type DatabaseOperationsServiceServer interface { - GetDatabaseOperationsColumnsStream(*GetDatabaseOperationsColumnsStreamRequest, DatabaseOperationsService_GetDatabaseOperationsColumnsStreamServer) error + GetDatabaseOperationsColumnsStream(*GetDatabaseOperationsColumnsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsColumnsStreamResponse]) error GetDatabaseOperationsRequests(context.Context, *GetDatabaseOperationsRequestsRequest) (*GetDatabaseOperationsRequestsResponse, error) - GetDatabaseOperationsErrorsStream(*GetDatabaseOperationsErrorsStreamRequest, DatabaseOperationsService_GetDatabaseOperationsErrorsStreamServer) error + GetDatabaseOperationsErrorsStream(*GetDatabaseOperationsErrorsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsErrorsStreamResponse]) error GetDatabaseOperationsTimeConsuming(context.Context, *GetDatabaseOperationsTimeConsumingRequest) (*GetDatabaseOperationsTimeConsumingResponse, error) - GetDatabaseOperationsResponseTimeStream(*GetDatabaseOperationsResponseTimeStreamRequest, DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamServer) error + GetDatabaseOperationsResponseTimeStream(*GetDatabaseOperationsResponseTimeStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsResponseTimeStreamResponse]) error ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) GetOperationStats(context.Context, *GetOperationStatsRequest) (*GetOperationStatsResponse, error) - GetDatabaseOperationGraphsStream(*GetDatabaseOperationGraphsStreamRequest, DatabaseOperationsService_GetDatabaseOperationGraphsStreamServer) error + GetDatabaseOperationGraphsStream(*GetDatabaseOperationGraphsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationGraphsStreamResponse]) error mustEmbedUnimplementedDatabaseOperationsServiceServer() } -// UnimplementedDatabaseOperationsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDatabaseOperationsServiceServer struct { -} +// UnimplementedDatabaseOperationsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatabaseOperationsServiceServer struct{} -func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsColumnsStream(*GetDatabaseOperationsColumnsStreamRequest, DatabaseOperationsService_GetDatabaseOperationsColumnsStreamServer) error { +func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsColumnsStream(*GetDatabaseOperationsColumnsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsColumnsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseOperationsColumnsStream not implemented") } func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsRequests(context.Context, *GetDatabaseOperationsRequestsRequest) (*GetDatabaseOperationsRequestsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDatabaseOperationsRequests not implemented") } -func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsErrorsStream(*GetDatabaseOperationsErrorsStreamRequest, DatabaseOperationsService_GetDatabaseOperationsErrorsStreamServer) error { +func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsErrorsStream(*GetDatabaseOperationsErrorsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsErrorsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseOperationsErrorsStream not implemented") } func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsTimeConsuming(context.Context, *GetDatabaseOperationsTimeConsumingRequest) (*GetDatabaseOperationsTimeConsumingResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetDatabaseOperationsTimeConsuming not implemented") } -func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsResponseTimeStream(*GetDatabaseOperationsResponseTimeStreamRequest, DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamServer) error { +func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationsResponseTimeStream(*GetDatabaseOperationsResponseTimeStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationsResponseTimeStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseOperationsResponseTimeStream not implemented") } func (UnimplementedDatabaseOperationsServiceServer) ListOperations(context.Context, *ListOperationsRequest) (*ListOperationsResponse, error) { @@ -255,11 +210,12 @@ func (UnimplementedDatabaseOperationsServiceServer) ListOperations(context.Conte func (UnimplementedDatabaseOperationsServiceServer) GetOperationStats(context.Context, *GetOperationStatsRequest) (*GetOperationStatsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetOperationStats not implemented") } -func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationGraphsStream(*GetDatabaseOperationGraphsStreamRequest, DatabaseOperationsService_GetDatabaseOperationGraphsStreamServer) error { +func (UnimplementedDatabaseOperationsServiceServer) GetDatabaseOperationGraphsStream(*GetDatabaseOperationGraphsStreamRequest, grpc.ServerStreamingServer[GetDatabaseOperationGraphsStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseOperationGraphsStream not implemented") } func (UnimplementedDatabaseOperationsServiceServer) mustEmbedUnimplementedDatabaseOperationsServiceServer() { } +func (UnimplementedDatabaseOperationsServiceServer) testEmbeddedByValue() {} // UnsafeDatabaseOperationsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatabaseOperationsServiceServer will @@ -269,6 +225,13 @@ type UnsafeDatabaseOperationsServiceServer interface { } func RegisterDatabaseOperationsServiceServer(s grpc.ServiceRegistrar, srv DatabaseOperationsServiceServer) { + // If the following call pancis, it indicates UnimplementedDatabaseOperationsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DatabaseOperationsService_ServiceDesc, srv) } @@ -277,21 +240,11 @@ func _DatabaseOperationsService_GetDatabaseOperationsColumnsStream_Handler(srv i if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsColumnsStream(m, &databaseOperationsServiceGetDatabaseOperationsColumnsStreamServer{stream}) + return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsColumnsStream(m, &grpc.GenericServerStream[GetDatabaseOperationsColumnsStreamRequest, GetDatabaseOperationsColumnsStreamResponse]{ServerStream: stream}) } -type DatabaseOperationsService_GetDatabaseOperationsColumnsStreamServer interface { - Send(*GetDatabaseOperationsColumnsStreamResponse) error - grpc.ServerStream -} - -type databaseOperationsServiceGetDatabaseOperationsColumnsStreamServer struct { - grpc.ServerStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationsColumnsStreamServer) Send(m *GetDatabaseOperationsColumnsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsColumnsStreamServer = grpc.ServerStreamingServer[GetDatabaseOperationsColumnsStreamResponse] func _DatabaseOperationsService_GetDatabaseOperationsRequests_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetDatabaseOperationsRequestsRequest) @@ -316,21 +269,11 @@ func _DatabaseOperationsService_GetDatabaseOperationsErrorsStream_Handler(srv in if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsErrorsStream(m, &databaseOperationsServiceGetDatabaseOperationsErrorsStreamServer{stream}) + return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsErrorsStream(m, &grpc.GenericServerStream[GetDatabaseOperationsErrorsStreamRequest, GetDatabaseOperationsErrorsStreamResponse]{ServerStream: stream}) } -type DatabaseOperationsService_GetDatabaseOperationsErrorsStreamServer interface { - Send(*GetDatabaseOperationsErrorsStreamResponse) error - grpc.ServerStream -} - -type databaseOperationsServiceGetDatabaseOperationsErrorsStreamServer struct { - grpc.ServerStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationsErrorsStreamServer) Send(m *GetDatabaseOperationsErrorsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsErrorsStreamServer = grpc.ServerStreamingServer[GetDatabaseOperationsErrorsStreamResponse] func _DatabaseOperationsService_GetDatabaseOperationsTimeConsuming_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetDatabaseOperationsTimeConsumingRequest) @@ -355,21 +298,11 @@ func _DatabaseOperationsService_GetDatabaseOperationsResponseTimeStream_Handler( if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsResponseTimeStream(m, &databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamServer{stream}) -} - -type DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamServer interface { - Send(*GetDatabaseOperationsResponseTimeStreamResponse) error - grpc.ServerStream -} - -type databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamServer struct { - grpc.ServerStream + return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationsResponseTimeStream(m, &grpc.GenericServerStream[GetDatabaseOperationsResponseTimeStreamRequest, GetDatabaseOperationsResponseTimeStreamResponse]{ServerStream: stream}) } -func (x *databaseOperationsServiceGetDatabaseOperationsResponseTimeStreamServer) Send(m *GetDatabaseOperationsResponseTimeStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationsResponseTimeStreamServer = grpc.ServerStreamingServer[GetDatabaseOperationsResponseTimeStreamResponse] func _DatabaseOperationsService_ListOperations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListOperationsRequest) @@ -412,21 +345,11 @@ func _DatabaseOperationsService_GetDatabaseOperationGraphsStream_Handler(srv int if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationGraphsStream(m, &databaseOperationsServiceGetDatabaseOperationGraphsStreamServer{stream}) -} - -type DatabaseOperationsService_GetDatabaseOperationGraphsStreamServer interface { - Send(*GetDatabaseOperationGraphsStreamResponse) error - grpc.ServerStream + return srv.(DatabaseOperationsServiceServer).GetDatabaseOperationGraphsStream(m, &grpc.GenericServerStream[GetDatabaseOperationGraphsStreamRequest, GetDatabaseOperationGraphsStreamResponse]{ServerStream: stream}) } -type databaseOperationsServiceGetDatabaseOperationGraphsStreamServer struct { - grpc.ServerStream -} - -func (x *databaseOperationsServiceGetDatabaseOperationGraphsStreamServer) Send(m *GetDatabaseOperationGraphsStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOperationsService_GetDatabaseOperationGraphsStreamServer = grpc.ServerStreamingServer[GetDatabaseOperationGraphsStreamResponse] // DatabaseOperationsService_ServiceDesc is the grpc.ServiceDesc for DatabaseOperationsService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogixapis/database_catalog/v1/overview_service.pb.go b/go/internal/coralogixapis/database_catalog/v1/overview_service.pb.go index 2b177882..e8eaee8b 100644 --- a/go/internal/coralogixapis/database_catalog/v1/overview_service.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/overview_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/overview_service.proto package v1 diff --git a/go/internal/coralogixapis/database_catalog/v1/overview_service_grpc.pb.go b/go/internal/coralogixapis/database_catalog/v1/overview_service_grpc.pb.go index 8c2bd75b..35dab2cc 100644 --- a/go/internal/coralogixapis/database_catalog/v1/overview_service_grpc.pb.go +++ b/go/internal/coralogixapis/database_catalog/v1/overview_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/database_catalog/v1/overview_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DatabaseOverviewService_GetDatabaseOverviewStream_FullMethodName = "/com.coralogixapis.database_catalog.v1.DatabaseOverviewService/GetDatabaseOverviewStream" @@ -27,7 +27,7 @@ const ( // // 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 DatabaseOverviewServiceClient interface { - GetDatabaseOverviewStream(ctx context.Context, in *GetDatabaseOverviewStreamRequest, opts ...grpc.CallOption) (DatabaseOverviewService_GetDatabaseOverviewStreamClient, error) + GetDatabaseOverviewStream(ctx context.Context, in *GetDatabaseOverviewStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOverviewStreamResponse], error) GetApdex(ctx context.Context, in *GetApdexRequest, opts ...grpc.CallOption) (*GetApdexResponse, error) } @@ -39,12 +39,13 @@ func NewDatabaseOverviewServiceClient(cc grpc.ClientConnInterface) DatabaseOverv return &databaseOverviewServiceClient{cc} } -func (c *databaseOverviewServiceClient) GetDatabaseOverviewStream(ctx context.Context, in *GetDatabaseOverviewStreamRequest, opts ...grpc.CallOption) (DatabaseOverviewService_GetDatabaseOverviewStreamClient, error) { - stream, err := c.cc.NewStream(ctx, &DatabaseOverviewService_ServiceDesc.Streams[0], DatabaseOverviewService_GetDatabaseOverviewStream_FullMethodName, opts...) +func (c *databaseOverviewServiceClient) GetDatabaseOverviewStream(ctx context.Context, in *GetDatabaseOverviewStreamRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetDatabaseOverviewStreamResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DatabaseOverviewService_ServiceDesc.Streams[0], DatabaseOverviewService_GetDatabaseOverviewStream_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &databaseOverviewServiceGetDatabaseOverviewStreamClient{stream} + x := &grpc.GenericClientStream[GetDatabaseOverviewStreamRequest, GetDatabaseOverviewStreamResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -54,26 +55,13 @@ func (c *databaseOverviewServiceClient) GetDatabaseOverviewStream(ctx context.Co return x, nil } -type DatabaseOverviewService_GetDatabaseOverviewStreamClient interface { - Recv() (*GetDatabaseOverviewStreamResponse, error) - grpc.ClientStream -} - -type databaseOverviewServiceGetDatabaseOverviewStreamClient struct { - grpc.ClientStream -} - -func (x *databaseOverviewServiceGetDatabaseOverviewStreamClient) Recv() (*GetDatabaseOverviewStreamResponse, error) { - m := new(GetDatabaseOverviewStreamResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOverviewService_GetDatabaseOverviewStreamClient = grpc.ServerStreamingClient[GetDatabaseOverviewStreamResponse] func (c *databaseOverviewServiceClient) GetApdex(ctx context.Context, in *GetApdexRequest, opts ...grpc.CallOption) (*GetApdexResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetApdexResponse) - err := c.cc.Invoke(ctx, DatabaseOverviewService_GetApdex_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, DatabaseOverviewService_GetApdex_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,18 +70,21 @@ func (c *databaseOverviewServiceClient) GetApdex(ctx context.Context, in *GetApd // DatabaseOverviewServiceServer is the server API for DatabaseOverviewService service. // All implementations must embed UnimplementedDatabaseOverviewServiceServer -// for forward compatibility +// for forward compatibility. type DatabaseOverviewServiceServer interface { - GetDatabaseOverviewStream(*GetDatabaseOverviewStreamRequest, DatabaseOverviewService_GetDatabaseOverviewStreamServer) error + GetDatabaseOverviewStream(*GetDatabaseOverviewStreamRequest, grpc.ServerStreamingServer[GetDatabaseOverviewStreamResponse]) error GetApdex(context.Context, *GetApdexRequest) (*GetApdexResponse, error) mustEmbedUnimplementedDatabaseOverviewServiceServer() } -// UnimplementedDatabaseOverviewServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDatabaseOverviewServiceServer struct { -} +// UnimplementedDatabaseOverviewServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDatabaseOverviewServiceServer struct{} -func (UnimplementedDatabaseOverviewServiceServer) GetDatabaseOverviewStream(*GetDatabaseOverviewStreamRequest, DatabaseOverviewService_GetDatabaseOverviewStreamServer) error { +func (UnimplementedDatabaseOverviewServiceServer) GetDatabaseOverviewStream(*GetDatabaseOverviewStreamRequest, grpc.ServerStreamingServer[GetDatabaseOverviewStreamResponse]) error { return status.Errorf(codes.Unimplemented, "method GetDatabaseOverviewStream not implemented") } func (UnimplementedDatabaseOverviewServiceServer) GetApdex(context.Context, *GetApdexRequest) (*GetApdexResponse, error) { @@ -101,6 +92,7 @@ func (UnimplementedDatabaseOverviewServiceServer) GetApdex(context.Context, *Get } func (UnimplementedDatabaseOverviewServiceServer) mustEmbedUnimplementedDatabaseOverviewServiceServer() { } +func (UnimplementedDatabaseOverviewServiceServer) testEmbeddedByValue() {} // UnsafeDatabaseOverviewServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DatabaseOverviewServiceServer will @@ -110,6 +102,13 @@ type UnsafeDatabaseOverviewServiceServer interface { } func RegisterDatabaseOverviewServiceServer(s grpc.ServiceRegistrar, srv DatabaseOverviewServiceServer) { + // If the following call pancis, it indicates UnimplementedDatabaseOverviewServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DatabaseOverviewService_ServiceDesc, srv) } @@ -118,21 +117,11 @@ func _DatabaseOverviewService_GetDatabaseOverviewStream_Handler(srv interface{}, if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DatabaseOverviewServiceServer).GetDatabaseOverviewStream(m, &databaseOverviewServiceGetDatabaseOverviewStreamServer{stream}) -} - -type DatabaseOverviewService_GetDatabaseOverviewStreamServer interface { - Send(*GetDatabaseOverviewStreamResponse) error - grpc.ServerStream + return srv.(DatabaseOverviewServiceServer).GetDatabaseOverviewStream(m, &grpc.GenericServerStream[GetDatabaseOverviewStreamRequest, GetDatabaseOverviewStreamResponse]{ServerStream: stream}) } -type databaseOverviewServiceGetDatabaseOverviewStreamServer struct { - grpc.ServerStream -} - -func (x *databaseOverviewServiceGetDatabaseOverviewStreamServer) Send(m *GetDatabaseOverviewStreamResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DatabaseOverviewService_GetDatabaseOverviewStreamServer = grpc.ServerStreamingServer[GetDatabaseOverviewStreamResponse] func _DatabaseOverviewService_GetApdex_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetApdexRequest) diff --git a/go/internal/coralogixapis/dataprime/v1/query_service.pb.go b/go/internal/coralogixapis/dataprime/v1/query_service.pb.go index a301f45c..3f4d19ee 100644 --- a/go/internal/coralogixapis/dataprime/v1/query_service.pb.go +++ b/go/internal/coralogixapis/dataprime/v1/query_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dataprime/v1/query_service.proto package v1 diff --git a/go/internal/coralogixapis/dataprime/v1/query_service_grpc.pb.go b/go/internal/coralogixapis/dataprime/v1/query_service_grpc.pb.go index 8cdb908b..772c7368 100644 --- a/go/internal/coralogixapis/dataprime/v1/query_service_grpc.pb.go +++ b/go/internal/coralogixapis/dataprime/v1/query_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/dataprime/v1/query_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( DataprimeQueryService_Query_FullMethodName = "/com.coralogixapis.dataprime.v1.DataprimeQueryService/Query" @@ -25,9 +25,11 @@ const ( // DataprimeQueryServiceClient is the client API for DataprimeQueryService 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. +// +// public service for running dataprime queries (text) type DataprimeQueryServiceClient interface { // method to run dataprime text queries - Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (DataprimeQueryService_QueryClient, error) + Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[QueryResponse], error) } type dataprimeQueryServiceClient struct { @@ -38,12 +40,13 @@ func NewDataprimeQueryServiceClient(cc grpc.ClientConnInterface) DataprimeQueryS return &dataprimeQueryServiceClient{cc} } -func (c *dataprimeQueryServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (DataprimeQueryService_QueryClient, error) { - stream, err := c.cc.NewStream(ctx, &DataprimeQueryService_ServiceDesc.Streams[0], DataprimeQueryService_Query_FullMethodName, opts...) +func (c *dataprimeQueryServiceClient) Query(ctx context.Context, in *QueryRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[QueryResponse], error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + stream, err := c.cc.NewStream(ctx, &DataprimeQueryService_ServiceDesc.Streams[0], DataprimeQueryService_Query_FullMethodName, cOpts...) if err != nil { return nil, err } - x := &dataprimeQueryServiceQueryClient{stream} + x := &grpc.GenericClientStream[QueryRequest, QueryResponse]{ClientStream: stream} if err := x.ClientStream.SendMsg(in); err != nil { return nil, err } @@ -53,40 +56,32 @@ func (c *dataprimeQueryServiceClient) Query(ctx context.Context, in *QueryReques return x, nil } -type DataprimeQueryService_QueryClient interface { - Recv() (*QueryResponse, error) - grpc.ClientStream -} - -type dataprimeQueryServiceQueryClient struct { - grpc.ClientStream -} - -func (x *dataprimeQueryServiceQueryClient) Recv() (*QueryResponse, error) { - m := new(QueryResponse) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataprimeQueryService_QueryClient = grpc.ServerStreamingClient[QueryResponse] // DataprimeQueryServiceServer is the server API for DataprimeQueryService service. // All implementations must embed UnimplementedDataprimeQueryServiceServer -// for forward compatibility +// for forward compatibility. +// +// public service for running dataprime queries (text) type DataprimeQueryServiceServer interface { // method to run dataprime text queries - Query(*QueryRequest, DataprimeQueryService_QueryServer) error + Query(*QueryRequest, grpc.ServerStreamingServer[QueryResponse]) error mustEmbedUnimplementedDataprimeQueryServiceServer() } -// UnimplementedDataprimeQueryServiceServer must be embedded to have forward compatible implementations. -type UnimplementedDataprimeQueryServiceServer struct { -} +// UnimplementedDataprimeQueryServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedDataprimeQueryServiceServer struct{} -func (UnimplementedDataprimeQueryServiceServer) Query(*QueryRequest, DataprimeQueryService_QueryServer) error { +func (UnimplementedDataprimeQueryServiceServer) Query(*QueryRequest, grpc.ServerStreamingServer[QueryResponse]) error { return status.Errorf(codes.Unimplemented, "method Query not implemented") } func (UnimplementedDataprimeQueryServiceServer) mustEmbedUnimplementedDataprimeQueryServiceServer() {} +func (UnimplementedDataprimeQueryServiceServer) testEmbeddedByValue() {} // UnsafeDataprimeQueryServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to DataprimeQueryServiceServer will @@ -96,6 +91,13 @@ type UnsafeDataprimeQueryServiceServer interface { } func RegisterDataprimeQueryServiceServer(s grpc.ServiceRegistrar, srv DataprimeQueryServiceServer) { + // If the following call pancis, it indicates UnimplementedDataprimeQueryServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&DataprimeQueryService_ServiceDesc, srv) } @@ -104,21 +106,11 @@ func _DataprimeQueryService_Query_Handler(srv interface{}, stream grpc.ServerStr if err := stream.RecvMsg(m); err != nil { return err } - return srv.(DataprimeQueryServiceServer).Query(m, &dataprimeQueryServiceQueryServer{stream}) -} - -type DataprimeQueryService_QueryServer interface { - Send(*QueryResponse) error - grpc.ServerStream -} - -type dataprimeQueryServiceQueryServer struct { - grpc.ServerStream + return srv.(DataprimeQueryServiceServer).Query(m, &grpc.GenericServerStream[QueryRequest, QueryResponse]{ServerStream: stream}) } -func (x *dataprimeQueryServiceQueryServer) Send(m *QueryResponse) error { - return x.ServerStream.SendMsg(m) -} +// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name. +type DataprimeQueryService_QueryServer = grpc.ServerStreamingServer[QueryResponse] // DataprimeQueryService_ServiceDesc is the grpc.ServiceDesc for DataprimeQueryService service. // It's only intended for direct use with grpc.RegisterService, diff --git a/go/internal/coralogixapis/dataprime/v1/request.pb.go b/go/internal/coralogixapis/dataprime/v1/request.pb.go index 438b9d30..81dadd4d 100644 --- a/go/internal/coralogixapis/dataprime/v1/request.pb.go +++ b/go/internal/coralogixapis/dataprime/v1/request.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dataprime/v1/request.proto package v1 diff --git a/go/internal/coralogixapis/dataprime/v1/response.pb.go b/go/internal/coralogixapis/dataprime/v1/response.pb.go index 840ea46f..64ae394e 100644 --- a/go/internal/coralogixapis/dataprime/v1/response.pb.go +++ b/go/internal/coralogixapis/dataprime/v1/response.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/dataprime/v1/response.proto package v1 diff --git a/go/internal/coralogixapis/events2metrics/v2/events2metrics_definition.pb.go b/go/internal/coralogixapis/events2metrics/v2/events2metrics_definition.pb.go index 113e3a3b..ab2d43a3 100644 --- a/go/internal/coralogixapis/events2metrics/v2/events2metrics_definition.pb.go +++ b/go/internal/coralogixapis/events2metrics/v2/events2metrics_definition.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/events2metrics/v2/events2metrics_definition.proto package v2 diff --git a/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service.pb.go b/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service.pb.go index 4c129eab..341f5593 100644 --- a/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service.pb.go +++ b/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/events2metrics/v2/events2metrics_internal_service.proto package v2 diff --git a/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service_grpc.pb.go b/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service_grpc.pb.go index 087a0c22..9c01cfdd 100644 --- a/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service_grpc.pb.go +++ b/go/internal/coralogixapis/events2metrics/v2/events2metrics_internal_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/events2metrics/v2/events2metrics_internal_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Events2MetricInternalService_ListE2MInternal_FullMethodName = "/com.coralogixapis.events2metrics.v2.Events2MetricInternalService/ListE2MInternal" @@ -44,8 +44,9 @@ func NewEvents2MetricInternalServiceClient(cc grpc.ClientConnInterface) Events2M } func (c *events2MetricInternalServiceClient) ListE2MInternal(ctx context.Context, in *ListE2MRequestInternal, opts ...grpc.CallOption) (*ListE2MResponseInternal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListE2MResponseInternal) - err := c.cc.Invoke(ctx, Events2MetricInternalService_ListE2MInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricInternalService_ListE2MInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -53,8 +54,9 @@ func (c *events2MetricInternalServiceClient) ListE2MInternal(ctx context.Context } func (c *events2MetricInternalServiceClient) ReplaceE2M(ctx context.Context, in *ReplaceE2MRequestInternal, opts ...grpc.CallOption) (*ReplaceE2MResponseInternal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceE2MResponseInternal) - err := c.cc.Invoke(ctx, Events2MetricInternalService_ReplaceE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricInternalService_ReplaceE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -62,8 +64,9 @@ func (c *events2MetricInternalServiceClient) ReplaceE2M(ctx context.Context, in } func (c *events2MetricInternalServiceClient) CreateE2MInternal(ctx context.Context, in *CreateE2MRequestInternal, opts ...grpc.CallOption) (*CreateE2MResponseInternal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateE2MResponseInternal) - err := c.cc.Invoke(ctx, Events2MetricInternalService_CreateE2MInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricInternalService_CreateE2MInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -71,8 +74,9 @@ func (c *events2MetricInternalServiceClient) CreateE2MInternal(ctx context.Conte } func (c *events2MetricInternalServiceClient) DeleteE2MInternal(ctx context.Context, in *DeleteE2MRequestInternal, opts ...grpc.CallOption) (*DeleteE2MResponseInternal, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteE2MResponseInternal) - err := c.cc.Invoke(ctx, Events2MetricInternalService_DeleteE2MInternal_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricInternalService_DeleteE2MInternal_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,7 +85,7 @@ func (c *events2MetricInternalServiceClient) DeleteE2MInternal(ctx context.Conte // Events2MetricInternalServiceServer is the server API for Events2MetricInternalService service. // All implementations must embed UnimplementedEvents2MetricInternalServiceServer -// for forward compatibility +// for forward compatibility. type Events2MetricInternalServiceServer interface { ListE2MInternal(context.Context, *ListE2MRequestInternal) (*ListE2MResponseInternal, error) ReplaceE2M(context.Context, *ReplaceE2MRequestInternal) (*ReplaceE2MResponseInternal, error) @@ -90,9 +94,12 @@ type Events2MetricInternalServiceServer interface { mustEmbedUnimplementedEvents2MetricInternalServiceServer() } -// UnimplementedEvents2MetricInternalServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEvents2MetricInternalServiceServer struct { -} +// UnimplementedEvents2MetricInternalServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEvents2MetricInternalServiceServer struct{} func (UnimplementedEvents2MetricInternalServiceServer) ListE2MInternal(context.Context, *ListE2MRequestInternal) (*ListE2MResponseInternal, error) { return nil, status.Errorf(codes.Unimplemented, "method ListE2MInternal not implemented") @@ -108,6 +115,7 @@ func (UnimplementedEvents2MetricInternalServiceServer) DeleteE2MInternal(context } func (UnimplementedEvents2MetricInternalServiceServer) mustEmbedUnimplementedEvents2MetricInternalServiceServer() { } +func (UnimplementedEvents2MetricInternalServiceServer) testEmbeddedByValue() {} // UnsafeEvents2MetricInternalServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to Events2MetricInternalServiceServer will @@ -117,6 +125,13 @@ type UnsafeEvents2MetricInternalServiceServer interface { } func RegisterEvents2MetricInternalServiceServer(s grpc.ServiceRegistrar, srv Events2MetricInternalServiceServer) { + // If the following call pancis, it indicates UnimplementedEvents2MetricInternalServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Events2MetricInternalService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/events2metrics/v2/events2metrics_service.pb.go b/go/internal/coralogixapis/events2metrics/v2/events2metrics_service.pb.go index f54a692a..2ccd750d 100644 --- a/go/internal/coralogixapis/events2metrics/v2/events2metrics_service.pb.go +++ b/go/internal/coralogixapis/events2metrics/v2/events2metrics_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/events2metrics/v2/events2metrics_service.proto package v2 diff --git a/go/internal/coralogixapis/events2metrics/v2/events2metrics_service_grpc.pb.go b/go/internal/coralogixapis/events2metrics/v2/events2metrics_service_grpc.pb.go index 67c68ca8..621d6b65 100644 --- a/go/internal/coralogixapis/events2metrics/v2/events2metrics_service_grpc.pb.go +++ b/go/internal/coralogixapis/events2metrics/v2/events2metrics_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/events2metrics/v2/events2metrics_service.proto package v2 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Events2MetricService_CreateE2M_FullMethodName = "/com.coralogixapis.events2metrics.v2.Events2MetricService/CreateE2M" @@ -52,8 +52,9 @@ func NewEvents2MetricServiceClient(cc grpc.ClientConnInterface) Events2MetricSer } func (c *events2MetricServiceClient) CreateE2M(ctx context.Context, in *CreateE2MRequest, opts ...grpc.CallOption) (*CreateE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_CreateE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_CreateE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -61,8 +62,9 @@ func (c *events2MetricServiceClient) CreateE2M(ctx context.Context, in *CreateE2 } func (c *events2MetricServiceClient) ListE2M(ctx context.Context, in *ListE2MRequest, opts ...grpc.CallOption) (*ListE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_ListE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_ListE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -70,8 +72,9 @@ func (c *events2MetricServiceClient) ListE2M(ctx context.Context, in *ListE2MReq } func (c *events2MetricServiceClient) ReplaceE2M(ctx context.Context, in *ReplaceE2MRequest, opts ...grpc.CallOption) (*ReplaceE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_ReplaceE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_ReplaceE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -79,8 +82,9 @@ func (c *events2MetricServiceClient) ReplaceE2M(ctx context.Context, in *Replace } func (c *events2MetricServiceClient) GetE2M(ctx context.Context, in *GetE2MRequest, opts ...grpc.CallOption) (*GetE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_GetE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_GetE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -88,8 +92,9 @@ func (c *events2MetricServiceClient) GetE2M(ctx context.Context, in *GetE2MReque } func (c *events2MetricServiceClient) DeleteE2M(ctx context.Context, in *DeleteE2MRequest, opts ...grpc.CallOption) (*DeleteE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_DeleteE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_DeleteE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -97,8 +102,9 @@ func (c *events2MetricServiceClient) DeleteE2M(ctx context.Context, in *DeleteE2 } func (c *events2MetricServiceClient) AtomicBatchExecuteE2M(ctx context.Context, in *AtomicBatchExecuteE2MRequest, opts ...grpc.CallOption) (*AtomicBatchExecuteE2MResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AtomicBatchExecuteE2MResponse) - err := c.cc.Invoke(ctx, Events2MetricService_AtomicBatchExecuteE2M_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_AtomicBatchExecuteE2M_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -106,8 +112,9 @@ func (c *events2MetricServiceClient) AtomicBatchExecuteE2M(ctx context.Context, } func (c *events2MetricServiceClient) ListLabelsCardinality(ctx context.Context, in *ListLabelsCardinalityRequest, opts ...grpc.CallOption) (*ListLabelsCardinalityResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListLabelsCardinalityResponse) - err := c.cc.Invoke(ctx, Events2MetricService_ListLabelsCardinality_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_ListLabelsCardinality_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -115,8 +122,9 @@ func (c *events2MetricServiceClient) ListLabelsCardinality(ctx context.Context, } func (c *events2MetricServiceClient) GetLimits(ctx context.Context, in *GetLimitsRequest, opts ...grpc.CallOption) (*GetLimitsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetLimitsResponse) - err := c.cc.Invoke(ctx, Events2MetricService_GetLimits_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Events2MetricService_GetLimits_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -125,7 +133,7 @@ func (c *events2MetricServiceClient) GetLimits(ctx context.Context, in *GetLimit // Events2MetricServiceServer is the server API for Events2MetricService service. // All implementations must embed UnimplementedEvents2MetricServiceServer -// for forward compatibility +// for forward compatibility. type Events2MetricServiceServer interface { CreateE2M(context.Context, *CreateE2MRequest) (*CreateE2MResponse, error) ListE2M(context.Context, *ListE2MRequest) (*ListE2MResponse, error) @@ -138,9 +146,12 @@ type Events2MetricServiceServer interface { mustEmbedUnimplementedEvents2MetricServiceServer() } -// UnimplementedEvents2MetricServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEvents2MetricServiceServer struct { -} +// UnimplementedEvents2MetricServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEvents2MetricServiceServer struct{} func (UnimplementedEvents2MetricServiceServer) CreateE2M(context.Context, *CreateE2MRequest) (*CreateE2MResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateE2M not implemented") @@ -167,6 +178,7 @@ func (UnimplementedEvents2MetricServiceServer) GetLimits(context.Context, *GetLi return nil, status.Errorf(codes.Unimplemented, "method GetLimits not implemented") } func (UnimplementedEvents2MetricServiceServer) mustEmbedUnimplementedEvents2MetricServiceServer() {} +func (UnimplementedEvents2MetricServiceServer) testEmbeddedByValue() {} // UnsafeEvents2MetricServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to Events2MetricServiceServer will @@ -176,6 +188,13 @@ type UnsafeEvents2MetricServiceServer interface { } func RegisterEvents2MetricServiceServer(s grpc.ServiceRegistrar, srv Events2MetricServiceServer) { + // If the following call pancis, it indicates UnimplementedEvents2MetricServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Events2MetricService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/logs2metrics/v2/audit_log.pb.go b/go/internal/coralogixapis/logs2metrics/v2/audit_log.pb.go index 3e43287f..7c5af104 100644 --- a/go/internal/coralogixapis/logs2metrics/v2/audit_log.pb.go +++ b/go/internal/coralogixapis/logs2metrics/v2/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/logs2metrics/v2/audit_log.proto package v2 diff --git a/go/internal/coralogixapis/logs2metrics/v2/logs_query.pb.go b/go/internal/coralogixapis/logs2metrics/v2/logs_query.pb.go index 5ee8f00a..31f31111 100644 --- a/go/internal/coralogixapis/logs2metrics/v2/logs_query.pb.go +++ b/go/internal/coralogixapis/logs2metrics/v2/logs_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/logs2metrics/v2/logs_query.proto package v2 diff --git a/go/internal/coralogixapis/metrics-rule-manager/v1/groups.pb.go b/go/internal/coralogixapis/metrics-rule-manager/v1/groups.pb.go index 82e45d4e..3479cd87 100644 --- a/go/internal/coralogixapis/metrics-rule-manager/v1/groups.pb.go +++ b/go/internal/coralogixapis/metrics-rule-manager/v1/groups.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/metrics-rule-manager/v1/groups.proto package golang diff --git a/go/internal/coralogixapis/metrics-rule-manager/v1/groups_grpc.pb.go b/go/internal/coralogixapis/metrics-rule-manager/v1/groups_grpc.pb.go index b13c5f25..dc5964f1 100644 --- a/go/internal/coralogixapis/metrics-rule-manager/v1/groups_grpc.pb.go +++ b/go/internal/coralogixapis/metrics-rule-manager/v1/groups_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/metrics-rule-manager/v1/groups.proto package golang @@ -16,8 +16,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( RuleGroups_Save_FullMethodName = "/rule_manager.groups.RuleGroups/Save" @@ -29,6 +29,9 @@ const ( // RuleGroupsClient is the client API for RuleGroups 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. +// +// * +// CRUD operations on recording rule groups. type RuleGroupsClient interface { // Creates or updates a rule group. Save(ctx context.Context, in *InRuleGroup, opts ...grpc.CallOption) (*emptypb.Empty, error) @@ -49,8 +52,9 @@ func NewRuleGroupsClient(cc grpc.ClientConnInterface) RuleGroupsClient { } func (c *ruleGroupsClient) Save(ctx context.Context, in *InRuleGroup, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RuleGroups_Save_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroups_Save_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -58,8 +62,9 @@ func (c *ruleGroupsClient) Save(ctx context.Context, in *InRuleGroup, opts ...gr } func (c *ruleGroupsClient) Delete(ctx context.Context, in *DeleteRuleGroup, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RuleGroups_Delete_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroups_Delete_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -67,8 +72,9 @@ func (c *ruleGroupsClient) Delete(ctx context.Context, in *DeleteRuleGroup, opts } func (c *ruleGroupsClient) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuleGroupListing, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RuleGroupListing) - err := c.cc.Invoke(ctx, RuleGroups_List_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroups_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -76,8 +82,9 @@ func (c *ruleGroupsClient) List(ctx context.Context, in *emptypb.Empty, opts ... } func (c *ruleGroupsClient) Fetch(ctx context.Context, in *FetchRuleGroup, opts ...grpc.CallOption) (*FetchRuleGroupResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FetchRuleGroupResult) - err := c.cc.Invoke(ctx, RuleGroups_Fetch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroups_Fetch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,7 +93,10 @@ func (c *ruleGroupsClient) Fetch(ctx context.Context, in *FetchRuleGroup, opts . // RuleGroupsServer is the server API for RuleGroups service. // All implementations must embed UnimplementedRuleGroupsServer -// for forward compatibility +// for forward compatibility. +// +// * +// CRUD operations on recording rule groups. type RuleGroupsServer interface { // Creates or updates a rule group. Save(context.Context, *InRuleGroup) (*emptypb.Empty, error) @@ -99,9 +109,12 @@ type RuleGroupsServer interface { mustEmbedUnimplementedRuleGroupsServer() } -// UnimplementedRuleGroupsServer must be embedded to have forward compatible implementations. -type UnimplementedRuleGroupsServer struct { -} +// UnimplementedRuleGroupsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRuleGroupsServer struct{} func (UnimplementedRuleGroupsServer) Save(context.Context, *InRuleGroup) (*emptypb.Empty, error) { return nil, status.Errorf(codes.Unimplemented, "method Save not implemented") @@ -116,6 +129,7 @@ func (UnimplementedRuleGroupsServer) Fetch(context.Context, *FetchRuleGroup) (*F return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented") } func (UnimplementedRuleGroupsServer) mustEmbedUnimplementedRuleGroupsServer() {} +func (UnimplementedRuleGroupsServer) testEmbeddedByValue() {} // UnsafeRuleGroupsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RuleGroupsServer will @@ -125,6 +139,13 @@ type UnsafeRuleGroupsServer interface { } func RegisterRuleGroupsServer(s grpc.ServiceRegistrar, srv RuleGroupsServer) { + // If the following call pancis, it indicates UnimplementedRuleGroupsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RuleGroups_ServiceDesc, srv) } @@ -256,8 +277,9 @@ func NewRuleGroupSetsClient(cc grpc.ClientConnInterface) RuleGroupSetsClient { } func (c *ruleGroupSetsClient) Create(ctx context.Context, in *CreateRuleGroupSet, opts ...grpc.CallOption) (*CreateRuleGroupSetResult, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateRuleGroupSetResult) - err := c.cc.Invoke(ctx, RuleGroupSets_Create_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupSets_Create_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -265,8 +287,9 @@ func (c *ruleGroupSetsClient) Create(ctx context.Context, in *CreateRuleGroupSet } func (c *ruleGroupSetsClient) Update(ctx context.Context, in *UpdateRuleGroupSet, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RuleGroupSets_Update_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupSets_Update_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -274,8 +297,9 @@ func (c *ruleGroupSetsClient) Update(ctx context.Context, in *UpdateRuleGroupSet } func (c *ruleGroupSetsClient) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RuleGroupSetListing, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RuleGroupSetListing) - err := c.cc.Invoke(ctx, RuleGroupSets_List_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupSets_List_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -283,8 +307,9 @@ func (c *ruleGroupSetsClient) List(ctx context.Context, in *emptypb.Empty, opts } func (c *ruleGroupSetsClient) Fetch(ctx context.Context, in *FetchRuleGroupSet, opts ...grpc.CallOption) (*OutRuleGroupSet, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(OutRuleGroupSet) - err := c.cc.Invoke(ctx, RuleGroupSets_Fetch_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupSets_Fetch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -292,8 +317,9 @@ func (c *ruleGroupSetsClient) Fetch(ctx context.Context, in *FetchRuleGroupSet, } func (c *ruleGroupSetsClient) Delete(ctx context.Context, in *DeleteRuleGroupSet, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, RuleGroupSets_Delete_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, RuleGroupSets_Delete_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -302,7 +328,7 @@ func (c *ruleGroupSetsClient) Delete(ctx context.Context, in *DeleteRuleGroupSet // RuleGroupSetsServer is the server API for RuleGroupSets service. // All implementations must embed UnimplementedRuleGroupSetsServer -// for forward compatibility +// for forward compatibility. type RuleGroupSetsServer interface { Create(context.Context, *CreateRuleGroupSet) (*CreateRuleGroupSetResult, error) Update(context.Context, *UpdateRuleGroupSet) (*emptypb.Empty, error) @@ -312,9 +338,12 @@ type RuleGroupSetsServer interface { mustEmbedUnimplementedRuleGroupSetsServer() } -// UnimplementedRuleGroupSetsServer must be embedded to have forward compatible implementations. -type UnimplementedRuleGroupSetsServer struct { -} +// UnimplementedRuleGroupSetsServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedRuleGroupSetsServer struct{} func (UnimplementedRuleGroupSetsServer) Create(context.Context, *CreateRuleGroupSet) (*CreateRuleGroupSetResult, error) { return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") @@ -332,6 +361,7 @@ func (UnimplementedRuleGroupSetsServer) Delete(context.Context, *DeleteRuleGroup return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (UnimplementedRuleGroupSetsServer) mustEmbedUnimplementedRuleGroupSetsServer() {} +func (UnimplementedRuleGroupSetsServer) testEmbeddedByValue() {} // UnsafeRuleGroupSetsServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to RuleGroupSetsServer will @@ -341,6 +371,13 @@ type UnsafeRuleGroupSetsServer interface { } func RegisterRuleGroupSetsServer(s grpc.ServiceRegistrar, srv RuleGroupSetsServer) { + // If the following call pancis, it indicates UnimplementedRuleGroupSetsServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&RuleGroupSets_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/metrics-rule-manager/v1/tasks.pb.go b/go/internal/coralogixapis/metrics-rule-manager/v1/tasks.pb.go index 7bef1fc3..652b7c7c 100644 --- a/go/internal/coralogixapis/metrics-rule-manager/v1/tasks.pb.go +++ b/go/internal/coralogixapis/metrics-rule-manager/v1/tasks.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/metrics-rule-manager/v1/tasks.proto package golang diff --git a/go/internal/coralogixapis/metrics-rule-manager/v1/tasks_grpc.pb.go b/go/internal/coralogixapis/metrics-rule-manager/v1/tasks_grpc.pb.go index 67844b58..4f407269 100644 --- a/go/internal/coralogixapis/metrics-rule-manager/v1/tasks_grpc.pb.go +++ b/go/internal/coralogixapis/metrics-rule-manager/v1/tasks_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/metrics-rule-manager/v1/tasks.proto package golang @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( Tasks_GetTask_FullMethodName = "/rule_manager.tasks.Tasks/GetTask" @@ -40,8 +40,9 @@ func NewTasksClient(cc grpc.ClientConnInterface) TasksClient { } func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...grpc.CallOption) (*GetTaskResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetTaskResponse) - err := c.cc.Invoke(ctx, Tasks_GetTask_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Tasks_GetTask_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -49,8 +50,9 @@ func (c *tasksClient) GetTask(ctx context.Context, in *GetTaskRequest, opts ...g } func (c *tasksClient) TaskCompleted(ctx context.Context, in *TaskCompletedRequest, opts ...grpc.CallOption) (*TaskCompletedResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TaskCompletedResponse) - err := c.cc.Invoke(ctx, Tasks_TaskCompleted_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, Tasks_TaskCompleted_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,16 +61,19 @@ func (c *tasksClient) TaskCompleted(ctx context.Context, in *TaskCompletedReques // TasksServer is the server API for Tasks service. // All implementations must embed UnimplementedTasksServer -// for forward compatibility +// for forward compatibility. type TasksServer interface { GetTask(context.Context, *GetTaskRequest) (*GetTaskResponse, error) TaskCompleted(context.Context, *TaskCompletedRequest) (*TaskCompletedResponse, error) mustEmbedUnimplementedTasksServer() } -// UnimplementedTasksServer must be embedded to have forward compatible implementations. -type UnimplementedTasksServer struct { -} +// UnimplementedTasksServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTasksServer struct{} func (UnimplementedTasksServer) GetTask(context.Context, *GetTaskRequest) (*GetTaskResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTask not implemented") @@ -77,6 +82,7 @@ func (UnimplementedTasksServer) TaskCompleted(context.Context, *TaskCompletedReq return nil, status.Errorf(codes.Unimplemented, "method TaskCompleted not implemented") } func (UnimplementedTasksServer) mustEmbedUnimplementedTasksServer() {} +func (UnimplementedTasksServer) testEmbeddedByValue() {} // UnsafeTasksServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TasksServer will @@ -86,6 +92,13 @@ type UnsafeTasksServer interface { } func RegisterTasksServer(s grpc.ServiceRegistrar, srv TasksServer) { + // If the following call pancis, it indicates UnimplementedTasksServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&Tasks_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/notification_center/common/common.pb.go b/go/internal/coralogixapis/notification_center/common/common.pb.go index 4174480f..a9e664e4 100644 --- a/go/internal/coralogixapis/notification_center/common/common.pb.go +++ b/go/internal/coralogixapis/notification_center/common/common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/common/common.proto package common diff --git a/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go b/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go index b87032b4..e49eaf0d 100644 --- a/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go +++ b/go/internal/coralogixapis/notification_center/common/config_overrides.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/common/config_overrides.proto package common diff --git a/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go b/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go index 6fc55287..4c06b18e 100644 --- a/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go +++ b/go/internal/coralogixapis/notification_center/common/rpc_common.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/common/rpc_common.proto package common diff --git a/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go b/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go index 49736dad..5cafca5d 100644 --- a/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go +++ b/go/internal/coralogixapis/notification_center/common/v1/config_fields.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/common/v1/config_fields.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go b/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go index c242f274..1bf8c04e 100644 --- a/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go +++ b/go/internal/coralogixapis/notification_center/common/v1/routing.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/common/v1/routing.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go b/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go index 28cf7fe5..78fcbcb2 100644 --- a/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go +++ b/go/internal/coralogixapis/notification_center/connectors/v1/connector.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/connectors/v1/connector.proto package v1 @@ -30,15 +30,15 @@ type Connector struct { Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` // for declarative API - UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` - Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` - TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` - UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` - ConnectorConfigs []*ConnectorConfig `protobuf:"bytes,9,rep,name=connector_configs,json=connectorConfigs,proto3" json:"connector_configs,omitempty"` - EntityType string `protobuf:"bytes,10,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` + UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` + Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` + TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` + ConnectorConfigs []*ConnectorConfig `protobuf:"bytes,9,rep,name=connector_configs,json=connectorConfigs,proto3" json:"connector_configs,omitempty"` + ConfigOverrides []*EntityTypeConfigOverrides `protobuf:"bytes,11,rep,name=config_overrides,json=configOverrides,proto3" json:"config_overrides,omitempty"` } func (x *Connector) Reset() { @@ -134,13 +134,168 @@ func (x *Connector) GetConnectorConfigs() []*ConnectorConfig { return nil } -func (x *Connector) GetEntityType() string { +func (x *Connector) GetConfigOverrides() []*EntityTypeConfigOverrides { + if x != nil { + return x.ConfigOverrides + } + return nil +} + +type EntityTypeConfigOverrides struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + EntityType string `protobuf:"bytes,1,opt,name=entity_type,json=entityType,proto3" json:"entity_type,omitempty"` + ConnectorConfigs []*ConnectorConfig `protobuf:"bytes,2,rep,name=connector_configs,json=connectorConfigs,proto3" json:"connector_configs,omitempty"` +} + +func (x *EntityTypeConfigOverrides) Reset() { + *x = EntityTypeConfigOverrides{} + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EntityTypeConfigOverrides) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EntityTypeConfigOverrides) ProtoMessage() {} + +func (x *EntityTypeConfigOverrides) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_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 EntityTypeConfigOverrides.ProtoReflect.Descriptor instead. +func (*EntityTypeConfigOverrides) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{1} +} + +func (x *EntityTypeConfigOverrides) GetEntityType() string { if x != nil { return x.EntityType } return "" } +func (x *EntityTypeConfigOverrides) GetConnectorConfigs() []*ConnectorConfig { + if x != nil { + return x.ConnectorConfigs + } + return nil +} + +type ConnectorSummary struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"` + // for declarative API + UserFacingId *string `protobuf:"bytes,2,opt,name=user_facing_id,json=userFacingId,proto3,oneof" json:"user_facing_id,omitempty"` + Type common.ConnectorType `protobuf:"varint,3,opt,name=type,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"type,omitempty"` + TeamId *uint32 `protobuf:"varint,4,opt,name=team_id,json=teamId,proto3,oneof" json:"team_id,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3,oneof" json:"create_time,omitempty"` + UpdateTime *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3,oneof" json:"update_time,omitempty"` +} + +func (x *ConnectorSummary) Reset() { + *x = ConnectorSummary{} + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ConnectorSummary) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ConnectorSummary) ProtoMessage() {} + +func (x *ConnectorSummary) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ConnectorSummary.ProtoReflect.Descriptor instead. +func (*ConnectorSummary) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{2} +} + +func (x *ConnectorSummary) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *ConnectorSummary) GetUserFacingId() string { + if x != nil && x.UserFacingId != nil { + return *x.UserFacingId + } + return "" +} + +func (x *ConnectorSummary) GetType() common.ConnectorType { + if x != nil { + return x.Type + } + return common.ConnectorType(0) +} + +func (x *ConnectorSummary) GetTeamId() uint32 { + if x != nil && x.TeamId != nil { + return *x.TeamId + } + return 0 +} + +func (x *ConnectorSummary) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *ConnectorSummary) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *ConnectorSummary) GetCreateTime() *timestamppb.Timestamp { + if x != nil { + return x.CreateTime + } + return nil +} + +func (x *ConnectorSummary) GetUpdateTime() *timestamppb.Timestamp { + if x != nil { + return x.UpdateTime + } + return nil +} + type ConnectorConfig struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -152,7 +307,7 @@ type ConnectorConfig struct { func (x *ConnectorConfig) Reset() { *x = ConnectorConfig{} - mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[1] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -164,7 +319,7 @@ func (x *ConnectorConfig) String() string { func (*ConnectorConfig) ProtoMessage() {} func (x *ConnectorConfig) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[1] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -177,7 +332,7 @@ func (x *ConnectorConfig) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectorConfig.ProtoReflect.Descriptor instead. func (*ConnectorConfig) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{1} + return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{3} } func (x *ConnectorConfig) GetOutputSchemaId() string { @@ -205,7 +360,7 @@ type ConnectorTypeSummary struct { func (x *ConnectorTypeSummary) Reset() { *x = ConnectorTypeSummary{} - mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[2] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -217,7 +372,7 @@ func (x *ConnectorTypeSummary) String() string { func (*ConnectorTypeSummary) ProtoMessage() {} func (x *ConnectorTypeSummary) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[2] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -230,7 +385,7 @@ func (x *ConnectorTypeSummary) ProtoReflect() protoreflect.Message { // Deprecated: Use ConnectorTypeSummary.ProtoReflect.Descriptor instead. func (*ConnectorTypeSummary) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{2} + return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescGZIP(), []int{4} } func (x *ConnectorTypeSummary) GetType() common.ConnectorType { @@ -267,7 +422,7 @@ var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_raw 0x6d, 0x6f, 0x6e, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc7, 0x04, 0x0a, 0x09, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb4, 0x05, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, @@ -297,31 +452,78 @@ var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_raw 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x10, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x1f, - 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x42, - 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, - 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x65, - 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, - 0x61, 0x49, 0x64, 0x12, 0x53, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, - 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x76, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, - 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, - 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x12, 0x79, + 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x6f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, + 0x65, 0x73, 0x18, 0x0b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x4e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, + 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, + 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, + 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x4a, + 0x04, 0x08, 0x0a, 0x10, 0x0b, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x22, 0xaf, 0x01, 0x0a, 0x19, 0x45, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x4f, 0x76, 0x65, 0x72, 0x72, 0x69, 0x64, 0x65, 0x73, + 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x71, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x44, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x73, 0x22, 0xcd, 0x03, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x29, + 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x46, 0x61, + 0x63, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, + 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, + 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, + 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, 0x64, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0d, 0x48, 0x02, 0x52, 0x06, 0x74, 0x65, 0x61, 0x6d, 0x49, 0x64, 0x88, 0x01, + 0x01, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, + 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x40, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x03, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, + 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x04, 0x52, 0x0a, 0x75, 0x70, + 0x64, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, + 0x69, 0x64, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x74, 0x65, 0x61, 0x6d, 0x5f, 0x69, + 0x64, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x4a, 0x04, 0x08, 0x09, 0x10, 0x0a, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x10, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0e, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, + 0x49, 0x64, 0x12, 0x53, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, + 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, + 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x76, 0x0a, 0x14, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x48, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, + 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, + 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -336,27 +538,34 @@ func file_com_coralogixapis_notification_center_connectors_v1_connector_proto_ra return file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDescData } -var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_goTypes = []any{ - (*Connector)(nil), // 0: com.coralogixapis.notification_center.connectors.v1.Connector - (*ConnectorConfig)(nil), // 1: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig - (*ConnectorTypeSummary)(nil), // 2: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary - (common.ConnectorType)(0), // 3: com.coralogixapis.notification_center.ConnectorType - (*timestamppb.Timestamp)(nil), // 4: google.protobuf.Timestamp - (*v1.ConnectorConfigField)(nil), // 5: com.coralogixapis.notification_center.ConnectorConfigField + (*Connector)(nil), // 0: com.coralogixapis.notification_center.connectors.v1.Connector + (*EntityTypeConfigOverrides)(nil), // 1: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides + (*ConnectorSummary)(nil), // 2: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + (*ConnectorConfig)(nil), // 3: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig + (*ConnectorTypeSummary)(nil), // 4: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + (common.ConnectorType)(0), // 5: com.coralogixapis.notification_center.ConnectorType + (*timestamppb.Timestamp)(nil), // 6: google.protobuf.Timestamp + (*v1.ConnectorConfigField)(nil), // 7: com.coralogixapis.notification_center.ConnectorConfigField } var file_com_coralogixapis_notification_center_connectors_v1_connector_proto_depIdxs = []int32{ - 3, // 0: com.coralogixapis.notification_center.connectors.v1.Connector.type:type_name -> com.coralogixapis.notification_center.ConnectorType - 4, // 1: com.coralogixapis.notification_center.connectors.v1.Connector.create_time:type_name -> google.protobuf.Timestamp - 4, // 2: com.coralogixapis.notification_center.connectors.v1.Connector.update_time:type_name -> google.protobuf.Timestamp - 1, // 3: com.coralogixapis.notification_center.connectors.v1.Connector.connector_configs:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig - 5, // 4: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig.fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField - 3, // 5: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType - 6, // [6:6] is the sub-list for method output_type - 6, // [6:6] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name + 5, // 0: com.coralogixapis.notification_center.connectors.v1.Connector.type:type_name -> com.coralogixapis.notification_center.ConnectorType + 6, // 1: com.coralogixapis.notification_center.connectors.v1.Connector.create_time:type_name -> google.protobuf.Timestamp + 6, // 2: com.coralogixapis.notification_center.connectors.v1.Connector.update_time:type_name -> google.protobuf.Timestamp + 3, // 3: com.coralogixapis.notification_center.connectors.v1.Connector.connector_configs:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig + 1, // 4: com.coralogixapis.notification_center.connectors.v1.Connector.config_overrides:type_name -> com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides + 3, // 5: com.coralogixapis.notification_center.connectors.v1.EntityTypeConfigOverrides.connector_configs:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorConfig + 5, // 6: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType + 6, // 7: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.create_time:type_name -> google.protobuf.Timestamp + 6, // 8: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary.update_time:type_name -> google.protobuf.Timestamp + 7, // 9: com.coralogixapis.notification_center.connectors.v1.ConnectorConfig.fields:type_name -> com.coralogixapis.notification_center.ConnectorConfigField + 5, // 10: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary.type:type_name -> com.coralogixapis.notification_center.ConnectorType + 11, // [11:11] is the sub-list for method output_type + 11, // [11:11] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_connectors_v1_connector_proto_init() } @@ -365,13 +574,14 @@ func file_com_coralogixapis_notification_center_connectors_v1_connector_proto_in return } file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[0].OneofWrappers = []any{} + file_com_coralogixapis_notification_center_connectors_v1_connector_proto_msgTypes[2].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_com_coralogixapis_notification_center_connectors_v1_connector_proto_rawDesc, NumEnums: 0, - NumMessages: 3, + NumMessages: 5, NumExtensions: 0, NumServices: 0, }, diff --git a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go index 07f506f9..72278401 100644 --- a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go +++ b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/connectors/v1/connectors_service.proto package v1 @@ -381,7 +381,6 @@ type ListConnectorsRequest struct { ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` OrderBys []*common.OrderBy `protobuf:"bytes,2,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"` - EntityType *string `protobuf:"bytes,3,opt,name=entity_type,json=entityType,proto3,oneof" json:"entity_type,omitempty"` } func (x *ListConnectorsRequest) Reset() { @@ -428,13 +427,6 @@ func (x *ListConnectorsRequest) GetOrderBys() []*common.OrderBy { return nil } -func (x *ListConnectorsRequest) GetEntityType() string { - if x != nil && x.EntityType != nil { - return *x.EntityType - } - return "" -} - type ListConnectorsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -578,6 +570,104 @@ func (x *BatchGetConnectorsResponse) GetNotFoundIds() []string { return nil } +type ListConnectorSummariesRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConnectorType common.ConnectorType `protobuf:"varint,1,opt,name=connector_type,json=connectorType,proto3,enum=com.coralogixapis.notification_center.ConnectorType" json:"connector_type,omitempty"` + OrderBys []*common.OrderBy `protobuf:"bytes,2,rep,name=order_bys,json=orderBys,proto3" json:"order_bys,omitempty"` +} + +func (x *ListConnectorSummariesRequest) Reset() { + *x = ListConnectorSummariesRequest{} + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListConnectorSummariesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConnectorSummariesRequest) ProtoMessage() {} + +func (x *ListConnectorSummariesRequest) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[12] + 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 ListConnectorSummariesRequest.ProtoReflect.Descriptor instead. +func (*ListConnectorSummariesRequest) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{12} +} + +func (x *ListConnectorSummariesRequest) GetConnectorType() common.ConnectorType { + if x != nil { + return x.ConnectorType + } + return common.ConnectorType(0) +} + +func (x *ListConnectorSummariesRequest) GetOrderBys() []*common.OrderBy { + if x != nil { + return x.OrderBys + } + return nil +} + +type ListConnectorSummariesResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ConnectorSummaries []*ConnectorSummary `protobuf:"bytes,1,rep,name=connector_summaries,json=connectorSummaries,proto3" json:"connector_summaries,omitempty"` +} + +func (x *ListConnectorSummariesResponse) Reset() { + *x = ListConnectorSummariesResponse{} + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListConnectorSummariesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListConnectorSummariesResponse) ProtoMessage() {} + +func (x *ListConnectorSummariesResponse) ProtoReflect() protoreflect.Message { + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[13] + 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 ListConnectorSummariesResponse.ProtoReflect.Descriptor instead. +func (*ListConnectorSummariesResponse) Descriptor() ([]byte, []int) { + return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{13} +} + +func (x *ListConnectorSummariesResponse) GetConnectorSummaries() []*ConnectorSummary { + if x != nil { + return x.ConnectorSummaries + } + return nil +} + type GetConnectorTypeSummariesRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -586,7 +676,7 @@ type GetConnectorTypeSummariesRequest struct { func (x *GetConnectorTypeSummariesRequest) Reset() { *x = GetConnectorTypeSummariesRequest{} - mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[12] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -598,7 +688,7 @@ func (x *GetConnectorTypeSummariesRequest) String() string { func (*GetConnectorTypeSummariesRequest) ProtoMessage() {} func (x *GetConnectorTypeSummariesRequest) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[12] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[14] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -611,7 +701,7 @@ func (x *GetConnectorTypeSummariesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetConnectorTypeSummariesRequest.ProtoReflect.Descriptor instead. func (*GetConnectorTypeSummariesRequest) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{12} + return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{14} } type GetConnectorTypeSummariesResponse struct { @@ -624,7 +714,7 @@ type GetConnectorTypeSummariesResponse struct { func (x *GetConnectorTypeSummariesResponse) Reset() { *x = GetConnectorTypeSummariesResponse{} - mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[13] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -636,7 +726,7 @@ func (x *GetConnectorTypeSummariesResponse) String() string { func (*GetConnectorTypeSummariesResponse) ProtoMessage() {} func (x *GetConnectorTypeSummariesResponse) ProtoReflect() protoreflect.Message { - mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[13] + mi := &file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[15] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -649,7 +739,7 @@ func (x *GetConnectorTypeSummariesResponse) ProtoReflect() protoreflect.Message // Deprecated: Use GetConnectorTypeSummariesResponse.ProtoReflect.Descriptor instead. func (*GetConnectorTypeSummariesResponse) Descriptor() ([]byte, []int) { - return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{13} + return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescGZIP(), []int{15} } func (x *GetConnectorTypeSummariesResponse) GetConnectorTypeSummaries() []*ConnectorTypeSummary { @@ -726,7 +816,7 @@ var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_ 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x09, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xf7, 0x01, 0x0a, 0x15, 0x4c, 0x69, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0xd4, 0x01, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, @@ -738,157 +828,195 @@ var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_ 0x03, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x64, 0x65, - 0x72, 0x42, 0x79, 0x52, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x73, 0x12, 0x24, 0x0a, - 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, - 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x22, 0x78, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, - 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x72, 0x42, 0x79, 0x52, 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x73, 0x4a, 0x04, 0x08, + 0x03, 0x10, 0x04, 0x52, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x78, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x0a, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x0a, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x2d, 0x0a, 0x19, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xc0, 0x02, 0x0a, 0x1a, 0x42, 0x61, + 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x5f, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, + 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, + 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x64, 0x73, 0x1a, 0x7d, 0x0a, + 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x54, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, 0x2d, 0x0a, - 0x19, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22, 0xc0, 0x02, 0x0a, - 0x1a, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x7f, 0x0a, 0x0a, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x5f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0a, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x22, 0x0a, 0x0d, - 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x49, 0x64, 0x73, - 0x1a, 0x7d, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x54, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, + 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xdc, 0x01, 0x0a, + 0x1d, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, + 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x08, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x73, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x52, 0x0b, + 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, 0x98, 0x01, 0x0a, 0x1e, + 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x76, + 0x0a, 0x13, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x73, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x45, 0x2e, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x79, 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa9, 0x01, 0x0a, 0x21, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x83, 0x01, 0x0a, 0x18, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, + 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x16, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x32, 0xe3, 0x0e, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe2, 0x01, 0x0a, + 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, + 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, + 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, + 0x93, 0x02, 0x2e, 0x3a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x21, + 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x12, 0xe4, 0x01, 0x0a, 0x10, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, - 0x22, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, - 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x22, 0xa9, 0x01, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x83, 0x01, 0x0a, 0x18, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x73, 0x75, 0x6d, - 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x49, 0x2e, 0x63, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, + 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x09, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, 0x20, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0xdc, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, - 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x16, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x32, - 0xdf, 0x0c, 0x0a, 0x11, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x53, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xe2, 0x01, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, - 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x34, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x3a, 0x09, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x22, 0x21, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0xe4, 0x01, 0x0a, 0x10, 0x52, - 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, - 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4d, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x2d, 0x3a, 0x09, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x1a, - 0x20, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, + 0x26, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x12, 0xdc, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, - 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, - 0x74, 0x65, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, + 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x48, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x2a, 0x26, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, - 0x72, 0x12, 0x48, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, - 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, - 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, - 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, - 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xd7, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, - 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x3a, 0x01, 0x2a, 0x12, 0x21, 0x76, - 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x12, 0xe9, 0x01, 0x0a, 0x12, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, - 0x12, 0x2a, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x12, 0x82, 0x02, 0x0a, - 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x55, 0x2e, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, - 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x56, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2e, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x28, 0x12, 0x26, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xd7, 0x01, + 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, + 0x12, 0x4a, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, + 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4b, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, + 0x26, 0x3a, 0x01, 0x2a, 0x12, 0x21, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0xe9, 0x01, 0x0a, 0x12, 0x42, 0x61, 0x74, 0x63, + 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x12, 0x4e, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4f, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x32, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2c, 0x12, 0x2a, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, + 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x47, 0x65, 0x74, 0x12, 0xfd, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x52, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x53, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, + 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x3a, + 0x01, 0x2a, 0x12, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x6c, 0x69, 0x73, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x69, 0x65, 0x73, 0x12, 0x86, 0x02, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, + 0x73, 0x12, 0x55, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x30, 0x12, 0x2e, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, - 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x67, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x56, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x53, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x3a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x12, 0x32, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x3a, 0x67, 0x65, 0x74, 0x54, + 0x79, 0x70, 0x65, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -903,7 +1031,7 @@ func file_com_coralogixapis_notification_center_connectors_v1_connectors_service return file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDescData } -var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes = make([]protoimpl.MessageInfo, 15) +var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes = make([]protoimpl.MessageInfo, 17) var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_goTypes = []any{ (*CreateConnectorRequest)(nil), // 0: com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest (*CreateConnectorResponse)(nil), // 1: com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse @@ -917,45 +1045,53 @@ var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_ (*ListConnectorsResponse)(nil), // 9: com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse (*BatchGetConnectorsRequest)(nil), // 10: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest (*BatchGetConnectorsResponse)(nil), // 11: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse - (*GetConnectorTypeSummariesRequest)(nil), // 12: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest - (*GetConnectorTypeSummariesResponse)(nil), // 13: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse - nil, // 14: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry - (*Connector)(nil), // 15: com.coralogixapis.notification_center.connectors.v1.Connector - (common.ConnectorType)(0), // 16: com.coralogixapis.notification_center.ConnectorType - (*common.OrderBy)(nil), // 17: com.coralogixapis.notification_center.OrderBy - (*ConnectorTypeSummary)(nil), // 18: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + (*ListConnectorSummariesRequest)(nil), // 12: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest + (*ListConnectorSummariesResponse)(nil), // 13: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse + (*GetConnectorTypeSummariesRequest)(nil), // 14: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest + (*GetConnectorTypeSummariesResponse)(nil), // 15: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse + nil, // 16: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry + (*Connector)(nil), // 17: com.coralogixapis.notification_center.connectors.v1.Connector + (common.ConnectorType)(0), // 18: com.coralogixapis.notification_center.ConnectorType + (*common.OrderBy)(nil), // 19: com.coralogixapis.notification_center.OrderBy + (*ConnectorSummary)(nil), // 20: com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + (*ConnectorTypeSummary)(nil), // 21: com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary } var file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_depIdxs = []int32{ - 15, // 0: com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 15, // 1: com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 15, // 2: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 15, // 3: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 15, // 4: com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 16, // 5: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType - 17, // 6: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy - 15, // 7: com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 14, // 8: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry - 18, // 9: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse.connector_type_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary - 15, // 10: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector - 0, // 11: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest - 2, // 12: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest - 4, // 13: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorRequest - 6, // 14: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorRequest - 8, // 15: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest - 10, // 16: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest - 12, // 17: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest - 1, // 18: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse - 3, // 19: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse - 5, // 20: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorResponse - 7, // 21: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse - 9, // 22: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse - 11, // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse - 13, // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse - 18, // [18:25] is the sub-list for method output_type - 11, // [11:18] is the sub-list for method input_type - 11, // [11:11] is the sub-list for extension type_name - 11, // [11:11] is the sub-list for extension extendee - 0, // [0:11] is the sub-list for field type_name + 17, // 0: com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 17, // 1: com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 17, // 2: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 17, // 3: com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 17, // 4: com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse.connector:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 18, // 5: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 19, // 6: com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy + 17, // 7: com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 16, // 8: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.connectors:type_name -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry + 18, // 9: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest.connector_type:type_name -> com.coralogixapis.notification_center.ConnectorType + 19, // 10: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest.order_bys:type_name -> com.coralogixapis.notification_center.OrderBy + 20, // 11: com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse.connector_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorSummary + 21, // 12: com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse.connector_type_summaries:type_name -> com.coralogixapis.notification_center.connectors.v1.ConnectorTypeSummary + 17, // 13: com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse.ConnectorsEntry.value:type_name -> com.coralogixapis.notification_center.connectors.v1.Connector + 0, // 14: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorRequest + 2, // 15: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorRequest + 4, // 16: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorRequest + 6, // 17: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorRequest + 8, // 18: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsRequest + 10, // 19: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:input_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsRequest + 12, // 20: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesRequest + 14, // 21: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:input_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesRequest + 1, // 22: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.CreateConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.CreateConnectorResponse + 3, // 23: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ReplaceConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.ReplaceConnectorResponse + 5, // 24: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.DeleteConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.DeleteConnectorResponse + 7, // 25: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnector:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorResponse + 9, // 26: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorsResponse + 11, // 27: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.BatchGetConnectors:output_type -> com.coralogixapis.notification_center.connectors.v1.BatchGetConnectorsResponse + 13, // 28: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.ListConnectorSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.ListConnectorSummariesResponse + 15, // 29: com.coralogixapis.notification_center.connectors.v1.ConnectorsService.GetConnectorTypeSummaries:output_type -> com.coralogixapis.notification_center.connectors.v1.GetConnectorTypeSummariesResponse + 22, // [22:30] is the sub-list for method output_type + 14, // [14:22] is the sub-list for method input_type + 14, // [14:14] is the sub-list for extension type_name + 14, // [14:14] is the sub-list for extension extendee + 0, // [0:14] is the sub-list for field type_name } func init() { file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_init() } @@ -964,14 +1100,13 @@ func file_com_coralogixapis_notification_center_connectors_v1_connectors_service return } file_com_coralogixapis_notification_center_connectors_v1_connector_proto_init() - file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_msgTypes[8].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_com_coralogixapis_notification_center_connectors_v1_connectors_service_proto_rawDesc, NumEnums: 0, - NumMessages: 15, + NumMessages: 17, NumExtensions: 0, NumServices: 1, }, diff --git a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service_grpc.pb.go b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service_grpc.pb.go index 96f76837..a533b4b6 100644 --- a/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service_grpc.pb.go +++ b/go/internal/coralogixapis/notification_center/connectors/v1/connectors_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/notification_center/connectors/v1/connectors_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ConnectorsService_CreateConnector_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/CreateConnector" @@ -25,12 +25,15 @@ const ( ConnectorsService_GetConnector_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/GetConnector" ConnectorsService_ListConnectors_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/ListConnectors" ConnectorsService_BatchGetConnectors_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/BatchGetConnectors" + ConnectorsService_ListConnectorSummaries_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/ListConnectorSummaries" ConnectorsService_GetConnectorTypeSummaries_FullMethodName = "/com.coralogixapis.notification_center.connectors.v1.ConnectorsService/GetConnectorTypeSummaries" ) // ConnectorsServiceClient is the client API for ConnectorsService 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. +// +// Public API that allows managing connectors. type ConnectorsServiceClient interface { CreateConnector(ctx context.Context, in *CreateConnectorRequest, opts ...grpc.CallOption) (*CreateConnectorResponse, error) ReplaceConnector(ctx context.Context, in *ReplaceConnectorRequest, opts ...grpc.CallOption) (*ReplaceConnectorResponse, error) @@ -38,6 +41,7 @@ type ConnectorsServiceClient interface { GetConnector(ctx context.Context, in *GetConnectorRequest, opts ...grpc.CallOption) (*GetConnectorResponse, error) ListConnectors(ctx context.Context, in *ListConnectorsRequest, opts ...grpc.CallOption) (*ListConnectorsResponse, error) BatchGetConnectors(ctx context.Context, in *BatchGetConnectorsRequest, opts ...grpc.CallOption) (*BatchGetConnectorsResponse, error) + ListConnectorSummaries(ctx context.Context, in *ListConnectorSummariesRequest, opts ...grpc.CallOption) (*ListConnectorSummariesResponse, error) GetConnectorTypeSummaries(ctx context.Context, in *GetConnectorTypeSummariesRequest, opts ...grpc.CallOption) (*GetConnectorTypeSummariesResponse, error) } @@ -50,8 +54,9 @@ func NewConnectorsServiceClient(cc grpc.ClientConnInterface) ConnectorsServiceCl } func (c *connectorsServiceClient) CreateConnector(ctx context.Context, in *CreateConnectorRequest, opts ...grpc.CallOption) (*CreateConnectorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateConnectorResponse) - err := c.cc.Invoke(ctx, ConnectorsService_CreateConnector_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_CreateConnector_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -59,8 +64,9 @@ func (c *connectorsServiceClient) CreateConnector(ctx context.Context, in *Creat } func (c *connectorsServiceClient) ReplaceConnector(ctx context.Context, in *ReplaceConnectorRequest, opts ...grpc.CallOption) (*ReplaceConnectorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceConnectorResponse) - err := c.cc.Invoke(ctx, ConnectorsService_ReplaceConnector_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_ReplaceConnector_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -68,8 +74,9 @@ func (c *connectorsServiceClient) ReplaceConnector(ctx context.Context, in *Repl } func (c *connectorsServiceClient) DeleteConnector(ctx context.Context, in *DeleteConnectorRequest, opts ...grpc.CallOption) (*DeleteConnectorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteConnectorResponse) - err := c.cc.Invoke(ctx, ConnectorsService_DeleteConnector_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_DeleteConnector_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -77,8 +84,9 @@ func (c *connectorsServiceClient) DeleteConnector(ctx context.Context, in *Delet } func (c *connectorsServiceClient) GetConnector(ctx context.Context, in *GetConnectorRequest, opts ...grpc.CallOption) (*GetConnectorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConnectorResponse) - err := c.cc.Invoke(ctx, ConnectorsService_GetConnector_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_GetConnector_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -86,8 +94,9 @@ func (c *connectorsServiceClient) GetConnector(ctx context.Context, in *GetConne } func (c *connectorsServiceClient) ListConnectors(ctx context.Context, in *ListConnectorsRequest, opts ...grpc.CallOption) (*ListConnectorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListConnectorsResponse) - err := c.cc.Invoke(ctx, ConnectorsService_ListConnectors_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_ListConnectors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -95,8 +104,19 @@ func (c *connectorsServiceClient) ListConnectors(ctx context.Context, in *ListCo } func (c *connectorsServiceClient) BatchGetConnectors(ctx context.Context, in *BatchGetConnectorsRequest, opts ...grpc.CallOption) (*BatchGetConnectorsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetConnectorsResponse) - err := c.cc.Invoke(ctx, ConnectorsService_BatchGetConnectors_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_BatchGetConnectors_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *connectorsServiceClient) ListConnectorSummaries(ctx context.Context, in *ListConnectorSummariesRequest, opts ...grpc.CallOption) (*ListConnectorSummariesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(ListConnectorSummariesResponse) + err := c.cc.Invoke(ctx, ConnectorsService_ListConnectorSummaries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -104,8 +124,9 @@ func (c *connectorsServiceClient) BatchGetConnectors(ctx context.Context, in *Ba } func (c *connectorsServiceClient) GetConnectorTypeSummaries(ctx context.Context, in *GetConnectorTypeSummariesRequest, opts ...grpc.CallOption) (*GetConnectorTypeSummariesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConnectorTypeSummariesResponse) - err := c.cc.Invoke(ctx, ConnectorsService_GetConnectorTypeSummaries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ConnectorsService_GetConnectorTypeSummaries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -114,7 +135,9 @@ func (c *connectorsServiceClient) GetConnectorTypeSummaries(ctx context.Context, // ConnectorsServiceServer is the server API for ConnectorsService service. // All implementations must embed UnimplementedConnectorsServiceServer -// for forward compatibility +// for forward compatibility. +// +// Public API that allows managing connectors. type ConnectorsServiceServer interface { CreateConnector(context.Context, *CreateConnectorRequest) (*CreateConnectorResponse, error) ReplaceConnector(context.Context, *ReplaceConnectorRequest) (*ReplaceConnectorResponse, error) @@ -122,13 +145,17 @@ type ConnectorsServiceServer interface { GetConnector(context.Context, *GetConnectorRequest) (*GetConnectorResponse, error) ListConnectors(context.Context, *ListConnectorsRequest) (*ListConnectorsResponse, error) BatchGetConnectors(context.Context, *BatchGetConnectorsRequest) (*BatchGetConnectorsResponse, error) + ListConnectorSummaries(context.Context, *ListConnectorSummariesRequest) (*ListConnectorSummariesResponse, error) GetConnectorTypeSummaries(context.Context, *GetConnectorTypeSummariesRequest) (*GetConnectorTypeSummariesResponse, error) mustEmbedUnimplementedConnectorsServiceServer() } -// UnimplementedConnectorsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedConnectorsServiceServer struct { -} +// UnimplementedConnectorsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedConnectorsServiceServer struct{} func (UnimplementedConnectorsServiceServer) CreateConnector(context.Context, *CreateConnectorRequest) (*CreateConnectorResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateConnector not implemented") @@ -148,10 +175,14 @@ func (UnimplementedConnectorsServiceServer) ListConnectors(context.Context, *Lis func (UnimplementedConnectorsServiceServer) BatchGetConnectors(context.Context, *BatchGetConnectorsRequest) (*BatchGetConnectorsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method BatchGetConnectors not implemented") } +func (UnimplementedConnectorsServiceServer) ListConnectorSummaries(context.Context, *ListConnectorSummariesRequest) (*ListConnectorSummariesResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method ListConnectorSummaries not implemented") +} func (UnimplementedConnectorsServiceServer) GetConnectorTypeSummaries(context.Context, *GetConnectorTypeSummariesRequest) (*GetConnectorTypeSummariesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetConnectorTypeSummaries not implemented") } func (UnimplementedConnectorsServiceServer) mustEmbedUnimplementedConnectorsServiceServer() {} +func (UnimplementedConnectorsServiceServer) testEmbeddedByValue() {} // UnsafeConnectorsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ConnectorsServiceServer will @@ -161,6 +192,13 @@ type UnsafeConnectorsServiceServer interface { } func RegisterConnectorsServiceServer(s grpc.ServiceRegistrar, srv ConnectorsServiceServer) { + // If the following call pancis, it indicates UnimplementedConnectorsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ConnectorsService_ServiceDesc, srv) } @@ -272,6 +310,24 @@ func _ConnectorsService_BatchGetConnectors_Handler(srv interface{}, ctx context. return interceptor(ctx, in, info, handler) } +func _ConnectorsService_ListConnectorSummaries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ListConnectorSummariesRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ConnectorsServiceServer).ListConnectorSummaries(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: ConnectorsService_ListConnectorSummaries_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ConnectorsServiceServer).ListConnectorSummaries(ctx, req.(*ListConnectorSummariesRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _ConnectorsService_GetConnectorTypeSummaries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetConnectorTypeSummariesRequest) if err := dec(in); err != nil { @@ -321,6 +377,10 @@ var ConnectorsService_ServiceDesc = grpc.ServiceDesc{ MethodName: "BatchGetConnectors", Handler: _ConnectorsService_BatchGetConnectors_Handler, }, + { + MethodName: "ListConnectorSummaries", + Handler: _ConnectorsService_ListConnectorSummaries_Handler, + }, { MethodName: "GetConnectorTypeSummaries", Handler: _ConnectorsService_GetConnectorTypeSummaries_Handler, diff --git a/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go b/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go index d4284d49..6e057187 100644 --- a/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go +++ b/go/internal/coralogixapis/notification_center/entities/v1/entities_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/entities/v1/entities_service.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go b/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go index fc3fe836..322fbb9e 100644 --- a/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go +++ b/go/internal/coralogixapis/notification_center/entities/v1/entities_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/notification_center/entities/v1/entities_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( EntitiesService_ListEntityTypes_FullMethodName = "/com.coralogixapis.notification_center.entities.v1.EntitiesService/ListEntityTypes" @@ -25,6 +25,8 @@ const ( // EntitiesServiceClient is the client API for EntitiesService 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. +// +// Public API to query information on registered entities in the Notification Center type EntitiesServiceClient interface { ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) } @@ -38,8 +40,9 @@ func NewEntitiesServiceClient(cc grpc.ClientConnInterface) EntitiesServiceClient } func (c *entitiesServiceClient) ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListEntityTypesResponse) - err := c.cc.Invoke(ctx, EntitiesService_ListEntityTypes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, EntitiesService_ListEntityTypes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -48,20 +51,26 @@ func (c *entitiesServiceClient) ListEntityTypes(ctx context.Context, in *ListEnt // EntitiesServiceServer is the server API for EntitiesService service. // All implementations must embed UnimplementedEntitiesServiceServer -// for forward compatibility +// for forward compatibility. +// +// Public API to query information on registered entities in the Notification Center type EntitiesServiceServer interface { ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) mustEmbedUnimplementedEntitiesServiceServer() } -// UnimplementedEntitiesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedEntitiesServiceServer struct { -} +// UnimplementedEntitiesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedEntitiesServiceServer struct{} func (UnimplementedEntitiesServiceServer) ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListEntityTypes not implemented") } func (UnimplementedEntitiesServiceServer) mustEmbedUnimplementedEntitiesServiceServer() {} +func (UnimplementedEntitiesServiceServer) testEmbeddedByValue() {} // UnsafeEntitiesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to EntitiesServiceServer will @@ -71,6 +80,13 @@ type UnsafeEntitiesServiceServer interface { } func RegisterEntitiesServiceServer(s grpc.ServiceRegistrar, srv EntitiesServiceServer) { + // If the following call pancis, it indicates UnimplementedEntitiesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&EntitiesService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go index 038ad408..ffdfc6fb 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/notification.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/notifications/v1/notification.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go index 368ab7c1..f571006a 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/testing.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/notifications/v1/testing.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go index f10a4b59..76f225ff 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/notifications/v1/testing_service.proto package v1 @@ -27,9 +27,11 @@ const ( type TestTemplateRenderResult_FailureReason int32 const ( - TestTemplateRenderResult_FAILURE_REASON_UNSPECIFIED TestTemplateRenderResult_FailureReason = 0 - TestTemplateRenderResult_INVALID_TEMPLATE TestTemplateRenderResult_FailureReason = 1 - TestTemplateRenderResult_FIELD_NOT_FOUND TestTemplateRenderResult_FailureReason = 2 + TestTemplateRenderResult_FAILURE_REASON_UNSPECIFIED TestTemplateRenderResult_FailureReason = 0 + TestTemplateRenderResult_INVALID_TEMPLATE TestTemplateRenderResult_FailureReason = 1 + TestTemplateRenderResult_FIELD_NOT_FOUND TestTemplateRenderResult_FailureReason = 2 + TestTemplateRenderResult_TEMPLATE_EXCEEDS_MAX_LENGTH TestTemplateRenderResult_FailureReason = 3 + TestTemplateRenderResult_RENDERED_VALUE_EXCEEDS_MAX_LENGTH TestTemplateRenderResult_FailureReason = 4 ) // Enum value maps for TestTemplateRenderResult_FailureReason. @@ -38,11 +40,15 @@ var ( 0: "FAILURE_REASON_UNSPECIFIED", 1: "INVALID_TEMPLATE", 2: "FIELD_NOT_FOUND", + 3: "TEMPLATE_EXCEEDS_MAX_LENGTH", + 4: "RENDERED_VALUE_EXCEEDS_MAX_LENGTH", } TestTemplateRenderResult_FailureReason_value = map[string]int32{ - "FAILURE_REASON_UNSPECIFIED": 0, - "INVALID_TEMPLATE": 1, - "FIELD_NOT_FOUND": 2, + "FAILURE_REASON_UNSPECIFIED": 0, + "INVALID_TEMPLATE": 1, + "FIELD_NOT_FOUND": 2, + "TEMPLATE_EXCEEDS_MAX_LENGTH": 3, + "RENDERED_VALUE_EXCEEDS_MAX_LENGTH": 4, } ) @@ -1108,7 +1114,7 @@ var file_com_coralogixapis_notification_center_notifications_v1_testing_service_ 0x1a, 0x0a, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x75, 0x62, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x22, - 0xbc, 0x04, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x85, 0x05, 0x0a, 0x18, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x74, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x58, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, @@ -1137,124 +1143,129 @@ var file_com_coralogixapis_notification_center_notifications_v1_testing_service_ 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x2e, 0x46, 0x61, 0x69, 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x5a, 0x0a, 0x0d, 0x46, 0x61, 0x69, 0x6c, - 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x41, 0x49, - 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, 0x56, - 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, - 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, 0x55, - 0x4e, 0x44, 0x10, 0x02, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x86, - 0x01, 0x0a, 0x1a, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x50, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, - 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x32, 0xd6, 0x0c, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, - 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x92, 0x02, 0x0a, 0x13, 0x54, - 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, - 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x53, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0xa2, 0x01, 0x0a, 0x0d, 0x46, 0x61, 0x69, + 0x6c, 0x75, 0x72, 0x65, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x46, 0x41, + 0x49, 0x4c, 0x55, 0x52, 0x45, 0x5f, 0x52, 0x45, 0x41, 0x53, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, + 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x49, 0x4e, + 0x56, 0x41, 0x4c, 0x49, 0x44, 0x5f, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, 0x45, 0x10, 0x01, + 0x12, 0x13, 0x0a, 0x0f, 0x46, 0x49, 0x45, 0x4c, 0x44, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46, 0x4f, + 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x1f, 0x0a, 0x1b, 0x54, 0x45, 0x4d, 0x50, 0x4c, 0x41, 0x54, + 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x53, 0x5f, 0x4d, 0x41, 0x58, 0x5f, 0x4c, 0x45, + 0x4e, 0x47, 0x54, 0x48, 0x10, 0x03, 0x12, 0x25, 0x0a, 0x21, 0x52, 0x45, 0x4e, 0x44, 0x45, 0x52, + 0x45, 0x44, 0x5f, 0x56, 0x41, 0x4c, 0x55, 0x45, 0x5f, 0x45, 0x58, 0x43, 0x45, 0x45, 0x44, 0x53, + 0x5f, 0x4d, 0x41, 0x58, 0x5f, 0x4c, 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x04, 0x42, 0x08, 0x0a, + 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x86, 0x01, 0x0a, 0x1a, 0x54, 0x65, 0x73, 0x74, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x68, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x50, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, - 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x4c, 0x3a, 0x01, 0x2a, 0x22, 0x47, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, - 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, - 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, - 0x93, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x54, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, - 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, - 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x55, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, + 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x32, 0xd6, 0x0c, 0x0a, 0x0e, 0x54, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, + 0x69, 0x63, 0x65, 0x12, 0x92, 0x02, 0x0a, 0x13, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x52, 0x2e, 0x63, 0x6f, + 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, + 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x53, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x01, - 0x2a, 0x22, 0x42, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x43, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x52, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x4c, 0x3a, 0x01, 0x2a, 0x22, + 0x47, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, + 0x73, 0x74, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x93, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x73, + 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x12, 0x54, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, + 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, + 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, + 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x55, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x01, 0x2a, 0x22, 0x42, 0x76, 0x31, 0x2f, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, + 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x86, + 0x02, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, + 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, + 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x50, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, + 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, + 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, + 0x2a, 0x22, 0x44, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, - 0x74, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x12, 0x86, 0x02, 0x0a, 0x10, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x50, 0x2e, 0x63, 0x6f, - 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, - 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x22, 0x44, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x87, - 0x02, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x51, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x74, 0x65, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x87, 0x02, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, + 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x51, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, + 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, + 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, + 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, + 0x22, 0x3f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, + 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, + 0x74, 0x12, 0xfb, 0x01, 0x0a, 0x0f, 0x54, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, - 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, - 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x22, 0x3f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, - 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, - 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x45, 0x78, 0x69, 0x73, 0x74, 0x69, - 0x6e, 0x67, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0xfb, 0x01, 0x0a, 0x0f, 0x54, 0x65, 0x73, - 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4e, 0x2e, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4f, 0x2e, 0x63, - 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, - 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x3a, 0x01, 0x2a, 0x22, 0x3c, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, + 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x47, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x41, 0x3a, 0x01, + 0x2a, 0x22, 0x3c, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, + 0x74, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x87, 0x02, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x51, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, + 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, + 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x22, 0x3f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, - 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x44, 0x65, 0x73, 0x74, 0x69, - 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x87, 0x02, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x12, 0x51, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x22, - 0x3f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, - 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x52, 0x65, 0x6e, 0x64, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( diff --git a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service_grpc.pb.go b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service_grpc.pb.go index 3a0e2d33..d9fc0ecb 100644 --- a/go/internal/coralogixapis/notification_center/notifications/v1/testing_service_grpc.pb.go +++ b/go/internal/coralogixapis/notification_center/notifications/v1/testing_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/notification_center/notifications/v1/testing_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( TestingService_TestConnectorConfig_FullMethodName = "/com.coralogixapis.notification_center.notifications.v1.TestingService/TestConnectorConfig" @@ -30,6 +30,8 @@ const ( // TestingServiceClient is the client API for TestingService 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. +// +// Public API for testing Notification Center configurations including connectors, presets, and templates. type TestingServiceClient interface { TestConnectorConfig(ctx context.Context, in *TestConnectorConfigRequest, opts ...grpc.CallOption) (*TestConnectorConfigResponse, error) TestExistingConnector(ctx context.Context, in *TestExistingConnectorRequest, opts ...grpc.CallOption) (*TestExistingConnectorResponse, error) @@ -48,8 +50,9 @@ func NewTestingServiceClient(cc grpc.ClientConnInterface) TestingServiceClient { } func (c *testingServiceClient) TestConnectorConfig(ctx context.Context, in *TestConnectorConfigRequest, opts ...grpc.CallOption) (*TestConnectorConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestConnectorConfigResponse) - err := c.cc.Invoke(ctx, TestingService_TestConnectorConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestConnectorConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -57,8 +60,9 @@ func (c *testingServiceClient) TestConnectorConfig(ctx context.Context, in *Test } func (c *testingServiceClient) TestExistingConnector(ctx context.Context, in *TestExistingConnectorRequest, opts ...grpc.CallOption) (*TestExistingConnectorResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestExistingConnectorResponse) - err := c.cc.Invoke(ctx, TestingService_TestExistingConnector_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestExistingConnector_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -66,8 +70,9 @@ func (c *testingServiceClient) TestExistingConnector(ctx context.Context, in *Te } func (c *testingServiceClient) TestPresetConfig(ctx context.Context, in *TestPresetConfigRequest, opts ...grpc.CallOption) (*TestPresetConfigResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestPresetConfigResponse) - err := c.cc.Invoke(ctx, TestingService_TestPresetConfig_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestPresetConfig_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -75,8 +80,9 @@ func (c *testingServiceClient) TestPresetConfig(ctx context.Context, in *TestPre } func (c *testingServiceClient) TestExistingPreset(ctx context.Context, in *TestExistingPresetRequest, opts ...grpc.CallOption) (*TestExistingPresetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestExistingPresetResponse) - err := c.cc.Invoke(ctx, TestingService_TestExistingPreset_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestExistingPreset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -84,8 +90,9 @@ func (c *testingServiceClient) TestExistingPreset(ctx context.Context, in *TestE } func (c *testingServiceClient) TestDestination(ctx context.Context, in *TestDestinationRequest, opts ...grpc.CallOption) (*TestDestinationResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestDestinationResponse) - err := c.cc.Invoke(ctx, TestingService_TestDestination_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestDestination_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -93,8 +100,9 @@ func (c *testingServiceClient) TestDestination(ctx context.Context, in *TestDest } func (c *testingServiceClient) TestTemplateRender(ctx context.Context, in *TestTemplateRenderRequest, opts ...grpc.CallOption) (*TestTemplateRenderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(TestTemplateRenderResponse) - err := c.cc.Invoke(ctx, TestingService_TestTemplateRender_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, TestingService_TestTemplateRender_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -103,7 +111,9 @@ func (c *testingServiceClient) TestTemplateRender(ctx context.Context, in *TestT // TestingServiceServer is the server API for TestingService service. // All implementations must embed UnimplementedTestingServiceServer -// for forward compatibility +// for forward compatibility. +// +// Public API for testing Notification Center configurations including connectors, presets, and templates. type TestingServiceServer interface { TestConnectorConfig(context.Context, *TestConnectorConfigRequest) (*TestConnectorConfigResponse, error) TestExistingConnector(context.Context, *TestExistingConnectorRequest) (*TestExistingConnectorResponse, error) @@ -114,9 +124,12 @@ type TestingServiceServer interface { mustEmbedUnimplementedTestingServiceServer() } -// UnimplementedTestingServiceServer must be embedded to have forward compatible implementations. -type UnimplementedTestingServiceServer struct { -} +// UnimplementedTestingServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedTestingServiceServer struct{} func (UnimplementedTestingServiceServer) TestConnectorConfig(context.Context, *TestConnectorConfigRequest) (*TestConnectorConfigResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method TestConnectorConfig not implemented") @@ -137,6 +150,7 @@ func (UnimplementedTestingServiceServer) TestTemplateRender(context.Context, *Te return nil, status.Errorf(codes.Unimplemented, "method TestTemplateRender not implemented") } func (UnimplementedTestingServiceServer) mustEmbedUnimplementedTestingServiceServer() {} +func (UnimplementedTestingServiceServer) testEmbeddedByValue() {} // UnsafeTestingServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TestingServiceServer will @@ -146,6 +160,13 @@ type UnsafeTestingServiceServer interface { } func RegisterTestingServiceServer(s grpc.ServiceRegistrar, srv TestingServiceServer) { + // If the following call pancis, it indicates UnimplementedTestingServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&TestingService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go b/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go index ab5fa653..13916c62 100644 --- a/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go +++ b/go/internal/coralogixapis/notification_center/presets/v1/preset.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/presets/v1/preset.proto package v1 diff --git a/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go b/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go index 2829a70b..c7d9c8fb 100644 --- a/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go +++ b/go/internal/coralogixapis/notification_center/presets/v1/presets_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/notification_center/presets/v1/presets_service.proto package v1 @@ -207,7 +207,12 @@ type DeleteCustomPresetRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DeprecatedId *string `protobuf:"bytes,1,opt,name=deprecated_id,json=deprecatedId,proto3,oneof" json:"deprecated_id,omitempty"` + // Types that are assignable to Identifier: + // + // *DeleteCustomPresetRequest_Id + // *DeleteCustomPresetRequest_UserFacingId + Identifier isDeleteCustomPresetRequest_Identifier `protobuf_oneof:"identifier"` } func (x *DeleteCustomPresetRequest) Reset() { @@ -240,13 +245,50 @@ func (*DeleteCustomPresetRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{4} } +func (x *DeleteCustomPresetRequest) GetDeprecatedId() string { + if x != nil && x.DeprecatedId != nil { + return *x.DeprecatedId + } + return "" +} + +func (m *DeleteCustomPresetRequest) GetIdentifier() isDeleteCustomPresetRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + func (x *DeleteCustomPresetRequest) GetId() string { - if x != nil { + if x, ok := x.GetIdentifier().(*DeleteCustomPresetRequest_Id); ok { return x.Id } return "" } +func (x *DeleteCustomPresetRequest) GetUserFacingId() string { + if x, ok := x.GetIdentifier().(*DeleteCustomPresetRequest_UserFacingId); ok { + return x.UserFacingId + } + return "" +} + +type isDeleteCustomPresetRequest_Identifier interface { + isDeleteCustomPresetRequest_Identifier() +} + +type DeleteCustomPresetRequest_Id struct { + Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` +} + +type DeleteCustomPresetRequest_UserFacingId struct { + UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` +} + +func (*DeleteCustomPresetRequest_Id) isDeleteCustomPresetRequest_Identifier() {} + +func (*DeleteCustomPresetRequest_UserFacingId) isDeleteCustomPresetRequest_Identifier() {} + type DeleteCustomPresetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -288,7 +330,12 @@ type SetCustomPresetAsDefaultRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DeprecatedId *string `protobuf:"bytes,1,opt,name=deprecated_id,json=deprecatedId,proto3,oneof" json:"deprecated_id,omitempty"` + // Types that are assignable to Identifier: + // + // *SetCustomPresetAsDefaultRequest_Id + // *SetCustomPresetAsDefaultRequest_UserFacingId + Identifier isSetCustomPresetAsDefaultRequest_Identifier `protobuf_oneof:"identifier"` } func (x *SetCustomPresetAsDefaultRequest) Reset() { @@ -321,13 +368,50 @@ func (*SetCustomPresetAsDefaultRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{6} } +func (x *SetCustomPresetAsDefaultRequest) GetDeprecatedId() string { + if x != nil && x.DeprecatedId != nil { + return *x.DeprecatedId + } + return "" +} + +func (m *SetCustomPresetAsDefaultRequest) GetIdentifier() isSetCustomPresetAsDefaultRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + func (x *SetCustomPresetAsDefaultRequest) GetId() string { - if x != nil { + if x, ok := x.GetIdentifier().(*SetCustomPresetAsDefaultRequest_Id); ok { return x.Id } return "" } +func (x *SetCustomPresetAsDefaultRequest) GetUserFacingId() string { + if x, ok := x.GetIdentifier().(*SetCustomPresetAsDefaultRequest_UserFacingId); ok { + return x.UserFacingId + } + return "" +} + +type isSetCustomPresetAsDefaultRequest_Identifier interface { + isSetCustomPresetAsDefaultRequest_Identifier() +} + +type SetCustomPresetAsDefaultRequest_Id struct { + Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` +} + +type SetCustomPresetAsDefaultRequest_UserFacingId struct { + UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` +} + +func (*SetCustomPresetAsDefaultRequest_Id) isSetCustomPresetAsDefaultRequest_Identifier() {} + +func (*SetCustomPresetAsDefaultRequest_UserFacingId) isSetCustomPresetAsDefaultRequest_Identifier() {} + type SetCustomPresetAsDefaultResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -369,7 +453,12 @@ type GetPresetRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DeprecatedId *string `protobuf:"bytes,1,opt,name=deprecated_id,json=deprecatedId,proto3,oneof" json:"deprecated_id,omitempty"` + // Types that are assignable to Identifier: + // + // *GetPresetRequest_Id + // *GetPresetRequest_UserFacingId + Identifier isGetPresetRequest_Identifier `protobuf_oneof:"identifier"` } func (x *GetPresetRequest) Reset() { @@ -402,13 +491,50 @@ func (*GetPresetRequest) Descriptor() ([]byte, []int) { return file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_rawDescGZIP(), []int{8} } +func (x *GetPresetRequest) GetDeprecatedId() string { + if x != nil && x.DeprecatedId != nil { + return *x.DeprecatedId + } + return "" +} + +func (m *GetPresetRequest) GetIdentifier() isGetPresetRequest_Identifier { + if m != nil { + return m.Identifier + } + return nil +} + func (x *GetPresetRequest) GetId() string { - if x != nil { + if x, ok := x.GetIdentifier().(*GetPresetRequest_Id); ok { return x.Id } return "" } +func (x *GetPresetRequest) GetUserFacingId() string { + if x, ok := x.GetIdentifier().(*GetPresetRequest_UserFacingId); ok { + return x.UserFacingId + } + return "" +} + +type isGetPresetRequest_Identifier interface { + isGetPresetRequest_Identifier() +} + +type GetPresetRequest_Id struct { + Id string `protobuf:"bytes,101,opt,name=id,proto3,oneof"` +} + +type GetPresetRequest_UserFacingId struct { + UserFacingId string `protobuf:"bytes,102,opt,name=user_facing_id,json=userFacingId,proto3,oneof"` +} + +func (*GetPresetRequest_Id) isGetPresetRequest_Identifier() {} + +func (*GetPresetRequest_UserFacingId) isGetPresetRequest_Identifier() {} + type GetPresetResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -902,27 +1028,113 @@ var file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_ 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x06, 0x70, 0x72, 0x65, 0x73, - 0x65, 0x74, 0x22, 0x2b, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x1c, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x31, 0x0a, - 0x1f, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x22, 0x22, 0x0a, 0x20, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x22, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x65, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, - 0x06, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, + 0x65, 0x74, 0x22, 0x9f, 0x01, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, + 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x64, 0x65, 0x70, 0x72, 0x65, + 0x63, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x10, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x65, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, + 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x64, 0x18, 0x66, + 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x46, 0x61, 0x63, 0x69, + 0x6e, 0x67, 0x49, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x69, 0x64, 0x22, 0x1c, 0x0a, 0x1a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x1f, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, + 0x0c, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x12, 0x10, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, + 0x67, 0x5f, 0x69, 0x64, 0x18, 0x66, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x73, + 0x65, 0x72, 0x46, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x69, 0x64, + 0x65, 0x6e, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x70, + 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x22, 0x0a, 0x20, 0x53, 0x65, + 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, + 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x96, + 0x01, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, + 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x64, 0x65, + 0x70, 0x72, 0x65, 0x63, 0x61, 0x74, 0x65, 0x64, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x10, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x65, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x12, + 0x26, 0x0a, 0x0e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x61, 0x63, 0x69, 0x6e, 0x67, 0x5f, 0x69, + 0x64, 0x18, 0x66, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0c, 0x75, 0x73, 0x65, 0x72, 0x46, + 0x61, 0x63, 0x69, 0x6e, 0x67, 0x49, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x69, 0x64, 0x65, 0x6e, 0x74, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x64, 0x65, 0x70, 0x72, 0x65, 0x63, + 0x61, 0x74, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x22, 0x65, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x06, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x06, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, 0xe7, + 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, + 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, + 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, 0x6f, 0x6e, + 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, + 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x09, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2e, + 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, + 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, 0x08, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x1b, 0x4c, 0x69, 0x73, + 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x70, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, + 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, + 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, + 0x61, 0x72, 0x79, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, + 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, + 0x22, 0xa5, 0x02, 0x0a, 0x17, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x07, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x56, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x06, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x22, - 0xe7, 0x01, 0x0a, 0x1a, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, - 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, + 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x12, 0x22, + 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, 0x49, + 0x64, 0x73, 0x1a, 0x74, 0x0a, 0x0c, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, + 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9e, 0x01, 0x0a, 0x1e, 0x47, 0x65, 0x74, + 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, + 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0e, 0x63, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, + 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, + 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, + 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x1f, 0x47, 0x65, + 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, + 0x0e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, + 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, + 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0xa4, 0x01, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, + 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, @@ -930,216 +1142,152 @@ var file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_ 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x09, - 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x62, 0x79, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x2e, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, - 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x52, - 0x08, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x42, 0x79, 0x73, 0x22, 0x89, 0x01, 0x0a, 0x1b, 0x4c, 0x69, - 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6a, 0x0a, 0x10, 0x70, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, - 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, - 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, - 0x6d, 0x61, 0x72, 0x79, 0x52, 0x0f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x69, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x16, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, - 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, - 0x73, 0x22, 0xa5, 0x02, 0x0a, 0x17, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, - 0x07, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x56, + 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0x8f, 0x01, 0x0a, + 0x25, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, - 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x12, - 0x22, 0x0a, 0x0d, 0x6e, 0x6f, 0x74, 0x5f, 0x66, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x69, 0x64, 0x73, - 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0b, 0x6e, 0x6f, 0x74, 0x46, 0x6f, 0x75, 0x6e, 0x64, - 0x49, 0x64, 0x73, 0x1a, 0x74, 0x0a, 0x0c, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, - 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9e, 0x01, 0x0a, 0x1e, 0x47, 0x65, - 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, - 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5b, 0x0a, 0x0e, - 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, - 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x6e, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x6e, 0x74, - 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0x89, 0x01, 0x0a, 0x1f, 0x47, - 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, - 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, - 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, - 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, - 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x22, 0xa4, 0x01, 0x0a, 0x24, 0x47, 0x65, 0x74, 0x53, 0x79, - 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x5b, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x74, 0x79, 0x70, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b, - 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x54, 0x79, 0x70, 0x65, 0x22, 0x8f, 0x01, - 0x0a, 0x25, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x66, 0x0a, 0x0e, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x5f, 0x73, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x3f, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, + 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, + 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x32, 0xf2, + 0x10, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0xe7, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, + 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, + 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, + 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, + 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x70, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0xea, 0x01, 0x0a, 0x13, + 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x12, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, + 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x4d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, + 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x1a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0xe4, 0x01, 0x0a, 0x12, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, + 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, + 0x85, 0x02, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x51, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x41, + 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, - 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x52, 0x0d, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x32, - 0xf2, 0x10, 0x0a, 0x0e, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0xe7, 0x01, 0x0a, 0x12, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x02, 0x69, 0x64, 0x22, + 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, + 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x12, 0xc2, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x50, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x42, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, + 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, + 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, - 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, - 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, - 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x70, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x22, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0xea, 0x01, 0x0a, - 0x13, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x12, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, + 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2c, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, + 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, + 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xe9, 0x01, 0x0a, + 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, + 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x22, 0x36, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x30, 0x3a, 0x06, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x1a, 0x26, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x12, 0xe4, 0x01, 0x0a, 0x12, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x12, 0x4b, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, - 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x4c, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x33, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x2d, 0x2a, 0x2b, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, - 0x12, 0x85, 0x02, 0x0a, 0x18, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x12, 0x51, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x52, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x50, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x41, 0x73, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x42, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3c, 0x3a, 0x02, 0x69, 0x64, - 0x22, 0x36, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, - 0x73, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x3a, 0x64, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x65, 0x74, 0x12, 0xc2, 0x01, 0x0a, 0x09, 0x47, 0x65, 0x74, - 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x42, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, + 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x75, 0x6d, 0x6d, 0x61, + 0x72, 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0xd8, 0x01, 0x0a, 0x0f, 0x42, 0x61, 0x74, + 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x12, 0x48, 0x2e, 0x63, + 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, + 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, + 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x43, 0x2e, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x2c, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x26, 0x12, 0x24, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, - 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, - 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xe9, 0x01, - 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x69, 0x65, 0x73, 0x12, 0x4c, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, - 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, - 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, - 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x4d, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, - 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, - 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x69, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x35, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x76, 0x31, 0x2f, - 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x69, 0x65, 0x73, 0x4c, 0x69, 0x73, 0x74, 0x12, 0xd8, 0x01, 0x0a, 0x0f, 0x42, 0x61, - 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x12, 0x48, 0x2e, - 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, - 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, - 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, - 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x49, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, - 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, - 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, - 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, - 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, - 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, - 0x68, 0x47, 0x65, 0x74, 0x12, 0xf9, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, - 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, - 0x12, 0x50, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, - 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x51, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, - 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, - 0x76, 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, - 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x64, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x47, 0x65, 0x74, - 0x12, 0x91, 0x02, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x22, 0x30, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2a, 0x12, 0x28, 0x2f, 0x76, 0x31, 0x2f, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, 0x74, + 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x62, 0x61, 0x74, 0x63, 0x68, + 0x47, 0x65, 0x74, 0x12, 0xf9, 0x01, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, + 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x12, + 0x50, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, + 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x51, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, + 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x39, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x33, 0x12, 0x31, 0x2f, 0x76, + 0x31, 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, + 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x47, 0x65, 0x74, 0x12, + 0x91, 0x02, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, + 0x79, 0x12, 0x56, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, + 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, - 0x72, 0x79, 0x12, 0x56, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, - 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, - 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, - 0x61, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x57, 0x2e, 0x63, 0x6f, 0x6d, - 0x2e, 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, - 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, - 0x65, 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, - 0x65, 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x76, 0x31, - 0x2f, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, - 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x79, 0x73, - 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, - 0x79, 0x47, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x57, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, + 0x63, 0x6f, 0x72, 0x61, 0x6c, 0x6f, 0x67, 0x69, 0x78, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x6e, 0x6f, + 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x65, 0x6e, 0x74, 0x65, + 0x72, 0x2e, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x53, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, + 0x73, 0x65, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x3f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x12, 0x37, 0x2f, 0x76, 0x31, 0x2f, + 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2d, 0x63, 0x65, 0x6e, + 0x74, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x73, 0x3a, 0x73, 0x79, 0x73, 0x74, + 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x53, 0x75, 0x6d, 0x6d, 0x61, 0x72, 0x79, + 0x47, 0x65, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1226,6 +1374,18 @@ func file_com_coralogixapis_notification_center_presets_v1_presets_service_proto return } file_com_coralogixapis_notification_center_presets_v1_preset_proto_init() + file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[4].OneofWrappers = []any{ + (*DeleteCustomPresetRequest_Id)(nil), + (*DeleteCustomPresetRequest_UserFacingId)(nil), + } + file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[6].OneofWrappers = []any{ + (*SetCustomPresetAsDefaultRequest_Id)(nil), + (*SetCustomPresetAsDefaultRequest_UserFacingId)(nil), + } + file_com_coralogixapis_notification_center_presets_v1_presets_service_proto_msgTypes[8].OneofWrappers = []any{ + (*GetPresetRequest_Id)(nil), + (*GetPresetRequest_UserFacingId)(nil), + } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/go/internal/coralogixapis/notification_center/presets/v1/presets_service_grpc.pb.go b/go/internal/coralogixapis/notification_center/presets/v1/presets_service_grpc.pb.go index 19f88da5..e2c4b129 100644 --- a/go/internal/coralogixapis/notification_center/presets/v1/presets_service_grpc.pb.go +++ b/go/internal/coralogixapis/notification_center/presets/v1/presets_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/notification_center/presets/v1/presets_service.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( PresetsService_CreateCustomPreset_FullMethodName = "/com.coralogixapis.notification_center.presets.v1.PresetsService/CreateCustomPreset" @@ -33,6 +33,8 @@ const ( // PresetsServiceClient is the client API for PresetsService 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. +// +// Public API that allows retrieving available presets and managing custom presets. type PresetsServiceClient interface { CreateCustomPreset(ctx context.Context, in *CreateCustomPresetRequest, opts ...grpc.CallOption) (*CreateCustomPresetResponse, error) ReplaceCustomPreset(ctx context.Context, in *ReplaceCustomPresetRequest, opts ...grpc.CallOption) (*ReplaceCustomPresetResponse, error) @@ -54,8 +56,9 @@ func NewPresetsServiceClient(cc grpc.ClientConnInterface) PresetsServiceClient { } func (c *presetsServiceClient) CreateCustomPreset(ctx context.Context, in *CreateCustomPresetRequest, opts ...grpc.CallOption) (*CreateCustomPresetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateCustomPresetResponse) - err := c.cc.Invoke(ctx, PresetsService_CreateCustomPreset_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_CreateCustomPreset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -63,8 +66,9 @@ func (c *presetsServiceClient) CreateCustomPreset(ctx context.Context, in *Creat } func (c *presetsServiceClient) ReplaceCustomPreset(ctx context.Context, in *ReplaceCustomPresetRequest, opts ...grpc.CallOption) (*ReplaceCustomPresetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceCustomPresetResponse) - err := c.cc.Invoke(ctx, PresetsService_ReplaceCustomPreset_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_ReplaceCustomPreset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -72,8 +76,9 @@ func (c *presetsServiceClient) ReplaceCustomPreset(ctx context.Context, in *Repl } func (c *presetsServiceClient) DeleteCustomPreset(ctx context.Context, in *DeleteCustomPresetRequest, opts ...grpc.CallOption) (*DeleteCustomPresetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteCustomPresetResponse) - err := c.cc.Invoke(ctx, PresetsService_DeleteCustomPreset_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_DeleteCustomPreset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -81,8 +86,9 @@ func (c *presetsServiceClient) DeleteCustomPreset(ctx context.Context, in *Delet } func (c *presetsServiceClient) SetCustomPresetAsDefault(ctx context.Context, in *SetCustomPresetAsDefaultRequest, opts ...grpc.CallOption) (*SetCustomPresetAsDefaultResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetCustomPresetAsDefaultResponse) - err := c.cc.Invoke(ctx, PresetsService_SetCustomPresetAsDefault_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_SetCustomPresetAsDefault_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -90,8 +96,9 @@ func (c *presetsServiceClient) SetCustomPresetAsDefault(ctx context.Context, in } func (c *presetsServiceClient) GetPreset(ctx context.Context, in *GetPresetRequest, opts ...grpc.CallOption) (*GetPresetResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetPresetResponse) - err := c.cc.Invoke(ctx, PresetsService_GetPreset_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_GetPreset_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -99,8 +106,9 @@ func (c *presetsServiceClient) GetPreset(ctx context.Context, in *GetPresetReque } func (c *presetsServiceClient) ListPresetSummaries(ctx context.Context, in *ListPresetSummariesRequest, opts ...grpc.CallOption) (*ListPresetSummariesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPresetSummariesResponse) - err := c.cc.Invoke(ctx, PresetsService_ListPresetSummaries_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_ListPresetSummaries_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -108,8 +116,9 @@ func (c *presetsServiceClient) ListPresetSummaries(ctx context.Context, in *List } func (c *presetsServiceClient) BatchGetPresets(ctx context.Context, in *BatchGetPresetsRequest, opts ...grpc.CallOption) (*BatchGetPresetsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(BatchGetPresetsResponse) - err := c.cc.Invoke(ctx, PresetsService_BatchGetPresets_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_BatchGetPresets_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -117,8 +126,9 @@ func (c *presetsServiceClient) BatchGetPresets(ctx context.Context, in *BatchGet } func (c *presetsServiceClient) GetDefaultPresetSummary(ctx context.Context, in *GetDefaultPresetSummaryRequest, opts ...grpc.CallOption) (*GetDefaultPresetSummaryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetDefaultPresetSummaryResponse) - err := c.cc.Invoke(ctx, PresetsService_GetDefaultPresetSummary_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_GetDefaultPresetSummary_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -126,8 +136,9 @@ func (c *presetsServiceClient) GetDefaultPresetSummary(ctx context.Context, in * } func (c *presetsServiceClient) GetSystemDefaultPresetSummary(ctx context.Context, in *GetSystemDefaultPresetSummaryRequest, opts ...grpc.CallOption) (*GetSystemDefaultPresetSummaryResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetSystemDefaultPresetSummaryResponse) - err := c.cc.Invoke(ctx, PresetsService_GetSystemDefaultPresetSummary_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, PresetsService_GetSystemDefaultPresetSummary_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -136,7 +147,9 @@ func (c *presetsServiceClient) GetSystemDefaultPresetSummary(ctx context.Context // PresetsServiceServer is the server API for PresetsService service. // All implementations must embed UnimplementedPresetsServiceServer -// for forward compatibility +// for forward compatibility. +// +// Public API that allows retrieving available presets and managing custom presets. type PresetsServiceServer interface { CreateCustomPreset(context.Context, *CreateCustomPresetRequest) (*CreateCustomPresetResponse, error) ReplaceCustomPreset(context.Context, *ReplaceCustomPresetRequest) (*ReplaceCustomPresetResponse, error) @@ -150,9 +163,12 @@ type PresetsServiceServer interface { mustEmbedUnimplementedPresetsServiceServer() } -// UnimplementedPresetsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedPresetsServiceServer struct { -} +// UnimplementedPresetsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedPresetsServiceServer struct{} func (UnimplementedPresetsServiceServer) CreateCustomPreset(context.Context, *CreateCustomPresetRequest) (*CreateCustomPresetResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCustomPreset not implemented") @@ -182,6 +198,7 @@ func (UnimplementedPresetsServiceServer) GetSystemDefaultPresetSummary(context.C return nil, status.Errorf(codes.Unimplemented, "method GetSystemDefaultPresetSummary not implemented") } func (UnimplementedPresetsServiceServer) mustEmbedUnimplementedPresetsServiceServer() {} +func (UnimplementedPresetsServiceServer) testEmbeddedByValue() {} // UnsafePresetsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to PresetsServiceServer will @@ -191,6 +208,13 @@ type UnsafePresetsServiceServer interface { } func RegisterPresetsServiceServer(s grpc.ServiceRegistrar, srv PresetsServiceServer) { + // If the following call pancis, it indicates UnimplementedPresetsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&PresetsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/scopes/v1/entity_type.pb.go b/go/internal/coralogixapis/scopes/v1/entity_type.pb.go index ae878938..27aa4abf 100644 --- a/go/internal/coralogixapis/scopes/v1/entity_type.pb.go +++ b/go/internal/coralogixapis/scopes/v1/entity_type.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/scopes/v1/entity_type.proto package v1 diff --git a/go/internal/coralogixapis/scopes/v1/scopes.pb.go b/go/internal/coralogixapis/scopes/v1/scopes.pb.go index 158cf456..6b17cc9a 100644 --- a/go/internal/coralogixapis/scopes/v1/scopes.pb.go +++ b/go/internal/coralogixapis/scopes/v1/scopes.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/scopes/v1/scopes.proto package v1 diff --git a/go/internal/coralogixapis/scopes/v1/scopes_grpc.pb.go b/go/internal/coralogixapis/scopes/v1/scopes_grpc.pb.go index 721c9c10..d0d69342 100644 --- a/go/internal/coralogixapis/scopes/v1/scopes_grpc.pb.go +++ b/go/internal/coralogixapis/scopes/v1/scopes_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/scopes/v1/scopes.proto package v1 @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ScopesService_GetTeamScopesByIds_FullMethodName = "/com.coralogixapis.scopes.v1.ScopesService/GetTeamScopesByIds" @@ -46,8 +46,9 @@ func NewScopesServiceClient(cc grpc.ClientConnInterface) ScopesServiceClient { } func (c *scopesServiceClient) GetTeamScopesByIds(ctx context.Context, in *GetTeamScopesByIdsRequest, opts ...grpc.CallOption) (*GetScopesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetScopesResponse) - err := c.cc.Invoke(ctx, ScopesService_GetTeamScopesByIds_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ScopesService_GetTeamScopesByIds_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *scopesServiceClient) GetTeamScopesByIds(ctx context.Context, in *GetTea } func (c *scopesServiceClient) GetTeamScopes(ctx context.Context, in *GetTeamScopesRequest, opts ...grpc.CallOption) (*GetScopesResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetScopesResponse) - err := c.cc.Invoke(ctx, ScopesService_GetTeamScopes_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ScopesService_GetTeamScopes_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *scopesServiceClient) GetTeamScopes(ctx context.Context, in *GetTeamScop } func (c *scopesServiceClient) CreateScope(ctx context.Context, in *CreateScopeRequest, opts ...grpc.CallOption) (*CreateScopeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateScopeResponse) - err := c.cc.Invoke(ctx, ScopesService_CreateScope_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ScopesService_CreateScope_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *scopesServiceClient) CreateScope(ctx context.Context, in *CreateScopeRe } func (c *scopesServiceClient) UpdateScope(ctx context.Context, in *UpdateScopeRequest, opts ...grpc.CallOption) (*UpdateScopeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UpdateScopeResponse) - err := c.cc.Invoke(ctx, ScopesService_UpdateScope_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ScopesService_UpdateScope_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *scopesServiceClient) UpdateScope(ctx context.Context, in *UpdateScopeRe } func (c *scopesServiceClient) DeleteScope(ctx context.Context, in *DeleteScopeRequest, opts ...grpc.CallOption) (*DeleteScopeResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteScopeResponse) - err := c.cc.Invoke(ctx, ScopesService_DeleteScope_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ScopesService_DeleteScope_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *scopesServiceClient) DeleteScope(ctx context.Context, in *DeleteScopeRe // ScopesServiceServer is the server API for ScopesService service. // All implementations must embed UnimplementedScopesServiceServer -// for forward compatibility +// for forward compatibility. type ScopesServiceServer interface { GetTeamScopesByIds(context.Context, *GetTeamScopesByIdsRequest) (*GetScopesResponse, error) GetTeamScopes(context.Context, *GetTeamScopesRequest) (*GetScopesResponse, error) @@ -102,9 +107,12 @@ type ScopesServiceServer interface { mustEmbedUnimplementedScopesServiceServer() } -// UnimplementedScopesServiceServer must be embedded to have forward compatible implementations. -type UnimplementedScopesServiceServer struct { -} +// UnimplementedScopesServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedScopesServiceServer struct{} func (UnimplementedScopesServiceServer) GetTeamScopesByIds(context.Context, *GetTeamScopesByIdsRequest) (*GetScopesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetTeamScopesByIds not implemented") @@ -122,6 +130,7 @@ func (UnimplementedScopesServiceServer) DeleteScope(context.Context, *DeleteScop return nil, status.Errorf(codes.Unimplemented, "method DeleteScope not implemented") } func (UnimplementedScopesServiceServer) mustEmbedUnimplementedScopesServiceServer() {} +func (UnimplementedScopesServiceServer) testEmbeddedByValue() {} // UnsafeScopesServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ScopesServiceServer will @@ -131,6 +140,13 @@ type UnsafeScopesServiceServer interface { } func RegisterScopesServiceServer(s grpc.ServiceRegistrar, srv ScopesServiceServer) { + // If the following call pancis, it indicates UnimplementedScopesServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ScopesService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/spans2metrics/v2/spans_query.pb.go b/go/internal/coralogixapis/spans2metrics/v2/spans_query.pb.go index b58e84db..63b33077 100644 --- a/go/internal/coralogixapis/spans2metrics/v2/spans_query.pb.go +++ b/go/internal/coralogixapis/spans2metrics/v2/spans_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/spans2metrics/v2/spans_query.proto package v2 diff --git a/go/internal/coralogixapis/views/v1/audit_log.pb.go b/go/internal/coralogixapis/views/v1/audit_log.pb.go index 1cf80497..c1fad08b 100644 --- a/go/internal/coralogixapis/views/v1/audit_log.pb.go +++ b/go/internal/coralogixapis/views/v1/audit_log.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/audit_log.proto package v1 diff --git a/go/internal/coralogixapis/views/v1/filters.pb.go b/go/internal/coralogixapis/views/v1/filters.pb.go index 7f8ee6d7..c5e0b0d0 100644 --- a/go/internal/coralogixapis/views/v1/filters.pb.go +++ b/go/internal/coralogixapis/views/v1/filters.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/filters.proto package v1 diff --git a/go/internal/coralogixapis/views/v1/search_query.pb.go b/go/internal/coralogixapis/views/v1/search_query.pb.go index 5028b860..ef61626c 100644 --- a/go/internal/coralogixapis/views/v1/search_query.pb.go +++ b/go/internal/coralogixapis/views/v1/search_query.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/search_query.proto package v1 diff --git a/go/internal/coralogixapis/views/v1/services/views_folders_service.pb.go b/go/internal/coralogixapis/views/v1/services/views_folders_service.pb.go index 99d765c6..c8e339d5 100644 --- a/go/internal/coralogixapis/views/v1/services/views_folders_service.pb.go +++ b/go/internal/coralogixapis/views/v1/services/views_folders_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/services/views_folders_service.proto package services diff --git a/go/internal/coralogixapis/views/v1/services/views_folders_service_grpc.pb.go b/go/internal/coralogixapis/views/v1/services/views_folders_service_grpc.pb.go index 1d0e10ed..9b9f9dd5 100644 --- a/go/internal/coralogixapis/views/v1/services/views_folders_service_grpc.pb.go +++ b/go/internal/coralogixapis/views/v1/services/views_folders_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/views/v1/services/views_folders_service.proto package services @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ViewsFoldersService_ListViewFolders_FullMethodName = "/com.coralogixapis.views.v1.services.ViewsFoldersService/ListViewFolders" @@ -46,8 +46,9 @@ func NewViewsFoldersServiceClient(cc grpc.ClientConnInterface) ViewsFoldersServi } func (c *viewsFoldersServiceClient) ListViewFolders(ctx context.Context, in *ListViewFoldersRequest, opts ...grpc.CallOption) (*ListViewFoldersResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListViewFoldersResponse) - err := c.cc.Invoke(ctx, ViewsFoldersService_ListViewFolders_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsFoldersService_ListViewFolders_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *viewsFoldersServiceClient) ListViewFolders(ctx context.Context, in *Lis } func (c *viewsFoldersServiceClient) GetViewFolder(ctx context.Context, in *GetViewFolderRequest, opts ...grpc.CallOption) (*GetViewFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetViewFolderResponse) - err := c.cc.Invoke(ctx, ViewsFoldersService_GetViewFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsFoldersService_GetViewFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *viewsFoldersServiceClient) GetViewFolder(ctx context.Context, in *GetVi } func (c *viewsFoldersServiceClient) CreateViewFolder(ctx context.Context, in *CreateViewFolderRequest, opts ...grpc.CallOption) (*CreateViewFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateViewFolderResponse) - err := c.cc.Invoke(ctx, ViewsFoldersService_CreateViewFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsFoldersService_CreateViewFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *viewsFoldersServiceClient) CreateViewFolder(ctx context.Context, in *Cr } func (c *viewsFoldersServiceClient) DeleteViewFolder(ctx context.Context, in *DeleteViewFolderRequest, opts ...grpc.CallOption) (*DeleteViewFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteViewFolderResponse) - err := c.cc.Invoke(ctx, ViewsFoldersService_DeleteViewFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsFoldersService_DeleteViewFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *viewsFoldersServiceClient) DeleteViewFolder(ctx context.Context, in *De } func (c *viewsFoldersServiceClient) ReplaceViewFolder(ctx context.Context, in *ReplaceViewFolderRequest, opts ...grpc.CallOption) (*ReplaceViewFolderResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceViewFolderResponse) - err := c.cc.Invoke(ctx, ViewsFoldersService_ReplaceViewFolder_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsFoldersService_ReplaceViewFolder_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *viewsFoldersServiceClient) ReplaceViewFolder(ctx context.Context, in *R // ViewsFoldersServiceServer is the server API for ViewsFoldersService service. // All implementations must embed UnimplementedViewsFoldersServiceServer -// for forward compatibility +// for forward compatibility. type ViewsFoldersServiceServer interface { ListViewFolders(context.Context, *ListViewFoldersRequest) (*ListViewFoldersResponse, error) GetViewFolder(context.Context, *GetViewFolderRequest) (*GetViewFolderResponse, error) @@ -102,9 +107,12 @@ type ViewsFoldersServiceServer interface { mustEmbedUnimplementedViewsFoldersServiceServer() } -// UnimplementedViewsFoldersServiceServer must be embedded to have forward compatible implementations. -type UnimplementedViewsFoldersServiceServer struct { -} +// UnimplementedViewsFoldersServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedViewsFoldersServiceServer struct{} func (UnimplementedViewsFoldersServiceServer) ListViewFolders(context.Context, *ListViewFoldersRequest) (*ListViewFoldersResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListViewFolders not implemented") @@ -122,6 +130,7 @@ func (UnimplementedViewsFoldersServiceServer) ReplaceViewFolder(context.Context, return nil, status.Errorf(codes.Unimplemented, "method ReplaceViewFolder not implemented") } func (UnimplementedViewsFoldersServiceServer) mustEmbedUnimplementedViewsFoldersServiceServer() {} +func (UnimplementedViewsFoldersServiceServer) testEmbeddedByValue() {} // UnsafeViewsFoldersServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ViewsFoldersServiceServer will @@ -131,6 +140,13 @@ type UnsafeViewsFoldersServiceServer interface { } func RegisterViewsFoldersServiceServer(s grpc.ServiceRegistrar, srv ViewsFoldersServiceServer) { + // If the following call pancis, it indicates UnimplementedViewsFoldersServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ViewsFoldersService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/views/v1/services/views_service.pb.go b/go/internal/coralogixapis/views/v1/services/views_service.pb.go index 06f14548..e7a82604 100644 --- a/go/internal/coralogixapis/views/v1/services/views_service.pb.go +++ b/go/internal/coralogixapis/views/v1/services/views_service.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/services/views_service.proto package services diff --git a/go/internal/coralogixapis/views/v1/services/views_service_grpc.pb.go b/go/internal/coralogixapis/views/v1/services/views_service_grpc.pb.go index c2770789..40b2e4a1 100644 --- a/go/internal/coralogixapis/views/v1/services/views_service_grpc.pb.go +++ b/go/internal/coralogixapis/views/v1/services/views_service_grpc.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: -// - protoc-gen-go-grpc v1.3.0 -// - protoc v5.29.1 +// - protoc-gen-go-grpc v1.5.1 +// - protoc v5.29.2 // source: com/coralogixapis/views/v1/services/views_service.proto package services @@ -15,8 +15,8 @@ import ( // 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 +// Requires gRPC-Go v1.64.0 or later. +const _ = grpc.SupportPackageIsVersion9 const ( ViewsService_CreateView_FullMethodName = "/com.coralogixapis.views.v1.services.ViewsService/CreateView" @@ -46,8 +46,9 @@ func NewViewsServiceClient(cc grpc.ClientConnInterface) ViewsServiceClient { } func (c *viewsServiceClient) CreateView(ctx context.Context, in *CreateViewRequest, opts ...grpc.CallOption) (*CreateViewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateViewResponse) - err := c.cc.Invoke(ctx, ViewsService_CreateView_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsService_CreateView_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -55,8 +56,9 @@ func (c *viewsServiceClient) CreateView(ctx context.Context, in *CreateViewReque } func (c *viewsServiceClient) ReplaceView(ctx context.Context, in *ReplaceViewRequest, opts ...grpc.CallOption) (*ReplaceViewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ReplaceViewResponse) - err := c.cc.Invoke(ctx, ViewsService_ReplaceView_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsService_ReplaceView_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -64,8 +66,9 @@ func (c *viewsServiceClient) ReplaceView(ctx context.Context, in *ReplaceViewReq } func (c *viewsServiceClient) GetView(ctx context.Context, in *GetViewRequest, opts ...grpc.CallOption) (*GetViewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetViewResponse) - err := c.cc.Invoke(ctx, ViewsService_GetView_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsService_GetView_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -73,8 +76,9 @@ func (c *viewsServiceClient) GetView(ctx context.Context, in *GetViewRequest, op } func (c *viewsServiceClient) DeleteView(ctx context.Context, in *DeleteViewRequest, opts ...grpc.CallOption) (*DeleteViewResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteViewResponse) - err := c.cc.Invoke(ctx, ViewsService_DeleteView_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsService_DeleteView_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -82,8 +86,9 @@ func (c *viewsServiceClient) DeleteView(ctx context.Context, in *DeleteViewReque } func (c *viewsServiceClient) ListViews(ctx context.Context, in *ListViewsRequest, opts ...grpc.CallOption) (*ListViewsResponse, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListViewsResponse) - err := c.cc.Invoke(ctx, ViewsService_ListViews_FullMethodName, in, out, opts...) + err := c.cc.Invoke(ctx, ViewsService_ListViews_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } @@ -92,7 +97,7 @@ func (c *viewsServiceClient) ListViews(ctx context.Context, in *ListViewsRequest // ViewsServiceServer is the server API for ViewsService service. // All implementations must embed UnimplementedViewsServiceServer -// for forward compatibility +// for forward compatibility. type ViewsServiceServer interface { CreateView(context.Context, *CreateViewRequest) (*CreateViewResponse, error) ReplaceView(context.Context, *ReplaceViewRequest) (*ReplaceViewResponse, error) @@ -102,9 +107,12 @@ type ViewsServiceServer interface { mustEmbedUnimplementedViewsServiceServer() } -// UnimplementedViewsServiceServer must be embedded to have forward compatible implementations. -type UnimplementedViewsServiceServer struct { -} +// UnimplementedViewsServiceServer must be embedded to have +// forward compatible implementations. +// +// NOTE: this should be embedded by value instead of pointer to avoid a nil +// pointer dereference when methods are called. +type UnimplementedViewsServiceServer struct{} func (UnimplementedViewsServiceServer) CreateView(context.Context, *CreateViewRequest) (*CreateViewResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateView not implemented") @@ -122,6 +130,7 @@ func (UnimplementedViewsServiceServer) ListViews(context.Context, *ListViewsRequ return nil, status.Errorf(codes.Unimplemented, "method ListViews not implemented") } func (UnimplementedViewsServiceServer) mustEmbedUnimplementedViewsServiceServer() {} +func (UnimplementedViewsServiceServer) testEmbeddedByValue() {} // UnsafeViewsServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ViewsServiceServer will @@ -131,6 +140,13 @@ type UnsafeViewsServiceServer interface { } func RegisterViewsServiceServer(s grpc.ServiceRegistrar, srv ViewsServiceServer) { + // If the following call pancis, it indicates UnimplementedViewsServiceServer was + // embedded by pointer and is nil. This will cause panics if an + // unimplemented method is ever invoked, so we test this at initialization + // time to prevent it from happening at runtime later due to I/O. + if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { + t.testEmbeddedByValue() + } s.RegisterService(&ViewsService_ServiceDesc, srv) } diff --git a/go/internal/coralogixapis/views/v1/time_selection.pb.go b/go/internal/coralogixapis/views/v1/time_selection.pb.go index ef8f3474..43c36752 100644 --- a/go/internal/coralogixapis/views/v1/time_selection.pb.go +++ b/go/internal/coralogixapis/views/v1/time_selection.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/time_selection.proto package v1 diff --git a/go/internal/coralogixapis/views/v1/view_folder.pb.go b/go/internal/coralogixapis/views/v1/view_folder.pb.go index b1007872..09530d1d 100644 --- a/go/internal/coralogixapis/views/v1/view_folder.pb.go +++ b/go/internal/coralogixapis/views/v1/view_folder.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.1 -// protoc v5.29.1 +// protoc v5.29.2 // source: com/coralogixapis/views/v1/view_folder.proto package v1 diff --git a/go/notifications-client.go b/go/notifications-client.go index 90e16e75..89360f3b 100644 --- a/go/notifications-client.go +++ b/go/notifications-client.go @@ -72,6 +72,9 @@ type Connector = connectores.Connector // ConnectorConfig represents a connector configuration. type ConnectorConfig = connectores.ConnectorConfig +// EntityTypeConfigOverrides represents a connector configuration overrides. +type EntityTypeConfigOverrides = connectores.EntityTypeConfigOverrides + // ConnectorConfigField represents a connector configuration field. type ConnectorConfigField = commonv1.ConnectorConfigField @@ -143,6 +146,18 @@ type GetSystemDefaultPresetSummaryResponse = presets.GetSystemDefaultPresetSumma // Preset represents a preset. type Preset = presets.Preset +// GetPresetIDIdentifier is a preset ID identifier for get requests. +type GetPresetIDIdentifier = presets.GetPresetRequest_Id + +// GetPresetUserFacingIDIdentifier is a preset user-facing ID identifier for get requests. +type GetPresetUserFacingIDIdentifier = presets.GetPresetRequest_UserFacingId + +// DeletePresetIDIdentifier is a preset ID identifier for delete requests. +type DeletePresetIDIdentifier = presets.DeleteCustomPresetRequest_Id + +// DeletePresetUserFacingIDIdentifier is a preset user-facing ID identifier for delete requests. +type DeletePresetUserFacingIDIdentifier = presets.DeleteCustomPresetRequest_UserFacingId + // ConfigOverrides is a configuration override. type ConfigOverrides = common.ConfigOverrides @@ -155,6 +170,12 @@ type ConditionTypeMatchEntityType = common.ConditionType_MatchEntityType // MatchEntityTypeCondition is a match entity type condition. type MatchEntityTypeCondition = common.MatchEntityTypeCondition +// ConditionTypeMatchEntityTypeAndSubType is a match entity type and sub-type condition type. +type ConditionTypeMatchEntityTypeAndSubType = common.ConditionType_MatchEntityTypeAndSubType + +// MatchEntityTypeAndSubTypeCondition is a match entity type and sub-type condition. +type MatchEntityTypeAndSubTypeCondition = common.MatchEntityTypeAndSubTypeCondition + // PresetType is a preset type. type PresetType = presets.PresetType diff --git a/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto b/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto index 786085ef..f607850e 100644 --- a/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto +++ b/proto/com/coralogixapis/notification_center/connectors/v1/connector.proto @@ -7,6 +7,10 @@ import "com/coralogixapis/notification_center/common/v1/config_fields.proto"; import "google/protobuf/timestamp.proto"; message Connector { + // Deprecated with the introduction of Global connectors. + reserved 10; + reserved "entity_type"; + optional string id = 1; // for declarative API optional string user_facing_id = 2; @@ -17,7 +21,28 @@ message Connector { optional google.protobuf.Timestamp create_time = 7; optional google.protobuf.Timestamp update_time = 8; repeated ConnectorConfig connector_configs = 9; - string entity_type = 10; + repeated EntityTypeConfigOverrides config_overrides = 11; +} + +message EntityTypeConfigOverrides { + string entity_type = 1; + repeated ConnectorConfig connector_configs = 2; +} + +message ConnectorSummary { + // Deprecated with the introduction of Global connectors. + reserved 9; + reserved "entity_type"; + + optional string id = 1; + // for declarative API + optional string user_facing_id = 2; + ConnectorType type = 3; + optional uint32 team_id = 4; + string name = 5; + string description = 6; + optional google.protobuf.Timestamp create_time = 7; + optional google.protobuf.Timestamp update_time = 8; } message ConnectorConfig { diff --git a/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto b/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto index f27e0269..7831bdc7 100644 --- a/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto +++ b/proto/com/coralogixapis/notification_center/connectors/v1/connectors_service.proto @@ -48,9 +48,16 @@ service ConnectorsService { }; } + rpc ListConnectorSummaries(ListConnectorSummariesRequest) returns (ListConnectorSummariesResponse) { + option (google.api.http) = { + get: "v1/notification-center/connectors:listSummaries" + body: "*" + }; + } + rpc GetConnectorTypeSummaries(GetConnectorTypeSummariesRequest) returns (GetConnectorTypeSummariesResponse) { option (google.api.http) = { - get: "v1/notification-center/connectors:getSummaries" + get: "v1/notification-center/connectors:getTypeSummaries" }; } } @@ -82,9 +89,12 @@ message GetConnectorResponse { } message ListConnectorsRequest { + // Deprecated with the introduction of Global connectors. + reserved 3; + reserved "entity_type"; + ConnectorType connector_type = 1; repeated OrderBy order_bys = 2; - optional string entity_type = 3; } message ListConnectorsResponse { @@ -99,6 +109,18 @@ message BatchGetConnectorsResponse { repeated string not_found_ids = 2; } +message ListConnectorSummariesRequest { + // Deprecated with the introduction of Global connectors. + reserved 3; + reserved "entity_type"; + + ConnectorType connector_type = 1; + repeated OrderBy order_bys = 2; +} +message ListConnectorSummariesResponse { + repeated ConnectorSummary connector_summaries = 1; +} + message GetConnectorTypeSummariesRequest {} message GetConnectorTypeSummariesResponse { repeated ConnectorTypeSummary connector_type_summaries = 1; diff --git a/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto b/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto index 496d478b..97f97905 100644 --- a/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto +++ b/proto/com/coralogixapis/notification_center/notifications/v1/testing_service.proto @@ -127,6 +127,8 @@ message TestTemplateRenderResult { FAILURE_REASON_UNSPECIFIED = 0; INVALID_TEMPLATE = 1; FIELD_NOT_FOUND = 2; + TEMPLATE_EXCEEDS_MAX_LENGTH = 3; + RENDERED_VALUE_EXCEEDS_MAX_LENGTH = 4; } oneof result { diff --git a/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto b/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto index ad257d6b..4d0c16f2 100644 --- a/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto +++ b/proto/com/coralogixapis/notification_center/presets/v1/presets_service.proto @@ -84,21 +84,33 @@ message ReplaceCustomPresetResponse { } message DeleteCustomPresetRequest { - string id = 1; + optional string deprecated_id = 1; + oneof identifier { + string id = 101; + string user_facing_id = 102; + } } message DeleteCustomPresetResponse { } message SetCustomPresetAsDefaultRequest { - string id = 1; + optional string deprecated_id = 1; + oneof identifier { + string id = 101; + string user_facing_id = 102; + } } message SetCustomPresetAsDefaultResponse { } message GetPresetRequest { - string id = 1; + optional string deprecated_id = 1; + oneof identifier { + string id = 101; + string user_facing_id = 102; + } } message GetPresetResponse { diff --git a/protofetch.lock b/protofetch.lock index ba9802f8..804f0910 100644 --- a/protofetch.lock +++ b/protofetch.lock @@ -87,8 +87,8 @@ commit_hash = "9a744b4a877903f3d16fa5ea65bcfe1a291394df" [[dependencies]] name = "cx-api-notification-center" url = "github.com/coralogix/cx-api-notification-center" -revision = "v0.3.0" -commit_hash = "9e7d97f96fac4fad6c472a5c4efb2515acd7c486" +revision = "236b51e8bdb52a56c219f4d805b689036f6c1a47" +commit_hash = "236b51e8bdb52a56c219f4d805b689036f6c1a47" [[dependencies]] name = "cx-api-organisations" diff --git a/protofetch.toml b/protofetch.toml index 07ce728c..c6c6d902 100644 --- a/protofetch.toml +++ b/protofetch.toml @@ -132,7 +132,7 @@ allow_policies = ["/com/coralogixapis/metrics-rule-manager/*"] [cx-api-notification-center] url = 'github.com/coralogix/cx-api-notification-center' -revision = "v0.3.0" +revision = "236b51e8bdb52a56c219f4d805b689036f6c1a47" allow_policies = [ "/com/coralogixapis/notification_center/common/*", "/com/coralogixapis/notification_center/connectors/v1/connector.proto", diff --git a/rust/examples/Cargo.lock b/rust/examples/Cargo.lock index 3545d3fe..2ac2634b 100644 --- a/rust/examples/Cargo.lock +++ b/rust/examples/Cargo.lock @@ -1164,6 +1164,18 @@ dependencies = [ "tempfile", ] +[[package]] +name = "notifications" +version = "0.1.0" +dependencies = [ + "anyhow", + "cx-sdk", + "serde_json", + "time", + "tokio", + "tonic", +] + [[package]] name = "num-conv" version = "0.1.0" diff --git a/rust/examples/Cargo.toml b/rust/examples/Cargo.toml index b13d046c..1c99cfd6 100644 --- a/rust/examples/Cargo.toml +++ b/rust/examples/Cargo.toml @@ -13,4 +13,5 @@ members = [ "recording-rules", "dataplans", "enrichments", + "notifications", ] diff --git a/rust/examples/notifications/src/lib.rs b/rust/examples/notifications/src/lib.rs index c647d577..7ddc5abd 100644 --- a/rust/examples/notifications/src/lib.rs +++ b/rust/examples/notifications/src/lib.rs @@ -95,7 +95,8 @@ mod tests { user_facing_id: None, update_time: None, parent: Some(Box::new(Preset { - id: Some("parent_id".to_string()), + user_facing_id: Some("preset_system_generic_https_alerts_emptyy".to_string()), + id: Some("".to_string()), name: "".to_string(), description: "".to_string(), connector_type: 0, @@ -103,7 +104,6 @@ mod tests { create_time: None, entity_type: "".to_string(), preset_type: None, - user_facing_id: None, update_time: None, parent: None, })),