google.golang.org/grpc@v1.72.2/reflection/grpc_testing/test.pb.go (about)

     1  // Copyright 2017 gRPC authors.
     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.36.5
    18  // 	protoc        v5.27.1
    19  // source: reflection/grpc_testing/test.proto
    20  
    21  package grpc_testing
    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  	unsafe "unsafe"
    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 SearchResponse struct {
    39  	state         protoimpl.MessageState   `protogen:"open.v1"`
    40  	Results       []*SearchResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
    41  	unknownFields protoimpl.UnknownFields
    42  	sizeCache     protoimpl.SizeCache
    43  }
    44  
    45  func (x *SearchResponse) Reset() {
    46  	*x = SearchResponse{}
    47  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[0]
    48  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    49  	ms.StoreMessageInfo(mi)
    50  }
    51  
    52  func (x *SearchResponse) String() string {
    53  	return protoimpl.X.MessageStringOf(x)
    54  }
    55  
    56  func (*SearchResponse) ProtoMessage() {}
    57  
    58  func (x *SearchResponse) ProtoReflect() protoreflect.Message {
    59  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[0]
    60  	if x != nil {
    61  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    62  		if ms.LoadMessageInfo() == nil {
    63  			ms.StoreMessageInfo(mi)
    64  		}
    65  		return ms
    66  	}
    67  	return mi.MessageOf(x)
    68  }
    69  
    70  // Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
    71  func (*SearchResponse) Descriptor() ([]byte, []int) {
    72  	return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0}
    73  }
    74  
    75  func (x *SearchResponse) GetResults() []*SearchResponse_Result {
    76  	if x != nil {
    77  		return x.Results
    78  	}
    79  	return nil
    80  }
    81  
    82  type SearchRequest struct {
    83  	state         protoimpl.MessageState `protogen:"open.v1"`
    84  	Query         string                 `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
    85  	unknownFields protoimpl.UnknownFields
    86  	sizeCache     protoimpl.SizeCache
    87  }
    88  
    89  func (x *SearchRequest) Reset() {
    90  	*x = SearchRequest{}
    91  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[1]
    92  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    93  	ms.StoreMessageInfo(mi)
    94  }
    95  
    96  func (x *SearchRequest) String() string {
    97  	return protoimpl.X.MessageStringOf(x)
    98  }
    99  
   100  func (*SearchRequest) ProtoMessage() {}
   101  
   102  func (x *SearchRequest) ProtoReflect() protoreflect.Message {
   103  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[1]
   104  	if x != nil {
   105  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   106  		if ms.LoadMessageInfo() == nil {
   107  			ms.StoreMessageInfo(mi)
   108  		}
   109  		return ms
   110  	}
   111  	return mi.MessageOf(x)
   112  }
   113  
   114  // Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
   115  func (*SearchRequest) Descriptor() ([]byte, []int) {
   116  	return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{1}
   117  }
   118  
   119  func (x *SearchRequest) GetQuery() string {
   120  	if x != nil {
   121  		return x.Query
   122  	}
   123  	return ""
   124  }
   125  
   126  type SearchResponse_Result struct {
   127  	state         protoimpl.MessageState `protogen:"open.v1"`
   128  	Url           string                 `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
   129  	Title         string                 `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
   130  	Snippets      []string               `protobuf:"bytes,3,rep,name=snippets,proto3" json:"snippets,omitempty"`
   131  	unknownFields protoimpl.UnknownFields
   132  	sizeCache     protoimpl.SizeCache
   133  }
   134  
   135  func (x *SearchResponse_Result) Reset() {
   136  	*x = SearchResponse_Result{}
   137  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[2]
   138  	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   139  	ms.StoreMessageInfo(mi)
   140  }
   141  
   142  func (x *SearchResponse_Result) String() string {
   143  	return protoimpl.X.MessageStringOf(x)
   144  }
   145  
   146  func (*SearchResponse_Result) ProtoMessage() {}
   147  
   148  func (x *SearchResponse_Result) ProtoReflect() protoreflect.Message {
   149  	mi := &file_reflection_grpc_testing_test_proto_msgTypes[2]
   150  	if x != nil {
   151  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
   152  		if ms.LoadMessageInfo() == nil {
   153  			ms.StoreMessageInfo(mi)
   154  		}
   155  		return ms
   156  	}
   157  	return mi.MessageOf(x)
   158  }
   159  
   160  // Deprecated: Use SearchResponse_Result.ProtoReflect.Descriptor instead.
   161  func (*SearchResponse_Result) Descriptor() ([]byte, []int) {
   162  	return file_reflection_grpc_testing_test_proto_rawDescGZIP(), []int{0, 0}
   163  }
   164  
   165  func (x *SearchResponse_Result) GetUrl() string {
   166  	if x != nil {
   167  		return x.Url
   168  	}
   169  	return ""
   170  }
   171  
   172  func (x *SearchResponse_Result) GetTitle() string {
   173  	if x != nil {
   174  		return x.Title
   175  	}
   176  	return ""
   177  }
   178  
   179  func (x *SearchResponse_Result) GetSnippets() []string {
   180  	if x != nil {
   181  		return x.Snippets
   182  	}
   183  	return nil
   184  }
   185  
   186  var File_reflection_grpc_testing_test_proto protoreflect.FileDescriptor
   187  
   188  var file_reflection_grpc_testing_test_proto_rawDesc = string([]byte{
   189  	0x0a, 0x22, 0x72, 0x65, 0x66, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70,
   190  	0x63, 0x5f, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x65, 0x73, 0x74, 0x2e, 0x70,
   191  	0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69,
   192  	0x6e, 0x67, 0x22, 0x9d, 0x01, 0x0a, 0x0e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73,
   193  	0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x73,
   194  	0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65,
   195  	0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70,
   196  	0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x07, 0x72, 0x65, 0x73,
   197  	0x75, 0x6c, 0x74, 0x73, 0x1a, 0x4c, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10,
   198  	0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c,
   199  	0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
   200  	0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x6e, 0x69, 0x70, 0x70, 0x65,
   201  	0x74, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x73, 0x6e, 0x69, 0x70, 0x70, 0x65,
   202  	0x74, 0x73, 0x22, 0x25, 0x0a, 0x0d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75,
   203  	0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01,
   204  	0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x32, 0xa6, 0x01, 0x0a, 0x0d, 0x53, 0x65,
   205  	0x61, 0x72, 0x63, 0x68, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x06, 0x53,
   206  	0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73,
   207  	0x74, 0x69, 0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65,
   208  	0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e,
   209  	0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
   210  	0x12, 0x50, 0x0a, 0x0f, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x61,
   211  	0x72, 0x63, 0x68, 0x12, 0x1b, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69,
   212  	0x6e, 0x67, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
   213  	0x1a, 0x1c, 0x2e, 0x67, 0x72, 0x70, 0x63, 0x2e, 0x74, 0x65, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x2e,
   214  	0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x28, 0x01,
   215  	0x30, 0x01, 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
   216  	0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2f, 0x72, 0x65, 0x66,
   217  	0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x5f, 0x74, 0x65, 0x73,
   218  	0x74, 0x69, 0x6e, 0x67, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
   219  })
   220  
   221  var (
   222  	file_reflection_grpc_testing_test_proto_rawDescOnce sync.Once
   223  	file_reflection_grpc_testing_test_proto_rawDescData []byte
   224  )
   225  
   226  func file_reflection_grpc_testing_test_proto_rawDescGZIP() []byte {
   227  	file_reflection_grpc_testing_test_proto_rawDescOnce.Do(func() {
   228  		file_reflection_grpc_testing_test_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_test_proto_rawDesc), len(file_reflection_grpc_testing_test_proto_rawDesc)))
   229  	})
   230  	return file_reflection_grpc_testing_test_proto_rawDescData
   231  }
   232  
   233  var file_reflection_grpc_testing_test_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
   234  var file_reflection_grpc_testing_test_proto_goTypes = []any{
   235  	(*SearchResponse)(nil),        // 0: grpc.testing.SearchResponse
   236  	(*SearchRequest)(nil),         // 1: grpc.testing.SearchRequest
   237  	(*SearchResponse_Result)(nil), // 2: grpc.testing.SearchResponse.Result
   238  }
   239  var file_reflection_grpc_testing_test_proto_depIdxs = []int32{
   240  	2, // 0: grpc.testing.SearchResponse.results:type_name -> grpc.testing.SearchResponse.Result
   241  	1, // 1: grpc.testing.SearchService.Search:input_type -> grpc.testing.SearchRequest
   242  	1, // 2: grpc.testing.SearchService.StreamingSearch:input_type -> grpc.testing.SearchRequest
   243  	0, // 3: grpc.testing.SearchService.Search:output_type -> grpc.testing.SearchResponse
   244  	0, // 4: grpc.testing.SearchService.StreamingSearch:output_type -> grpc.testing.SearchResponse
   245  	3, // [3:5] is the sub-list for method output_type
   246  	1, // [1:3] is the sub-list for method input_type
   247  	1, // [1:1] is the sub-list for extension type_name
   248  	1, // [1:1] is the sub-list for extension extendee
   249  	0, // [0:1] is the sub-list for field type_name
   250  }
   251  
   252  func init() { file_reflection_grpc_testing_test_proto_init() }
   253  func file_reflection_grpc_testing_test_proto_init() {
   254  	if File_reflection_grpc_testing_test_proto != nil {
   255  		return
   256  	}
   257  	type x struct{}
   258  	out := protoimpl.TypeBuilder{
   259  		File: protoimpl.DescBuilder{
   260  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   261  			RawDescriptor: unsafe.Slice(unsafe.StringData(file_reflection_grpc_testing_test_proto_rawDesc), len(file_reflection_grpc_testing_test_proto_rawDesc)),
   262  			NumEnums:      0,
   263  			NumMessages:   3,
   264  			NumExtensions: 0,
   265  			NumServices:   1,
   266  		},
   267  		GoTypes:           file_reflection_grpc_testing_test_proto_goTypes,
   268  		DependencyIndexes: file_reflection_grpc_testing_test_proto_depIdxs,
   269  		MessageInfos:      file_reflection_grpc_testing_test_proto_msgTypes,
   270  	}.Build()
   271  	File_reflection_grpc_testing_test_proto = out.File
   272  	file_reflection_grpc_testing_test_proto_goTypes = nil
   273  	file_reflection_grpc_testing_test_proto_depIdxs = nil
   274  }