telegram_calendar

package
v0.0.0-...-2672590 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package telegram_calendar is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	CalendarService_GenerateCalendar_FullMethodName = "/telegram.calendar.CalendarService/GenerateCalendar"
	CalendarService_GetSettings_FullMethodName      = "/telegram.calendar.CalendarService/GetSettings"
	CalendarService_ApplyNewSettings_FullMethodName = "/telegram.calendar.CalendarService/ApplyNewSettings"
)

Variables

View Source
var CalendarService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "telegram.calendar.CalendarService",
	HandlerType: (*CalendarServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GenerateCalendar",
			Handler:    _CalendarService_GenerateCalendar_Handler,
		},
		{
			MethodName: "GetSettings",
			Handler:    _CalendarService_GetSettings_Handler,
		},
		{
			MethodName: "ApplyNewSettings",
			Handler:    _CalendarService_ApplyNewSettings_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "telegram_calendar.proto",
}

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

View Source
var File_telegram_calendar_proto protoreflect.FileDescriptor

Functions

func RegisterCalendarServiceHandler

func RegisterCalendarServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCalendarServiceHandler registers the http handlers for service CalendarService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCalendarServiceHandlerClient

func RegisterCalendarServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CalendarServiceClient) error

RegisterCalendarServiceHandlerClient registers the http handlers for service CalendarService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CalendarServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CalendarServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CalendarServiceClient" to call the correct interceptors.

func RegisterCalendarServiceHandlerFromEndpoint

func RegisterCalendarServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCalendarServiceHandlerFromEndpoint is same as RegisterCalendarServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCalendarServiceHandlerServer

func RegisterCalendarServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CalendarServiceServer) error

RegisterCalendarServiceHandlerServer registers the http handlers for service CalendarService to "mux". UnaryRPC :call CalendarServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterCalendarServiceHandlerFromEndpoint instead.

func RegisterCalendarServiceServer

func RegisterCalendarServiceServer(s grpc.ServiceRegistrar, srv CalendarServiceServer)

Types

type CalendarServiceClient

type CalendarServiceClient interface {
	GenerateCalendar(ctx context.Context, in *GenerateCalendarRequest, opts ...grpc.CallOption) (*GenerateCalendarResponse, error)
	GetSettings(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetSettingsResponse, error)
	ApplyNewSettings(ctx context.Context, in *NewSettingsRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

CalendarServiceClient is the client API for CalendarService 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 CalendarServiceServer

type CalendarServiceServer interface {
	GenerateCalendar(context.Context, *GenerateCalendarRequest) (*GenerateCalendarResponse, error)
	GetSettings(context.Context, *emptypb.Empty) (*GetSettingsResponse, error)
	ApplyNewSettings(context.Context, *NewSettingsRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

CalendarServiceServer is the server API for CalendarService service. All implementations must embed UnimplementedCalendarServiceServer for forward compatibility

type GenerateCalendarRequest

type GenerateCalendarRequest struct {
	CallbackPayload string `protobuf:"bytes,1,opt,name=callback_payload,json=callbackPayload,proto3" json:"callback_payload,omitempty"` // A calendar payload that may be empty at first startup. The system automatically generates payloads in response. For example: 'calendar/prm_00.07.2023'.
	// RFC3339.
	CurrentTime string `protobuf:"bytes,2,opt,name=current_time,json=currentTime,proto3" json:"current_time,omitempty"` // Current time with timezone. In case of any errors (incorrect payload, internal failure, etc.) the calendar is generated for the date specified by the current date in the request.
	// contains filtered or unexported fields
}

func (*GenerateCalendarRequest) Descriptor deprecated

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

Deprecated: Use GenerateCalendarRequest.ProtoReflect.Descriptor instead.

func (*GenerateCalendarRequest) GetCallbackPayload

func (x *GenerateCalendarRequest) GetCallbackPayload() string

func (*GenerateCalendarRequest) GetCurrentTime

func (x *GenerateCalendarRequest) GetCurrentTime() string

func (*GenerateCalendarRequest) ProtoMessage

func (*GenerateCalendarRequest) ProtoMessage()

func (*GenerateCalendarRequest) ProtoReflect

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

func (*GenerateCalendarRequest) Reset

func (x *GenerateCalendarRequest) Reset()

func (*GenerateCalendarRequest) String

func (x *GenerateCalendarRequest) String() string

type GenerateCalendarResponse

type GenerateCalendarResponse struct {
	InlineKeyboardMarkup *InlineKeyboardMarkup  `protobuf:"bytes,1,opt,name=inline_keyboard_markup,json=inlineKeyboardMarkup,proto3" json:"inline_keyboard_markup,omitempty"` // A message that fully complies with the documentation https://core.telegram.org/bots/api reply_markup (InlineKeyboardMarkup)
	SelectedDay          *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=selected_day,json=selectedDay,proto3,oneof" json:"selected_day,omitempty"`                        // User-selected day
	IsUnselectableDay    *bool                  `protobuf:"varint,3,opt,name=is_unselectable_day,json=isUnselectableDay,proto3,oneof" json:"is_unselectable_day,omitempty"`   // Shows if the selected day was unavailable for selection
	// contains filtered or unexported fields
}

func (*GenerateCalendarResponse) Descriptor deprecated

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

Deprecated: Use GenerateCalendarResponse.ProtoReflect.Descriptor instead.

func (*GenerateCalendarResponse) GetInlineKeyboardMarkup

func (x *GenerateCalendarResponse) GetInlineKeyboardMarkup() *InlineKeyboardMarkup

func (*GenerateCalendarResponse) GetIsUnselectableDay

func (x *GenerateCalendarResponse) GetIsUnselectableDay() bool

func (*GenerateCalendarResponse) GetSelectedDay

func (x *GenerateCalendarResponse) GetSelectedDay() *timestamppb.Timestamp

func (*GenerateCalendarResponse) ProtoMessage

func (*GenerateCalendarResponse) ProtoMessage()

func (*GenerateCalendarResponse) ProtoReflect

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

func (*GenerateCalendarResponse) Reset

func (x *GenerateCalendarResponse) Reset()

func (*GenerateCalendarResponse) String

func (x *GenerateCalendarResponse) String() string

type GetSettingsResponse

type GetSettingsResponse struct {
	YearsBackForChoose       int64    `protobuf:"varint,1,opt,name=years_back_for_choose,json=yearsBackForChoose,proto3" json:"years_back_for_choose,omitempty"`
	YearsForwardForChoose    int64    `` /* 129-byte string literal not displayed */
	SumYearsForChoose        int64    `protobuf:"varint,3,opt,name=sum_years_for_choose,json=sumYearsForChoose,proto3" json:"sum_years_for_choose,omitempty"`
	DaysNames                []string `protobuf:"bytes,4,rep,name=days_names,json=daysNames,proto3" json:"days_names,omitempty"`
	MonthNames               []string `protobuf:"bytes,5,rep,name=month_names,json=monthNames,proto3" json:"month_names,omitempty"`
	HomeButtonForBeauty      string   `protobuf:"bytes,6,opt,name=home_button_for_beauty,json=homeButtonForBeauty,proto3" json:"home_button_for_beauty,omitempty"`
	PrefixForCurrentDay      string   `protobuf:"bytes,7,opt,name=prefix_for_current_day,json=prefixForCurrentDay,proto3" json:"prefix_for_current_day,omitempty"`
	PostfixForCurrentDay     string   `protobuf:"bytes,8,opt,name=postfix_for_current_day,json=postfixForCurrentDay,proto3" json:"postfix_for_current_day,omitempty"`
	PrefixForNonSelectedDay  string   `` /* 136-byte string literal not displayed */
	PostfixForNonSelectedDay string   `` /* 140-byte string literal not displayed */
	PrefixForPickDay         string   `protobuf:"bytes,11,opt,name=prefix_for_pick_day,json=prefixForPickDay,proto3" json:"prefix_for_pick_day,omitempty"`
	PostfixForPickDay        string   `protobuf:"bytes,12,opt,name=postfix_for_pick_day,json=postfixForPickDay,proto3" json:"postfix_for_pick_day,omitempty"`
	// RFC3339.
	UnselectableDaysBeforeTime string `` /* 144-byte string literal not displayed */
	// RFC3339.
	UnselectableDaysAfterTime string                    `` /* 141-byte string literal not displayed */
	UnselectableDays          map[string]*emptypb.Empty `` /* 198-byte string literal not displayed */
	// Format IANA (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones column TZ identifier.
	// More information https://data.iana.org/time-zones/tz-link.html
	Timezone string `protobuf:"bytes,16,opt,name=timezone,proto3" json:"timezone,omitempty"`
	// contains filtered or unexported fields
}

func (*GetSettingsResponse) Descriptor deprecated

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

Deprecated: Use GetSettingsResponse.ProtoReflect.Descriptor instead.

func (*GetSettingsResponse) GetDaysNames

func (x *GetSettingsResponse) GetDaysNames() []string

func (*GetSettingsResponse) GetHomeButtonForBeauty

func (x *GetSettingsResponse) GetHomeButtonForBeauty() string

func (*GetSettingsResponse) GetMonthNames

func (x *GetSettingsResponse) GetMonthNames() []string

func (*GetSettingsResponse) GetPostfixForCurrentDay

func (x *GetSettingsResponse) GetPostfixForCurrentDay() string

func (*GetSettingsResponse) GetPostfixForNonSelectedDay

func (x *GetSettingsResponse) GetPostfixForNonSelectedDay() string

func (*GetSettingsResponse) GetPostfixForPickDay

func (x *GetSettingsResponse) GetPostfixForPickDay() string

func (*GetSettingsResponse) GetPrefixForCurrentDay

func (x *GetSettingsResponse) GetPrefixForCurrentDay() string

func (*GetSettingsResponse) GetPrefixForNonSelectedDay

func (x *GetSettingsResponse) GetPrefixForNonSelectedDay() string

func (*GetSettingsResponse) GetPrefixForPickDay

func (x *GetSettingsResponse) GetPrefixForPickDay() string

func (*GetSettingsResponse) GetSumYearsForChoose

func (x *GetSettingsResponse) GetSumYearsForChoose() int64

func (*GetSettingsResponse) GetTimezone

func (x *GetSettingsResponse) GetTimezone() string

func (*GetSettingsResponse) GetUnselectableDays

func (x *GetSettingsResponse) GetUnselectableDays() map[string]*emptypb.Empty

func (*GetSettingsResponse) GetUnselectableDaysAfterTime

func (x *GetSettingsResponse) GetUnselectableDaysAfterTime() string

func (*GetSettingsResponse) GetUnselectableDaysBeforeTime

func (x *GetSettingsResponse) GetUnselectableDaysBeforeTime() string

func (*GetSettingsResponse) GetYearsBackForChoose

func (x *GetSettingsResponse) GetYearsBackForChoose() int64

func (*GetSettingsResponse) GetYearsForwardForChoose

func (x *GetSettingsResponse) GetYearsForwardForChoose() int64

func (*GetSettingsResponse) ProtoMessage

func (*GetSettingsResponse) ProtoMessage()

func (*GetSettingsResponse) ProtoReflect

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

func (*GetSettingsResponse) Reset

func (x *GetSettingsResponse) Reset()

func (*GetSettingsResponse) String

func (x *GetSettingsResponse) String() string

type InlineKeyboardMarkup

type InlineKeyboardMarkup struct {
	InlineKeyboard []*InlineKeyboardMarkup_InlineKeyboardRow `protobuf:"bytes,1,rep,name=inline_keyboard,json=inlineKeyboard,proto3" json:"inline_keyboard,omitempty"`
	// contains filtered or unexported fields
}

func (*InlineKeyboardMarkup) Descriptor deprecated

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

Deprecated: Use InlineKeyboardMarkup.ProtoReflect.Descriptor instead.

func (*InlineKeyboardMarkup) GetInlineKeyboard

func (*InlineKeyboardMarkup) ProtoMessage

func (*InlineKeyboardMarkup) ProtoMessage()

func (*InlineKeyboardMarkup) ProtoReflect

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

func (*InlineKeyboardMarkup) Reset

func (x *InlineKeyboardMarkup) Reset()

func (*InlineKeyboardMarkup) String

func (x *InlineKeyboardMarkup) String() string

type InlineKeyboardMarkup_InlineKeyboardButton

type InlineKeyboardMarkup_InlineKeyboardButton struct {
	Text         string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
	CallbackData string `protobuf:"bytes,2,opt,name=callback_data,json=callbackData,proto3" json:"callback_data,omitempty"`
	// contains filtered or unexported fields
}

func (*InlineKeyboardMarkup_InlineKeyboardButton) Descriptor deprecated

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

Deprecated: Use InlineKeyboardMarkup_InlineKeyboardButton.ProtoReflect.Descriptor instead.

func (*InlineKeyboardMarkup_InlineKeyboardButton) GetCallbackData

func (*InlineKeyboardMarkup_InlineKeyboardButton) GetText

func (*InlineKeyboardMarkup_InlineKeyboardButton) ProtoMessage

func (*InlineKeyboardMarkup_InlineKeyboardButton) ProtoReflect

func (*InlineKeyboardMarkup_InlineKeyboardButton) Reset

func (*InlineKeyboardMarkup_InlineKeyboardButton) String

type InlineKeyboardMarkup_InlineKeyboardRow

type InlineKeyboardMarkup_InlineKeyboardRow struct {
	Buttons []*InlineKeyboardMarkup_InlineKeyboardButton `protobuf:"bytes,1,rep,name=buttons,proto3" json:"buttons,omitempty"`
	// contains filtered or unexported fields
}

func (*InlineKeyboardMarkup_InlineKeyboardRow) Descriptor deprecated

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

Deprecated: Use InlineKeyboardMarkup_InlineKeyboardRow.ProtoReflect.Descriptor instead.

func (*InlineKeyboardMarkup_InlineKeyboardRow) GetButtons

func (*InlineKeyboardMarkup_InlineKeyboardRow) ProtoMessage

func (*InlineKeyboardMarkup_InlineKeyboardRow) ProtoReflect

func (*InlineKeyboardMarkup_InlineKeyboardRow) Reset

func (*InlineKeyboardMarkup_InlineKeyboardRow) String

type NewSettingsRequest

type NewSettingsRequest struct {
	YearsBackForChoose         *NewSettingsRequest_YearsBackForChoose         `protobuf:"bytes,1,opt,name=years_back_for_choose,json=yearsBackForChoose,proto3" json:"years_back_for_choose,omitempty"`
	YearsForwardForChoose      *NewSettingsRequest_YearsForwardForChoose      `` /* 128-byte string literal not displayed */
	DayNames                   *NewSettingsRequest_DayNames                   `protobuf:"bytes,3,opt,name=day_names,json=dayNames,proto3" json:"day_names,omitempty"`
	MonthNames                 *NewSettingsRequest_MonthNames                 `protobuf:"bytes,4,opt,name=month_names,json=monthNames,proto3" json:"month_names,omitempty"`
	HomeButtonForBeauty        *NewSettingsRequest_HomeButtonForBeauty        `protobuf:"bytes,5,opt,name=home_button_for_beauty,json=homeButtonForBeauty,proto3" json:"home_button_for_beauty,omitempty"`
	PrefixForCurrentDay        *NewSettingsRequest_PrefixForCurrentDay        `protobuf:"bytes,6,opt,name=prefix_for_current_day,json=prefixForCurrentDay,proto3" json:"prefix_for_current_day,omitempty"`
	PostfixForCurrentDay       *NewSettingsRequest_PostfixForCurrentDay       `protobuf:"bytes,7,opt,name=postfix_for_current_day,json=postfixForCurrentDay,proto3" json:"postfix_for_current_day,omitempty"`
	PrefixForNonSelectedDay    *NewSettingsRequest_PrefixForNonSelectedDay    `` /* 136-byte string literal not displayed */
	PostfixForNonSelectedDay   *NewSettingsRequest_PostfixForNonSelectedDay   `` /* 139-byte string literal not displayed */
	PrefixForPickDay           *NewSettingsRequest_PrefixForPickDay           `protobuf:"bytes,10,opt,name=prefix_for_pick_day,json=prefixForPickDay,proto3" json:"prefix_for_pick_day,omitempty"`
	PostfixForPickDay          *NewSettingsRequest_PostfixForPickDay          `protobuf:"bytes,11,opt,name=postfix_for_pick_day,json=postfixForPickDay,proto3" json:"postfix_for_pick_day,omitempty"`
	UnselectableDaysBeforeTime *NewSettingsRequest_UnselectableDaysBeforeTime `` /* 144-byte string literal not displayed */
	UnselectableDaysAfterTime  *NewSettingsRequest_UnselectableDaysAfterTime  `` /* 141-byte string literal not displayed */
	UnselectableDays           *NewSettingsRequest_UnselectableDays           `protobuf:"bytes,14,opt,name=unselectable_days,json=unselectableDays,proto3" json:"unselectable_days,omitempty"`
	Timezone                   *NewSettingsRequest_Timezone                   `protobuf:"bytes,15,opt,name=timezone,proto3" json:"timezone,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest) GetDayNames

func (*NewSettingsRequest) GetHomeButtonForBeauty

func (x *NewSettingsRequest) GetHomeButtonForBeauty() *NewSettingsRequest_HomeButtonForBeauty

func (*NewSettingsRequest) GetMonthNames

func (*NewSettingsRequest) GetPostfixForCurrentDay

func (x *NewSettingsRequest) GetPostfixForCurrentDay() *NewSettingsRequest_PostfixForCurrentDay

func (*NewSettingsRequest) GetPostfixForNonSelectedDay

func (x *NewSettingsRequest) GetPostfixForNonSelectedDay() *NewSettingsRequest_PostfixForNonSelectedDay

func (*NewSettingsRequest) GetPostfixForPickDay

func (x *NewSettingsRequest) GetPostfixForPickDay() *NewSettingsRequest_PostfixForPickDay

func (*NewSettingsRequest) GetPrefixForCurrentDay

func (x *NewSettingsRequest) GetPrefixForCurrentDay() *NewSettingsRequest_PrefixForCurrentDay

func (*NewSettingsRequest) GetPrefixForNonSelectedDay

func (x *NewSettingsRequest) GetPrefixForNonSelectedDay() *NewSettingsRequest_PrefixForNonSelectedDay

func (*NewSettingsRequest) GetPrefixForPickDay

func (x *NewSettingsRequest) GetPrefixForPickDay() *NewSettingsRequest_PrefixForPickDay

func (*NewSettingsRequest) GetTimezone

func (*NewSettingsRequest) GetUnselectableDays

func (x *NewSettingsRequest) GetUnselectableDays() *NewSettingsRequest_UnselectableDays

func (*NewSettingsRequest) GetUnselectableDaysAfterTime

func (x *NewSettingsRequest) GetUnselectableDaysAfterTime() *NewSettingsRequest_UnselectableDaysAfterTime

func (*NewSettingsRequest) GetUnselectableDaysBeforeTime

func (x *NewSettingsRequest) GetUnselectableDaysBeforeTime() *NewSettingsRequest_UnselectableDaysBeforeTime

func (*NewSettingsRequest) GetYearsBackForChoose

func (x *NewSettingsRequest) GetYearsBackForChoose() *NewSettingsRequest_YearsBackForChoose

func (*NewSettingsRequest) GetYearsForwardForChoose

func (x *NewSettingsRequest) GetYearsForwardForChoose() *NewSettingsRequest_YearsForwardForChoose

func (*NewSettingsRequest) ProtoMessage

func (*NewSettingsRequest) ProtoMessage()

func (*NewSettingsRequest) ProtoReflect

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

func (*NewSettingsRequest) Reset

func (x *NewSettingsRequest) Reset()

func (*NewSettingsRequest) String

func (x *NewSettingsRequest) String() string

type NewSettingsRequest_DayName

type NewSettingsRequest_DayName struct {
	DayName string `protobuf:"bytes,1,opt,name=day_name,json=dayName,proto3" json:"day_name,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_DayName) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_DayName.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_DayName) GetDayName

func (x *NewSettingsRequest_DayName) GetDayName() string

func (*NewSettingsRequest_DayName) ProtoMessage

func (*NewSettingsRequest_DayName) ProtoMessage()

func (*NewSettingsRequest_DayName) ProtoReflect

func (*NewSettingsRequest_DayName) Reset

func (x *NewSettingsRequest_DayName) Reset()

func (*NewSettingsRequest_DayName) String

func (x *NewSettingsRequest_DayName) String() string

type NewSettingsRequest_DayNames

type NewSettingsRequest_DayNames struct {
	DayNames    []*NewSettingsRequest_DayName `protobuf:"bytes,1,rep,name=day_names,json=dayNames,proto3" json:"day_names,omitempty"` // if set, expect 7 days
	ForceChoice bool                          `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_DayNames) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_DayNames.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_DayNames) GetDayNames

func (*NewSettingsRequest_DayNames) GetForceChoice

func (x *NewSettingsRequest_DayNames) GetForceChoice() bool

func (*NewSettingsRequest_DayNames) ProtoMessage

func (*NewSettingsRequest_DayNames) ProtoMessage()

func (*NewSettingsRequest_DayNames) ProtoReflect

func (*NewSettingsRequest_DayNames) Reset

func (x *NewSettingsRequest_DayNames) Reset()

func (*NewSettingsRequest_DayNames) String

func (x *NewSettingsRequest_DayNames) String() string

type NewSettingsRequest_HomeButtonForBeauty

type NewSettingsRequest_HomeButtonForBeauty struct {
	HomeButtonForBeauty string `protobuf:"bytes,1,opt,name=home_button_for_beauty,json=homeButtonForBeauty,proto3" json:"home_button_for_beauty,omitempty"`
	ForceChoice         bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_HomeButtonForBeauty) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_HomeButtonForBeauty.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_HomeButtonForBeauty) GetForceChoice

func (x *NewSettingsRequest_HomeButtonForBeauty) GetForceChoice() bool

func (*NewSettingsRequest_HomeButtonForBeauty) GetHomeButtonForBeauty

func (x *NewSettingsRequest_HomeButtonForBeauty) GetHomeButtonForBeauty() string

func (*NewSettingsRequest_HomeButtonForBeauty) ProtoMessage

func (*NewSettingsRequest_HomeButtonForBeauty) ProtoReflect

func (*NewSettingsRequest_HomeButtonForBeauty) Reset

func (*NewSettingsRequest_HomeButtonForBeauty) String

type NewSettingsRequest_MonthName

type NewSettingsRequest_MonthName struct {
	MonthName string `protobuf:"bytes,1,opt,name=month_name,json=monthName,proto3" json:"month_name,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_MonthName) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_MonthName.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_MonthName) GetMonthName

func (x *NewSettingsRequest_MonthName) GetMonthName() string

func (*NewSettingsRequest_MonthName) ProtoMessage

func (*NewSettingsRequest_MonthName) ProtoMessage()

func (*NewSettingsRequest_MonthName) ProtoReflect

func (*NewSettingsRequest_MonthName) Reset

func (x *NewSettingsRequest_MonthName) Reset()

func (*NewSettingsRequest_MonthName) String

type NewSettingsRequest_MonthNames

type NewSettingsRequest_MonthNames struct {
	MonthNames  []*NewSettingsRequest_MonthName `protobuf:"bytes,1,rep,name=month_names,json=monthNames,proto3" json:"month_names,omitempty"` // if set, expect 12 months
	ForceChoice bool                            `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_MonthNames) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_MonthNames.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_MonthNames) GetForceChoice

func (x *NewSettingsRequest_MonthNames) GetForceChoice() bool

func (*NewSettingsRequest_MonthNames) GetMonthNames

func (*NewSettingsRequest_MonthNames) ProtoMessage

func (*NewSettingsRequest_MonthNames) ProtoMessage()

func (*NewSettingsRequest_MonthNames) ProtoReflect

func (*NewSettingsRequest_MonthNames) Reset

func (x *NewSettingsRequest_MonthNames) Reset()

func (*NewSettingsRequest_MonthNames) String

type NewSettingsRequest_PostfixForCurrentDay

type NewSettingsRequest_PostfixForCurrentDay struct {
	PostfixForCurrentDay string `protobuf:"bytes,1,opt,name=postfix_for_current_day,json=postfixForCurrentDay,proto3" json:"postfix_for_current_day,omitempty"`
	ForceChoice          bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PostfixForCurrentDay) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_PostfixForCurrentDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PostfixForCurrentDay) GetForceChoice

func (x *NewSettingsRequest_PostfixForCurrentDay) GetForceChoice() bool

func (*NewSettingsRequest_PostfixForCurrentDay) GetPostfixForCurrentDay

func (x *NewSettingsRequest_PostfixForCurrentDay) GetPostfixForCurrentDay() string

func (*NewSettingsRequest_PostfixForCurrentDay) ProtoMessage

func (*NewSettingsRequest_PostfixForCurrentDay) ProtoReflect

func (*NewSettingsRequest_PostfixForCurrentDay) Reset

func (*NewSettingsRequest_PostfixForCurrentDay) String

type NewSettingsRequest_PostfixForNonSelectedDay

type NewSettingsRequest_PostfixForNonSelectedDay struct {
	PostfixForNonSelectedDay string `` /* 139-byte string literal not displayed */
	ForceChoice              bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PostfixForNonSelectedDay) Descriptor deprecated

Deprecated: Use NewSettingsRequest_PostfixForNonSelectedDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PostfixForNonSelectedDay) GetForceChoice

func (*NewSettingsRequest_PostfixForNonSelectedDay) GetPostfixForNonSelectedDay

func (x *NewSettingsRequest_PostfixForNonSelectedDay) GetPostfixForNonSelectedDay() string

func (*NewSettingsRequest_PostfixForNonSelectedDay) ProtoMessage

func (*NewSettingsRequest_PostfixForNonSelectedDay) ProtoReflect

func (*NewSettingsRequest_PostfixForNonSelectedDay) Reset

func (*NewSettingsRequest_PostfixForNonSelectedDay) String

type NewSettingsRequest_PostfixForPickDay

type NewSettingsRequest_PostfixForPickDay struct {
	PostfixForPickDay string `protobuf:"bytes,1,opt,name=postfix_for_pick_day,json=postfixForPickDay,proto3" json:"postfix_for_pick_day,omitempty"`
	ForceChoice       bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PostfixForPickDay) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_PostfixForPickDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PostfixForPickDay) GetForceChoice

func (x *NewSettingsRequest_PostfixForPickDay) GetForceChoice() bool

func (*NewSettingsRequest_PostfixForPickDay) GetPostfixForPickDay

func (x *NewSettingsRequest_PostfixForPickDay) GetPostfixForPickDay() string

func (*NewSettingsRequest_PostfixForPickDay) ProtoMessage

func (*NewSettingsRequest_PostfixForPickDay) ProtoMessage()

func (*NewSettingsRequest_PostfixForPickDay) ProtoReflect

func (*NewSettingsRequest_PostfixForPickDay) Reset

func (*NewSettingsRequest_PostfixForPickDay) String

type NewSettingsRequest_PrefixForCurrentDay

type NewSettingsRequest_PrefixForCurrentDay struct {
	PrefixForCurrentDay string `protobuf:"bytes,1,opt,name=prefix_for_current_day,json=prefixForCurrentDay,proto3" json:"prefix_for_current_day,omitempty"`
	ForceChoice         bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PrefixForCurrentDay) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_PrefixForCurrentDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PrefixForCurrentDay) GetForceChoice

func (x *NewSettingsRequest_PrefixForCurrentDay) GetForceChoice() bool

func (*NewSettingsRequest_PrefixForCurrentDay) GetPrefixForCurrentDay

func (x *NewSettingsRequest_PrefixForCurrentDay) GetPrefixForCurrentDay() string

func (*NewSettingsRequest_PrefixForCurrentDay) ProtoMessage

func (*NewSettingsRequest_PrefixForCurrentDay) ProtoReflect

func (*NewSettingsRequest_PrefixForCurrentDay) Reset

func (*NewSettingsRequest_PrefixForCurrentDay) String

type NewSettingsRequest_PrefixForNonSelectedDay

type NewSettingsRequest_PrefixForNonSelectedDay struct {
	PrefixForNonSelectedDay string `` /* 136-byte string literal not displayed */
	ForceChoice             bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PrefixForNonSelectedDay) Descriptor deprecated

Deprecated: Use NewSettingsRequest_PrefixForNonSelectedDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PrefixForNonSelectedDay) GetForceChoice

func (*NewSettingsRequest_PrefixForNonSelectedDay) GetPrefixForNonSelectedDay

func (x *NewSettingsRequest_PrefixForNonSelectedDay) GetPrefixForNonSelectedDay() string

func (*NewSettingsRequest_PrefixForNonSelectedDay) ProtoMessage

func (*NewSettingsRequest_PrefixForNonSelectedDay) ProtoReflect

func (*NewSettingsRequest_PrefixForNonSelectedDay) Reset

func (*NewSettingsRequest_PrefixForNonSelectedDay) String

type NewSettingsRequest_PrefixForPickDay

type NewSettingsRequest_PrefixForPickDay struct {
	PrefixForPickDay string `protobuf:"bytes,1,opt,name=prefix_for_pick_day,json=prefixForPickDay,proto3" json:"prefix_for_pick_day,omitempty"`
	ForceChoice      bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_PrefixForPickDay) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_PrefixForPickDay.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_PrefixForPickDay) GetForceChoice

func (x *NewSettingsRequest_PrefixForPickDay) GetForceChoice() bool

func (*NewSettingsRequest_PrefixForPickDay) GetPrefixForPickDay

func (x *NewSettingsRequest_PrefixForPickDay) GetPrefixForPickDay() string

func (*NewSettingsRequest_PrefixForPickDay) ProtoMessage

func (*NewSettingsRequest_PrefixForPickDay) ProtoMessage()

func (*NewSettingsRequest_PrefixForPickDay) ProtoReflect

func (*NewSettingsRequest_PrefixForPickDay) Reset

func (*NewSettingsRequest_PrefixForPickDay) String

type NewSettingsRequest_Timezone

type NewSettingsRequest_Timezone struct {

	// Format IANA (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones column TZ identifier.
	// More information https://data.iana.org/time-zones/tz-link.html
	Timezone    string `protobuf:"bytes,1,opt,name=timezone,proto3" json:"timezone,omitempty"`
	ForceChoice bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_Timezone) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_Timezone.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_Timezone) GetForceChoice

func (x *NewSettingsRequest_Timezone) GetForceChoice() bool

func (*NewSettingsRequest_Timezone) GetTimezone

func (x *NewSettingsRequest_Timezone) GetTimezone() string

func (*NewSettingsRequest_Timezone) ProtoMessage

func (*NewSettingsRequest_Timezone) ProtoMessage()

func (*NewSettingsRequest_Timezone) ProtoReflect

func (*NewSettingsRequest_Timezone) Reset

func (x *NewSettingsRequest_Timezone) Reset()

func (*NewSettingsRequest_Timezone) String

func (x *NewSettingsRequest_Timezone) String() string

type NewSettingsRequest_UnselectableDays

type NewSettingsRequest_UnselectableDays struct {
	UnselectableDays map[string]*emptypb.Empty `` /* 197-byte string literal not displayed */
	ForceChoice      bool                      `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_UnselectableDays) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_UnselectableDays.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_UnselectableDays) GetForceChoice

func (x *NewSettingsRequest_UnselectableDays) GetForceChoice() bool

func (*NewSettingsRequest_UnselectableDays) GetUnselectableDays

func (x *NewSettingsRequest_UnselectableDays) GetUnselectableDays() map[string]*emptypb.Empty

func (*NewSettingsRequest_UnselectableDays) ProtoMessage

func (*NewSettingsRequest_UnselectableDays) ProtoMessage()

func (*NewSettingsRequest_UnselectableDays) ProtoReflect

func (*NewSettingsRequest_UnselectableDays) Reset

func (*NewSettingsRequest_UnselectableDays) String

type NewSettingsRequest_UnselectableDaysAfterTime

type NewSettingsRequest_UnselectableDaysAfterTime struct {

	// RFC3339.
	UnselectableDaysAfterTime string `` /* 140-byte string literal not displayed */
	ForceChoice               bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_UnselectableDaysAfterTime) Descriptor deprecated

Deprecated: Use NewSettingsRequest_UnselectableDaysAfterTime.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_UnselectableDaysAfterTime) GetForceChoice

func (*NewSettingsRequest_UnselectableDaysAfterTime) GetUnselectableDaysAfterTime

func (x *NewSettingsRequest_UnselectableDaysAfterTime) GetUnselectableDaysAfterTime() string

func (*NewSettingsRequest_UnselectableDaysAfterTime) ProtoMessage

func (*NewSettingsRequest_UnselectableDaysAfterTime) ProtoReflect

func (*NewSettingsRequest_UnselectableDaysAfterTime) Reset

func (*NewSettingsRequest_UnselectableDaysAfterTime) String

type NewSettingsRequest_UnselectableDaysBeforeTime

type NewSettingsRequest_UnselectableDaysBeforeTime struct {

	// RFC3339.
	UnselectableDaysBeforeTime string `` /* 143-byte string literal not displayed */
	ForceChoice                bool   `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_UnselectableDaysBeforeTime) Descriptor deprecated

Deprecated: Use NewSettingsRequest_UnselectableDaysBeforeTime.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_UnselectableDaysBeforeTime) GetForceChoice

func (*NewSettingsRequest_UnselectableDaysBeforeTime) GetUnselectableDaysBeforeTime

func (x *NewSettingsRequest_UnselectableDaysBeforeTime) GetUnselectableDaysBeforeTime() string

func (*NewSettingsRequest_UnselectableDaysBeforeTime) ProtoMessage

func (*NewSettingsRequest_UnselectableDaysBeforeTime) ProtoReflect

func (*NewSettingsRequest_UnselectableDaysBeforeTime) Reset

func (*NewSettingsRequest_UnselectableDaysBeforeTime) String

type NewSettingsRequest_YearsBackForChoose

type NewSettingsRequest_YearsBackForChoose struct {
	YearsBackForChoose int64 `protobuf:"varint,1,opt,name=years_back_for_choose,json=yearsBackForChoose,proto3" json:"years_back_for_choose,omitempty"`
	ForceChoice        bool  `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_YearsBackForChoose) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_YearsBackForChoose.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_YearsBackForChoose) GetForceChoice

func (x *NewSettingsRequest_YearsBackForChoose) GetForceChoice() bool

func (*NewSettingsRequest_YearsBackForChoose) GetYearsBackForChoose

func (x *NewSettingsRequest_YearsBackForChoose) GetYearsBackForChoose() int64

func (*NewSettingsRequest_YearsBackForChoose) ProtoMessage

func (*NewSettingsRequest_YearsBackForChoose) ProtoMessage()

func (*NewSettingsRequest_YearsBackForChoose) ProtoReflect

func (*NewSettingsRequest_YearsBackForChoose) Reset

func (*NewSettingsRequest_YearsBackForChoose) String

type NewSettingsRequest_YearsForwardForChoose

type NewSettingsRequest_YearsForwardForChoose struct {
	YearsForwardForChoose int64 `` /* 129-byte string literal not displayed */
	ForceChoice           bool  `protobuf:"varint,2,opt,name=force_choice,json=forceChoice,proto3" json:"force_choice,omitempty"`
	// contains filtered or unexported fields
}

func (*NewSettingsRequest_YearsForwardForChoose) Descriptor deprecated

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

Deprecated: Use NewSettingsRequest_YearsForwardForChoose.ProtoReflect.Descriptor instead.

func (*NewSettingsRequest_YearsForwardForChoose) GetForceChoice

func (x *NewSettingsRequest_YearsForwardForChoose) GetForceChoice() bool

func (*NewSettingsRequest_YearsForwardForChoose) GetYearsForwardForChoose

func (x *NewSettingsRequest_YearsForwardForChoose) GetYearsForwardForChoose() int64

func (*NewSettingsRequest_YearsForwardForChoose) ProtoMessage

func (*NewSettingsRequest_YearsForwardForChoose) ProtoReflect

func (*NewSettingsRequest_YearsForwardForChoose) Reset

func (*NewSettingsRequest_YearsForwardForChoose) String

type UnimplementedCalendarServiceServer

type UnimplementedCalendarServiceServer struct {
}

UnimplementedCalendarServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedCalendarServiceServer) ApplyNewSettings

func (UnimplementedCalendarServiceServer) GenerateCalendar

func (UnimplementedCalendarServiceServer) GetSettings

type UnsafeCalendarServiceServer

type UnsafeCalendarServiceServer interface {
	// contains filtered or unexported methods
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL