...

Source file src/cloud.google.com/go/auth/grpctransport/testdata/echo.pb.go

Documentation: cloud.google.com/go/auth/grpctransport/testdata

     1  // Copyright 2023 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  //      http://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.31.0
    18  // 	protoc        v4.24.2
    19  // source: echo.proto
    20  
    21  package echo
    22  
    23  import (
    24  	reflect "reflect"
    25  	sync "sync"
    26  
    27  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29  )
    30  
    31  const (
    32  	// Verify that this generated code is sufficiently up-to-date.
    33  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    34  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    35  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    36  )
    37  
    38  type EchoRequest struct {
    39  	state         protoimpl.MessageState
    40  	sizeCache     protoimpl.SizeCache
    41  	unknownFields protoimpl.UnknownFields
    42  
    43  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    44  }
    45  
    46  func (x *EchoRequest) Reset() {
    47  	*x = EchoRequest{}
    48  	if protoimpl.UnsafeEnabled {
    49  		mi := &file_echo_proto_msgTypes[0]
    50  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    51  		ms.StoreMessageInfo(mi)
    52  	}
    53  }
    54  
    55  func (x *EchoRequest) String() string {
    56  	return protoimpl.X.MessageStringOf(x)
    57  }
    58  
    59  func (*EchoRequest) ProtoMessage() {}
    60  
    61  func (x *EchoRequest) ProtoReflect() protoreflect.Message {
    62  	mi := &file_echo_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 EchoRequest.ProtoReflect.Descriptor instead.
    74  func (*EchoRequest) Descriptor() ([]byte, []int) {
    75  	return file_echo_proto_rawDescGZIP(), []int{0}
    76  }
    77  
    78  func (x *EchoRequest) GetMessage() string {
    79  	if x != nil {
    80  		return x.Message
    81  	}
    82  	return ""
    83  }
    84  
    85  type EchoReply struct {
    86  	state         protoimpl.MessageState
    87  	sizeCache     protoimpl.SizeCache
    88  	unknownFields protoimpl.UnknownFields
    89  
    90  	Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
    91  }
    92  
    93  func (x *EchoReply) Reset() {
    94  	*x = EchoReply{}
    95  	if protoimpl.UnsafeEnabled {
    96  		mi := &file_echo_proto_msgTypes[1]
    97  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    98  		ms.StoreMessageInfo(mi)
    99  	}
   100  }
   101  
   102  func (x *EchoReply) String() string {
   103  	return protoimpl.X.MessageStringOf(x)
   104  }
   105  
   106  func (*EchoReply) ProtoMessage() {}
   107  
   108  func (x *EchoReply) ProtoReflect() protoreflect.Message {
   109  	mi := &file_echo_proto_msgTypes[1]
   110  	if protoimpl.UnsafeEnabled && x != nil {
   111  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   112  		if ms.LoadMessageInfo() == nil {
   113  			ms.StoreMessageInfo(mi)
   114  		}
   115  		return ms
   116  	}
   117  	return mi.MessageOf(x)
   118  }
   119  
   120  // Deprecated: Use EchoReply.ProtoReflect.Descriptor instead.
   121  func (*EchoReply) Descriptor() ([]byte, []int) {
   122  	return file_echo_proto_rawDescGZIP(), []int{1}
   123  }
   124  
   125  func (x *EchoReply) GetMessage() string {
   126  	if x != nil {
   127  		return x.Message
   128  	}
   129  	return ""
   130  }
   131  
   132  var File_echo_proto protoreflect.FileDescriptor
   133  
   134  var file_echo_proto_rawDesc = []byte{
   135  	0x0a, 0x0a, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x04, 0x65, 0x63,
   136  	0x68, 0x6f, 0x22, 0x27, 0x0a, 0x0b, 0x45, 0x63, 0x68, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
   137  	0x74, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01,
   138  	0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x25, 0x0a, 0x09, 0x45,
   139  	0x63, 0x68, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73,
   140  	0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61,
   141  	0x67, 0x65, 0x32, 0x36, 0x0a, 0x06, 0x45, 0x63, 0x68, 0x6f, 0x65, 0x72, 0x12, 0x2c, 0x0a, 0x04,
   142  	0x45, 0x63, 0x68, 0x6f, 0x12, 0x11, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x45, 0x63, 0x68, 0x6f,
   143  	0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x65, 0x63, 0x68, 0x6f, 0x2e, 0x45,
   144  	0x63, 0x68, 0x6f, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x36, 0x5a, 0x34, 0x63, 0x6c,
   145  	0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
   146  	0x6f, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x74, 0x72, 0x61, 0x6e, 0x73,
   147  	0x70, 0x72, 0x6f, 0x74, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x64, 0x61, 0x74, 0x61, 0x3b, 0x65, 0x63,
   148  	0x68, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   149  }
   150  
   151  var (
   152  	file_echo_proto_rawDescOnce sync.Once
   153  	file_echo_proto_rawDescData = file_echo_proto_rawDesc
   154  )
   155  
   156  func file_echo_proto_rawDescGZIP() []byte {
   157  	file_echo_proto_rawDescOnce.Do(func() {
   158  		file_echo_proto_rawDescData = protoimpl.X.CompressGZIP(file_echo_proto_rawDescData)
   159  	})
   160  	return file_echo_proto_rawDescData
   161  }
   162  
   163  var file_echo_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
   164  var file_echo_proto_goTypes = []interface{}{
   165  	(*EchoRequest)(nil), // 0: echo.EchoRequest
   166  	(*EchoReply)(nil),   // 1: echo.EchoReply
   167  }
   168  var file_echo_proto_depIdxs = []int32{
   169  	0, // 0: echo.Echoer.Echo:input_type -> echo.EchoRequest
   170  	1, // 1: echo.Echoer.Echo:output_type -> echo.EchoReply
   171  	1, // [1:2] is the sub-list for method output_type
   172  	0, // [0:1] is the sub-list for method input_type
   173  	0, // [0:0] is the sub-list for extension type_name
   174  	0, // [0:0] is the sub-list for extension extendee
   175  	0, // [0:0] is the sub-list for field type_name
   176  }
   177  
   178  func init() { file_echo_proto_init() }
   179  func file_echo_proto_init() {
   180  	if File_echo_proto != nil {
   181  		return
   182  	}
   183  	if !protoimpl.UnsafeEnabled {
   184  		file_echo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   185  			switch v := v.(*EchoRequest); i {
   186  			case 0:
   187  				return &v.state
   188  			case 1:
   189  				return &v.sizeCache
   190  			case 2:
   191  				return &v.unknownFields
   192  			default:
   193  				return nil
   194  			}
   195  		}
   196  		file_echo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
   197  			switch v := v.(*EchoReply); i {
   198  			case 0:
   199  				return &v.state
   200  			case 1:
   201  				return &v.sizeCache
   202  			case 2:
   203  				return &v.unknownFields
   204  			default:
   205  				return nil
   206  			}
   207  		}
   208  	}
   209  	type x struct{}
   210  	out := protoimpl.TypeBuilder{
   211  		File: protoimpl.DescBuilder{
   212  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   213  			RawDescriptor: file_echo_proto_rawDesc,
   214  			NumEnums:      0,
   215  			NumMessages:   2,
   216  			NumExtensions: 0,
   217  			NumServices:   1,
   218  		},
   219  		GoTypes:           file_echo_proto_goTypes,
   220  		DependencyIndexes: file_echo_proto_depIdxs,
   221  		MessageInfos:      file_echo_proto_msgTypes,
   222  	}.Build()
   223  	File_echo_proto = out.File
   224  	file_echo_proto_rawDesc = nil
   225  	file_echo_proto_goTypes = nil
   226  	file_echo_proto_depIdxs = nil
   227  }
   228  

View as plain text