github.com/grpc-ecosystem/grpc-gateway/v2@v2.19.1/runtime/internal/examplepb/proto2.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // versions:
     3  // 	protoc-gen-go v1.28.1
     4  // 	protoc        (unknown)
     5  // source: runtime/internal/examplepb/proto2.proto
     6  
     7  package examplepb
     8  
     9  import (
    10  	protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    11  	protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    12  	reflect "reflect"
    13  	sync "sync"
    14  )
    15  
    16  const (
    17  	// Verify that this generated code is sufficiently up-to-date.
    18  	_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
    19  	// Verify that runtime/protoimpl is sufficiently up-to-date.
    20  	_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
    21  )
    22  
    23  type Proto2Message struct {
    24  	state         protoimpl.MessageState
    25  	sizeCache     protoimpl.SizeCache
    26  	unknownFields protoimpl.UnknownFields
    27  
    28  	FloatValue    *float32 `protobuf:"fixed32,42,opt,name=float_value,json=floatValue" json:"float_value,omitempty"`
    29  	DoubleValue   *float64 `protobuf:"fixed64,43,opt,name=double_value,json=doubleValue" json:"double_value,omitempty"`
    30  	Int64Value    *int64   `protobuf:"varint,3,opt,name=int64_value,json=int64Value" json:"int64_value,omitempty"`
    31  	Int32Value    *int32   `protobuf:"varint,4,opt,name=int32_value,json=int32Value" json:"int32_value,omitempty"`
    32  	Uint64Value   *uint64  `protobuf:"varint,5,opt,name=uint64_value,json=uint64Value" json:"uint64_value,omitempty"`
    33  	Uint32Value   *uint32  `protobuf:"varint,6,opt,name=uint32_value,json=uint32Value" json:"uint32_value,omitempty"`
    34  	BoolValue     *bool    `protobuf:"varint,7,opt,name=bool_value,json=boolValue" json:"bool_value,omitempty"`
    35  	StringValue   *string  `protobuf:"bytes,8,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
    36  	BytesValue    []byte   `protobuf:"bytes,9,opt,name=bytes_value,json=bytesValue" json:"bytes_value,omitempty"`
    37  	RepeatedValue []string `protobuf:"bytes,10,rep,name=repeated_value,json=repeatedValue" json:"repeated_value,omitempty"`
    38  }
    39  
    40  func (x *Proto2Message) Reset() {
    41  	*x = Proto2Message{}
    42  	if protoimpl.UnsafeEnabled {
    43  		mi := &file_runtime_internal_examplepb_proto2_proto_msgTypes[0]
    44  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    45  		ms.StoreMessageInfo(mi)
    46  	}
    47  }
    48  
    49  func (x *Proto2Message) String() string {
    50  	return protoimpl.X.MessageStringOf(x)
    51  }
    52  
    53  func (*Proto2Message) ProtoMessage() {}
    54  
    55  func (x *Proto2Message) ProtoReflect() protoreflect.Message {
    56  	mi := &file_runtime_internal_examplepb_proto2_proto_msgTypes[0]
    57  	if protoimpl.UnsafeEnabled && x != nil {
    58  		ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    59  		if ms.LoadMessageInfo() == nil {
    60  			ms.StoreMessageInfo(mi)
    61  		}
    62  		return ms
    63  	}
    64  	return mi.MessageOf(x)
    65  }
    66  
    67  // Deprecated: Use Proto2Message.ProtoReflect.Descriptor instead.
    68  func (*Proto2Message) Descriptor() ([]byte, []int) {
    69  	return file_runtime_internal_examplepb_proto2_proto_rawDescGZIP(), []int{0}
    70  }
    71  
    72  func (x *Proto2Message) GetFloatValue() float32 {
    73  	if x != nil && x.FloatValue != nil {
    74  		return *x.FloatValue
    75  	}
    76  	return 0
    77  }
    78  
    79  func (x *Proto2Message) GetDoubleValue() float64 {
    80  	if x != nil && x.DoubleValue != nil {
    81  		return *x.DoubleValue
    82  	}
    83  	return 0
    84  }
    85  
    86  func (x *Proto2Message) GetInt64Value() int64 {
    87  	if x != nil && x.Int64Value != nil {
    88  		return *x.Int64Value
    89  	}
    90  	return 0
    91  }
    92  
    93  func (x *Proto2Message) GetInt32Value() int32 {
    94  	if x != nil && x.Int32Value != nil {
    95  		return *x.Int32Value
    96  	}
    97  	return 0
    98  }
    99  
   100  func (x *Proto2Message) GetUint64Value() uint64 {
   101  	if x != nil && x.Uint64Value != nil {
   102  		return *x.Uint64Value
   103  	}
   104  	return 0
   105  }
   106  
   107  func (x *Proto2Message) GetUint32Value() uint32 {
   108  	if x != nil && x.Uint32Value != nil {
   109  		return *x.Uint32Value
   110  	}
   111  	return 0
   112  }
   113  
   114  func (x *Proto2Message) GetBoolValue() bool {
   115  	if x != nil && x.BoolValue != nil {
   116  		return *x.BoolValue
   117  	}
   118  	return false
   119  }
   120  
   121  func (x *Proto2Message) GetStringValue() string {
   122  	if x != nil && x.StringValue != nil {
   123  		return *x.StringValue
   124  	}
   125  	return ""
   126  }
   127  
   128  func (x *Proto2Message) GetBytesValue() []byte {
   129  	if x != nil {
   130  		return x.BytesValue
   131  	}
   132  	return nil
   133  }
   134  
   135  func (x *Proto2Message) GetRepeatedValue() []string {
   136  	if x != nil {
   137  		return x.RepeatedValue
   138  	}
   139  	return nil
   140  }
   141  
   142  var File_runtime_internal_examplepb_proto2_proto protoreflect.FileDescriptor
   143  
   144  var file_runtime_internal_examplepb_proto2_proto_rawDesc = []byte{
   145  	0x0a, 0x27, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e,
   146  	0x61, 0x6c, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x70, 0x62, 0x2f, 0x70, 0x72, 0x6f,
   147  	0x74, 0x6f, 0x32, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x27, 0x67, 0x72, 0x70, 0x63, 0x2e,
   148  	0x67, 0x61, 0x74, 0x65, 0x77, 0x61, 0x79, 0x2e, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2e,
   149  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
   150  	0x70, 0x62, 0x22, 0xe5, 0x02, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x4d, 0x65, 0x73,
   151  	0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61,
   152  	0x6c, 0x75, 0x65, 0x18, 0x2a, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74,
   153  	0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x5f,
   154  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x2b, 0x20, 0x01, 0x28, 0x01, 0x52, 0x0b, 0x64, 0x6f, 0x75,
   155  	0x62, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74, 0x36,
   156  	0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x69,
   157  	0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6e, 0x74,
   158  	0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a,
   159  	0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x75, 0x69,
   160  	0x6e, 0x74, 0x36, 0x34, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04,
   161  	0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x36, 0x34, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x21, 0x0a,
   162  	0x0c, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x06, 0x20,
   163  	0x01, 0x28, 0x0d, 0x52, 0x0b, 0x75, 0x69, 0x6e, 0x74, 0x33, 0x32, 0x56, 0x61, 0x6c, 0x75, 0x65,
   164  	0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x07,
   165  	0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12,
   166  	0x21, 0x0a, 0x0c, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
   167  	0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c,
   168  	0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x62, 0x79, 0x74, 0x65, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75,
   169  	0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0a, 0x62, 0x79, 0x74, 0x65, 0x73, 0x56, 0x61,
   170  	0x6c, 0x75, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x70, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f,
   171  	0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x70,
   172  	0x65, 0x61, 0x74, 0x65, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, 0x46, 0x5a, 0x44, 0x67, 0x69,
   173  	0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x65, 0x63,
   174  	0x6f, 0x73, 0x79, 0x73, 0x74, 0x65, 0x6d, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x2d, 0x67, 0x61, 0x74,
   175  	0x65, 0x77, 0x61, 0x79, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x75, 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x2f,
   176  	0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65,
   177  	0x70, 0x62,
   178  }
   179  
   180  var (
   181  	file_runtime_internal_examplepb_proto2_proto_rawDescOnce sync.Once
   182  	file_runtime_internal_examplepb_proto2_proto_rawDescData = file_runtime_internal_examplepb_proto2_proto_rawDesc
   183  )
   184  
   185  func file_runtime_internal_examplepb_proto2_proto_rawDescGZIP() []byte {
   186  	file_runtime_internal_examplepb_proto2_proto_rawDescOnce.Do(func() {
   187  		file_runtime_internal_examplepb_proto2_proto_rawDescData = protoimpl.X.CompressGZIP(file_runtime_internal_examplepb_proto2_proto_rawDescData)
   188  	})
   189  	return file_runtime_internal_examplepb_proto2_proto_rawDescData
   190  }
   191  
   192  var file_runtime_internal_examplepb_proto2_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
   193  var file_runtime_internal_examplepb_proto2_proto_goTypes = []interface{}{
   194  	(*Proto2Message)(nil), // 0: grpc.gateway.runtime.internal.examplepb.Proto2Message
   195  }
   196  var file_runtime_internal_examplepb_proto2_proto_depIdxs = []int32{
   197  	0, // [0:0] is the sub-list for method output_type
   198  	0, // [0:0] is the sub-list for method input_type
   199  	0, // [0:0] is the sub-list for extension type_name
   200  	0, // [0:0] is the sub-list for extension extendee
   201  	0, // [0:0] is the sub-list for field type_name
   202  }
   203  
   204  func init() { file_runtime_internal_examplepb_proto2_proto_init() }
   205  func file_runtime_internal_examplepb_proto2_proto_init() {
   206  	if File_runtime_internal_examplepb_proto2_proto != nil {
   207  		return
   208  	}
   209  	if !protoimpl.UnsafeEnabled {
   210  		file_runtime_internal_examplepb_proto2_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
   211  			switch v := v.(*Proto2Message); i {
   212  			case 0:
   213  				return &v.state
   214  			case 1:
   215  				return &v.sizeCache
   216  			case 2:
   217  				return &v.unknownFields
   218  			default:
   219  				return nil
   220  			}
   221  		}
   222  	}
   223  	type x struct{}
   224  	out := protoimpl.TypeBuilder{
   225  		File: protoimpl.DescBuilder{
   226  			GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
   227  			RawDescriptor: file_runtime_internal_examplepb_proto2_proto_rawDesc,
   228  			NumEnums:      0,
   229  			NumMessages:   1,
   230  			NumExtensions: 0,
   231  			NumServices:   0,
   232  		},
   233  		GoTypes:           file_runtime_internal_examplepb_proto2_proto_goTypes,
   234  		DependencyIndexes: file_runtime_internal_examplepb_proto2_proto_depIdxs,
   235  		MessageInfos:      file_runtime_internal_examplepb_proto2_proto_msgTypes,
   236  	}.Build()
   237  	File_runtime_internal_examplepb_proto2_proto = out.File
   238  	file_runtime_internal_examplepb_proto2_proto_rawDesc = nil
   239  	file_runtime_internal_examplepb_proto2_proto_goTypes = nil
   240  	file_runtime_internal_examplepb_proto2_proto_depIdxs = nil
   241  }