mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-04 04:23:16 +00:00
chore: add idp workspace setting
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.4.0
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: api/v1/user_setting_service.proto
|
||||
|
||||
@ -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.62.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion8
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
UserSettingService_GetUserSetting_FullMethodName = "/slash.api.v1.UserSettingService/GetUserSetting"
|
||||
@ -63,7 +63,7 @@ func (c *userSettingServiceClient) UpdateUserSetting(ctx context.Context, in *Up
|
||||
|
||||
// UserSettingServiceServer is the server API for UserSettingService service.
|
||||
// All implementations must embed UnimplementedUserSettingServiceServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type UserSettingServiceServer interface {
|
||||
// GetUserSetting returns the user setting.
|
||||
GetUserSetting(context.Context, *GetUserSettingRequest) (*GetUserSettingResponse, error)
|
||||
@ -72,9 +72,12 @@ type UserSettingServiceServer interface {
|
||||
mustEmbedUnimplementedUserSettingServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedUserSettingServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedUserSettingServiceServer struct {
|
||||
}
|
||||
// UnimplementedUserSettingServiceServer 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 UnimplementedUserSettingServiceServer struct{}
|
||||
|
||||
func (UnimplementedUserSettingServiceServer) GetUserSetting(context.Context, *GetUserSettingRequest) (*GetUserSettingResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method GetUserSetting not implemented")
|
||||
@ -83,6 +86,7 @@ func (UnimplementedUserSettingServiceServer) UpdateUserSetting(context.Context,
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateUserSetting not implemented")
|
||||
}
|
||||
func (UnimplementedUserSettingServiceServer) mustEmbedUnimplementedUserSettingServiceServer() {}
|
||||
func (UnimplementedUserSettingServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeUserSettingServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to UserSettingServiceServer will
|
||||
@ -92,6 +96,13 @@ type UnsafeUserSettingServiceServer interface {
|
||||
}
|
||||
|
||||
func RegisterUserSettingServiceServer(s grpc.ServiceRegistrar, srv UserSettingServiceServer) {
|
||||
// If the following call pancis, it indicates UnimplementedUserSettingServiceServer 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(&UserSettingService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user