Skip to content

Locale Go-API

import "givc/modules/api/locale"

const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)

const (
LocaleClient_LocaleSet_FullMethodName = "/locale.LocaleClient/LocaleSet"
LocaleClient_TimezoneSet_FullMethodName = "/locale.LocaleClient/TimezoneSet"
)

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.64.0 or later.

const _ = grpc.SupportPackageIsVersion9

const file_locale_locale_proto_rawDesc = "" +
"\n" +
"\x13locale/locale.proto\x12\x06locale\"'\n" +
"\rLocaleMessage\x12\x16\n" +
"\x06Locale\x18\x01 \x01(\tR\x06Locale\"-\n" +
"\x0fTimezoneMessage\x12\x1a\n" +
"\bTimezone\x18\x01 \x01(\tR\bTimezone\"\a\n" +
"\x05Empty2|\n" +
"\fLocaleClient\x123\n" +
"\tLocaleSet\x12\x15.locale.LocaleMessage\x1a\r.locale.Empty\"\x00\x127\n" +
"\vTimezoneSet\x12\x17.locale.TimezoneMessage\x1a\r.locale.Empty\"\x00B\x19Z\x17givc/modules/api/localeb\x06proto3"

var (
file_locale_locale_proto_rawDescOnce sync.Once
file_locale_locale_proto_rawDescData []byte
)

var File_locale_locale_proto protoreflect.FileDescriptor

LocaleClient_ServiceDesc is the grpc.ServiceDesc for LocaleClient service. It’s only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

var LocaleClient_ServiceDesc = grpc.ServiceDesc{
ServiceName: "locale.LocaleClient",
HandlerType: (*LocaleClientServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "LocaleSet",
Handler: _LocaleClient_LocaleSet_Handler,
},
{
MethodName: "TimezoneSet",
Handler: _LocaleClient_TimezoneSet_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "locale/locale.proto",
}

var file_locale_locale_proto_depIdxs = []int32{
0,
1,
2,
2,
2,
0,
0,
0,
0,
}

var file_locale_locale_proto_goTypes = []any{
(*LocaleMessage)(nil),
(*TimezoneMessage)(nil),
(*Empty)(nil),
}

var file_locale_locale_proto_msgTypes = make([]protoimpl.MessageInfo, 3)

func RegisterLocaleClientServer(s grpc.ServiceRegistrar, srv LocaleClientServer)

func _LocaleClient_LocaleSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func _LocaleClient_TimezoneSet_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error)

func file_locale_locale_proto_init()

func file_locale_locale_proto_rawDescGZIP() []byte

func init()

type Empty struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage()

func (x *Empty) ProtoReflect() protoreflect.Message

func (x *Empty) Reset()

func (x *Empty) String() string

LocaleClientClient is the client API for LocaleClient service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type LocaleClientClient interface {
LocaleSet(ctx context.Context, in *LocaleMessage, opts ...grpc.CallOption) (*Empty, error)
TimezoneSet(ctx context.Context, in *TimezoneMessage, opts ...grpc.CallOption) (*Empty, error)
}

func NewLocaleClientClient(cc grpc.ClientConnInterface) LocaleClientClient

LocaleClientServer is the server API for LocaleClient service. All implementations must embed UnimplementedLocaleClientServer for forward compatibility.

type LocaleClientServer interface {
LocaleSet(context.Context, *LocaleMessage) (*Empty, error)
TimezoneSet(context.Context, *TimezoneMessage) (*Empty, error)
mustEmbedUnimplementedLocaleClientServer()
}

type LocaleMessage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Locale string `protobuf:"bytes,1,opt,name=Locale,proto3" json:"Locale,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*LocaleMessage) Descriptor() ([]byte, []int)

Deprecated: Use LocaleMessage.ProtoReflect.Descriptor instead.

func (x *LocaleMessage) GetLocale() string

func (*LocaleMessage) ProtoMessage()

func (x *LocaleMessage) ProtoReflect() protoreflect.Message

func (x *LocaleMessage) Reset()

func (x *LocaleMessage) String() string

type TimezoneMessage struct {
state protoimpl.MessageState `protogen:"open.v1"`
Timezone string `protobuf:"bytes,1,opt,name=Timezone,proto3" json:"Timezone,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}

func (*TimezoneMessage) Descriptor() ([]byte, []int)

Deprecated: Use TimezoneMessage.ProtoReflect.Descriptor instead.

func (x *TimezoneMessage) GetTimezone() string

func (*TimezoneMessage) ProtoMessage()

func (x *TimezoneMessage) ProtoReflect() protoreflect.Message

func (x *TimezoneMessage) Reset()

func (x *TimezoneMessage) String() string

UnimplementedLocaleClientServer 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 UnimplementedLocaleClientServer struct{}

func (UnimplementedLocaleClientServer) LocaleSet

Section titled “func (UnimplementedLocaleClientServer) LocaleSet”
func (UnimplementedLocaleClientServer) LocaleSet(context.Context, *LocaleMessage) (*Empty, error)

func (UnimplementedLocaleClientServer) TimezoneSet

Section titled “func (UnimplementedLocaleClientServer) TimezoneSet”
func (UnimplementedLocaleClientServer) TimezoneSet(context.Context, *TimezoneMessage) (*Empty, error)

func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer

Section titled “func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer”
func (UnimplementedLocaleClientServer) mustEmbedUnimplementedLocaleClientServer()

func (UnimplementedLocaleClientServer) testEmbeddedByValue

Section titled “func (UnimplementedLocaleClientServer) testEmbeddedByValue”
func (UnimplementedLocaleClientServer) testEmbeddedByValue()

UnsafeLocaleClientServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to LocaleClientServer will result in compilation errors.

type UnsafeLocaleClientServer interface {
mustEmbedUnimplementedLocaleClientServer()
}

type localeClientClient struct {
cc grpc.ClientConnInterface
}

func (c *localeClientClient) LocaleSet(ctx context.Context, in *LocaleMessage, opts ...grpc.CallOption) (*Empty, error)

func (c *localeClientClient) TimezoneSet(ctx context.Context, in *TimezoneMessage, opts ...grpc.CallOption) (*Empty, error)

Generated by gomarkdoc