...

Source file src/github.com/google/s2a-go/internal/proto/examples/helloworld_go_proto/helloworld.pb.go

Documentation: github.com/google/s2a-go/internal/proto/examples/helloworld_go_proto

     1  // Copyright 2021 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //    https://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16  // versions:
    17  // 	protoc-gen-go v1.30.0
    18  // 	protoc        v3.21.12
    19  // source: internal/proto/examples/helloworld.proto
    20  
    21  package helloworld_go_proto
    22  
    23  import (
    24  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    25  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    26  	reflect "reflect"
    27  	sync "sync"
    28  )
    29  
    30  const (
    31  	// Verify that this generated code is sufficiently up-to-date.
    32  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    33  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    34  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    35  )
    36  
    37  // The request message containing the user's name.
    38  type HelloRequest struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    44  }
    45  
    46  func (x *HelloRequest) Reset() {
    47  	*x = HelloRequest{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_internal_proto_examples_helloworld_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *HelloRequest) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*HelloRequest) ProtoMessage() {}
    60  
    61  func (x *HelloRequest) ProtoReflect() protoreflect.Message {
    62  	mi := &file_internal_proto_examples_helloworld_proto_msgTypes[0]
    63  	if protoimpl.UnsafeEnabled && x != nil {
    64  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    65  		if ms.LoadMessageInfo() == nil {
    66  			ms.StoreMessageInfo(mi)
    67  		}
    68  		return ms
    69  	}
    70  	return mi.MessageOf(x)
    71  }
    72  
    73  // Deprecated: Use HelloRequest.ProtoReflect.Descriptor instead.
    74  func (*HelloRequest) Descriptor() ([]byte, []int) {
    75  	return file_internal_proto_examples_helloworld_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *HelloRequest) GetName() string {
    79  	if x != nil {
    80  		return x.Name
    81  	}
    82  	return ""
    83  }
    84  
    85  // The response message containing the greetings
    86  type HelloReply struct {
    87  	state         protoimpl.MessageState
    88  	sizeCache     protoimpl.SizeCache
    89  	unknownFields protoimpl.UnknownFields
    90  
    91  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    92  }
    93  
    94  func (x *HelloReply) Reset() {
    95  	*x = HelloReply{}
    96  	if protoimpl.UnsafeEnabled {
    97  		mi := &file_internal_proto_examples_helloworld_proto_msgTypes[1]
    98  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    99  		ms.StoreMessageInfo(mi)
   100  	}
   101  }
   102  
   103  func (x *HelloReply) String() string {
   104  	return protoimpl.X.MessageStringOf(x)
   105  }
   106  
   107  func (*HelloReply) ProtoMessage() {}
   108  
   109  func (x *HelloReply) ProtoReflect() protoreflect.Message {
   110  	mi := &file_internal_proto_examples_helloworld_proto_msgTypes[1]
   111  	if protoimpl.UnsafeEnabled && x != nil {
   112  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   113  		if ms.LoadMessageInfo() == nil {
   114  			ms.StoreMessageInfo(mi)
   115  		}
   116  		return ms
   117  	}
   118  	return mi.MessageOf(x)
   119  }
   120  
   121  // Deprecated: Use HelloReply.ProtoReflect.Descriptor instead.
   122  func (*HelloReply) Descriptor() ([]byte, []int) {
   123  	return file_internal_proto_examples_helloworld_proto_rawDescGZIP(), []int{1}
   124  }
   125  
   126  func (x *HelloReply) GetMessage() string {
   127  	if x != nil {
   128  		return x.Message
   129  	}
   130  	return ""
   131  }
   132  
   133  var File_internal_proto_examples_helloworld_proto protoreflect.FileDescriptor
   134  
   135  var file_internal_proto_examples_helloworld_proto_rawDesc = []byte{
   136  	0x0a, 0x28, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   137  	0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c, 0x6c, 0x6f, 0x77,
   138  	0x6f, 0x72, 0x6c, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x73, 0x32, 0x61, 0x2e,
   139  	0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x22, 0x22, 0x0a, 0x0c, 0x48, 0x65, 0x6c, 0x6c,
   140  	0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
   141  	0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x26, 0x0a, 0x0a,
   142  	0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65,
   143  	0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73,
   144  	0x73, 0x61, 0x67, 0x65, 0x32, 0xc4, 0x02, 0x0a, 0x07, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72,
   145  	0x12, 0x42, 0x0a, 0x08, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x1a, 0x2e, 0x73,
   146  	0x32, 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c,
   147  	0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x32, 0x61, 0x2e, 0x65,
   148  	0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70,
   149  	0x6c, 0x79, 0x22, 0x00, 0x12, 0x50, 0x0a, 0x14, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c, 0x6c, 0x6f,
   150  	0x4d, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x73, 0x12, 0x1a, 0x2e, 0x73,
   151  	0x32, 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c,
   152  	0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x32, 0x61, 0x2e, 0x65,
   153  	0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x70,
   154  	0x6c, 0x79, 0x22, 0x00, 0x28, 0x01, 0x12, 0x4f, 0x0a, 0x13, 0x53, 0x61, 0x79, 0x48, 0x65, 0x6c,
   155  	0x6c, 0x6f, 0x4d, 0x61, 0x6e, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x69, 0x65, 0x73, 0x12, 0x1a, 0x2e,
   156  	0x73, 0x32, 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c,
   157  	0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x32, 0x61, 0x2e,
   158  	0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65,
   159  	0x70, 0x6c, 0x79, 0x22, 0x00, 0x30, 0x01, 0x12, 0x52, 0x0a, 0x14, 0x53, 0x61, 0x79, 0x48, 0x65,
   160  	0x6c, 0x6c, 0x6f, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
   161  	0x1a, 0x2e, 0x73, 0x32, 0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48,
   162  	0x65, 0x6c, 0x6c, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x73, 0x32,
   163  	0x61, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2e, 0x48, 0x65, 0x6c, 0x6c, 0x6f,
   164  	0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x28, 0x01, 0x30, 0x01, 0x42, 0x43, 0x5a, 0x41, 0x67,
   165  	0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
   166  	0x2f, 0x73, 0x32, 0x61, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x70, 0x72,
   167  	0x6f, 0x74, 0x6f, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x2f, 0x68, 0x65, 0x6c,
   168  	0x6c, 0x6f, 0x77, 0x6f, 0x72, 0x6c, 0x64, 0x5f, 0x67, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
   169  	0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   170  }
   171  
   172  var (
   173  	file_internal_proto_examples_helloworld_proto_rawDescOnce sync.Once
   174  	file_internal_proto_examples_helloworld_proto_rawDescData = file_internal_proto_examples_helloworld_proto_rawDesc
   175  )
   176  
   177  func file_internal_proto_examples_helloworld_proto_rawDescGZIP() []byte {
   178  	file_internal_proto_examples_helloworld_proto_rawDescOnce.Do(func() {
   179  		file_internal_proto_examples_helloworld_proto_rawDescData = protoimpl.X.CompressGZIP(file_internal_proto_examples_helloworld_proto_rawDescData)
   180  	})
   181  	return file_internal_proto_examples_helloworld_proto_rawDescData
   182  }
   183  
   184  var file_internal_proto_examples_helloworld_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   185  var file_internal_proto_examples_helloworld_proto_goTypes = []interface{}{
   186  	(*HelloRequest)(nil), // 0: s2a.examples.HelloRequest
   187  	(*HelloReply)(nil),   // 1: s2a.examples.HelloReply
   188  }
   189  var file_internal_proto_examples_helloworld_proto_depIdxs = []int32{
   190  	0, // 0: s2a.examples.Greeter.SayHello:input_type -> s2a.examples.HelloRequest
   191  	0, // 1: s2a.examples.Greeter.SayHelloManyRequests:input_type -> s2a.examples.HelloRequest
   192  	0, // 2: s2a.examples.Greeter.SayHelloManyReplies:input_type -> s2a.examples.HelloRequest
   193  	0, // 3: s2a.examples.Greeter.SayHelloConversation:input_type -> s2a.examples.HelloRequest
   194  	1, // 4: s2a.examples.Greeter.SayHello:output_type -> s2a.examples.HelloReply
   195  	1, // 5: s2a.examples.Greeter.SayHelloManyRequests:output_type -> s2a.examples.HelloReply
   196  	1, // 6: s2a.examples.Greeter.SayHelloManyReplies:output_type -> s2a.examples.HelloReply
   197  	1, // 7: s2a.examples.Greeter.SayHelloConversation:output_type -> s2a.examples.HelloReply
   198  	4, // [4:8] is the sub-list for method output_type
   199  	0, // [0:4] is the sub-list for method input_type
   200  	0, // [0:0] is the sub-list for extension type_name
   201  	0, // [0:0] is the sub-list for extension extendee
   202  	0, // [0:0] is the sub-list for field type_name
   203  }
   204  
   205  func init() { file_internal_proto_examples_helloworld_proto_init() }
   206  func file_internal_proto_examples_helloworld_proto_init() {
   207  	if File_internal_proto_examples_helloworld_proto != nil {
   208  		return
   209  	}
   210  	if !protoimpl.UnsafeEnabled {
   211  		file_internal_proto_examples_helloworld_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   212  			switch v := v.(*HelloRequest); i {
   213  			case 0:
   214  				return &v.state
   215  			case 1:
   216  				return &v.sizeCache
   217  			case 2:
   218  				return &v.unknownFields
   219  			default:
   220  				return nil
   221  			}
   222  		}
   223  		file_internal_proto_examples_helloworld_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   224  			switch v := v.(*HelloReply); i {
   225  			case 0:
   226  				return &v.state
   227  			case 1:
   228  				return &v.sizeCache
   229  			case 2:
   230  				return &v.unknownFields
   231  			default:
   232  				return nil
   233  			}
   234  		}
   235  	}
   236  	type x struct{}
   237  	out := protoimpl.TypeBuilder{
   238  		File: protoimpl.DescBuilder{
   239  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   240  			RawDescriptor: file_internal_proto_examples_helloworld_proto_rawDesc,
   241  			NumEnums:      0,
   242  			NumMessages:   2,
   243  			NumExtensions: 0,
   244  			NumServices:   1,
   245  		},
   246  		GoTypes:           file_internal_proto_examples_helloworld_proto_goTypes,
   247  		DependencyIndexes: file_internal_proto_examples_helloworld_proto_depIdxs,
   248  		MessageInfos:      file_internal_proto_examples_helloworld_proto_msgTypes,
   249  	}.Build()
   250  	File_internal_proto_examples_helloworld_proto = out.File
   251  	file_internal_proto_examples_helloworld_proto_rawDesc = nil
   252  	file_internal_proto_examples_helloworld_proto_goTypes = nil
   253  	file_internal_proto_examples_helloworld_proto_depIdxs = nil
   254  }
   255  

View as plain text