...

Source file src/github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb/non_standard_names.pb.go

Documentation: github.com/grpc-ecosystem/grpc-gateway/examples/internal/proto/examplepb

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: examples/internal/proto/examplepb/non_standard_names.proto
     3  
     4  package examplepb
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/golang/protobuf/proto"
    10  	_ "google.golang.org/genproto/googleapis/api/annotations"
    11  	field_mask "google.golang.org/genproto/protobuf/field_mask"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	math "math"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var _ = proto.Marshal
    20  var _ = fmt.Errorf
    21  var _ = math.Inf
    22  
    23  // This is a compile-time assertion to ensure that this generated file
    24  // is compatible with the proto package it is being compiled against.
    25  // A compilation error at this line likely means your copy of the
    26  // proto package needs to be updated.
    27  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    28  
    29  // NonStandardMessage has oddly named fields.
    30  type NonStandardMessage struct {
    31  	// Id represents the message identifier.
    32  	Id                   string                    `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
    33  	Num                  int64                     `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"`
    34  	LineNum              int64                     `protobuf:"varint,3,opt,name=line_num,json=lineNum,proto3" json:"line_num,omitempty"`
    35  	LangIdent            string                    `protobuf:"bytes,4,opt,name=langIdent,proto3" json:"langIdent,omitempty"`
    36  	STATUS               string                    `protobuf:"bytes,5,opt,name=STATUS,proto3" json:"STATUS,omitempty"`
    37  	En_GB                int64                     `protobuf:"varint,6,opt,name=en_GB,json=enGB,proto3" json:"en_GB,omitempty"`
    38  	No                   string                    `protobuf:"bytes,7,opt,name=no,proto3" json:"no,omitempty"`
    39  	Thing                *NonStandardMessage_Thing `protobuf:"bytes,8,opt,name=thing,proto3" json:"thing,omitempty"`
    40  	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
    41  	XXX_unrecognized     []byte                    `json:"-"`
    42  	XXX_sizecache        int32                     `json:"-"`
    43  }
    44  
    45  func (m *NonStandardMessage) Reset()         { *m = NonStandardMessage{} }
    46  func (m *NonStandardMessage) String() string { return proto.CompactTextString(m) }
    47  func (*NonStandardMessage) ProtoMessage()    {}
    48  func (*NonStandardMessage) Descriptor() ([]byte, []int) {
    49  	return fileDescriptor_a1fc3d96d9306f6b, []int{0}
    50  }
    51  
    52  func (m *NonStandardMessage) XXX_Unmarshal(b []byte) error {
    53  	return xxx_messageInfo_NonStandardMessage.Unmarshal(m, b)
    54  }
    55  func (m *NonStandardMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    56  	return xxx_messageInfo_NonStandardMessage.Marshal(b, m, deterministic)
    57  }
    58  func (m *NonStandardMessage) XXX_Merge(src proto.Message) {
    59  	xxx_messageInfo_NonStandardMessage.Merge(m, src)
    60  }
    61  func (m *NonStandardMessage) XXX_Size() int {
    62  	return xxx_messageInfo_NonStandardMessage.Size(m)
    63  }
    64  func (m *NonStandardMessage) XXX_DiscardUnknown() {
    65  	xxx_messageInfo_NonStandardMessage.DiscardUnknown(m)
    66  }
    67  
    68  var xxx_messageInfo_NonStandardMessage proto.InternalMessageInfo
    69  
    70  func (m *NonStandardMessage) GetId() string {
    71  	if m != nil {
    72  		return m.Id
    73  	}
    74  	return ""
    75  }
    76  
    77  func (m *NonStandardMessage) GetNum() int64 {
    78  	if m != nil {
    79  		return m.Num
    80  	}
    81  	return 0
    82  }
    83  
    84  func (m *NonStandardMessage) GetLineNum() int64 {
    85  	if m != nil {
    86  		return m.LineNum
    87  	}
    88  	return 0
    89  }
    90  
    91  func (m *NonStandardMessage) GetLangIdent() string {
    92  	if m != nil {
    93  		return m.LangIdent
    94  	}
    95  	return ""
    96  }
    97  
    98  func (m *NonStandardMessage) GetSTATUS() string {
    99  	if m != nil {
   100  		return m.STATUS
   101  	}
   102  	return ""
   103  }
   104  
   105  func (m *NonStandardMessage) GetEn_GB() int64 {
   106  	if m != nil {
   107  		return m.En_GB
   108  	}
   109  	return 0
   110  }
   111  
   112  func (m *NonStandardMessage) GetNo() string {
   113  	if m != nil {
   114  		return m.No
   115  	}
   116  	return ""
   117  }
   118  
   119  func (m *NonStandardMessage) GetThing() *NonStandardMessage_Thing {
   120  	if m != nil {
   121  		return m.Thing
   122  	}
   123  	return nil
   124  }
   125  
   126  type NonStandardMessage_Thing struct {
   127  	SubThing             *NonStandardMessage_Thing_SubThing `protobuf:"bytes,1,opt,name=subThing,proto3" json:"subThing,omitempty"`
   128  	XXX_NoUnkeyedLiteral struct{}                           `json:"-"`
   129  	XXX_unrecognized     []byte                             `json:"-"`
   130  	XXX_sizecache        int32                              `json:"-"`
   131  }
   132  
   133  func (m *NonStandardMessage_Thing) Reset()         { *m = NonStandardMessage_Thing{} }
   134  func (m *NonStandardMessage_Thing) String() string { return proto.CompactTextString(m) }
   135  func (*NonStandardMessage_Thing) ProtoMessage()    {}
   136  func (*NonStandardMessage_Thing) Descriptor() ([]byte, []int) {
   137  	return fileDescriptor_a1fc3d96d9306f6b, []int{0, 0}
   138  }
   139  
   140  func (m *NonStandardMessage_Thing) XXX_Unmarshal(b []byte) error {
   141  	return xxx_messageInfo_NonStandardMessage_Thing.Unmarshal(m, b)
   142  }
   143  func (m *NonStandardMessage_Thing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   144  	return xxx_messageInfo_NonStandardMessage_Thing.Marshal(b, m, deterministic)
   145  }
   146  func (m *NonStandardMessage_Thing) XXX_Merge(src proto.Message) {
   147  	xxx_messageInfo_NonStandardMessage_Thing.Merge(m, src)
   148  }
   149  func (m *NonStandardMessage_Thing) XXX_Size() int {
   150  	return xxx_messageInfo_NonStandardMessage_Thing.Size(m)
   151  }
   152  func (m *NonStandardMessage_Thing) XXX_DiscardUnknown() {
   153  	xxx_messageInfo_NonStandardMessage_Thing.DiscardUnknown(m)
   154  }
   155  
   156  var xxx_messageInfo_NonStandardMessage_Thing proto.InternalMessageInfo
   157  
   158  func (m *NonStandardMessage_Thing) GetSubThing() *NonStandardMessage_Thing_SubThing {
   159  	if m != nil {
   160  		return m.SubThing
   161  	}
   162  	return nil
   163  }
   164  
   165  type NonStandardMessage_Thing_SubThing struct {
   166  	SubValue             string   `protobuf:"bytes,1,opt,name=sub_value,json=subValue,proto3" json:"sub_value,omitempty"`
   167  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   168  	XXX_unrecognized     []byte   `json:"-"`
   169  	XXX_sizecache        int32    `json:"-"`
   170  }
   171  
   172  func (m *NonStandardMessage_Thing_SubThing) Reset()         { *m = NonStandardMessage_Thing_SubThing{} }
   173  func (m *NonStandardMessage_Thing_SubThing) String() string { return proto.CompactTextString(m) }
   174  func (*NonStandardMessage_Thing_SubThing) ProtoMessage()    {}
   175  func (*NonStandardMessage_Thing_SubThing) Descriptor() ([]byte, []int) {
   176  	return fileDescriptor_a1fc3d96d9306f6b, []int{0, 0, 0}
   177  }
   178  
   179  func (m *NonStandardMessage_Thing_SubThing) XXX_Unmarshal(b []byte) error {
   180  	return xxx_messageInfo_NonStandardMessage_Thing_SubThing.Unmarshal(m, b)
   181  }
   182  func (m *NonStandardMessage_Thing_SubThing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   183  	return xxx_messageInfo_NonStandardMessage_Thing_SubThing.Marshal(b, m, deterministic)
   184  }
   185  func (m *NonStandardMessage_Thing_SubThing) XXX_Merge(src proto.Message) {
   186  	xxx_messageInfo_NonStandardMessage_Thing_SubThing.Merge(m, src)
   187  }
   188  func (m *NonStandardMessage_Thing_SubThing) XXX_Size() int {
   189  	return xxx_messageInfo_NonStandardMessage_Thing_SubThing.Size(m)
   190  }
   191  func (m *NonStandardMessage_Thing_SubThing) XXX_DiscardUnknown() {
   192  	xxx_messageInfo_NonStandardMessage_Thing_SubThing.DiscardUnknown(m)
   193  }
   194  
   195  var xxx_messageInfo_NonStandardMessage_Thing_SubThing proto.InternalMessageInfo
   196  
   197  func (m *NonStandardMessage_Thing_SubThing) GetSubValue() string {
   198  	if m != nil {
   199  		return m.SubValue
   200  	}
   201  	return ""
   202  }
   203  
   204  type NonStandardUpdateRequest struct {
   205  	Body                 *NonStandardMessage   `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
   206  	UpdateMask           *field_mask.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
   207  	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
   208  	XXX_unrecognized     []byte                `json:"-"`
   209  	XXX_sizecache        int32                 `json:"-"`
   210  }
   211  
   212  func (m *NonStandardUpdateRequest) Reset()         { *m = NonStandardUpdateRequest{} }
   213  func (m *NonStandardUpdateRequest) String() string { return proto.CompactTextString(m) }
   214  func (*NonStandardUpdateRequest) ProtoMessage()    {}
   215  func (*NonStandardUpdateRequest) Descriptor() ([]byte, []int) {
   216  	return fileDescriptor_a1fc3d96d9306f6b, []int{1}
   217  }
   218  
   219  func (m *NonStandardUpdateRequest) XXX_Unmarshal(b []byte) error {
   220  	return xxx_messageInfo_NonStandardUpdateRequest.Unmarshal(m, b)
   221  }
   222  func (m *NonStandardUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   223  	return xxx_messageInfo_NonStandardUpdateRequest.Marshal(b, m, deterministic)
   224  }
   225  func (m *NonStandardUpdateRequest) XXX_Merge(src proto.Message) {
   226  	xxx_messageInfo_NonStandardUpdateRequest.Merge(m, src)
   227  }
   228  func (m *NonStandardUpdateRequest) XXX_Size() int {
   229  	return xxx_messageInfo_NonStandardUpdateRequest.Size(m)
   230  }
   231  func (m *NonStandardUpdateRequest) XXX_DiscardUnknown() {
   232  	xxx_messageInfo_NonStandardUpdateRequest.DiscardUnknown(m)
   233  }
   234  
   235  var xxx_messageInfo_NonStandardUpdateRequest proto.InternalMessageInfo
   236  
   237  func (m *NonStandardUpdateRequest) GetBody() *NonStandardMessage {
   238  	if m != nil {
   239  		return m.Body
   240  	}
   241  	return nil
   242  }
   243  
   244  func (m *NonStandardUpdateRequest) GetUpdateMask() *field_mask.FieldMask {
   245  	if m != nil {
   246  		return m.UpdateMask
   247  	}
   248  	return nil
   249  }
   250  
   251  // NonStandardMessageWithJSONNames maps odd field names to odd JSON names for maximum confusion.
   252  type NonStandardMessageWithJSONNames struct {
   253  	// Id represents the message identifier.
   254  	Id                   string                                 `protobuf:"bytes,1,opt,name=id,json=ID,proto3" json:"id,omitempty"`
   255  	Num                  int64                                  `protobuf:"varint,2,opt,name=Num,proto3" json:"Num,omitempty"`
   256  	LineNum              int64                                  `protobuf:"varint,3,opt,name=line_num,json=LineNum,proto3" json:"line_num,omitempty"`
   257  	LangIdent            string                                 `protobuf:"bytes,4,opt,name=langIdent,proto3" json:"langIdent,omitempty"`
   258  	STATUS               string                                 `protobuf:"bytes,5,opt,name=STATUS,json=status,proto3" json:"STATUS,omitempty"`
   259  	En_GB                int64                                  `protobuf:"varint,6,opt,name=en_GB,json=En_GB,proto3" json:"en_GB,omitempty"`
   260  	No                   string                                 `protobuf:"bytes,7,opt,name=no,json=yes,proto3" json:"no,omitempty"`
   261  	Thing                *NonStandardMessageWithJSONNames_Thing `protobuf:"bytes,8,opt,name=thing,json=Thingy,proto3" json:"thing,omitempty"`
   262  	XXX_NoUnkeyedLiteral struct{}                               `json:"-"`
   263  	XXX_unrecognized     []byte                                 `json:"-"`
   264  	XXX_sizecache        int32                                  `json:"-"`
   265  }
   266  
   267  func (m *NonStandardMessageWithJSONNames) Reset()         { *m = NonStandardMessageWithJSONNames{} }
   268  func (m *NonStandardMessageWithJSONNames) String() string { return proto.CompactTextString(m) }
   269  func (*NonStandardMessageWithJSONNames) ProtoMessage()    {}
   270  func (*NonStandardMessageWithJSONNames) Descriptor() ([]byte, []int) {
   271  	return fileDescriptor_a1fc3d96d9306f6b, []int{2}
   272  }
   273  
   274  func (m *NonStandardMessageWithJSONNames) XXX_Unmarshal(b []byte) error {
   275  	return xxx_messageInfo_NonStandardMessageWithJSONNames.Unmarshal(m, b)
   276  }
   277  func (m *NonStandardMessageWithJSONNames) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   278  	return xxx_messageInfo_NonStandardMessageWithJSONNames.Marshal(b, m, deterministic)
   279  }
   280  func (m *NonStandardMessageWithJSONNames) XXX_Merge(src proto.Message) {
   281  	xxx_messageInfo_NonStandardMessageWithJSONNames.Merge(m, src)
   282  }
   283  func (m *NonStandardMessageWithJSONNames) XXX_Size() int {
   284  	return xxx_messageInfo_NonStandardMessageWithJSONNames.Size(m)
   285  }
   286  func (m *NonStandardMessageWithJSONNames) XXX_DiscardUnknown() {
   287  	xxx_messageInfo_NonStandardMessageWithJSONNames.DiscardUnknown(m)
   288  }
   289  
   290  var xxx_messageInfo_NonStandardMessageWithJSONNames proto.InternalMessageInfo
   291  
   292  func (m *NonStandardMessageWithJSONNames) GetId() string {
   293  	if m != nil {
   294  		return m.Id
   295  	}
   296  	return ""
   297  }
   298  
   299  func (m *NonStandardMessageWithJSONNames) GetNum() int64 {
   300  	if m != nil {
   301  		return m.Num
   302  	}
   303  	return 0
   304  }
   305  
   306  func (m *NonStandardMessageWithJSONNames) GetLineNum() int64 {
   307  	if m != nil {
   308  		return m.LineNum
   309  	}
   310  	return 0
   311  }
   312  
   313  func (m *NonStandardMessageWithJSONNames) GetLangIdent() string {
   314  	if m != nil {
   315  		return m.LangIdent
   316  	}
   317  	return ""
   318  }
   319  
   320  func (m *NonStandardMessageWithJSONNames) GetSTATUS() string {
   321  	if m != nil {
   322  		return m.STATUS
   323  	}
   324  	return ""
   325  }
   326  
   327  func (m *NonStandardMessageWithJSONNames) GetEn_GB() int64 {
   328  	if m != nil {
   329  		return m.En_GB
   330  	}
   331  	return 0
   332  }
   333  
   334  func (m *NonStandardMessageWithJSONNames) GetNo() string {
   335  	if m != nil {
   336  		return m.No
   337  	}
   338  	return ""
   339  }
   340  
   341  func (m *NonStandardMessageWithJSONNames) GetThing() *NonStandardMessageWithJSONNames_Thing {
   342  	if m != nil {
   343  		return m.Thing
   344  	}
   345  	return nil
   346  }
   347  
   348  type NonStandardMessageWithJSONNames_Thing struct {
   349  	SubThing             *NonStandardMessageWithJSONNames_Thing_SubThing `protobuf:"bytes,1,opt,name=subThing,json=SubThing,proto3" json:"subThing,omitempty"`
   350  	XXX_NoUnkeyedLiteral struct{}                                        `json:"-"`
   351  	XXX_unrecognized     []byte                                          `json:"-"`
   352  	XXX_sizecache        int32                                           `json:"-"`
   353  }
   354  
   355  func (m *NonStandardMessageWithJSONNames_Thing) Reset()         { *m = NonStandardMessageWithJSONNames_Thing{} }
   356  func (m *NonStandardMessageWithJSONNames_Thing) String() string { return proto.CompactTextString(m) }
   357  func (*NonStandardMessageWithJSONNames_Thing) ProtoMessage()    {}
   358  func (*NonStandardMessageWithJSONNames_Thing) Descriptor() ([]byte, []int) {
   359  	return fileDescriptor_a1fc3d96d9306f6b, []int{2, 0}
   360  }
   361  
   362  func (m *NonStandardMessageWithJSONNames_Thing) XXX_Unmarshal(b []byte) error {
   363  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing.Unmarshal(m, b)
   364  }
   365  func (m *NonStandardMessageWithJSONNames_Thing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   366  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing.Marshal(b, m, deterministic)
   367  }
   368  func (m *NonStandardMessageWithJSONNames_Thing) XXX_Merge(src proto.Message) {
   369  	xxx_messageInfo_NonStandardMessageWithJSONNames_Thing.Merge(m, src)
   370  }
   371  func (m *NonStandardMessageWithJSONNames_Thing) XXX_Size() int {
   372  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing.Size(m)
   373  }
   374  func (m *NonStandardMessageWithJSONNames_Thing) XXX_DiscardUnknown() {
   375  	xxx_messageInfo_NonStandardMessageWithJSONNames_Thing.DiscardUnknown(m)
   376  }
   377  
   378  var xxx_messageInfo_NonStandardMessageWithJSONNames_Thing proto.InternalMessageInfo
   379  
   380  func (m *NonStandardMessageWithJSONNames_Thing) GetSubThing() *NonStandardMessageWithJSONNames_Thing_SubThing {
   381  	if m != nil {
   382  		return m.SubThing
   383  	}
   384  	return nil
   385  }
   386  
   387  type NonStandardMessageWithJSONNames_Thing_SubThing struct {
   388  	SubValue             string   `protobuf:"bytes,1,opt,name=sub_value,json=sub_Value,proto3" json:"sub_value,omitempty"`
   389  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   390  	XXX_unrecognized     []byte   `json:"-"`
   391  	XXX_sizecache        int32    `json:"-"`
   392  }
   393  
   394  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) Reset() {
   395  	*m = NonStandardMessageWithJSONNames_Thing_SubThing{}
   396  }
   397  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) String() string {
   398  	return proto.CompactTextString(m)
   399  }
   400  func (*NonStandardMessageWithJSONNames_Thing_SubThing) ProtoMessage() {}
   401  func (*NonStandardMessageWithJSONNames_Thing_SubThing) Descriptor() ([]byte, []int) {
   402  	return fileDescriptor_a1fc3d96d9306f6b, []int{2, 0, 0}
   403  }
   404  
   405  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_Unmarshal(b []byte) error {
   406  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing.Unmarshal(m, b)
   407  }
   408  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   409  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing.Marshal(b, m, deterministic)
   410  }
   411  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_Merge(src proto.Message) {
   412  	xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing.Merge(m, src)
   413  }
   414  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_Size() int {
   415  	return xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing.Size(m)
   416  }
   417  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) XXX_DiscardUnknown() {
   418  	xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing.DiscardUnknown(m)
   419  }
   420  
   421  var xxx_messageInfo_NonStandardMessageWithJSONNames_Thing_SubThing proto.InternalMessageInfo
   422  
   423  func (m *NonStandardMessageWithJSONNames_Thing_SubThing) GetSubValue() string {
   424  	if m != nil {
   425  		return m.SubValue
   426  	}
   427  	return ""
   428  }
   429  
   430  type NonStandardWithJSONNamesUpdateRequest struct {
   431  	Body                 *NonStandardMessageWithJSONNames `protobuf:"bytes,1,opt,name=body,proto3" json:"body,omitempty"`
   432  	UpdateMask           *field_mask.FieldMask            `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
   433  	XXX_NoUnkeyedLiteral struct{}                         `json:"-"`
   434  	XXX_unrecognized     []byte                           `json:"-"`
   435  	XXX_sizecache        int32                            `json:"-"`
   436  }
   437  
   438  func (m *NonStandardWithJSONNamesUpdateRequest) Reset()         { *m = NonStandardWithJSONNamesUpdateRequest{} }
   439  func (m *NonStandardWithJSONNamesUpdateRequest) String() string { return proto.CompactTextString(m) }
   440  func (*NonStandardWithJSONNamesUpdateRequest) ProtoMessage()    {}
   441  func (*NonStandardWithJSONNamesUpdateRequest) Descriptor() ([]byte, []int) {
   442  	return fileDescriptor_a1fc3d96d9306f6b, []int{3}
   443  }
   444  
   445  func (m *NonStandardWithJSONNamesUpdateRequest) XXX_Unmarshal(b []byte) error {
   446  	return xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest.Unmarshal(m, b)
   447  }
   448  func (m *NonStandardWithJSONNamesUpdateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   449  	return xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest.Marshal(b, m, deterministic)
   450  }
   451  func (m *NonStandardWithJSONNamesUpdateRequest) XXX_Merge(src proto.Message) {
   452  	xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest.Merge(m, src)
   453  }
   454  func (m *NonStandardWithJSONNamesUpdateRequest) XXX_Size() int {
   455  	return xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest.Size(m)
   456  }
   457  func (m *NonStandardWithJSONNamesUpdateRequest) XXX_DiscardUnknown() {
   458  	xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest.DiscardUnknown(m)
   459  }
   460  
   461  var xxx_messageInfo_NonStandardWithJSONNamesUpdateRequest proto.InternalMessageInfo
   462  
   463  func (m *NonStandardWithJSONNamesUpdateRequest) GetBody() *NonStandardMessageWithJSONNames {
   464  	if m != nil {
   465  		return m.Body
   466  	}
   467  	return nil
   468  }
   469  
   470  func (m *NonStandardWithJSONNamesUpdateRequest) GetUpdateMask() *field_mask.FieldMask {
   471  	if m != nil {
   472  		return m.UpdateMask
   473  	}
   474  	return nil
   475  }
   476  
   477  func init() {
   478  	proto.RegisterType((*NonStandardMessage)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage")
   479  	proto.RegisterType((*NonStandardMessage_Thing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage.Thing")
   480  	proto.RegisterType((*NonStandardMessage_Thing_SubThing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessage.Thing.SubThing")
   481  	proto.RegisterType((*NonStandardUpdateRequest)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardUpdateRequest")
   482  	proto.RegisterType((*NonStandardMessageWithJSONNames)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames")
   483  	proto.RegisterType((*NonStandardMessageWithJSONNames_Thing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames.Thing")
   484  	proto.RegisterType((*NonStandardMessageWithJSONNames_Thing_SubThing)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardMessageWithJSONNames.Thing.SubThing")
   485  	proto.RegisterType((*NonStandardWithJSONNamesUpdateRequest)(nil), "grpc.gateway.examples.internal.examplepb.NonStandardWithJSONNamesUpdateRequest")
   486  }
   487  
   488  func init() {
   489  	proto.RegisterFile("examples/internal/proto/examplepb/non_standard_names.proto", fileDescriptor_a1fc3d96d9306f6b)
   490  }
   491  
   492  var fileDescriptor_a1fc3d96d9306f6b = []byte{
   493  	// 636 bytes of a gzipped FileDescriptorProto
   494  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x95, 0x4f, 0x6f, 0xd3, 0x3e,
   495  	0x18, 0xc7, 0x95, 0x66, 0xed, 0x5a, 0x57, 0xfa, 0xfd, 0x90, 0x87, 0x50, 0x08, 0x93, 0x56, 0x55,
   496  	0x42, 0xeb, 0x05, 0x47, 0x84, 0x03, 0xd2, 0x80, 0x03, 0x15, 0x30, 0x0d, 0x58, 0x87, 0x92, 0x0e,
   497  	0x26, 0x24, 0x14, 0x39, 0x8b, 0x9b, 0x86, 0xa5, 0x76, 0xa8, 0x9d, 0x8e, 0x5e, 0x79, 0x0b, 0x9c,
   498  	0xb8, 0x72, 0x41, 0xbc, 0x04, 0xce, 0x3b, 0x73, 0xe2, 0x2d, 0xf0, 0x02, 0x78, 0x09, 0x28, 0x76,
   499  	0x52, 0x1a, 0x55, 0x88, 0xa9, 0xed, 0x29, 0x7e, 0x1e, 0x5b, 0xdf, 0xe7, 0xdf, 0x27, 0x36, 0xd8,
   500  	0x23, 0xef, 0xf1, 0x28, 0x89, 0x09, 0xb7, 0x22, 0x2a, 0xc8, 0x98, 0xe2, 0xd8, 0x4a, 0xc6, 0x4c,
   501  	0x30, 0x2b, 0xf7, 0x27, 0xbe, 0x45, 0x19, 0xf5, 0xb8, 0xc0, 0x34, 0xc0, 0xe3, 0xc0, 0xa3, 0x78,
   502  	0x44, 0x38, 0x92, 0x47, 0x60, 0x27, 0x1c, 0x27, 0xa7, 0x28, 0xc4, 0x82, 0x9c, 0xe3, 0x29, 0x2a,
   503  	0x84, 0x50, 0x21, 0x84, 0x66, 0x12, 0xe6, 0x76, 0xc8, 0x58, 0x18, 0x13, 0x0b, 0x27, 0x91, 0x85,
   504  	0x29, 0x65, 0x02, 0x8b, 0x88, 0xd1, 0x5c, 0xc7, 0x6c, 0xe5, 0xbb, 0xd2, 0xf2, 0xd3, 0x81, 0x35,
   505  	0x88, 0x48, 0x1c, 0x78, 0x23, 0xcc, 0xcf, 0xd4, 0x89, 0xf6, 0x67, 0x1d, 0xc0, 0x1e, 0xa3, 0x6e,
   506  	0x9e, 0xc5, 0x21, 0xe1, 0x1c, 0x87, 0x04, 0xfe, 0x07, 0x2a, 0x51, 0x60, 0x68, 0x2d, 0xad, 0xd3,
   507  	0x70, 0x2a, 0x51, 0x00, 0xaf, 0x00, 0xbd, 0x97, 0x8e, 0x8c, 0x4a, 0x4b, 0xeb, 0xe8, 0x4e, 0xb6,
   508  	0x84, 0xd7, 0x41, 0x3d, 0x8e, 0x28, 0xf1, 0x68, 0x3a, 0x32, 0x74, 0xe9, 0xde, 0xcc, 0xec, 0x6c,
   509  	0x6b, 0x1b, 0x34, 0x62, 0x4c, 0xc3, 0x83, 0x80, 0x50, 0x61, 0x6c, 0x48, 0x8d, 0x3f, 0x0e, 0x78,
   510  	0x0d, 0xd4, 0xdc, 0xfe, 0xc3, 0xfe, 0xb1, 0x6b, 0x54, 0xe5, 0x56, 0x6e, 0xc1, 0x2d, 0x50, 0x25,
   511  	0xd4, 0xdb, 0xef, 0x1a, 0x35, 0xa9, 0xb6, 0x41, 0xe8, 0x7e, 0x37, 0xcb, 0x83, 0x32, 0x63, 0x53,
   512  	0xe5, 0x41, 0x19, 0x3c, 0x01, 0x55, 0x31, 0x8c, 0x68, 0x68, 0xd4, 0x5b, 0x5a, 0xa7, 0x69, 0x77,
   513  	0xd1, 0x65, 0x1b, 0x85, 0x16, 0x8b, 0x44, 0xfd, 0x4c, 0xc9, 0x51, 0x82, 0xe6, 0x27, 0x0d, 0x54,
   514  	0xa5, 0x03, 0x86, 0xa0, 0xce, 0x53, 0x5f, 0xae, 0x65, 0x07, 0x9a, 0xf6, 0xb3, 0xd5, 0xc3, 0x20,
   515  	0x37, 0x97, 0x74, 0x66, 0xe2, 0xe6, 0x2e, 0xa8, 0x17, 0x5e, 0x78, 0x03, 0x34, 0x78, 0xea, 0x7b,
   516  	0x13, 0x1c, 0xa7, 0x24, 0xef, 0x7b, 0x76, 0xf0, 0x65, 0x66, 0xb7, 0xbf, 0x6a, 0xc0, 0x98, 0x13,
   517  	0x3e, 0x4e, 0x02, 0x2c, 0x88, 0x43, 0xde, 0xa5, 0x84, 0x0b, 0xf8, 0x02, 0x6c, 0xf8, 0x2c, 0x98,
   518  	0xe6, 0xa9, 0xde, 0x5f, 0x25, 0x55, 0x47, 0x2a, 0xc1, 0x7b, 0xa0, 0x99, 0xca, 0x10, 0x12, 0x14,
   519  	0x39, 0xf4, 0xa6, 0x6d, 0x22, 0xc5, 0x12, 0x2a, 0x58, 0x42, 0x4f, 0x32, 0x96, 0x0e, 0x31, 0x3f,
   520  	0x73, 0x80, 0x3a, 0x9e, 0xad, 0xdb, 0xdf, 0x75, 0xb0, 0xb3, 0xa8, 0xfc, 0x2a, 0x12, 0xc3, 0xa7,
   521  	0xee, 0x51, 0xaf, 0x97, 0x41, 0x5e, 0xa6, 0xeb, 0xe0, 0xd1, 0xe5, 0xe8, 0x7a, 0xbe, 0x1c, 0x5d,
   522  	0x5c, 0x60, 0x91, 0x72, 0x78, 0xb5, 0x4c, 0x57, 0xf5, 0x71, 0x66, 0xc0, 0xff, 0xe7, 0xf0, 0xd2,
   523  	0xa7, 0x84, 0xc3, 0x41, 0x99, 0xaf, 0xa3, 0x55, 0xba, 0x59, 0xaa, 0x39, 0x87, 0xad, 0x26, 0x3f,
   524  	0x53, 0xf3, 0xcb, 0x8c, 0x36, 0xb1, 0x40, 0xdb, 0xc9, 0x9a, 0x83, 0xce, 0xa1, 0x57, 0xac, 0xcc,
   525  	0xce, 0x1c, 0x7a, 0xdb, 0x8b, 0xe8, 0x49, 0x87, 0x62, 0xef, 0x42, 0x03, 0x37, 0xe7, 0xc2, 0x94,
   526  	0xf4, 0xcb, 0x20, 0xbe, 0x29, 0x81, 0x78, 0xb0, 0xb6, 0x2a, 0xd6, 0x40, 0xa5, 0x7d, 0x51, 0xbe,
   527  	0xe6, 0x5c, 0x32, 0x9e, 0x44, 0xa7, 0x04, 0x7e, 0xd3, 0x40, 0x4d, 0x15, 0x01, 0x97, 0xbb, 0x4a,
   528  	0x4a, 0x1d, 0x30, 0x57, 0xfa, 0xf9, 0xda, 0xb7, 0x3e, 0xfc, 0xf8, 0xf9, 0xb1, 0xb2, 0x6b, 0xef,
   529  	0x58, 0x93, 0xdb, 0xc5, 0x23, 0x51, 0x7a, 0x22, 0x2c, 0x55, 0xd0, 0x9e, 0xea, 0xc7, 0x2f, 0x0d,
   530  	0x6c, 0xa9, 0xf0, 0xe5, 0x9f, 0x6b, 0x39, 0x66, 0xff, 0x3e, 0x57, 0x73, 0x7d, 0x93, 0x6c, 0x3f,
   531  	0x90, 0x25, 0xde, 0xb5, 0xad, 0x7f, 0x94, 0xe8, 0x9d, 0x47, 0x62, 0xe8, 0xbd, 0xe5, 0x8c, 0xaa,
   532  	0x67, 0x51, 0x95, 0xdc, 0x6d, 0xbe, 0x6e, 0xcc, 0x62, 0xf9, 0x35, 0x39, 0xf2, 0x3b, 0xbf, 0x03,
   533  	0x00, 0x00, 0xff, 0xff, 0x0f, 0xef, 0xfa, 0x6c, 0x68, 0x07, 0x00, 0x00,
   534  }
   535  
   536  // Reference imports to suppress errors if they are not otherwise used.
   537  var _ context.Context
   538  var _ grpc.ClientConnInterface
   539  
   540  // This is a compile-time assertion to ensure that this generated file
   541  // is compatible with the grpc package it is being compiled against.
   542  const _ = grpc.SupportPackageIsVersion6
   543  
   544  // NonStandardServiceClient is the client API for NonStandardService service.
   545  //
   546  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   547  type NonStandardServiceClient interface {
   548  	// Apply field mask to empty NonStandardMessage and return result.
   549  	Update(ctx context.Context, in *NonStandardUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessage, error)
   550  	// Apply field mask to empty NonStandardMessageWithJSONNames and return result.
   551  	UpdateWithJSONNames(ctx context.Context, in *NonStandardWithJSONNamesUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessageWithJSONNames, error)
   552  }
   553  
   554  type nonStandardServiceClient struct {
   555  	cc grpc.ClientConnInterface
   556  }
   557  
   558  func NewNonStandardServiceClient(cc grpc.ClientConnInterface) NonStandardServiceClient {
   559  	return &nonStandardServiceClient{cc}
   560  }
   561  
   562  func (c *nonStandardServiceClient) Update(ctx context.Context, in *NonStandardUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessage, error) {
   563  	out := new(NonStandardMessage)
   564  	err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.NonStandardService/Update", in, out, opts...)
   565  	if err != nil {
   566  		return nil, err
   567  	}
   568  	return out, nil
   569  }
   570  
   571  func (c *nonStandardServiceClient) UpdateWithJSONNames(ctx context.Context, in *NonStandardWithJSONNamesUpdateRequest, opts ...grpc.CallOption) (*NonStandardMessageWithJSONNames, error) {
   572  	out := new(NonStandardMessageWithJSONNames)
   573  	err := c.cc.Invoke(ctx, "/grpc.gateway.examples.internal.examplepb.NonStandardService/UpdateWithJSONNames", in, out, opts...)
   574  	if err != nil {
   575  		return nil, err
   576  	}
   577  	return out, nil
   578  }
   579  
   580  // NonStandardServiceServer is the server API for NonStandardService service.
   581  type NonStandardServiceServer interface {
   582  	// Apply field mask to empty NonStandardMessage and return result.
   583  	Update(context.Context, *NonStandardUpdateRequest) (*NonStandardMessage, error)
   584  	// Apply field mask to empty NonStandardMessageWithJSONNames and return result.
   585  	UpdateWithJSONNames(context.Context, *NonStandardWithJSONNamesUpdateRequest) (*NonStandardMessageWithJSONNames, error)
   586  }
   587  
   588  // UnimplementedNonStandardServiceServer can be embedded to have forward compatible implementations.
   589  type UnimplementedNonStandardServiceServer struct {
   590  }
   591  
   592  func (*UnimplementedNonStandardServiceServer) Update(ctx context.Context, req *NonStandardUpdateRequest) (*NonStandardMessage, error) {
   593  	return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
   594  }
   595  func (*UnimplementedNonStandardServiceServer) UpdateWithJSONNames(ctx context.Context, req *NonStandardWithJSONNamesUpdateRequest) (*NonStandardMessageWithJSONNames, error) {
   596  	return nil, status.Errorf(codes.Unimplemented, "method UpdateWithJSONNames not implemented")
   597  }
   598  
   599  func RegisterNonStandardServiceServer(s *grpc.Server, srv NonStandardServiceServer) {
   600  	s.RegisterService(&_NonStandardService_serviceDesc, srv)
   601  }
   602  
   603  func _NonStandardService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   604  	in := new(NonStandardUpdateRequest)
   605  	if err := dec(in); err != nil {
   606  		return nil, err
   607  	}
   608  	if interceptor == nil {
   609  		return srv.(NonStandardServiceServer).Update(ctx, in)
   610  	}
   611  	info := &grpc.UnaryServerInfo{
   612  		Server:     srv,
   613  		FullMethod: "/grpc.gateway.examples.internal.examplepb.NonStandardService/Update",
   614  	}
   615  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   616  		return srv.(NonStandardServiceServer).Update(ctx, req.(*NonStandardUpdateRequest))
   617  	}
   618  	return interceptor(ctx, in, info, handler)
   619  }
   620  
   621  func _NonStandardService_UpdateWithJSONNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   622  	in := new(NonStandardWithJSONNamesUpdateRequest)
   623  	if err := dec(in); err != nil {
   624  		return nil, err
   625  	}
   626  	if interceptor == nil {
   627  		return srv.(NonStandardServiceServer).UpdateWithJSONNames(ctx, in)
   628  	}
   629  	info := &grpc.UnaryServerInfo{
   630  		Server:     srv,
   631  		FullMethod: "/grpc.gateway.examples.internal.examplepb.NonStandardService/UpdateWithJSONNames",
   632  	}
   633  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   634  		return srv.(NonStandardServiceServer).UpdateWithJSONNames(ctx, req.(*NonStandardWithJSONNamesUpdateRequest))
   635  	}
   636  	return interceptor(ctx, in, info, handler)
   637  }
   638  
   639  var _NonStandardService_serviceDesc = grpc.ServiceDesc{
   640  	ServiceName: "grpc.gateway.examples.internal.examplepb.NonStandardService",
   641  	HandlerType: (*NonStandardServiceServer)(nil),
   642  	Methods: []grpc.MethodDesc{
   643  		{
   644  			MethodName: "Update",
   645  			Handler:    _NonStandardService_Update_Handler,
   646  		},
   647  		{
   648  			MethodName: "UpdateWithJSONNames",
   649  			Handler:    _NonStandardService_UpdateWithJSONNames_Handler,
   650  		},
   651  	},
   652  	Streams:  []grpc.StreamDesc{},
   653  	Metadata: "examples/internal/proto/examplepb/non_standard_names.proto",
   654  }
   655  

View as plain text