github.com/team-ide/go-dialect@v1.9.20/vitess/vttime/vttime.pb.go (about)

     1  //
     2  //Copyright 2019 The Vitess Authors.
     3  //
     4  //Licensed under the Apache License, Version 2.0 (the "License");
     5  //you may not use this file except in compliance with the License.
     6  //You may obtain a copy of the License at
     7  //
     8  //http://www.apache.org/licenses/LICENSE-2.0
     9  //
    10  //Unless required by applicable law or agreed to in writing, software
    11  //distributed under the License is distributed on an "AS IS" BASIS,
    12  //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  //See the License for the specific language governing permissions and
    14  //limitations under the License.
    15  
    16  // This package contains a shared time data structure
    17  
    18  // Code generated by protoc-gen-go. DO NOT EDIT.
    19  // versions:
    20  // 	protoc-gen-go v1.27.1
    21  // 	protoc        v3.19.4
    22  // source: vttime.proto
    23  
    24  package vttime
    25  
    26  import (
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  	reflect "reflect"
    30  	sync "sync"
    31  )
    32  
    33  const (
    34  	// Verify that this generated code is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    36  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    37  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    38  )
    39  
    40  // Time represents a time stamp in nanoseconds. In go, use logutil library
    41  // to convert times.
    42  type Time struct {
    43  	state         protoimpl.MessageState
    44  	sizeCache     protoimpl.SizeCache
    45  	unknownFields protoimpl.UnknownFields
    46  
    47  	Seconds     int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
    48  	Nanoseconds int32 `protobuf:"varint,2,opt,name=nanoseconds,proto3" json:"nanoseconds,omitempty"`
    49  }
    50  
    51  func (x *Time) Reset() {
    52  	*x = Time{}
    53  	if protoimpl.UnsafeEnabled {
    54  		mi := &file_vttime_proto_msgTypes[0]
    55  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    56  		ms.StoreMessageInfo(mi)
    57  	}
    58  }
    59  
    60  func (x *Time) String() string {
    61  	return protoimpl.X.MessageStringOf(x)
    62  }
    63  
    64  func (*Time) ProtoMessage() {}
    65  
    66  func (x *Time) ProtoReflect() protoreflect.Message {
    67  	mi := &file_vttime_proto_msgTypes[0]
    68  	if protoimpl.UnsafeEnabled && x != nil {
    69  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    70  		if ms.LoadMessageInfo() == nil {
    71  			ms.StoreMessageInfo(mi)
    72  		}
    73  		return ms
    74  	}
    75  	return mi.MessageOf(x)
    76  }
    77  
    78  // Deprecated: Use Time.ProtoReflect.Descriptor instead.
    79  func (*Time) Descriptor() ([]byte, []int) {
    80  	return file_vttime_proto_rawDescGZIP(), []int{0}
    81  }
    82  
    83  func (x *Time) GetSeconds() int64 {
    84  	if x != nil {
    85  		return x.Seconds
    86  	}
    87  	return 0
    88  }
    89  
    90  func (x *Time) GetNanoseconds() int32 {
    91  	if x != nil {
    92  		return x.Nanoseconds
    93  	}
    94  	return 0
    95  }
    96  
    97  type Duration struct {
    98  	state         protoimpl.MessageState
    99  	sizeCache     protoimpl.SizeCache
   100  	unknownFields protoimpl.UnknownFields
   101  
   102  	Seconds int64 `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
   103  	Nanos   int32 `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
   104  }
   105  
   106  func (x *Duration) Reset() {
   107  	*x = Duration{}
   108  	if protoimpl.UnsafeEnabled {
   109  		mi := &file_vttime_proto_msgTypes[1]
   110  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   111  		ms.StoreMessageInfo(mi)
   112  	}
   113  }
   114  
   115  func (x *Duration) String() string {
   116  	return protoimpl.X.MessageStringOf(x)
   117  }
   118  
   119  func (*Duration) ProtoMessage() {}
   120  
   121  func (x *Duration) ProtoReflect() protoreflect.Message {
   122  	mi := &file_vttime_proto_msgTypes[1]
   123  	if protoimpl.UnsafeEnabled && x != nil {
   124  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   125  		if ms.LoadMessageInfo() == nil {
   126  			ms.StoreMessageInfo(mi)
   127  		}
   128  		return ms
   129  	}
   130  	return mi.MessageOf(x)
   131  }
   132  
   133  // Deprecated: Use Duration.ProtoReflect.Descriptor instead.
   134  func (*Duration) Descriptor() ([]byte, []int) {
   135  	return file_vttime_proto_rawDescGZIP(), []int{1}
   136  }
   137  
   138  func (x *Duration) GetSeconds() int64 {
   139  	if x != nil {
   140  		return x.Seconds
   141  	}
   142  	return 0
   143  }
   144  
   145  func (x *Duration) GetNanos() int32 {
   146  	if x != nil {
   147  		return x.Nanos
   148  	}
   149  	return 0
   150  }
   151  
   152  var File_vttime_proto protoreflect.FileDescriptor
   153  
   154  var file_vttime_proto_rawDesc = []byte{
   155  	0x0a, 0x0c, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
   156  	0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x22, 0x42, 0x0a, 0x04, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x18,
   157  	0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
   158  	0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x12, 0x20, 0x0a, 0x0b, 0x6e, 0x61, 0x6e, 0x6f,
   159  	0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0b, 0x6e,
   160  	0x61, 0x6e, 0x6f, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73, 0x22, 0x3a, 0x0a, 0x08, 0x44, 0x75,
   161  	0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64,
   162  	0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x73, 0x65, 0x63, 0x6f, 0x6e, 0x64, 0x73,
   163  	0x12, 0x14, 0x0a, 0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52,
   164  	0x05, 0x6e, 0x61, 0x6e, 0x6f, 0x73, 0x42, 0x25, 0x5a, 0x23, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73,
   165  	0x2e, 0x69, 0x6f, 0x2f, 0x76, 0x69, 0x74, 0x65, 0x73, 0x73, 0x2f, 0x67, 0x6f, 0x2f, 0x76, 0x74,
   166  	0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x76, 0x74, 0x74, 0x69, 0x6d, 0x65, 0x62, 0x06, 0x70,
   167  	0x72, 0x6f, 0x74, 0x6f, 0x33,
   168  }
   169  
   170  var (
   171  	file_vttime_proto_rawDescOnce sync.Once
   172  	file_vttime_proto_rawDescData = file_vttime_proto_rawDesc
   173  )
   174  
   175  func file_vttime_proto_rawDescGZIP() []byte {
   176  	file_vttime_proto_rawDescOnce.Do(func() {
   177  		file_vttime_proto_rawDescData = protoimpl.X.CompressGZIP(file_vttime_proto_rawDescData)
   178  	})
   179  	return file_vttime_proto_rawDescData
   180  }
   181  
   182  var file_vttime_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   183  var file_vttime_proto_goTypes = []interface{}{
   184  	(*Time)(nil),     // 0: vttime.Time
   185  	(*Duration)(nil), // 1: vttime.Duration
   186  }
   187  var file_vttime_proto_depIdxs = []int32{
   188  	0, // [0:0] is the sub-list for method output_type
   189  	0, // [0:0] is the sub-list for method input_type
   190  	0, // [0:0] is the sub-list for extension type_name
   191  	0, // [0:0] is the sub-list for extension extendee
   192  	0, // [0:0] is the sub-list for field type_name
   193  }
   194  
   195  func init() { file_vttime_proto_init() }
   196  func file_vttime_proto_init() {
   197  	if File_vttime_proto != nil {
   198  		return
   199  	}
   200  	if !protoimpl.UnsafeEnabled {
   201  		file_vttime_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   202  			switch v := v.(*Time); i {
   203  			case 0:
   204  				return &v.state
   205  			case 1:
   206  				return &v.sizeCache
   207  			case 2:
   208  				return &v.unknownFields
   209  			default:
   210  				return nil
   211  			}
   212  		}
   213  		file_vttime_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   214  			switch v := v.(*Duration); i {
   215  			case 0:
   216  				return &v.state
   217  			case 1:
   218  				return &v.sizeCache
   219  			case 2:
   220  				return &v.unknownFields
   221  			default:
   222  				return nil
   223  			}
   224  		}
   225  	}
   226  	type x struct{}
   227  	out := protoimpl.TypeBuilder{
   228  		File: protoimpl.DescBuilder{
   229  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   230  			RawDescriptor: file_vttime_proto_rawDesc,
   231  			NumEnums:      0,
   232  			NumMessages:   2,
   233  			NumExtensions: 0,
   234  			NumServices:   0,
   235  		},
   236  		GoTypes:           file_vttime_proto_goTypes,
   237  		DependencyIndexes: file_vttime_proto_depIdxs,
   238  		MessageInfos:      file_vttime_proto_msgTypes,
   239  	}.Build()
   240  	File_vttime_proto = out.File
   241  	file_vttime_proto_rawDesc = nil
   242  	file_vttime_proto_goTypes = nil
   243  	file_vttime_proto_depIdxs = nil
   244  }