generated

package
v1.15.0-bzc-beta.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Code generated by protoc-gen-jsonshim. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	ExternalMarshaler   = &jsonpb.Marshaler{Int64Uint64asIntegers: true}
	ExternalUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var (
	TypesMarshaler   = &jsonpb.Marshaler{Int64Uint64asIntegers: true}
	TypesUnmarshaler = &jsonpb.Unmarshaler{AllowUnknownFields: true}
)
View Source
var File_external_proto protoreflect.FileDescriptor
View Source
var File_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type ExternalSimple

type ExternalSimple struct {
	FieldC uint32                         `protobuf:"varint,1,opt,name=fieldC,proto3" json:"fieldC,omitempty"`
	FieldD *ExternalSimple_ExternalNested `protobuf:"bytes,2,opt,name=fieldD,proto3" json:"fieldD,omitempty"`
	// contains filtered or unexported fields
}

func (*ExternalSimple) Descriptor deprecated

func (*ExternalSimple) Descriptor() ([]byte, []int)

Deprecated: Use ExternalSimple.ProtoReflect.Descriptor instead.

func (*ExternalSimple) GetFieldC

func (x *ExternalSimple) GetFieldC() uint32

func (*ExternalSimple) GetFieldD

func (*ExternalSimple) MarshalJSON

func (this *ExternalSimple) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ExternalSimple

func (*ExternalSimple) ProtoMessage

func (*ExternalSimple) ProtoMessage()

func (*ExternalSimple) ProtoReflect

func (x *ExternalSimple) ProtoReflect() protoreflect.Message

func (*ExternalSimple) Reset

func (x *ExternalSimple) Reset()

func (*ExternalSimple) String

func (x *ExternalSimple) String() string

func (*ExternalSimple) UnmarshalJSON

func (this *ExternalSimple) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ExternalSimple

type ExternalSimple_ExternalNested

type ExternalSimple_ExternalNested struct {
	FieldA map[string]string `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ExternalSimple_ExternalNested) Descriptor deprecated

func (*ExternalSimple_ExternalNested) Descriptor() ([]byte, []int)

Deprecated: Use ExternalSimple_ExternalNested.ProtoReflect.Descriptor instead.

func (*ExternalSimple_ExternalNested) GetFieldA

func (x *ExternalSimple_ExternalNested) GetFieldA() map[string]string

func (*ExternalSimple_ExternalNested) MarshalJSON

func (this *ExternalSimple_ExternalNested) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ExternalSimple_ExternalNested

func (*ExternalSimple_ExternalNested) ProtoMessage

func (*ExternalSimple_ExternalNested) ProtoMessage()

func (*ExternalSimple_ExternalNested) ProtoReflect

func (*ExternalSimple_ExternalNested) Reset

func (x *ExternalSimple_ExternalNested) Reset()

func (*ExternalSimple_ExternalNested) String

func (*ExternalSimple_ExternalNested) UnmarshalJSON

func (this *ExternalSimple_ExternalNested) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ExternalSimple_ExternalNested

type ImportedReference

type ImportedReference struct {
	FieldA uint32          `protobuf:"varint,1,opt,name=fieldA,proto3" json:"fieldA,omitempty"`
	FieldB *ExternalSimple `protobuf:"bytes,2,opt,name=fieldB,proto3" json:"fieldB,omitempty"`
	// contains filtered or unexported fields
}

verify no MarshalJSON/UnmarshalJSON functions are created for imported map

func (*ImportedReference) Descriptor deprecated

func (*ImportedReference) Descriptor() ([]byte, []int)

Deprecated: Use ImportedReference.ProtoReflect.Descriptor instead.

func (*ImportedReference) GetFieldA

func (x *ImportedReference) GetFieldA() uint32

func (*ImportedReference) GetFieldB

func (x *ImportedReference) GetFieldB() *ExternalSimple

func (*ImportedReference) MarshalJSON

func (this *ImportedReference) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ImportedReference

func (*ImportedReference) ProtoMessage

func (*ImportedReference) ProtoMessage()

func (*ImportedReference) ProtoReflect

func (x *ImportedReference) ProtoReflect() protoreflect.Message

func (*ImportedReference) Reset

func (x *ImportedReference) Reset()

func (*ImportedReference) String

func (x *ImportedReference) String() string

func (*ImportedReference) UnmarshalJSON

func (this *ImportedReference) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ImportedReference

type ReferencedMap

type ReferencedMap struct {
	FieldA string                `protobuf:"bytes,1,opt,name=fieldA,proto3" json:"fieldA,omitempty"`
	FieldB *SimpleWithMap_Nested `protobuf:"bytes,2,opt,name=fieldB,proto3" json:"fieldB,omitempty"`
	// contains filtered or unexported fields
}

verify no MarshalJSON/UnmarshalJSON functions are created for referenced map

func (*ReferencedMap) Descriptor deprecated

func (*ReferencedMap) Descriptor() ([]byte, []int)

Deprecated: Use ReferencedMap.ProtoReflect.Descriptor instead.

func (*ReferencedMap) GetFieldA

func (x *ReferencedMap) GetFieldA() string

func (*ReferencedMap) GetFieldB

func (x *ReferencedMap) GetFieldB() *SimpleWithMap_Nested

func (*ReferencedMap) MarshalJSON

func (this *ReferencedMap) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for ReferencedMap

func (*ReferencedMap) ProtoMessage

func (*ReferencedMap) ProtoMessage()

func (*ReferencedMap) ProtoReflect

func (x *ReferencedMap) ProtoReflect() protoreflect.Message

func (*ReferencedMap) Reset

func (x *ReferencedMap) Reset()

func (*ReferencedMap) String

func (x *ReferencedMap) String() string

func (*ReferencedMap) UnmarshalJSON

func (this *ReferencedMap) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for ReferencedMap

type Simple

type Simple struct {
	FieldA uint32 `protobuf:"varint,1,opt,name=fieldA,proto3" json:"fieldA,omitempty"`
	FieldB string `protobuf:"bytes,2,opt,name=fieldB,proto3" json:"fieldB,omitempty"`
	// Types that are assignable to FieldC:
	//	*Simple_Name
	//	*Simple_Number
	FieldC isSimple_FieldC `protobuf_oneof:"fieldC"`
	// contains filtered or unexported fields
}

Simple case

func (*Simple) Descriptor deprecated

func (*Simple) Descriptor() ([]byte, []int)

Deprecated: Use Simple.ProtoReflect.Descriptor instead.

func (*Simple) GetFieldA

func (x *Simple) GetFieldA() uint32

func (*Simple) GetFieldB

func (x *Simple) GetFieldB() string

func (*Simple) GetFieldC

func (m *Simple) GetFieldC() isSimple_FieldC

func (*Simple) GetName

func (x *Simple) GetName() string

func (*Simple) GetNumber

func (x *Simple) GetNumber() uint32

func (*Simple) MarshalJSON

func (this *Simple) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for Simple

func (*Simple) ProtoMessage

func (*Simple) ProtoMessage()

func (*Simple) ProtoReflect

func (x *Simple) ProtoReflect() protoreflect.Message

func (*Simple) Reset

func (x *Simple) Reset()

func (*Simple) String

func (x *Simple) String() string

func (*Simple) UnmarshalJSON

func (this *Simple) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for Simple

type SimpleWithMap

type SimpleWithMap struct {
	FieldA uint32                `protobuf:"varint,1,opt,name=fieldA,proto3" json:"fieldA,omitempty"`
	FieldB string                `protobuf:"bytes,2,opt,name=fieldB,proto3" json:"fieldB,omitempty"`
	FieldC map[string]string     `` /* 153-byte string literal not displayed */
	FieldD *SimpleWithMap_Nested `protobuf:"bytes,4,opt,name=fieldD,proto3" json:"fieldD,omitempty"`
	// contains filtered or unexported fields
}

Simple case with map and map field should not have MarshalJSON/UnmarshalJSON

func (*SimpleWithMap) Descriptor deprecated

func (*SimpleWithMap) Descriptor() ([]byte, []int)

Deprecated: Use SimpleWithMap.ProtoReflect.Descriptor instead.

func (*SimpleWithMap) GetFieldA

func (x *SimpleWithMap) GetFieldA() uint32

func (*SimpleWithMap) GetFieldB

func (x *SimpleWithMap) GetFieldB() string

func (*SimpleWithMap) GetFieldC

func (x *SimpleWithMap) GetFieldC() map[string]string

func (*SimpleWithMap) GetFieldD

func (x *SimpleWithMap) GetFieldD() *SimpleWithMap_Nested

func (*SimpleWithMap) MarshalJSON

func (this *SimpleWithMap) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for SimpleWithMap

func (*SimpleWithMap) ProtoMessage

func (*SimpleWithMap) ProtoMessage()

func (*SimpleWithMap) ProtoReflect

func (x *SimpleWithMap) ProtoReflect() protoreflect.Message

func (*SimpleWithMap) Reset

func (x *SimpleWithMap) Reset()

func (*SimpleWithMap) String

func (x *SimpleWithMap) String() string

func (*SimpleWithMap) UnmarshalJSON

func (this *SimpleWithMap) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for SimpleWithMap

type SimpleWithMap_Nested

type SimpleWithMap_Nested struct {
	NestedFieldD map[string]string `` /* 165-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*SimpleWithMap_Nested) Descriptor deprecated

func (*SimpleWithMap_Nested) Descriptor() ([]byte, []int)

Deprecated: Use SimpleWithMap_Nested.ProtoReflect.Descriptor instead.

func (*SimpleWithMap_Nested) GetNestedFieldD

func (x *SimpleWithMap_Nested) GetNestedFieldD() map[string]string

func (*SimpleWithMap_Nested) MarshalJSON

func (this *SimpleWithMap_Nested) MarshalJSON() ([]byte, error)

MarshalJSON is a custom marshaler for SimpleWithMap_Nested

func (*SimpleWithMap_Nested) ProtoMessage

func (*SimpleWithMap_Nested) ProtoMessage()

func (*SimpleWithMap_Nested) ProtoReflect

func (x *SimpleWithMap_Nested) ProtoReflect() protoreflect.Message

func (*SimpleWithMap_Nested) Reset

func (x *SimpleWithMap_Nested) Reset()

func (*SimpleWithMap_Nested) String

func (x *SimpleWithMap_Nested) String() string

func (*SimpleWithMap_Nested) UnmarshalJSON

func (this *SimpleWithMap_Nested) UnmarshalJSON(b []byte) error

UnmarshalJSON is a custom unmarshaler for SimpleWithMap_Nested

type Simple_Name

type Simple_Name struct {
	Name string `protobuf:"bytes,3,opt,name=name,proto3,oneof"`
}

type Simple_Number

type Simple_Number struct {
	Number uint32 `protobuf:"varint,4,opt,name=number,proto3,oneof"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL