...

Source file src/github.com/containerd/ttrpc/example/example.pb.go

Documentation: github.com/containerd/ttrpc/example

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.27.1
     4  // 	protoc        v3.11.4
     5  // source: github.com/containerd/ttrpc/example/example.proto
     6  
     7  package example
     8  
     9  import (
    10  	empty "github.com/golang/protobuf/ptypes/empty"
    11  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    12  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    13  	reflect "reflect"
    14  	sync "sync"
    15  )
    16  
    17  const (
    18  	// Verify that this generated code is sufficiently up-to-date.
    19  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    20  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    21  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    22  )
    23  
    24  type Method1Request struct {
    25  	state         protoimpl.MessageState
    26  	sizeCache     protoimpl.SizeCache
    27  	unknownFields protoimpl.UnknownFields
    28  
    29  	Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
    30  	Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
    31  }
    32  
    33  func (x *Method1Request) Reset() {
    34  	*x = Method1Request{}
    35  	if protoimpl.UnsafeEnabled {
    36  		mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[0]
    37  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    38  		ms.StoreMessageInfo(mi)
    39  	}
    40  }
    41  
    42  func (x *Method1Request) String() string {
    43  	return protoimpl.X.MessageStringOf(x)
    44  }
    45  
    46  func (*Method1Request) ProtoMessage() {}
    47  
    48  func (x *Method1Request) ProtoReflect() protoreflect.Message {
    49  	mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[0]
    50  	if protoimpl.UnsafeEnabled && x != nil {
    51  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    52  		if ms.LoadMessageInfo() == nil {
    53  			ms.StoreMessageInfo(mi)
    54  		}
    55  		return ms
    56  	}
    57  	return mi.MessageOf(x)
    58  }
    59  
    60  // Deprecated: Use Method1Request.ProtoReflect.Descriptor instead.
    61  func (*Method1Request) Descriptor() ([]byte, []int) {
    62  	return file_github_com_containerd_ttrpc_example_example_proto_rawDescGZIP(), []int{0}
    63  }
    64  
    65  func (x *Method1Request) GetFoo() string {
    66  	if x != nil {
    67  		return x.Foo
    68  	}
    69  	return ""
    70  }
    71  
    72  func (x *Method1Request) GetBar() string {
    73  	if x != nil {
    74  		return x.Bar
    75  	}
    76  	return ""
    77  }
    78  
    79  type Method1Response struct {
    80  	state         protoimpl.MessageState
    81  	sizeCache     protoimpl.SizeCache
    82  	unknownFields protoimpl.UnknownFields
    83  
    84  	Foo string `protobuf:"bytes,1,opt,name=foo,proto3" json:"foo,omitempty"`
    85  	Bar string `protobuf:"bytes,2,opt,name=bar,proto3" json:"bar,omitempty"`
    86  }
    87  
    88  func (x *Method1Response) Reset() {
    89  	*x = Method1Response{}
    90  	if protoimpl.UnsafeEnabled {
    91  		mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[1]
    92  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    93  		ms.StoreMessageInfo(mi)
    94  	}
    95  }
    96  
    97  func (x *Method1Response) String() string {
    98  	return protoimpl.X.MessageStringOf(x)
    99  }
   100  
   101  func (*Method1Response) ProtoMessage() {}
   102  
   103  func (x *Method1Response) ProtoReflect() protoreflect.Message {
   104  	mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[1]
   105  	if protoimpl.UnsafeEnabled && x != nil {
   106  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   107  		if ms.LoadMessageInfo() == nil {
   108  			ms.StoreMessageInfo(mi)
   109  		}
   110  		return ms
   111  	}
   112  	return mi.MessageOf(x)
   113  }
   114  
   115  // Deprecated: Use Method1Response.ProtoReflect.Descriptor instead.
   116  func (*Method1Response) Descriptor() ([]byte, []int) {
   117  	return file_github_com_containerd_ttrpc_example_example_proto_rawDescGZIP(), []int{1}
   118  }
   119  
   120  func (x *Method1Response) GetFoo() string {
   121  	if x != nil {
   122  		return x.Foo
   123  	}
   124  	return ""
   125  }
   126  
   127  func (x *Method1Response) GetBar() string {
   128  	if x != nil {
   129  		return x.Bar
   130  	}
   131  	return ""
   132  }
   133  
   134  type Method2Request struct {
   135  	state         protoimpl.MessageState
   136  	sizeCache     protoimpl.SizeCache
   137  	unknownFields protoimpl.UnknownFields
   138  
   139  	Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"`
   140  }
   141  
   142  func (x *Method2Request) Reset() {
   143  	*x = Method2Request{}
   144  	if protoimpl.UnsafeEnabled {
   145  		mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[2]
   146  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   147  		ms.StoreMessageInfo(mi)
   148  	}
   149  }
   150  
   151  func (x *Method2Request) String() string {
   152  	return protoimpl.X.MessageStringOf(x)
   153  }
   154  
   155  func (*Method2Request) ProtoMessage() {}
   156  
   157  func (x *Method2Request) ProtoReflect() protoreflect.Message {
   158  	mi := &file_github_com_containerd_ttrpc_example_example_proto_msgTypes[2]
   159  	if protoimpl.UnsafeEnabled && x != nil {
   160  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   161  		if ms.LoadMessageInfo() == nil {
   162  			ms.StoreMessageInfo(mi)
   163  		}
   164  		return ms
   165  	}
   166  	return mi.MessageOf(x)
   167  }
   168  
   169  // Deprecated: Use Method2Request.ProtoReflect.Descriptor instead.
   170  func (*Method2Request) Descriptor() ([]byte, []int) {
   171  	return file_github_com_containerd_ttrpc_example_example_proto_rawDescGZIP(), []int{2}
   172  }
   173  
   174  func (x *Method2Request) GetAction() string {
   175  	if x != nil {
   176  		return x.Action
   177  	}
   178  	return ""
   179  }
   180  
   181  var File_github_com_containerd_ttrpc_example_example_proto protoreflect.FileDescriptor
   182  
   183  var file_github_com_containerd_ttrpc_example_example_proto_rawDesc = []byte{
   184  	0x0a, 0x31, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e,
   185  	0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x78,
   186  	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2e, 0x70, 0x72,
   187  	0x6f, 0x74, 0x6f, 0x12, 0x10, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70,
   188  	0x6c, 0x65, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
   189  	0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
   190  	0x74, 0x6f, 0x22, 0x34, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x52, 0x65, 0x71,
   191  	0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x66, 0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
   192  	0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a, 0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20,
   193  	0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x61, 0x72, 0x22, 0x35, 0x0a, 0x0f, 0x4d, 0x65, 0x74, 0x68,
   194  	0x6f, 0x64, 0x31, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x66,
   195  	0x6f, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x66, 0x6f, 0x6f, 0x12, 0x10, 0x0a,
   196  	0x03, 0x62, 0x61, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x62, 0x61, 0x72, 0x22,
   197  	0x28, 0x0a, 0x0e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   198  	0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28,
   199  	0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0x9e, 0x01, 0x0a, 0x07, 0x45, 0x78,
   200  	0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x4e, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31,
   201  	0x12, 0x20, 0x2e, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
   202  	0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x52, 0x65, 0x71, 0x75, 0x65,
   203  	0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70,
   204  	0x6c, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x52, 0x65, 0x73,
   205  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x07, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x32,
   206  	0x12, 0x20, 0x2e, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
   207  	0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x31, 0x52, 0x65, 0x71, 0x75, 0x65,
   208  	0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74,
   209  	0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x2d, 0x5a, 0x2b, 0x67, 0x69,
   210  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e,
   211  	0x65, 0x72, 0x64, 0x2f, 0x74, 0x74, 0x72, 0x70, 0x63, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c,
   212  	0x65, 0x3b, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   213  	0x33,
   214  }
   215  
   216  var (
   217  	file_github_com_containerd_ttrpc_example_example_proto_rawDescOnce sync.Once
   218  	file_github_com_containerd_ttrpc_example_example_proto_rawDescData = file_github_com_containerd_ttrpc_example_example_proto_rawDesc
   219  )
   220  
   221  func file_github_com_containerd_ttrpc_example_example_proto_rawDescGZIP() []byte {
   222  	file_github_com_containerd_ttrpc_example_example_proto_rawDescOnce.Do(func() {
   223  		file_github_com_containerd_ttrpc_example_example_proto_rawDescData = protoimpl.X.CompressGZIP(file_github_com_containerd_ttrpc_example_example_proto_rawDescData)
   224  	})
   225  	return file_github_com_containerd_ttrpc_example_example_proto_rawDescData
   226  }
   227  
   228  var file_github_com_containerd_ttrpc_example_example_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   229  var file_github_com_containerd_ttrpc_example_example_proto_goTypes = []interface{}{
   230  	(*Method1Request)(nil),  // 0: ttrpc.example.v1.Method1Request
   231  	(*Method1Response)(nil), // 1: ttrpc.example.v1.Method1Response
   232  	(*Method2Request)(nil),  // 2: ttrpc.example.v1.Method2Request
   233  	(*empty.Empty)(nil),     // 3: google.protobuf.Empty
   234  }
   235  var file_github_com_containerd_ttrpc_example_example_proto_depIdxs = []int32{
   236  	0, // 0: ttrpc.example.v1.Example.Method1:input_type -> ttrpc.example.v1.Method1Request
   237  	0, // 1: ttrpc.example.v1.Example.Method2:input_type -> ttrpc.example.v1.Method1Request
   238  	1, // 2: ttrpc.example.v1.Example.Method1:output_type -> ttrpc.example.v1.Method1Response
   239  	3, // 3: ttrpc.example.v1.Example.Method2:output_type -> google.protobuf.Empty
   240  	2, // [2:4] is the sub-list for method output_type
   241  	0, // [0:2] is the sub-list for method input_type
   242  	0, // [0:0] is the sub-list for extension type_name
   243  	0, // [0:0] is the sub-list for extension extendee
   244  	0, // [0:0] is the sub-list for field type_name
   245  }
   246  
   247  func init() { file_github_com_containerd_ttrpc_example_example_proto_init() }
   248  func file_github_com_containerd_ttrpc_example_example_proto_init() {
   249  	if File_github_com_containerd_ttrpc_example_example_proto != nil {
   250  		return
   251  	}
   252  	if !protoimpl.UnsafeEnabled {
   253  		file_github_com_containerd_ttrpc_example_example_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   254  			switch v := v.(*Method1Request); i {
   255  			case 0:
   256  				return &v.state
   257  			case 1:
   258  				return &v.sizeCache
   259  			case 2:
   260  				return &v.unknownFields
   261  			default:
   262  				return nil
   263  			}
   264  		}
   265  		file_github_com_containerd_ttrpc_example_example_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   266  			switch v := v.(*Method1Response); i {
   267  			case 0:
   268  				return &v.state
   269  			case 1:
   270  				return &v.sizeCache
   271  			case 2:
   272  				return &v.unknownFields
   273  			default:
   274  				return nil
   275  			}
   276  		}
   277  		file_github_com_containerd_ttrpc_example_example_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
   278  			switch v := v.(*Method2Request); i {
   279  			case 0:
   280  				return &v.state
   281  			case 1:
   282  				return &v.sizeCache
   283  			case 2:
   284  				return &v.unknownFields
   285  			default:
   286  				return nil
   287  			}
   288  		}
   289  	}
   290  	type x struct{}
   291  	out := protoimpl.TypeBuilder{
   292  		File: protoimpl.DescBuilder{
   293  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   294  			RawDescriptor: file_github_com_containerd_ttrpc_example_example_proto_rawDesc,
   295  			NumEnums:      0,
   296  			NumMessages:   3,
   297  			NumExtensions: 0,
   298  			NumServices:   1,
   299  		},
   300  		GoTypes:           file_github_com_containerd_ttrpc_example_example_proto_goTypes,
   301  		DependencyIndexes: file_github_com_containerd_ttrpc_example_example_proto_depIdxs,
   302  		MessageInfos:      file_github_com_containerd_ttrpc_example_example_proto_msgTypes,
   303  	}.Build()
   304  	File_github_com_containerd_ttrpc_example_example_proto = out.File
   305  	file_github_com_containerd_ttrpc_example_example_proto_rawDesc = nil
   306  	file_github_com_containerd_ttrpc_example_example_proto_goTypes = nil
   307  	file_github_com_containerd_ttrpc_example_example_proto_depIdxs = nil
   308  }
   309  

View as plain text