@ -7,6 +7,7 @@
package v1
import (
duration "github.com/golang/protobuf/ptypes/duration"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
@ -123,30 +124,144 @@ func (x *IdentifyResponse) GetUris() []string {
return nil
}
type Timer struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
Duration * duration . Duration ` protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty" `
Current * duration . Duration ` protobuf:"bytes,2,opt,name=current,proto3" json:"current,omitempty" `
}
func ( x * Timer ) Reset ( ) {
* x = Timer { }
if protoimpl . UnsafeEnabled {
mi := & file_schnutibox_proto_msgTypes [ 2 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * Timer ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * Timer ) ProtoMessage ( ) { }
func ( x * Timer ) ProtoReflect ( ) protoreflect . Message {
mi := & file_schnutibox_proto_msgTypes [ 2 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use Timer.ProtoReflect.Descriptor instead.
func ( * Timer ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_schnutibox_proto_rawDescGZIP ( ) , [ ] int { 2 }
}
func ( x * Timer ) GetDuration ( ) * duration . Duration {
if x != nil {
return x . Duration
}
return nil
}
func ( x * Timer ) GetCurrent ( ) * duration . Duration {
if x != nil {
return x . Current
}
return nil
}
type TimerEmpty struct {
state protoimpl . MessageState
sizeCache protoimpl . SizeCache
unknownFields protoimpl . UnknownFields
}
func ( x * TimerEmpty ) Reset ( ) {
* x = TimerEmpty { }
if protoimpl . UnsafeEnabled {
mi := & file_schnutibox_proto_msgTypes [ 3 ]
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
ms . StoreMessageInfo ( mi )
}
}
func ( x * TimerEmpty ) String ( ) string {
return protoimpl . X . MessageStringOf ( x )
}
func ( * TimerEmpty ) ProtoMessage ( ) { }
func ( x * TimerEmpty ) ProtoReflect ( ) protoreflect . Message {
mi := & file_schnutibox_proto_msgTypes [ 3 ]
if protoimpl . UnsafeEnabled && x != nil {
ms := protoimpl . X . MessageStateOf ( protoimpl . Pointer ( x ) )
if ms . LoadMessageInfo ( ) == nil {
ms . StoreMessageInfo ( mi )
}
return ms
}
return mi . MessageOf ( x )
}
// Deprecated: Use TimerEmpty.ProtoReflect.Descriptor instead.
func ( * TimerEmpty ) Descriptor ( ) ( [ ] byte , [ ] int ) {
return file_schnutibox_proto_rawDescGZIP ( ) , [ ] int { 3 }
}
var File_schnutibox_proto protoreflect . FileDescriptor
var file_schnutibox_proto_rawDesc = [ ] byte {
0x0a , 0x10 , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x70 , 0x72 , 0x6f ,
0x74 , 0x6f , 0x12 , 0x0d , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 ,
0x31 , 0x1a , 0x1c , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x61 , 0x6e ,
0x6e , 0x6f , 0x74 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 ,
0x6e , 0x6f , 0x74 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x73 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x1a ,
0x1e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2f , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 , 0x66 ,
0x2f , 0x64 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x22 ,
0x21 , 0x0a , 0x0f , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x73 , 0x74 , 0x12 , 0x0e , 0x0a , 0x02 , 0x69 , 0x64 , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x02 ,
0x69 , 0x64 , 0x22 , 0x3a , 0x0a , 0x10 , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 ,
0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 , 0x12 , 0x12 , 0x0a , 0x04 , 0x6e , 0x61 , 0x6d , 0x65 , 0x18 , 0x01 ,
0x20 , 0x01 , 0x28 , 0x09 , 0x52 , 0x04 , 0x6e , 0x61 , 0x6d , 0x65 , 0x12 , 0x12 , 0x0a , 0x04 , 0x75 , 0x72 ,
0x69 , 0x73 , 0x18 , 0x02 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x04 , 0x75 , 0x72 , 0x69 , 0x73 , 0x32 , 0x79 ,
0x0a , 0x11 , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x69 , 0x65 , 0x72 , 0x53 , 0x65 , 0x72 , 0x76 ,
0x69 , 0x63 , 0x65 , 0x12 , 0x64 , 0x0a , 0x08 , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x12 ,
0x1e , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 , 0x73 , 0x74 , 0x1a ,
0x1f , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f , 0x6e , 0x73 , 0x65 ,
0x22 , 0x17 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x11 , 0x22 , 0x0c , 0x2f , 0x76 , 0x31 , 0x2f , 0x69 , 0x64 ,
0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x3a , 0x01 , 0x2a , 0x42 , 0x23 , 0x5a , 0x21 , 0x67 , 0x6f , 0x2e ,
0x78 , 0x73 , 0x66 , 0x78 , 0x2e , 0x64 , 0x65 , 0x76 , 0x2f , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 ,
0x62 , 0x6f , 0x78 , 0x2f , 0x70 , 0x6b , 0x67 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 , 0x31 , 0x62 , 0x06 ,
0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
0x69 , 0x73 , 0x18 , 0x02 , 0x20 , 0x03 , 0x28 , 0x09 , 0x52 , 0x04 , 0x75 , 0x72 , 0x69 , 0x73 , 0x22 , 0x73 ,
0x0a , 0x05 , 0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x12 , 0x35 , 0x0a , 0x08 , 0x64 , 0x75 , 0x72 , 0x61 , 0x74 ,
0x69 , 0x6f , 0x6e , 0x18 , 0x01 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 , 0x19 , 0x2e , 0x67 , 0x6f , 0x6f , 0x67 ,
0x6c , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 , 0x66 , 0x2e , 0x44 , 0x75 , 0x72 , 0x61 ,
0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x08 , 0x64 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x12 , 0x33 ,
0x0a , 0x07 , 0x63 , 0x75 , 0x72 , 0x72 , 0x65 , 0x6e , 0x74 , 0x18 , 0x02 , 0x20 , 0x01 , 0x28 , 0x0b , 0x32 ,
0x19 , 0x2e , 0x67 , 0x6f , 0x6f , 0x67 , 0x6c , 0x65 , 0x2e , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x62 , 0x75 ,
0x66 , 0x2e , 0x44 , 0x75 , 0x72 , 0x61 , 0x74 , 0x69 , 0x6f , 0x6e , 0x52 , 0x07 , 0x63 , 0x75 , 0x72 , 0x72 ,
0x65 , 0x6e , 0x74 , 0x22 , 0x0c , 0x0a , 0x0a , 0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x45 , 0x6d , 0x70 , 0x74 ,
0x79 , 0x32 , 0x79 , 0x0a , 0x11 , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x69 , 0x65 , 0x72 , 0x53 ,
0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x12 , 0x64 , 0x0a , 0x08 , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 ,
0x66 , 0x79 , 0x12 , 0x1e , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e ,
0x76 , 0x31 , 0x2e , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 , 0x71 , 0x75 , 0x65 ,
0x73 , 0x74 , 0x1a , 0x1f , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e ,
0x76 , 0x31 , 0x2e , 0x49 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x52 , 0x65 , 0x73 , 0x70 , 0x6f ,
0x6e , 0x73 , 0x65 , 0x22 , 0x17 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x11 , 0x22 , 0x0c , 0x2f , 0x76 , 0x31 ,
0x2f , 0x69 , 0x64 , 0x65 , 0x6e , 0x74 , 0x69 , 0x66 , 0x79 , 0x3a , 0x01 , 0x2a , 0x32 , 0xad , 0x01 , 0x0a ,
0x0c , 0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x53 , 0x65 , 0x72 , 0x76 , 0x69 , 0x63 , 0x65 , 0x12 , 0x4e , 0x0a ,
0x06 , 0x43 , 0x72 , 0x65 , 0x61 , 0x74 , 0x65 , 0x12 , 0x14 , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 ,
0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x1a , 0x14 , 0x2e ,
0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x54 , 0x69 ,
0x6d , 0x65 , 0x72 , 0x22 , 0x18 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x12 , 0x22 , 0x0d , 0x2f , 0x76 , 0x31 ,
0x2f , 0x74 , 0x69 , 0x6d , 0x65 , 0x72 , 0x2f , 0x73 , 0x65 , 0x74 , 0x3a , 0x01 , 0x2a , 0x12 , 0x4d , 0x0a ,
0x03 , 0x47 , 0x65 , 0x74 , 0x12 , 0x19 , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f ,
0x78 , 0x2e , 0x76 , 0x31 , 0x2e , 0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x45 , 0x6d , 0x70 , 0x74 , 0x79 , 0x1a ,
0x14 , 0x2e , 0x73 , 0x63 , 0x68 , 0x6e , 0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2e , 0x76 , 0x31 , 0x2e ,
0x54 , 0x69 , 0x6d , 0x65 , 0x72 , 0x22 , 0x15 , 0x82 , 0xd3 , 0xe4 , 0x93 , 0x02 , 0x0f , 0x12 , 0x0d , 0x2f ,
0x76 , 0x31 , 0x2f , 0x74 , 0x69 , 0x6d , 0x65 , 0x72 , 0x2f , 0x67 , 0x65 , 0x74 , 0x42 , 0x23 , 0x5a , 0x21 ,
0x67 , 0x6f , 0x2e , 0x78 , 0x73 , 0x66 , 0x78 , 0x2e , 0x64 , 0x65 , 0x76 , 0x2f , 0x73 , 0x63 , 0x68 , 0x6e ,
0x75 , 0x74 , 0x69 , 0x62 , 0x6f , 0x78 , 0x2f , 0x70 , 0x6b , 0x67 , 0x2f , 0x61 , 0x70 , 0x69 , 0x2f , 0x76 ,
0x31 , 0x62 , 0x06 , 0x70 , 0x72 , 0x6f , 0x74 , 0x6f , 0x33 ,
}
var (
@ -161,19 +276,28 @@ func file_schnutibox_proto_rawDescGZIP() []byte {
return file_schnutibox_proto_rawDescData
}
var file_schnutibox_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 2 )
var file_schnutibox_proto_msgTypes = make ( [ ] protoimpl . MessageInfo , 4 )
var file_schnutibox_proto_goTypes = [ ] interface { } {
( * IdentifyRequest ) ( nil ) , // 0: schnutibox.v1.IdentifyRequest
( * IdentifyResponse ) ( nil ) , // 1: schnutibox.v1.IdentifyResponse
( * IdentifyRequest ) ( nil ) , // 0: schnutibox.v1.IdentifyRequest
( * IdentifyResponse ) ( nil ) , // 1: schnutibox.v1.IdentifyResponse
( * Timer ) ( nil ) , // 2: schnutibox.v1.Timer
( * TimerEmpty ) ( nil ) , // 3: schnutibox.v1.TimerEmpty
( * duration . Duration ) ( nil ) , // 4: google.protobuf.Duration
}
var file_schnutibox_proto_depIdxs = [ ] int32 {
0 , // 0: schnutibox.v1.IdentifierService.Identify:input_type -> schnutibox.v1.IdentifyRequest
1 , // 1: schnutibox.v1.IdentifierService.Identify:output_type -> schnutibox.v1.IdentifyResponse
1 , // [1:2] is the sub-list for method output_type
0 , // [0:1] is the sub-list for method input_type
0 , // [0:0] is the sub-list for extension type_name
0 , // [0:0] is the sub-list for extension extendee
0 , // [0:0] is the sub-list for field type_name
4 , // 0: schnutibox.v1.Timer.duration:type_name -> google.protobuf.Duration
4 , // 1: schnutibox.v1.Timer.current:type_name -> google.protobuf.Duration
0 , // 2: schnutibox.v1.IdentifierService.Identify:input_type -> schnutibox.v1.IdentifyRequest
2 , // 3: schnutibox.v1.TimerService.Create:input_type -> schnutibox.v1.Timer
3 , // 4: schnutibox.v1.TimerService.Get:input_type -> schnutibox.v1.TimerEmpty
1 , // 5: schnutibox.v1.IdentifierService.Identify:output_type -> schnutibox.v1.IdentifyResponse
2 , // 6: schnutibox.v1.TimerService.Create:output_type -> schnutibox.v1.Timer
2 , // 7: schnutibox.v1.TimerService.Get:output_type -> schnutibox.v1.Timer
5 , // [5:8] is the sub-list for method output_type
2 , // [2:5] is the sub-list for method input_type
2 , // [2:2] is the sub-list for extension type_name
2 , // [2:2] is the sub-list for extension extendee
0 , // [0:2] is the sub-list for field type_name
}
func init ( ) { file_schnutibox_proto_init ( ) }
@ -206,6 +330,30 @@ func file_schnutibox_proto_init() {
return nil
}
}
file_schnutibox_proto_msgTypes [ 2 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * Timer ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
file_schnutibox_proto_msgTypes [ 3 ] . Exporter = func ( v interface { } , i int ) interface { } {
switch v := v . ( * TimerEmpty ) ; i {
case 0 :
return & v . state
case 1 :
return & v . sizeCache
case 2 :
return & v . unknownFields
default :
return nil
}
}
}
type x struct { }
out := protoimpl . TypeBuilder {
@ -213,9 +361,9 @@ func file_schnutibox_proto_init() {
GoPackagePath : reflect . TypeOf ( x { } ) . PkgPath ( ) ,
RawDescriptor : file_schnutibox_proto_rawDesc ,
NumEnums : 0 ,
NumMessages : 2 ,
NumMessages : 4 ,
NumExtensions : 0 ,
NumServices : 1 ,
NumServices : 2 ,
} ,
GoTypes : file_schnutibox_proto_goTypes ,
DependencyIndexes : file_schnutibox_proto_depIdxs ,