Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBusinessHoursServiceServer(s grpc.ServiceRegistrar, srv BusinessHoursServiceServer)
- type AddIntervalToBusinessHoursRequest
- func (*AddIntervalToBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddIntervalToBusinessHoursRequest) GetBusinessHoursId() string
- func (x *AddIntervalToBusinessHoursRequest) GetDayInterval() *org.DayInterval
- func (*AddIntervalToBusinessHoursRequest) ProtoMessage()
- func (x *AddIntervalToBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *AddIntervalToBusinessHoursRequest) Reset()
- func (x *AddIntervalToBusinessHoursRequest) String() string
- type AddIntervalToBusinessHoursResponse
- func (*AddIntervalToBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (*AddIntervalToBusinessHoursResponse) ProtoMessage()
- func (x *AddIntervalToBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *AddIntervalToBusinessHoursResponse) Reset()
- func (x *AddIntervalToBusinessHoursResponse) String() string
- type BusinessHoursServiceClient
- type BusinessHoursServiceServer
- type DeleteBusinessHoursRequest
- func (*DeleteBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBusinessHoursRequest) GetBusinessHoursId() string
- func (*DeleteBusinessHoursRequest) ProtoMessage()
- func (x *DeleteBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBusinessHoursRequest) Reset()
- func (x *DeleteBusinessHoursRequest) String() string
- type DeleteBusinessHoursResponse
- type EvaluateBusinessHoursRequest
- func (*EvaluateBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateBusinessHoursRequest) GetBusinessHoursId() string
- func (*EvaluateBusinessHoursRequest) ProtoMessage()
- func (x *EvaluateBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *EvaluateBusinessHoursRequest) Reset()
- func (x *EvaluateBusinessHoursRequest) String() string
- type EvaluateBusinessHoursResponse
- func (*EvaluateBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluateBusinessHoursResponse) GetResultExpiration() *timestamppb.Timestamp
- func (x *EvaluateBusinessHoursResponse) GetWithinRange() bool
- func (*EvaluateBusinessHoursResponse) ProtoMessage()
- func (x *EvaluateBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *EvaluateBusinessHoursResponse) Reset()
- func (x *EvaluateBusinessHoursResponse) String() string
- type GetBusinessHoursRequest
- func (*GetBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBusinessHoursRequest) GetBusinessHoursId() string
- func (*GetBusinessHoursRequest) ProtoMessage()
- func (x *GetBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *GetBusinessHoursRequest) Reset()
- func (x *GetBusinessHoursRequest) String() string
- type GetBusinessHoursResponse
- func (*GetBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetBusinessHoursResponse) GetBusinessHours() *org.BusinessHours
- func (*GetBusinessHoursResponse) ProtoMessage()
- func (x *GetBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *GetBusinessHoursResponse) Reset()
- func (x *GetBusinessHoursResponse) String() string
- type ListBusinessHoursRequest
- type ListBusinessHoursResponse
- func (*ListBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBusinessHoursResponse) GetBusinessHours() []*org.BusinessHours
- func (*ListBusinessHoursResponse) ProtoMessage()
- func (x *ListBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *ListBusinessHoursResponse) Reset()
- func (x *ListBusinessHoursResponse) String() string
- type RemoveIntervalFromBusinessHoursRequest
- func (*RemoveIntervalFromBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveIntervalFromBusinessHoursRequest) GetBusinessHoursId() string
- func (x *RemoveIntervalFromBusinessHoursRequest) GetDayInterval() *org.DayInterval
- func (*RemoveIntervalFromBusinessHoursRequest) ProtoMessage()
- func (x *RemoveIntervalFromBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveIntervalFromBusinessHoursRequest) Reset()
- func (x *RemoveIntervalFromBusinessHoursRequest) String() string
- type RemoveIntervalFromBusinessHoursResponse
- func (*RemoveIntervalFromBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveIntervalFromBusinessHoursResponse) ProtoMessage()
- func (x *RemoveIntervalFromBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveIntervalFromBusinessHoursResponse) Reset()
- func (x *RemoveIntervalFromBusinessHoursResponse) String() string
- type SetBusinessHoursRequest
- func (*SetBusinessHoursRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SetBusinessHoursRequest) GetBusinessHoursName() string
- func (x *SetBusinessHoursRequest) GetDayIntervals() []*org.DayInterval
- func (x *SetBusinessHoursRequest) GetDescription() string
- func (x *SetBusinessHoursRequest) GetTimezone() commons.TimeZone
- func (*SetBusinessHoursRequest) ProtoMessage()
- func (x *SetBusinessHoursRequest) ProtoReflect() protoreflect.Message
- func (x *SetBusinessHoursRequest) Reset()
- func (x *SetBusinessHoursRequest) String() string
- type SetBusinessHoursResponse
- func (*SetBusinessHoursResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SetBusinessHoursResponse) GetBusinessHoursId() string
- func (*SetBusinessHoursResponse) ProtoMessage()
- func (x *SetBusinessHoursResponse) ProtoReflect() protoreflect.Message
- func (x *SetBusinessHoursResponse) Reset()
- func (x *SetBusinessHoursResponse) String() string
- type UnimplementedBusinessHoursServiceServer
- func (UnimplementedBusinessHoursServiceServer) AddIntervalToBusinessHours(context.Context, *AddIntervalToBusinessHoursRequest) (*AddIntervalToBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) DeleteBusinessHours(context.Context, *DeleteBusinessHoursRequest) (*DeleteBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) EvaluateBusinessHours(context.Context, *EvaluateBusinessHoursRequest) (*EvaluateBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) GetBusinessHours(context.Context, *GetBusinessHoursRequest) (*GetBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) ListBusinessHours(context.Context, *ListBusinessHoursRequest) (*ListBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) RemoveIntervalFromBusinessHours(context.Context, *RemoveIntervalFromBusinessHoursRequest) (*RemoveIntervalFromBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) SetBusinessHours(context.Context, *SetBusinessHoursRequest) (*SetBusinessHoursResponse, error)
- func (UnimplementedBusinessHoursServiceServer) UpdateBusinessHoursInfo(context.Context, *UpdateBusinessHoursInfoRequest) (*UpdateBusinessHoursInfoResponse, error)
- type UnsafeBusinessHoursServiceServer
- type UpdateBusinessHoursInfoRequest
- func (*UpdateBusinessHoursInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBusinessHoursInfoRequest) GetBusinessHoursId() string
- func (x *UpdateBusinessHoursInfoRequest) GetBusinessHoursName() string
- func (x *UpdateBusinessHoursInfoRequest) GetDescription() string
- func (x *UpdateBusinessHoursInfoRequest) GetFieldMask() *fieldmaskpb.FieldMask
- func (x *UpdateBusinessHoursInfoRequest) GetTimezone() commons.TimeZone
- func (*UpdateBusinessHoursInfoRequest) ProtoMessage()
- func (x *UpdateBusinessHoursInfoRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBusinessHoursInfoRequest) Reset()
- func (x *UpdateBusinessHoursInfoRequest) String() string
- type UpdateBusinessHoursInfoResponse
- func (*UpdateBusinessHoursInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateBusinessHoursInfoResponse) ProtoMessage()
- func (x *UpdateBusinessHoursInfoResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateBusinessHoursInfoResponse) Reset()
- func (x *UpdateBusinessHoursInfoResponse) String() string
Constants ¶
const ( BusinessHoursService_ListBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/ListBusinessHours" BusinessHoursService_GetBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/GetBusinessHours" BusinessHoursService_SetBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/SetBusinessHours" BusinessHoursService_AddIntervalToBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/AddIntervalToBusinessHours" BusinessHoursService_RemoveIntervalFromBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/RemoveIntervalFromBusinessHours" BusinessHoursService_UpdateBusinessHoursInfo_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/UpdateBusinessHoursInfo" BusinessHoursService_DeleteBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/DeleteBusinessHours" BusinessHoursService_EvaluateBusinessHours_FullMethodName = "/api.v1alpha1.org.businesshours.BusinessHoursService/EvaluateBusinessHours" )
Variables ¶
var BusinessHoursService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.v1alpha1.org.businesshours.BusinessHoursService", HandlerType: (*BusinessHoursServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListBusinessHours", Handler: _BusinessHoursService_ListBusinessHours_Handler, }, { MethodName: "GetBusinessHours", Handler: _BusinessHoursService_GetBusinessHours_Handler, }, { MethodName: "SetBusinessHours", Handler: _BusinessHoursService_SetBusinessHours_Handler, }, { MethodName: "AddIntervalToBusinessHours", Handler: _BusinessHoursService_AddIntervalToBusinessHours_Handler, }, { MethodName: "RemoveIntervalFromBusinessHours", Handler: _BusinessHoursService_RemoveIntervalFromBusinessHours_Handler, }, { MethodName: "UpdateBusinessHoursInfo", Handler: _BusinessHoursService_UpdateBusinessHoursInfo_Handler, }, { MethodName: "DeleteBusinessHours", Handler: _BusinessHoursService_DeleteBusinessHours_Handler, }, { MethodName: "EvaluateBusinessHours", Handler: _BusinessHoursService_EvaluateBusinessHours_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/v1alpha1/org/businesshours/service.proto", }
BusinessHoursService_ServiceDesc is the grpc.ServiceDesc for BusinessHoursService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_v1alpha1_org_businesshours_entities_proto protoreflect.FileDescriptor
var File_api_v1alpha1_org_businesshours_service_proto protoreflect.FileDescriptor
Functions ¶
func RegisterBusinessHoursServiceServer ¶
func RegisterBusinessHoursServiceServer(s grpc.ServiceRegistrar, srv BusinessHoursServiceServer)
Types ¶
type AddIntervalToBusinessHoursRequest ¶
type AddIntervalToBusinessHoursRequest struct { // The id of the business hours to add an interval BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // The day interval to be added DayInterval *org.DayInterval `protobuf:"bytes,2,opt,name=day_interval,json=dayInterval,proto3" json:"day_interval,omitempty"` // contains filtered or unexported fields }
Request for adding an interval to a business hours object
func (*AddIntervalToBusinessHoursRequest) Descriptor
deprecated
func (*AddIntervalToBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddIntervalToBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*AddIntervalToBusinessHoursRequest) GetBusinessHoursId ¶
func (x *AddIntervalToBusinessHoursRequest) GetBusinessHoursId() string
func (*AddIntervalToBusinessHoursRequest) GetDayInterval ¶
func (x *AddIntervalToBusinessHoursRequest) GetDayInterval() *org.DayInterval
func (*AddIntervalToBusinessHoursRequest) ProtoMessage ¶
func (*AddIntervalToBusinessHoursRequest) ProtoMessage()
func (*AddIntervalToBusinessHoursRequest) ProtoReflect ¶
func (x *AddIntervalToBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*AddIntervalToBusinessHoursRequest) Reset ¶
func (x *AddIntervalToBusinessHoursRequest) Reset()
func (*AddIntervalToBusinessHoursRequest) String ¶
func (x *AddIntervalToBusinessHoursRequest) String() string
type AddIntervalToBusinessHoursResponse ¶
type AddIntervalToBusinessHoursResponse struct {
// contains filtered or unexported fields
}
Response for adding an interval to a business hours object
func (*AddIntervalToBusinessHoursResponse) Descriptor
deprecated
func (*AddIntervalToBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddIntervalToBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*AddIntervalToBusinessHoursResponse) ProtoMessage ¶
func (*AddIntervalToBusinessHoursResponse) ProtoMessage()
func (*AddIntervalToBusinessHoursResponse) ProtoReflect ¶
func (x *AddIntervalToBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*AddIntervalToBusinessHoursResponse) Reset ¶
func (x *AddIntervalToBusinessHoursResponse) Reset()
func (*AddIntervalToBusinessHoursResponse) String ¶
func (x *AddIntervalToBusinessHoursResponse) String() string
type BusinessHoursServiceClient ¶
type BusinessHoursServiceClient interface { // ListBusinessHours returns all business hours for an Org. ListBusinessHours(ctx context.Context, in *ListBusinessHoursRequest, opts ...grpc.CallOption) (*ListBusinessHoursResponse, error) // GetBusinessHours returns the business hours for the ID. GetBusinessHours(ctx context.Context, in *GetBusinessHoursRequest, opts ...grpc.CallOption) (*GetBusinessHoursResponse, error) // SetBusinessHours initializes a business hours object SetBusinessHours(ctx context.Context, in *SetBusinessHoursRequest, opts ...grpc.CallOption) (*SetBusinessHoursResponse, error) // AddIntervalToBusinessHours adds a day interval to a business hours object AddIntervalToBusinessHours(ctx context.Context, in *AddIntervalToBusinessHoursRequest, opts ...grpc.CallOption) (*AddIntervalToBusinessHoursResponse, error) // RemoveIntervalFromBusinessHours removes a day interval from a business hours object RemoveIntervalFromBusinessHours(ctx context.Context, in *RemoveIntervalFromBusinessHoursRequest, opts ...grpc.CallOption) (*RemoveIntervalFromBusinessHoursResponse, error) // UpdateBusinessHoursInfo updates the general info of a business hours object UpdateBusinessHoursInfo(ctx context.Context, in *UpdateBusinessHoursInfoRequest, opts ...grpc.CallOption) (*UpdateBusinessHoursInfoResponse, error) // DeleteBusinessHours removes business hours. DeleteBusinessHours(ctx context.Context, in *DeleteBusinessHoursRequest, opts ...grpc.CallOption) (*DeleteBusinessHoursResponse, error) // EvaluateBusinessHours determines whether or not the current time is within a business hours day interval EvaluateBusinessHours(ctx context.Context, in *EvaluateBusinessHoursRequest, opts ...grpc.CallOption) (*EvaluateBusinessHoursResponse, error) }
BusinessHoursServiceClient is the client API for BusinessHoursService 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.
func NewBusinessHoursServiceClient ¶
func NewBusinessHoursServiceClient(cc grpc.ClientConnInterface) BusinessHoursServiceClient
type BusinessHoursServiceServer ¶
type BusinessHoursServiceServer interface { // ListBusinessHours returns all business hours for an Org. ListBusinessHours(context.Context, *ListBusinessHoursRequest) (*ListBusinessHoursResponse, error) // GetBusinessHours returns the business hours for the ID. GetBusinessHours(context.Context, *GetBusinessHoursRequest) (*GetBusinessHoursResponse, error) // SetBusinessHours initializes a business hours object SetBusinessHours(context.Context, *SetBusinessHoursRequest) (*SetBusinessHoursResponse, error) // AddIntervalToBusinessHours adds a day interval to a business hours object AddIntervalToBusinessHours(context.Context, *AddIntervalToBusinessHoursRequest) (*AddIntervalToBusinessHoursResponse, error) // RemoveIntervalFromBusinessHours removes a day interval from a business hours object RemoveIntervalFromBusinessHours(context.Context, *RemoveIntervalFromBusinessHoursRequest) (*RemoveIntervalFromBusinessHoursResponse, error) // UpdateBusinessHoursInfo updates the general info of a business hours object UpdateBusinessHoursInfo(context.Context, *UpdateBusinessHoursInfoRequest) (*UpdateBusinessHoursInfoResponse, error) // DeleteBusinessHours removes business hours. DeleteBusinessHours(context.Context, *DeleteBusinessHoursRequest) (*DeleteBusinessHoursResponse, error) // EvaluateBusinessHours determines whether or not the current time is within a business hours day interval EvaluateBusinessHours(context.Context, *EvaluateBusinessHoursRequest) (*EvaluateBusinessHoursResponse, error) // contains filtered or unexported methods }
BusinessHoursServiceServer is the server API for BusinessHoursService service. All implementations must embed UnimplementedBusinessHoursServiceServer for forward compatibility.
type DeleteBusinessHoursRequest ¶
type DeleteBusinessHoursRequest struct { // The id of the business hours object to be deleted BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // contains filtered or unexported fields }
Request for deleting business hours.
func (*DeleteBusinessHoursRequest) Descriptor
deprecated
func (*DeleteBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*DeleteBusinessHoursRequest) GetBusinessHoursId ¶
func (x *DeleteBusinessHoursRequest) GetBusinessHoursId() string
func (*DeleteBusinessHoursRequest) ProtoMessage ¶
func (*DeleteBusinessHoursRequest) ProtoMessage()
func (*DeleteBusinessHoursRequest) ProtoReflect ¶
func (x *DeleteBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*DeleteBusinessHoursRequest) Reset ¶
func (x *DeleteBusinessHoursRequest) Reset()
func (*DeleteBusinessHoursRequest) String ¶
func (x *DeleteBusinessHoursRequest) String() string
type DeleteBusinessHoursResponse ¶
type DeleteBusinessHoursResponse struct {
// contains filtered or unexported fields
}
Response for deleting business hours.
func (*DeleteBusinessHoursResponse) Descriptor
deprecated
func (*DeleteBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*DeleteBusinessHoursResponse) ProtoMessage ¶
func (*DeleteBusinessHoursResponse) ProtoMessage()
func (*DeleteBusinessHoursResponse) ProtoReflect ¶
func (x *DeleteBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*DeleteBusinessHoursResponse) Reset ¶
func (x *DeleteBusinessHoursResponse) Reset()
func (*DeleteBusinessHoursResponse) String ¶
func (x *DeleteBusinessHoursResponse) String() string
type EvaluateBusinessHoursRequest ¶
type EvaluateBusinessHoursRequest struct { // The id of the business hours to evaluate BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // contains filtered or unexported fields }
Request for EvaluateBusinessHours
func (*EvaluateBusinessHoursRequest) Descriptor
deprecated
func (*EvaluateBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*EvaluateBusinessHoursRequest) GetBusinessHoursId ¶
func (x *EvaluateBusinessHoursRequest) GetBusinessHoursId() string
func (*EvaluateBusinessHoursRequest) ProtoMessage ¶
func (*EvaluateBusinessHoursRequest) ProtoMessage()
func (*EvaluateBusinessHoursRequest) ProtoReflect ¶
func (x *EvaluateBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*EvaluateBusinessHoursRequest) Reset ¶
func (x *EvaluateBusinessHoursRequest) Reset()
func (*EvaluateBusinessHoursRequest) String ¶
func (x *EvaluateBusinessHoursRequest) String() string
type EvaluateBusinessHoursResponse ¶
type EvaluateBusinessHoursResponse struct { // Resulting boolean if the current time is within // a day interval of a business hours object WithinRange bool `protobuf:"varint,1,opt,name=within_range,json=withinRange,proto3" json:"within_range,omitempty"` // indicates how long this result can be used. ResultExpiration *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=result_expiration,json=resultExpiration,proto3" json:"result_expiration,omitempty"` // contains filtered or unexported fields }
Response for EvaluateBusinessHours
func (*EvaluateBusinessHoursResponse) Descriptor
deprecated
func (*EvaluateBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use EvaluateBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*EvaluateBusinessHoursResponse) GetResultExpiration ¶ added in v1.7.80
func (x *EvaluateBusinessHoursResponse) GetResultExpiration() *timestamppb.Timestamp
func (*EvaluateBusinessHoursResponse) GetWithinRange ¶
func (x *EvaluateBusinessHoursResponse) GetWithinRange() bool
func (*EvaluateBusinessHoursResponse) ProtoMessage ¶
func (*EvaluateBusinessHoursResponse) ProtoMessage()
func (*EvaluateBusinessHoursResponse) ProtoReflect ¶
func (x *EvaluateBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*EvaluateBusinessHoursResponse) Reset ¶
func (x *EvaluateBusinessHoursResponse) Reset()
func (*EvaluateBusinessHoursResponse) String ¶
func (x *EvaluateBusinessHoursResponse) String() string
type GetBusinessHoursRequest ¶
type GetBusinessHoursRequest struct { // The id of the business hours object BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // contains filtered or unexported fields }
Request for fetching a business hours.
func (*GetBusinessHoursRequest) Descriptor
deprecated
func (*GetBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*GetBusinessHoursRequest) GetBusinessHoursId ¶
func (x *GetBusinessHoursRequest) GetBusinessHoursId() string
func (*GetBusinessHoursRequest) ProtoMessage ¶
func (*GetBusinessHoursRequest) ProtoMessage()
func (*GetBusinessHoursRequest) ProtoReflect ¶
func (x *GetBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*GetBusinessHoursRequest) Reset ¶
func (x *GetBusinessHoursRequest) Reset()
func (*GetBusinessHoursRequest) String ¶
func (x *GetBusinessHoursRequest) String() string
type GetBusinessHoursResponse ¶
type GetBusinessHoursResponse struct { // The retrieved business hours BusinessHours *org.BusinessHours `protobuf:"bytes,1,opt,name=business_hours,json=businessHours,proto3" json:"business_hours,omitempty"` // contains filtered or unexported fields }
Response for fetching a business hours.
func (*GetBusinessHoursResponse) Descriptor
deprecated
func (*GetBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*GetBusinessHoursResponse) GetBusinessHours ¶
func (x *GetBusinessHoursResponse) GetBusinessHours() *org.BusinessHours
func (*GetBusinessHoursResponse) ProtoMessage ¶
func (*GetBusinessHoursResponse) ProtoMessage()
func (*GetBusinessHoursResponse) ProtoReflect ¶
func (x *GetBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*GetBusinessHoursResponse) Reset ¶
func (x *GetBusinessHoursResponse) Reset()
func (*GetBusinessHoursResponse) String ¶
func (x *GetBusinessHoursResponse) String() string
type ListBusinessHoursRequest ¶
type ListBusinessHoursRequest struct {
// contains filtered or unexported fields
}
Request for listing business hours.
func (*ListBusinessHoursRequest) Descriptor
deprecated
func (*ListBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*ListBusinessHoursRequest) ProtoMessage ¶
func (*ListBusinessHoursRequest) ProtoMessage()
func (*ListBusinessHoursRequest) ProtoReflect ¶
func (x *ListBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*ListBusinessHoursRequest) Reset ¶
func (x *ListBusinessHoursRequest) Reset()
func (*ListBusinessHoursRequest) String ¶
func (x *ListBusinessHoursRequest) String() string
type ListBusinessHoursResponse ¶
type ListBusinessHoursResponse struct { // The list of business hours BusinessHours []*org.BusinessHours `protobuf:"bytes,1,rep,name=business_hours,json=businessHours,proto3" json:"business_hours,omitempty"` // contains filtered or unexported fields }
Response for listing business hours.
func (*ListBusinessHoursResponse) Descriptor
deprecated
func (*ListBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*ListBusinessHoursResponse) GetBusinessHours ¶
func (x *ListBusinessHoursResponse) GetBusinessHours() []*org.BusinessHours
func (*ListBusinessHoursResponse) ProtoMessage ¶
func (*ListBusinessHoursResponse) ProtoMessage()
func (*ListBusinessHoursResponse) ProtoReflect ¶
func (x *ListBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*ListBusinessHoursResponse) Reset ¶
func (x *ListBusinessHoursResponse) Reset()
func (*ListBusinessHoursResponse) String ¶
func (x *ListBusinessHoursResponse) String() string
type RemoveIntervalFromBusinessHoursRequest ¶
type RemoveIntervalFromBusinessHoursRequest struct { // The id of the business hours to remove an interval BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // The day interval to be removed DayInterval *org.DayInterval `protobuf:"bytes,2,opt,name=day_interval,json=dayInterval,proto3" json:"day_interval,omitempty"` // contains filtered or unexported fields }
Request for removing an interval from a business hours object
func (*RemoveIntervalFromBusinessHoursRequest) Descriptor
deprecated
func (*RemoveIntervalFromBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveIntervalFromBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*RemoveIntervalFromBusinessHoursRequest) GetBusinessHoursId ¶
func (x *RemoveIntervalFromBusinessHoursRequest) GetBusinessHoursId() string
func (*RemoveIntervalFromBusinessHoursRequest) GetDayInterval ¶
func (x *RemoveIntervalFromBusinessHoursRequest) GetDayInterval() *org.DayInterval
func (*RemoveIntervalFromBusinessHoursRequest) ProtoMessage ¶
func (*RemoveIntervalFromBusinessHoursRequest) ProtoMessage()
func (*RemoveIntervalFromBusinessHoursRequest) ProtoReflect ¶
func (x *RemoveIntervalFromBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*RemoveIntervalFromBusinessHoursRequest) Reset ¶
func (x *RemoveIntervalFromBusinessHoursRequest) Reset()
func (*RemoveIntervalFromBusinessHoursRequest) String ¶
func (x *RemoveIntervalFromBusinessHoursRequest) String() string
type RemoveIntervalFromBusinessHoursResponse ¶
type RemoveIntervalFromBusinessHoursResponse struct {
// contains filtered or unexported fields
}
Response for removing an interval from a business hours object
func (*RemoveIntervalFromBusinessHoursResponse) Descriptor
deprecated
func (*RemoveIntervalFromBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveIntervalFromBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*RemoveIntervalFromBusinessHoursResponse) ProtoMessage ¶
func (*RemoveIntervalFromBusinessHoursResponse) ProtoMessage()
func (*RemoveIntervalFromBusinessHoursResponse) ProtoReflect ¶
func (x *RemoveIntervalFromBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*RemoveIntervalFromBusinessHoursResponse) Reset ¶
func (x *RemoveIntervalFromBusinessHoursResponse) Reset()
func (*RemoveIntervalFromBusinessHoursResponse) String ¶
func (x *RemoveIntervalFromBusinessHoursResponse) String() string
type SetBusinessHoursRequest ¶
type SetBusinessHoursRequest struct { // The name of the business hours BusinessHoursName string `protobuf:"bytes,1,opt,name=business_hours_name,json=businessHoursName,proto3" json:"business_hours_name,omitempty"` // The description of the business hours Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` // The list of day intervals for the business hours DayIntervals []*org.DayInterval `protobuf:"bytes,3,rep,name=day_intervals,json=dayIntervals,proto3" json:"day_intervals,omitempty"` // The timezone of the business hours Timezone commons.TimeZone `protobuf:"varint,4,opt,name=timezone,proto3,enum=api.commons.TimeZone" json:"timezone,omitempty"` // contains filtered or unexported fields }
Request for initializing a business hours object
func (*SetBusinessHoursRequest) Descriptor
deprecated
func (*SetBusinessHoursRequest) Descriptor() ([]byte, []int)
Deprecated: Use SetBusinessHoursRequest.ProtoReflect.Descriptor instead.
func (*SetBusinessHoursRequest) GetBusinessHoursName ¶
func (x *SetBusinessHoursRequest) GetBusinessHoursName() string
func (*SetBusinessHoursRequest) GetDayIntervals ¶
func (x *SetBusinessHoursRequest) GetDayIntervals() []*org.DayInterval
func (*SetBusinessHoursRequest) GetDescription ¶
func (x *SetBusinessHoursRequest) GetDescription() string
func (*SetBusinessHoursRequest) GetTimezone ¶
func (x *SetBusinessHoursRequest) GetTimezone() commons.TimeZone
func (*SetBusinessHoursRequest) ProtoMessage ¶
func (*SetBusinessHoursRequest) ProtoMessage()
func (*SetBusinessHoursRequest) ProtoReflect ¶
func (x *SetBusinessHoursRequest) ProtoReflect() protoreflect.Message
func (*SetBusinessHoursRequest) Reset ¶
func (x *SetBusinessHoursRequest) Reset()
func (*SetBusinessHoursRequest) String ¶
func (x *SetBusinessHoursRequest) String() string
type SetBusinessHoursResponse ¶
type SetBusinessHoursResponse struct { // The id of the new business hours BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // contains filtered or unexported fields }
Response for initializing a business hours object
func (*SetBusinessHoursResponse) Descriptor
deprecated
func (*SetBusinessHoursResponse) Descriptor() ([]byte, []int)
Deprecated: Use SetBusinessHoursResponse.ProtoReflect.Descriptor instead.
func (*SetBusinessHoursResponse) GetBusinessHoursId ¶
func (x *SetBusinessHoursResponse) GetBusinessHoursId() string
func (*SetBusinessHoursResponse) ProtoMessage ¶
func (*SetBusinessHoursResponse) ProtoMessage()
func (*SetBusinessHoursResponse) ProtoReflect ¶
func (x *SetBusinessHoursResponse) ProtoReflect() protoreflect.Message
func (*SetBusinessHoursResponse) Reset ¶
func (x *SetBusinessHoursResponse) Reset()
func (*SetBusinessHoursResponse) String ¶
func (x *SetBusinessHoursResponse) String() string
type UnimplementedBusinessHoursServiceServer ¶
type UnimplementedBusinessHoursServiceServer struct{}
UnimplementedBusinessHoursServiceServer 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.
func (UnimplementedBusinessHoursServiceServer) AddIntervalToBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) AddIntervalToBusinessHours(context.Context, *AddIntervalToBusinessHoursRequest) (*AddIntervalToBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) DeleteBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) DeleteBusinessHours(context.Context, *DeleteBusinessHoursRequest) (*DeleteBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) EvaluateBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) EvaluateBusinessHours(context.Context, *EvaluateBusinessHoursRequest) (*EvaluateBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) GetBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) GetBusinessHours(context.Context, *GetBusinessHoursRequest) (*GetBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) ListBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) ListBusinessHours(context.Context, *ListBusinessHoursRequest) (*ListBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) RemoveIntervalFromBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) RemoveIntervalFromBusinessHours(context.Context, *RemoveIntervalFromBusinessHoursRequest) (*RemoveIntervalFromBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) SetBusinessHours ¶
func (UnimplementedBusinessHoursServiceServer) SetBusinessHours(context.Context, *SetBusinessHoursRequest) (*SetBusinessHoursResponse, error)
func (UnimplementedBusinessHoursServiceServer) UpdateBusinessHoursInfo ¶
func (UnimplementedBusinessHoursServiceServer) UpdateBusinessHoursInfo(context.Context, *UpdateBusinessHoursInfoRequest) (*UpdateBusinessHoursInfoResponse, error)
type UnsafeBusinessHoursServiceServer ¶
type UnsafeBusinessHoursServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBusinessHoursServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BusinessHoursServiceServer will result in compilation errors.
type UpdateBusinessHoursInfoRequest ¶
type UpdateBusinessHoursInfoRequest struct { // The id of the business hours object BusinessHoursId string `protobuf:"bytes,1,opt,name=business_hours_id,json=businessHoursId,proto3" json:"business_hours_id,omitempty"` // The updated name of the business hours BusinessHoursName string `protobuf:"bytes,2,opt,name=business_hours_name,json=businessHoursName,proto3" json:"business_hours_name,omitempty"` // The updated description of the business hours Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The updated timezone of the business hours Timezone commons.TimeZone `protobuf:"varint,4,opt,name=timezone,proto3,enum=api.commons.TimeZone" json:"timezone,omitempty"` // Field mask for the update request FieldMask *fieldmaskpb.FieldMask `protobuf:"bytes,5,opt,name=field_mask,json=fieldMask,proto3" json:"field_mask,omitempty"` // contains filtered or unexported fields }
Request for updating the business hours info
func (*UpdateBusinessHoursInfoRequest) Descriptor
deprecated
func (*UpdateBusinessHoursInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessHoursInfoRequest.ProtoReflect.Descriptor instead.
func (*UpdateBusinessHoursInfoRequest) GetBusinessHoursId ¶
func (x *UpdateBusinessHoursInfoRequest) GetBusinessHoursId() string
func (*UpdateBusinessHoursInfoRequest) GetBusinessHoursName ¶
func (x *UpdateBusinessHoursInfoRequest) GetBusinessHoursName() string
func (*UpdateBusinessHoursInfoRequest) GetDescription ¶
func (x *UpdateBusinessHoursInfoRequest) GetDescription() string
func (*UpdateBusinessHoursInfoRequest) GetFieldMask ¶
func (x *UpdateBusinessHoursInfoRequest) GetFieldMask() *fieldmaskpb.FieldMask
func (*UpdateBusinessHoursInfoRequest) GetTimezone ¶
func (x *UpdateBusinessHoursInfoRequest) GetTimezone() commons.TimeZone
func (*UpdateBusinessHoursInfoRequest) ProtoMessage ¶
func (*UpdateBusinessHoursInfoRequest) ProtoMessage()
func (*UpdateBusinessHoursInfoRequest) ProtoReflect ¶
func (x *UpdateBusinessHoursInfoRequest) ProtoReflect() protoreflect.Message
func (*UpdateBusinessHoursInfoRequest) Reset ¶
func (x *UpdateBusinessHoursInfoRequest) Reset()
func (*UpdateBusinessHoursInfoRequest) String ¶
func (x *UpdateBusinessHoursInfoRequest) String() string
type UpdateBusinessHoursInfoResponse ¶
type UpdateBusinessHoursInfoResponse struct {
// contains filtered or unexported fields
}
Response for updating the business hours info
func (*UpdateBusinessHoursInfoResponse) Descriptor
deprecated
func (*UpdateBusinessHoursInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBusinessHoursInfoResponse.ProtoReflect.Descriptor instead.
func (*UpdateBusinessHoursInfoResponse) ProtoMessage ¶
func (*UpdateBusinessHoursInfoResponse) ProtoMessage()
func (*UpdateBusinessHoursInfoResponse) ProtoReflect ¶
func (x *UpdateBusinessHoursInfoResponse) ProtoReflect() protoreflect.Message
func (*UpdateBusinessHoursInfoResponse) Reset ¶
func (x *UpdateBusinessHoursInfoResponse) Reset()
func (*UpdateBusinessHoursInfoResponse) String ¶
func (x *UpdateBusinessHoursInfoResponse) String() string