log

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0, MIT Imports: 7 Imported by: 0

README

protoc-gen-zap-marshaler

Note: This is a modified fork of https://github.com/kazegusuri/go-proto-zap-marshaler.

  • Updated to avoid deprecated dependency usage.
  • Removed non-secure marshaler.
  • Changed naming.

If you're making additional changes to this plugin, I recommend testing using the make test target in this directory; tests in ./examples addume the protoc-generated artifacts are up to date.

A protoc plugin whitch generates MarshalLogObject() functions for each generated go structs to implement zapcore.ObjectMarshaler interface for uber-go/zap. So you can use zap.Object("proto", someProtoMessage) to log contents of the proto message.

Install

There is one protoc plugins to generate marshaler functions for zap:

  • protoc-gen-zap-marshaler
    • which genearetes marshaler functions for all messages, but only logs fields enabled by proto option.

You can install this plugin with the following command:

$ go get github.com/indentinc/protoc-gen-zap-marshaler/protoc-gen-zap-marshaler

Usage

protoc-gen-zap-marshaler

This plugin generates marshaler functions as well as protoc-gen-zap-marshaler, but the funtions does not log anything as default. The marshaler only marshal fields enabled by zap_marshaler option.

To enable field option for message fields, you need to define proto like this:

message SimpleMessage {
  string string_value = 1 [(indent.zap.Include) = true];
  bool bool_value = 2 [(indent.zap.Include) = true];
}

To generate marshaler functions from proto, use --zap-marshaler_out with protoc command. That runs protoc-gen-zap-marshaler internally and then generates *.zap.go files.

$ protoc --zap-marshaler-secure_out=. path/to/example.proto

See usage in Makefile's regenerate/... targets.

Example

For this proto without field option, the secure plugin generates a go function:

syntax = "proto3";
package example;

message SimpleMessage {
  string string_value = 1;
  bool bool_value = 2;
}
func (m *SimpleMessage) MarshalLogObject(enc go_uber_org_zap_zapcore.ObjectEncoder) error {
	var keyName string
	_ = keyName

	return nil
}

The generated function does nothing.

By changing the proto with field option like this, the secure plugin generates a go function:

syntax = "proto3";
package example;

import "indentinc/protoc-gen-zap-marshaler/zap.proto";

message SimpleMessage {
  string string_value = 1 [(indent.zap.Include) = true];
  bool bool_value = 2 [(indent.zap.Include) = true];
}
func (m *SimpleMessage) MarshalLogObject(enc go_uber_org_zap_zapcore.ObjectEncoder) error {
	var keyName string
	_ = keyName

	keyName = "string_value" // field string_value = 1
	enc.AddString(keyName, m.StringValue)

	keyName = "bool_value" // field bool_value = 2
	enc.AddBool(keyName, m.BoolValue)

	return nil
}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AliasedEnum_name = map[int32]string{
	0: "UNKNOWN",
	1: "STARTED",
}
View Source
var AliasedEnum_value = map[string]int32{
	"UNKNOWN": 0,
	"STARTED": 1,
	"RUNNING": 1,
}
View Source
var E_Include = &proto.ExtensionDesc{
	ExtendedType:  (*descriptorpb.FieldOptions)(nil),
	ExtensionType: (*bool)(nil),
	Field:         64555,
	Name:          "indent.log.Include",
	Tag:           "varint,64555,opt,name=Include",
	Filename:      "indent/log/log.proto",
}
View Source
var EnumMessage_Nested_name = map[int32]string{
	0: "UNKNOWN",
	1: "PENDING",
	2: "COMPLETED",
}
View Source
var EnumMessage_Nested_value = map[string]int32{
	"UNKNOWN":   0,
	"PENDING":   1,
	"COMPLETED": 2,
}
View Source
var NotLoggingEnumMessage_Nested_name = map[int32]string{
	0: "UNKNOWN",
	1: "PENDING",
	2: "COMPLETED",
}
View Source
var NotLoggingEnumMessage_Nested_value = map[string]int32{
	"UNKNOWN":   0,
	"PENDING":   1,
	"COMPLETED": 2,
}
View Source
var NumericEnum_name = map[int32]string{
	0: "ZERO",
	1: "ONE",
	2: "TWO",
}
View Source
var NumericEnum_value = map[string]int32{
	"ZERO": 0,
	"ONE":  1,
	"TWO":  2,
}

Functions

This section is empty.

Types

type AliasedEnum

type AliasedEnum int32
const (
	AliasedEnum_UNKNOWN AliasedEnum = 0
	AliasedEnum_STARTED AliasedEnum = 1
	AliasedEnum_RUNNING AliasedEnum = 1
)

func (AliasedEnum) EnumDescriptor

func (AliasedEnum) EnumDescriptor() ([]byte, []int)

func (AliasedEnum) String

func (x AliasedEnum) String() string

type EnumMessage

type EnumMessage struct {
	NumericEnumValue          NumericEnum          `` /* 140-byte string literal not displayed */
	RepeatedNumericEnumValues []NumericEnum        `` /* 176-byte string literal not displayed */
	AliasedEnumValue          AliasedEnum          `` /* 140-byte string literal not displayed */
	NestedEnumValue           EnumMessage_Nested   `` /* 144-byte string literal not displayed */
	RepeatedNestedEnumValues  []EnumMessage_Nested `` /* 180-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{}             `json:"-"`
	XXX_unrecognized          []byte               `json:"-"`
	XXX_sizecache             int32                `json:"-"`
}

func (*EnumMessage) Descriptor

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

func (*EnumMessage) GetAliasedEnumValue

func (m *EnumMessage) GetAliasedEnumValue() AliasedEnum

func (*EnumMessage) GetNestedEnumValue

func (m *EnumMessage) GetNestedEnumValue() EnumMessage_Nested

func (*EnumMessage) GetNumericEnumValue

func (m *EnumMessage) GetNumericEnumValue() NumericEnum

func (*EnumMessage) GetRepeatedNestedEnumValues

func (m *EnumMessage) GetRepeatedNestedEnumValues() []EnumMessage_Nested

func (*EnumMessage) GetRepeatedNumericEnumValues

func (m *EnumMessage) GetRepeatedNumericEnumValues() []NumericEnum

func (*EnumMessage) MarshalLogObject

func (m *EnumMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*EnumMessage) ProtoMessage

func (*EnumMessage) ProtoMessage()

func (*EnumMessage) Reset

func (m *EnumMessage) Reset()

func (*EnumMessage) String

func (m *EnumMessage) String() string

func (*EnumMessage) XXX_DiscardUnknown

func (m *EnumMessage) XXX_DiscardUnknown()

func (*EnumMessage) XXX_Marshal

func (m *EnumMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EnumMessage) XXX_Merge

func (m *EnumMessage) XXX_Merge(src proto.Message)

func (*EnumMessage) XXX_Size

func (m *EnumMessage) XXX_Size() int

func (*EnumMessage) XXX_Unmarshal

func (m *EnumMessage) XXX_Unmarshal(b []byte) error

type EnumMessage_Nested

type EnumMessage_Nested int32
const (
	EnumMessage_UNKNOWN   EnumMessage_Nested = 0
	EnumMessage_PENDING   EnumMessage_Nested = 1
	EnumMessage_COMPLETED EnumMessage_Nested = 2
)

func (EnumMessage_Nested) EnumDescriptor

func (EnumMessage_Nested) EnumDescriptor() ([]byte, []int)

func (EnumMessage_Nested) String

func (x EnumMessage_Nested) String() string

type JsonNameOptionMessage

type JsonNameOptionMessage struct {
	StringValue          string   `protobuf:"bytes,1,opt,name=string_value,json=renamed_value,proto3" json:"string_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*JsonNameOptionMessage) Descriptor

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

func (*JsonNameOptionMessage) GetStringValue

func (m *JsonNameOptionMessage) GetStringValue() string

func (*JsonNameOptionMessage) MarshalLogObject

func (m *JsonNameOptionMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*JsonNameOptionMessage) ProtoMessage

func (*JsonNameOptionMessage) ProtoMessage()

func (*JsonNameOptionMessage) Reset

func (m *JsonNameOptionMessage) Reset()

func (*JsonNameOptionMessage) String

func (m *JsonNameOptionMessage) String() string

func (*JsonNameOptionMessage) XXX_DiscardUnknown

func (m *JsonNameOptionMessage) XXX_DiscardUnknown()

func (*JsonNameOptionMessage) XXX_Marshal

func (m *JsonNameOptionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*JsonNameOptionMessage) XXX_Merge

func (m *JsonNameOptionMessage) XXX_Merge(src proto.Message)

func (*JsonNameOptionMessage) XXX_Size

func (m *JsonNameOptionMessage) XXX_Size() int

func (*JsonNameOptionMessage) XXX_Unmarshal

func (m *JsonNameOptionMessage) XXX_Unmarshal(b []byte) error

type MapMessage

type MapMessage struct {
	MappedValue          map[int32]string          `` /* 183-byte string literal not displayed */
	MappedEnumValue      map[string]NumericEnum    `` /* 225-byte string literal not displayed */
	MappedNestedValue    map[string]*NestedMessage `` /* 202-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*MapMessage) Descriptor

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

func (*MapMessage) GetMappedEnumValue

func (m *MapMessage) GetMappedEnumValue() map[string]NumericEnum

func (*MapMessage) GetMappedNestedValue

func (m *MapMessage) GetMappedNestedValue() map[string]*NestedMessage

func (*MapMessage) GetMappedValue

func (m *MapMessage) GetMappedValue() map[int32]string

func (*MapMessage) MarshalLogObject

func (m *MapMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*MapMessage) ProtoMessage

func (*MapMessage) ProtoMessage()

func (*MapMessage) Reset

func (m *MapMessage) Reset()

func (*MapMessage) String

func (m *MapMessage) String() string

func (*MapMessage) XXX_DiscardUnknown

func (m *MapMessage) XXX_DiscardUnknown()

func (*MapMessage) XXX_Marshal

func (m *MapMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MapMessage) XXX_Merge

func (m *MapMessage) XXX_Merge(src proto.Message)

func (*MapMessage) XXX_Size

func (m *MapMessage) XXX_Size() int

func (*MapMessage) XXX_Unmarshal

func (m *MapMessage) XXX_Unmarshal(b []byte) error

type MixedLoggingMessage

type MixedLoggingMessage struct {
	StringValue          string   `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BoolValue            bool     `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	Int32Value           int32    `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*MixedLoggingMessage) Descriptor

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

func (*MixedLoggingMessage) GetBoolValue

func (m *MixedLoggingMessage) GetBoolValue() bool

func (*MixedLoggingMessage) GetInt32Value

func (m *MixedLoggingMessage) GetInt32Value() int32

func (*MixedLoggingMessage) GetStringValue

func (m *MixedLoggingMessage) GetStringValue() string

func (*MixedLoggingMessage) MarshalLogObject

func (m *MixedLoggingMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*MixedLoggingMessage) ProtoMessage

func (*MixedLoggingMessage) ProtoMessage()

func (*MixedLoggingMessage) Reset

func (m *MixedLoggingMessage) Reset()

func (*MixedLoggingMessage) String

func (m *MixedLoggingMessage) String() string

func (*MixedLoggingMessage) XXX_DiscardUnknown

func (m *MixedLoggingMessage) XXX_DiscardUnknown()

func (*MixedLoggingMessage) XXX_Marshal

func (m *MixedLoggingMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MixedLoggingMessage) XXX_Merge

func (m *MixedLoggingMessage) XXX_Merge(src proto.Message)

func (*MixedLoggingMessage) XXX_Size

func (m *MixedLoggingMessage) XXX_Size() int

func (*MixedLoggingMessage) XXX_Unmarshal

func (m *MixedLoggingMessage) XXX_Unmarshal(b []byte) error

type NestedMessage

type NestedMessage struct {
	NestedValue          *NestedMessage_Nested   `protobuf:"bytes,1,opt,name=nested_value,json=nestedValue,proto3" json:"nested_value,omitempty"`
	RepeatedNestedValues []*NestedMessage_Nested `protobuf:"bytes,2,rep,name=repeated_nested_values,json=repeatedNestedValues,proto3" json:"repeated_nested_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*NestedMessage) Descriptor

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

func (*NestedMessage) GetNestedValue

func (m *NestedMessage) GetNestedValue() *NestedMessage_Nested

func (*NestedMessage) GetRepeatedNestedValues

func (m *NestedMessage) GetRepeatedNestedValues() []*NestedMessage_Nested

func (*NestedMessage) MarshalLogObject

func (m *NestedMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NestedMessage) ProtoMessage

func (*NestedMessage) ProtoMessage()

func (*NestedMessage) Reset

func (m *NestedMessage) Reset()

func (*NestedMessage) String

func (m *NestedMessage) String() string

func (*NestedMessage) XXX_DiscardUnknown

func (m *NestedMessage) XXX_DiscardUnknown()

func (*NestedMessage) XXX_Marshal

func (m *NestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NestedMessage) XXX_Merge

func (m *NestedMessage) XXX_Merge(src proto.Message)

func (*NestedMessage) XXX_Size

func (m *NestedMessage) XXX_Size() int

func (*NestedMessage) XXX_Unmarshal

func (m *NestedMessage) XXX_Unmarshal(b []byte) error

type NestedMessage_Nested

type NestedMessage_Nested struct {
	Int32Value           int32    `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	StringValue          string   `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NestedMessage_Nested) Descriptor

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

func (*NestedMessage_Nested) GetInt32Value

func (m *NestedMessage_Nested) GetInt32Value() int32

func (*NestedMessage_Nested) GetStringValue

func (m *NestedMessage_Nested) GetStringValue() string

func (*NestedMessage_Nested) MarshalLogObject

func (m *NestedMessage_Nested) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NestedMessage_Nested) ProtoMessage

func (*NestedMessage_Nested) ProtoMessage()

func (*NestedMessage_Nested) Reset

func (m *NestedMessage_Nested) Reset()

func (*NestedMessage_Nested) String

func (m *NestedMessage_Nested) String() string

func (*NestedMessage_Nested) XXX_DiscardUnknown

func (m *NestedMessage_Nested) XXX_DiscardUnknown()

func (*NestedMessage_Nested) XXX_Marshal

func (m *NestedMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NestedMessage_Nested) XXX_Merge

func (m *NestedMessage_Nested) XXX_Merge(src proto.Message)

func (*NestedMessage_Nested) XXX_Size

func (m *NestedMessage_Nested) XXX_Size() int

func (*NestedMessage_Nested) XXX_Unmarshal

func (m *NestedMessage_Nested) XXX_Unmarshal(b []byte) error

type NotLoggingEnumMessage

type NotLoggingEnumMessage struct {
	NumericEnumValue          NumericEnum                    `` /* 140-byte string literal not displayed */
	RepeatedNumericEnumValues []NumericEnum                  `` /* 176-byte string literal not displayed */
	AliasedEnumValue          AliasedEnum                    `` /* 140-byte string literal not displayed */
	NestedEnumValue           NotLoggingEnumMessage_Nested   `` /* 154-byte string literal not displayed */
	RepeatedNestedEnumValues  []NotLoggingEnumMessage_Nested `` /* 190-byte string literal not displayed */
	XXX_NoUnkeyedLiteral      struct{}                       `json:"-"`
	XXX_unrecognized          []byte                         `json:"-"`
	XXX_sizecache             int32                          `json:"-"`
}

func (*NotLoggingEnumMessage) Descriptor

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

func (*NotLoggingEnumMessage) GetAliasedEnumValue

func (m *NotLoggingEnumMessage) GetAliasedEnumValue() AliasedEnum

func (*NotLoggingEnumMessage) GetNestedEnumValue

func (m *NotLoggingEnumMessage) GetNestedEnumValue() NotLoggingEnumMessage_Nested

func (*NotLoggingEnumMessage) GetNumericEnumValue

func (m *NotLoggingEnumMessage) GetNumericEnumValue() NumericEnum

func (*NotLoggingEnumMessage) GetRepeatedNestedEnumValues

func (m *NotLoggingEnumMessage) GetRepeatedNestedEnumValues() []NotLoggingEnumMessage_Nested

func (*NotLoggingEnumMessage) GetRepeatedNumericEnumValues

func (m *NotLoggingEnumMessage) GetRepeatedNumericEnumValues() []NumericEnum

func (*NotLoggingEnumMessage) MarshalLogObject

func (m *NotLoggingEnumMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingEnumMessage) ProtoMessage

func (*NotLoggingEnumMessage) ProtoMessage()

func (*NotLoggingEnumMessage) Reset

func (m *NotLoggingEnumMessage) Reset()

func (*NotLoggingEnumMessage) String

func (m *NotLoggingEnumMessage) String() string

func (*NotLoggingEnumMessage) XXX_DiscardUnknown

func (m *NotLoggingEnumMessage) XXX_DiscardUnknown()

func (*NotLoggingEnumMessage) XXX_Marshal

func (m *NotLoggingEnumMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingEnumMessage) XXX_Merge

func (m *NotLoggingEnumMessage) XXX_Merge(src proto.Message)

func (*NotLoggingEnumMessage) XXX_Size

func (m *NotLoggingEnumMessage) XXX_Size() int

func (*NotLoggingEnumMessage) XXX_Unmarshal

func (m *NotLoggingEnumMessage) XXX_Unmarshal(b []byte) error

type NotLoggingEnumMessage_Nested

type NotLoggingEnumMessage_Nested int32
const (
	NotLoggingEnumMessage_UNKNOWN   NotLoggingEnumMessage_Nested = 0
	NotLoggingEnumMessage_PENDING   NotLoggingEnumMessage_Nested = 1
	NotLoggingEnumMessage_COMPLETED NotLoggingEnumMessage_Nested = 2
)

func (NotLoggingEnumMessage_Nested) EnumDescriptor

func (NotLoggingEnumMessage_Nested) EnumDescriptor() ([]byte, []int)

func (NotLoggingEnumMessage_Nested) String

type NotLoggingJsonNameOptionMessage

type NotLoggingJsonNameOptionMessage struct {
	StringValue          string   `protobuf:"bytes,1,opt,name=string_value,json=renamed_value,proto3" json:"string_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotLoggingJsonNameOptionMessage) Descriptor

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

func (*NotLoggingJsonNameOptionMessage) GetStringValue

func (m *NotLoggingJsonNameOptionMessage) GetStringValue() string

func (*NotLoggingJsonNameOptionMessage) MarshalLogObject

func (*NotLoggingJsonNameOptionMessage) ProtoMessage

func (*NotLoggingJsonNameOptionMessage) ProtoMessage()

func (*NotLoggingJsonNameOptionMessage) Reset

func (*NotLoggingJsonNameOptionMessage) String

func (*NotLoggingJsonNameOptionMessage) XXX_DiscardUnknown

func (m *NotLoggingJsonNameOptionMessage) XXX_DiscardUnknown()

func (*NotLoggingJsonNameOptionMessage) XXX_Marshal

func (m *NotLoggingJsonNameOptionMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingJsonNameOptionMessage) XXX_Merge

func (m *NotLoggingJsonNameOptionMessage) XXX_Merge(src proto.Message)

func (*NotLoggingJsonNameOptionMessage) XXX_Size

func (m *NotLoggingJsonNameOptionMessage) XXX_Size() int

func (*NotLoggingJsonNameOptionMessage) XXX_Unmarshal

func (m *NotLoggingJsonNameOptionMessage) XXX_Unmarshal(b []byte) error

type NotLoggingMapMessage

type NotLoggingMapMessage struct {
	MappedValue          map[int32]string          `` /* 183-byte string literal not displayed */
	MappedEnumValue      map[string]NumericEnum    `` /* 225-byte string literal not displayed */
	MappedNestedValue    map[string]*NestedMessage `` /* 202-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*NotLoggingMapMessage) Descriptor

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

func (*NotLoggingMapMessage) GetMappedEnumValue

func (m *NotLoggingMapMessage) GetMappedEnumValue() map[string]NumericEnum

func (*NotLoggingMapMessage) GetMappedNestedValue

func (m *NotLoggingMapMessage) GetMappedNestedValue() map[string]*NestedMessage

func (*NotLoggingMapMessage) GetMappedValue

func (m *NotLoggingMapMessage) GetMappedValue() map[int32]string

func (*NotLoggingMapMessage) MarshalLogObject

func (m *NotLoggingMapMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingMapMessage) ProtoMessage

func (*NotLoggingMapMessage) ProtoMessage()

func (*NotLoggingMapMessage) Reset

func (m *NotLoggingMapMessage) Reset()

func (*NotLoggingMapMessage) String

func (m *NotLoggingMapMessage) String() string

func (*NotLoggingMapMessage) XXX_DiscardUnknown

func (m *NotLoggingMapMessage) XXX_DiscardUnknown()

func (*NotLoggingMapMessage) XXX_Marshal

func (m *NotLoggingMapMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingMapMessage) XXX_Merge

func (m *NotLoggingMapMessage) XXX_Merge(src proto.Message)

func (*NotLoggingMapMessage) XXX_Size

func (m *NotLoggingMapMessage) XXX_Size() int

func (*NotLoggingMapMessage) XXX_Unmarshal

func (m *NotLoggingMapMessage) XXX_Unmarshal(b []byte) error

type NotLoggingNestedMessage

type NotLoggingNestedMessage struct {
	NestedValue          *NotLoggingNestedMessage_Nested   `protobuf:"bytes,1,opt,name=nested_value,json=nestedValue,proto3" json:"nested_value,omitempty"`
	RepeatedNestedValues []*NotLoggingNestedMessage_Nested `protobuf:"bytes,2,rep,name=repeated_nested_values,json=repeatedNestedValues,proto3" json:"repeated_nested_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                          `json:"-"`
	XXX_unrecognized     []byte                            `json:"-"`
	XXX_sizecache        int32                             `json:"-"`
}

func (*NotLoggingNestedMessage) Descriptor

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

func (*NotLoggingNestedMessage) GetNestedValue

func (*NotLoggingNestedMessage) GetRepeatedNestedValues

func (m *NotLoggingNestedMessage) GetRepeatedNestedValues() []*NotLoggingNestedMessage_Nested

func (*NotLoggingNestedMessage) MarshalLogObject

func (m *NotLoggingNestedMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingNestedMessage) ProtoMessage

func (*NotLoggingNestedMessage) ProtoMessage()

func (*NotLoggingNestedMessage) Reset

func (m *NotLoggingNestedMessage) Reset()

func (*NotLoggingNestedMessage) String

func (m *NotLoggingNestedMessage) String() string

func (*NotLoggingNestedMessage) XXX_DiscardUnknown

func (m *NotLoggingNestedMessage) XXX_DiscardUnknown()

func (*NotLoggingNestedMessage) XXX_Marshal

func (m *NotLoggingNestedMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingNestedMessage) XXX_Merge

func (m *NotLoggingNestedMessage) XXX_Merge(src proto.Message)

func (*NotLoggingNestedMessage) XXX_Size

func (m *NotLoggingNestedMessage) XXX_Size() int

func (*NotLoggingNestedMessage) XXX_Unmarshal

func (m *NotLoggingNestedMessage) XXX_Unmarshal(b []byte) error

type NotLoggingNestedMessage_Nested

type NotLoggingNestedMessage_Nested struct {
	Int32Value           int32    `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	StringValue          string   `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotLoggingNestedMessage_Nested) Descriptor

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

func (*NotLoggingNestedMessage_Nested) GetInt32Value

func (m *NotLoggingNestedMessage_Nested) GetInt32Value() int32

func (*NotLoggingNestedMessage_Nested) GetStringValue

func (m *NotLoggingNestedMessage_Nested) GetStringValue() string

func (*NotLoggingNestedMessage_Nested) MarshalLogObject

func (*NotLoggingNestedMessage_Nested) ProtoMessage

func (*NotLoggingNestedMessage_Nested) ProtoMessage()

func (*NotLoggingNestedMessage_Nested) Reset

func (m *NotLoggingNestedMessage_Nested) Reset()

func (*NotLoggingNestedMessage_Nested) String

func (*NotLoggingNestedMessage_Nested) XXX_DiscardUnknown

func (m *NotLoggingNestedMessage_Nested) XXX_DiscardUnknown()

func (*NotLoggingNestedMessage_Nested) XXX_Marshal

func (m *NotLoggingNestedMessage_Nested) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingNestedMessage_Nested) XXX_Merge

func (m *NotLoggingNestedMessage_Nested) XXX_Merge(src proto.Message)

func (*NotLoggingNestedMessage_Nested) XXX_Size

func (m *NotLoggingNestedMessage_Nested) XXX_Size() int

func (*NotLoggingNestedMessage_Nested) XXX_Unmarshal

func (m *NotLoggingNestedMessage_Nested) XXX_Unmarshal(b []byte) error

type NotLoggingNumberMessage

type NotLoggingNumberMessage struct {
	FloatValue           float32  `protobuf:"fixed32,1,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	DoubleValue          float64  `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	Int32Value           int32    `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value           int64    `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value          uint32   `protobuf:"varint,5,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value          uint64   `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value          int32    `protobuf:"zigzag32,7,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value          int64    `protobuf:"zigzag64,8,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	Fixed32Value         uint32   `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	Fixed64Value         uint64   `protobuf:"fixed64,10,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed32Value        int32    `protobuf:"fixed32,11,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value        int64    `protobuf:"fixed64,12,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotLoggingNumberMessage) Descriptor

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

func (*NotLoggingNumberMessage) GetDoubleValue

func (m *NotLoggingNumberMessage) GetDoubleValue() float64

func (*NotLoggingNumberMessage) GetFixed32Value

func (m *NotLoggingNumberMessage) GetFixed32Value() uint32

func (*NotLoggingNumberMessage) GetFixed64Value

func (m *NotLoggingNumberMessage) GetFixed64Value() uint64

func (*NotLoggingNumberMessage) GetFloatValue

func (m *NotLoggingNumberMessage) GetFloatValue() float32

func (*NotLoggingNumberMessage) GetInt32Value

func (m *NotLoggingNumberMessage) GetInt32Value() int32

func (*NotLoggingNumberMessage) GetInt64Value

func (m *NotLoggingNumberMessage) GetInt64Value() int64

func (*NotLoggingNumberMessage) GetSfixed32Value

func (m *NotLoggingNumberMessage) GetSfixed32Value() int32

func (*NotLoggingNumberMessage) GetSfixed64Value

func (m *NotLoggingNumberMessage) GetSfixed64Value() int64

func (*NotLoggingNumberMessage) GetSint32Value

func (m *NotLoggingNumberMessage) GetSint32Value() int32

func (*NotLoggingNumberMessage) GetSint64Value

func (m *NotLoggingNumberMessage) GetSint64Value() int64

func (*NotLoggingNumberMessage) GetUint32Value

func (m *NotLoggingNumberMessage) GetUint32Value() uint32

func (*NotLoggingNumberMessage) GetUint64Value

func (m *NotLoggingNumberMessage) GetUint64Value() uint64

func (*NotLoggingNumberMessage) MarshalLogObject

func (m *NotLoggingNumberMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingNumberMessage) ProtoMessage

func (*NotLoggingNumberMessage) ProtoMessage()

func (*NotLoggingNumberMessage) Reset

func (m *NotLoggingNumberMessage) Reset()

func (*NotLoggingNumberMessage) String

func (m *NotLoggingNumberMessage) String() string

func (*NotLoggingNumberMessage) XXX_DiscardUnknown

func (m *NotLoggingNumberMessage) XXX_DiscardUnknown()

func (*NotLoggingNumberMessage) XXX_Marshal

func (m *NotLoggingNumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingNumberMessage) XXX_Merge

func (m *NotLoggingNumberMessage) XXX_Merge(src proto.Message)

func (*NotLoggingNumberMessage) XXX_Size

func (m *NotLoggingNumberMessage) XXX_Size() int

func (*NotLoggingNumberMessage) XXX_Unmarshal

func (m *NotLoggingNumberMessage) XXX_Unmarshal(b []byte) error

type NotLoggingOneofMessage

type NotLoggingOneofMessage struct {
	// Types that are valid to be assigned to OneofValue:
	//	*NotLoggingOneofMessage_Int32Value
	//	*NotLoggingOneofMessage_StringValue
	OneofValue           isNotLoggingOneofMessage_OneofValue `protobuf_oneof:"oneof_value"`
	RepeatedOneofValues  []*Oneof                            `protobuf:"bytes,3,rep,name=repeated_oneof_values,json=repeatedOneofValues,proto3" json:"repeated_oneof_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                            `json:"-"`
	XXX_unrecognized     []byte                              `json:"-"`
	XXX_sizecache        int32                               `json:"-"`
}

func (*NotLoggingOneofMessage) Descriptor

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

func (*NotLoggingOneofMessage) GetInt32Value

func (m *NotLoggingOneofMessage) GetInt32Value() int32

func (*NotLoggingOneofMessage) GetOneofValue

func (m *NotLoggingOneofMessage) GetOneofValue() isNotLoggingOneofMessage_OneofValue

func (*NotLoggingOneofMessage) GetRepeatedOneofValues

func (m *NotLoggingOneofMessage) GetRepeatedOneofValues() []*Oneof

func (*NotLoggingOneofMessage) GetStringValue

func (m *NotLoggingOneofMessage) GetStringValue() string

func (*NotLoggingOneofMessage) MarshalLogObject

func (m *NotLoggingOneofMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingOneofMessage) ProtoMessage

func (*NotLoggingOneofMessage) ProtoMessage()

func (*NotLoggingOneofMessage) Reset

func (m *NotLoggingOneofMessage) Reset()

func (*NotLoggingOneofMessage) String

func (m *NotLoggingOneofMessage) String() string

func (*NotLoggingOneofMessage) XXX_DiscardUnknown

func (m *NotLoggingOneofMessage) XXX_DiscardUnknown()

func (*NotLoggingOneofMessage) XXX_Marshal

func (m *NotLoggingOneofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingOneofMessage) XXX_Merge

func (m *NotLoggingOneofMessage) XXX_Merge(src proto.Message)

func (*NotLoggingOneofMessage) XXX_OneofWrappers

func (*NotLoggingOneofMessage) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*NotLoggingOneofMessage) XXX_Size

func (m *NotLoggingOneofMessage) XXX_Size() int

func (*NotLoggingOneofMessage) XXX_Unmarshal

func (m *NotLoggingOneofMessage) XXX_Unmarshal(b []byte) error

type NotLoggingOneofMessage_Int32Value

type NotLoggingOneofMessage_Int32Value struct {
	Int32Value int32 `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type NotLoggingOneofMessage_StringValue

type NotLoggingOneofMessage_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type NotLoggingRepeatedNumberMessage

type NotLoggingRepeatedNumberMessage struct {
	FloatValues          []float32 `protobuf:"fixed32,1,rep,packed,name=float_values,json=floatValues,proto3" json:"float_values,omitempty"`
	DoubleValues         []float64 `protobuf:"fixed64,2,rep,packed,name=double_values,json=doubleValues,proto3" json:"double_values,omitempty"`
	Int32Values          []int32   `protobuf:"varint,3,rep,packed,name=int32_values,json=int32Values,proto3" json:"int32_values,omitempty"`
	Int64Values          []int64   `protobuf:"varint,4,rep,packed,name=int64_values,json=int64Values,proto3" json:"int64_values,omitempty"`
	Uint32Values         []uint32  `protobuf:"varint,5,rep,packed,name=uint32_values,json=uint32Values,proto3" json:"uint32_values,omitempty"`
	Uint64Values         []uint64  `protobuf:"varint,6,rep,packed,name=uint64_values,json=uint64Values,proto3" json:"uint64_values,omitempty"`
	Sint32Values         []int32   `protobuf:"zigzag32,7,rep,packed,name=sint32_values,json=sint32Values,proto3" json:"sint32_values,omitempty"`
	Sint64Values         []int64   `protobuf:"zigzag64,8,rep,packed,name=sint64_values,json=sint64Values,proto3" json:"sint64_values,omitempty"`
	Fixed32Values        []uint32  `protobuf:"fixed32,9,rep,packed,name=fixed32_values,json=fixed32Values,proto3" json:"fixed32_values,omitempty"`
	Fixed64Values        []uint64  `protobuf:"fixed64,10,rep,packed,name=fixed64_values,json=fixed64Values,proto3" json:"fixed64_values,omitempty"`
	Sfixed32Values       []int32   `protobuf:"fixed32,11,rep,packed,name=sfixed32_values,json=sfixed32Values,proto3" json:"sfixed32_values,omitempty"`
	Sfixed64Values       []int64   `protobuf:"fixed64,12,rep,packed,name=sfixed64_values,json=sfixed64Values,proto3" json:"sfixed64_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*NotLoggingRepeatedNumberMessage) Descriptor

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

func (*NotLoggingRepeatedNumberMessage) GetDoubleValues

func (m *NotLoggingRepeatedNumberMessage) GetDoubleValues() []float64

func (*NotLoggingRepeatedNumberMessage) GetFixed32Values

func (m *NotLoggingRepeatedNumberMessage) GetFixed32Values() []uint32

func (*NotLoggingRepeatedNumberMessage) GetFixed64Values

func (m *NotLoggingRepeatedNumberMessage) GetFixed64Values() []uint64

func (*NotLoggingRepeatedNumberMessage) GetFloatValues

func (m *NotLoggingRepeatedNumberMessage) GetFloatValues() []float32

func (*NotLoggingRepeatedNumberMessage) GetInt32Values

func (m *NotLoggingRepeatedNumberMessage) GetInt32Values() []int32

func (*NotLoggingRepeatedNumberMessage) GetInt64Values

func (m *NotLoggingRepeatedNumberMessage) GetInt64Values() []int64

func (*NotLoggingRepeatedNumberMessage) GetSfixed32Values

func (m *NotLoggingRepeatedNumberMessage) GetSfixed32Values() []int32

func (*NotLoggingRepeatedNumberMessage) GetSfixed64Values

func (m *NotLoggingRepeatedNumberMessage) GetSfixed64Values() []int64

func (*NotLoggingRepeatedNumberMessage) GetSint32Values

func (m *NotLoggingRepeatedNumberMessage) GetSint32Values() []int32

func (*NotLoggingRepeatedNumberMessage) GetSint64Values

func (m *NotLoggingRepeatedNumberMessage) GetSint64Values() []int64

func (*NotLoggingRepeatedNumberMessage) GetUint32Values

func (m *NotLoggingRepeatedNumberMessage) GetUint32Values() []uint32

func (*NotLoggingRepeatedNumberMessage) GetUint64Values

func (m *NotLoggingRepeatedNumberMessage) GetUint64Values() []uint64

func (*NotLoggingRepeatedNumberMessage) MarshalLogObject

func (*NotLoggingRepeatedNumberMessage) ProtoMessage

func (*NotLoggingRepeatedNumberMessage) ProtoMessage()

func (*NotLoggingRepeatedNumberMessage) Reset

func (*NotLoggingRepeatedNumberMessage) String

func (*NotLoggingRepeatedNumberMessage) XXX_DiscardUnknown

func (m *NotLoggingRepeatedNumberMessage) XXX_DiscardUnknown()

func (*NotLoggingRepeatedNumberMessage) XXX_Marshal

func (m *NotLoggingRepeatedNumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingRepeatedNumberMessage) XXX_Merge

func (m *NotLoggingRepeatedNumberMessage) XXX_Merge(src proto.Message)

func (*NotLoggingRepeatedNumberMessage) XXX_Size

func (m *NotLoggingRepeatedNumberMessage) XXX_Size() int

func (*NotLoggingRepeatedNumberMessage) XXX_Unmarshal

func (m *NotLoggingRepeatedNumberMessage) XXX_Unmarshal(b []byte) error

type NotLoggingSimpleMessage

type NotLoggingSimpleMessage struct {
	StringValue          string   `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BoolValue            bool     `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NotLoggingSimpleMessage) Descriptor

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

func (*NotLoggingSimpleMessage) GetBoolValue

func (m *NotLoggingSimpleMessage) GetBoolValue() bool

func (*NotLoggingSimpleMessage) GetStringValue

func (m *NotLoggingSimpleMessage) GetStringValue() string

func (*NotLoggingSimpleMessage) MarshalLogObject

func (m *NotLoggingSimpleMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NotLoggingSimpleMessage) ProtoMessage

func (*NotLoggingSimpleMessage) ProtoMessage()

func (*NotLoggingSimpleMessage) Reset

func (m *NotLoggingSimpleMessage) Reset()

func (*NotLoggingSimpleMessage) String

func (m *NotLoggingSimpleMessage) String() string

func (*NotLoggingSimpleMessage) XXX_DiscardUnknown

func (m *NotLoggingSimpleMessage) XXX_DiscardUnknown()

func (*NotLoggingSimpleMessage) XXX_Marshal

func (m *NotLoggingSimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingSimpleMessage) XXX_Merge

func (m *NotLoggingSimpleMessage) XXX_Merge(src proto.Message)

func (*NotLoggingSimpleMessage) XXX_Size

func (m *NotLoggingSimpleMessage) XXX_Size() int

func (*NotLoggingSimpleMessage) XXX_Unmarshal

func (m *NotLoggingSimpleMessage) XXX_Unmarshal(b []byte) error

type NotLoggingWellKnownTypeMessage

type NotLoggingWellKnownTypeMessage struct {
	Duration             *durationpb.Duration   `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	Timestamp            *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*NotLoggingWellKnownTypeMessage) Descriptor

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

func (*NotLoggingWellKnownTypeMessage) GetDuration

func (*NotLoggingWellKnownTypeMessage) GetTimestamp

func (*NotLoggingWellKnownTypeMessage) MarshalLogObject

func (*NotLoggingWellKnownTypeMessage) ProtoMessage

func (*NotLoggingWellKnownTypeMessage) ProtoMessage()

func (*NotLoggingWellKnownTypeMessage) Reset

func (m *NotLoggingWellKnownTypeMessage) Reset()

func (*NotLoggingWellKnownTypeMessage) String

func (*NotLoggingWellKnownTypeMessage) XXX_DiscardUnknown

func (m *NotLoggingWellKnownTypeMessage) XXX_DiscardUnknown()

func (*NotLoggingWellKnownTypeMessage) XXX_Marshal

func (m *NotLoggingWellKnownTypeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NotLoggingWellKnownTypeMessage) XXX_Merge

func (m *NotLoggingWellKnownTypeMessage) XXX_Merge(src proto.Message)

func (*NotLoggingWellKnownTypeMessage) XXX_Size

func (m *NotLoggingWellKnownTypeMessage) XXX_Size() int

func (*NotLoggingWellKnownTypeMessage) XXX_Unmarshal

func (m *NotLoggingWellKnownTypeMessage) XXX_Unmarshal(b []byte) error

type NumberMessage

type NumberMessage struct {
	FloatValue           float32  `protobuf:"fixed32,1,opt,name=float_value,json=floatValue,proto3" json:"float_value,omitempty"`
	DoubleValue          float64  `protobuf:"fixed64,2,opt,name=double_value,json=doubleValue,proto3" json:"double_value,omitempty"`
	Int32Value           int32    `protobuf:"varint,3,opt,name=int32_value,json=int32Value,proto3" json:"int32_value,omitempty"`
	Int64Value           int64    `protobuf:"varint,4,opt,name=int64_value,json=int64Value,proto3" json:"int64_value,omitempty"`
	Uint32Value          uint32   `protobuf:"varint,5,opt,name=uint32_value,json=uint32Value,proto3" json:"uint32_value,omitempty"`
	Uint64Value          uint64   `protobuf:"varint,6,opt,name=uint64_value,json=uint64Value,proto3" json:"uint64_value,omitempty"`
	Sint32Value          int32    `protobuf:"zigzag32,7,opt,name=sint32_value,json=sint32Value,proto3" json:"sint32_value,omitempty"`
	Sint64Value          int64    `protobuf:"zigzag64,8,opt,name=sint64_value,json=sint64Value,proto3" json:"sint64_value,omitempty"`
	Fixed32Value         uint32   `protobuf:"fixed32,9,opt,name=fixed32_value,json=fixed32Value,proto3" json:"fixed32_value,omitempty"`
	Fixed64Value         uint64   `protobuf:"fixed64,10,opt,name=fixed64_value,json=fixed64Value,proto3" json:"fixed64_value,omitempty"`
	Sfixed32Value        int32    `protobuf:"fixed32,11,opt,name=sfixed32_value,json=sfixed32Value,proto3" json:"sfixed32_value,omitempty"`
	Sfixed64Value        int64    `protobuf:"fixed64,12,opt,name=sfixed64_value,json=sfixed64Value,proto3" json:"sfixed64_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*NumberMessage) Descriptor

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

func (*NumberMessage) GetDoubleValue

func (m *NumberMessage) GetDoubleValue() float64

func (*NumberMessage) GetFixed32Value

func (m *NumberMessage) GetFixed32Value() uint32

func (*NumberMessage) GetFixed64Value

func (m *NumberMessage) GetFixed64Value() uint64

func (*NumberMessage) GetFloatValue

func (m *NumberMessage) GetFloatValue() float32

func (*NumberMessage) GetInt32Value

func (m *NumberMessage) GetInt32Value() int32

func (*NumberMessage) GetInt64Value

func (m *NumberMessage) GetInt64Value() int64

func (*NumberMessage) GetSfixed32Value

func (m *NumberMessage) GetSfixed32Value() int32

func (*NumberMessage) GetSfixed64Value

func (m *NumberMessage) GetSfixed64Value() int64

func (*NumberMessage) GetSint32Value

func (m *NumberMessage) GetSint32Value() int32

func (*NumberMessage) GetSint64Value

func (m *NumberMessage) GetSint64Value() int64

func (*NumberMessage) GetUint32Value

func (m *NumberMessage) GetUint32Value() uint32

func (*NumberMessage) GetUint64Value

func (m *NumberMessage) GetUint64Value() uint64

func (*NumberMessage) MarshalLogObject

func (m *NumberMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*NumberMessage) ProtoMessage

func (*NumberMessage) ProtoMessage()

func (*NumberMessage) Reset

func (m *NumberMessage) Reset()

func (*NumberMessage) String

func (m *NumberMessage) String() string

func (*NumberMessage) XXX_DiscardUnknown

func (m *NumberMessage) XXX_DiscardUnknown()

func (*NumberMessage) XXX_Marshal

func (m *NumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NumberMessage) XXX_Merge

func (m *NumberMessage) XXX_Merge(src proto.Message)

func (*NumberMessage) XXX_Size

func (m *NumberMessage) XXX_Size() int

func (*NumberMessage) XXX_Unmarshal

func (m *NumberMessage) XXX_Unmarshal(b []byte) error

type NumericEnum

type NumericEnum int32
const (
	NumericEnum_ZERO NumericEnum = 0
	NumericEnum_ONE  NumericEnum = 1
	NumericEnum_TWO  NumericEnum = 2
)

func (NumericEnum) EnumDescriptor

func (NumericEnum) EnumDescriptor() ([]byte, []int)

func (NumericEnum) String

func (x NumericEnum) String() string

type Oneof

type Oneof struct {
	// Types that are valid to be assigned to OneofValue:
	//	*Oneof_Int32Value
	//	*Oneof_StringValue
	OneofValue           isOneof_OneofValue `protobuf_oneof:"oneof_value"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*Oneof) Descriptor

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

func (*Oneof) GetInt32Value

func (m *Oneof) GetInt32Value() int32

func (*Oneof) GetOneofValue

func (m *Oneof) GetOneofValue() isOneof_OneofValue

func (*Oneof) GetStringValue

func (m *Oneof) GetStringValue() string

func (*Oneof) MarshalLogObject

func (m *Oneof) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*Oneof) ProtoMessage

func (*Oneof) ProtoMessage()

func (*Oneof) Reset

func (m *Oneof) Reset()

func (*Oneof) String

func (m *Oneof) String() string

func (*Oneof) XXX_DiscardUnknown

func (m *Oneof) XXX_DiscardUnknown()

func (*Oneof) XXX_Marshal

func (m *Oneof) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Oneof) XXX_Merge

func (m *Oneof) XXX_Merge(src proto.Message)

func (*Oneof) XXX_OneofWrappers

func (*Oneof) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*Oneof) XXX_Size

func (m *Oneof) XXX_Size() int

func (*Oneof) XXX_Unmarshal

func (m *Oneof) XXX_Unmarshal(b []byte) error

type OneofMessage

type OneofMessage struct {
	// Types that are valid to be assigned to OneofValue:
	//	*OneofMessage_Int32Value
	//	*OneofMessage_StringValue
	OneofValue           isOneofMessage_OneofValue `protobuf_oneof:"oneof_value"`
	RepeatedOneofValues  []*Oneof                  `protobuf:"bytes,3,rep,name=repeated_oneof_values,json=repeatedOneofValues,proto3" json:"repeated_oneof_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                  `json:"-"`
	XXX_unrecognized     []byte                    `json:"-"`
	XXX_sizecache        int32                     `json:"-"`
}

func (*OneofMessage) Descriptor

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

func (*OneofMessage) GetInt32Value

func (m *OneofMessage) GetInt32Value() int32

func (*OneofMessage) GetOneofValue

func (m *OneofMessage) GetOneofValue() isOneofMessage_OneofValue

func (*OneofMessage) GetRepeatedOneofValues

func (m *OneofMessage) GetRepeatedOneofValues() []*Oneof

func (*OneofMessage) GetStringValue

func (m *OneofMessage) GetStringValue() string

func (*OneofMessage) MarshalLogObject

func (m *OneofMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*OneofMessage) ProtoMessage

func (*OneofMessage) ProtoMessage()

func (*OneofMessage) Reset

func (m *OneofMessage) Reset()

func (*OneofMessage) String

func (m *OneofMessage) String() string

func (*OneofMessage) XXX_DiscardUnknown

func (m *OneofMessage) XXX_DiscardUnknown()

func (*OneofMessage) XXX_Marshal

func (m *OneofMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*OneofMessage) XXX_Merge

func (m *OneofMessage) XXX_Merge(src proto.Message)

func (*OneofMessage) XXX_OneofWrappers

func (*OneofMessage) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*OneofMessage) XXX_Size

func (m *OneofMessage) XXX_Size() int

func (*OneofMessage) XXX_Unmarshal

func (m *OneofMessage) XXX_Unmarshal(b []byte) error

type OneofMessage_Int32Value

type OneofMessage_Int32Value struct {
	Int32Value int32 `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type OneofMessage_StringValue

type OneofMessage_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Oneof_Int32Value

type Oneof_Int32Value struct {
	Int32Value int32 `protobuf:"varint,1,opt,name=int32_value,json=int32Value,proto3,oneof"`
}

type Oneof_StringValue

type Oneof_StringValue struct {
	StringValue string `protobuf:"bytes,2,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type RepeatedNumberMessage

type RepeatedNumberMessage struct {
	FloatValues          []float32 `protobuf:"fixed32,1,rep,packed,name=float_values,json=floatValues,proto3" json:"float_values,omitempty"`
	DoubleValues         []float64 `protobuf:"fixed64,2,rep,packed,name=double_values,json=doubleValues,proto3" json:"double_values,omitempty"`
	Int32Values          []int32   `protobuf:"varint,3,rep,packed,name=int32_values,json=int32Values,proto3" json:"int32_values,omitempty"`
	Int64Values          []int64   `protobuf:"varint,4,rep,packed,name=int64_values,json=int64Values,proto3" json:"int64_values,omitempty"`
	Uint32Values         []uint32  `protobuf:"varint,5,rep,packed,name=uint32_values,json=uint32Values,proto3" json:"uint32_values,omitempty"`
	Uint64Values         []uint64  `protobuf:"varint,6,rep,packed,name=uint64_values,json=uint64Values,proto3" json:"uint64_values,omitempty"`
	Sint32Values         []int32   `protobuf:"zigzag32,7,rep,packed,name=sint32_values,json=sint32Values,proto3" json:"sint32_values,omitempty"`
	Sint64Values         []int64   `protobuf:"zigzag64,8,rep,packed,name=sint64_values,json=sint64Values,proto3" json:"sint64_values,omitempty"`
	Fixed32Values        []uint32  `protobuf:"fixed32,9,rep,packed,name=fixed32_values,json=fixed32Values,proto3" json:"fixed32_values,omitempty"`
	Fixed64Values        []uint64  `protobuf:"fixed64,10,rep,packed,name=fixed64_values,json=fixed64Values,proto3" json:"fixed64_values,omitempty"`
	Sfixed32Values       []int32   `protobuf:"fixed32,11,rep,packed,name=sfixed32_values,json=sfixed32Values,proto3" json:"sfixed32_values,omitempty"`
	Sfixed64Values       []int64   `protobuf:"fixed64,12,rep,packed,name=sfixed64_values,json=sfixed64Values,proto3" json:"sfixed64_values,omitempty"`
	XXX_NoUnkeyedLiteral struct{}  `json:"-"`
	XXX_unrecognized     []byte    `json:"-"`
	XXX_sizecache        int32     `json:"-"`
}

func (*RepeatedNumberMessage) Descriptor

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

func (*RepeatedNumberMessage) GetDoubleValues

func (m *RepeatedNumberMessage) GetDoubleValues() []float64

func (*RepeatedNumberMessage) GetFixed32Values

func (m *RepeatedNumberMessage) GetFixed32Values() []uint32

func (*RepeatedNumberMessage) GetFixed64Values

func (m *RepeatedNumberMessage) GetFixed64Values() []uint64

func (*RepeatedNumberMessage) GetFloatValues

func (m *RepeatedNumberMessage) GetFloatValues() []float32

func (*RepeatedNumberMessage) GetInt32Values

func (m *RepeatedNumberMessage) GetInt32Values() []int32

func (*RepeatedNumberMessage) GetInt64Values

func (m *RepeatedNumberMessage) GetInt64Values() []int64

func (*RepeatedNumberMessage) GetSfixed32Values

func (m *RepeatedNumberMessage) GetSfixed32Values() []int32

func (*RepeatedNumberMessage) GetSfixed64Values

func (m *RepeatedNumberMessage) GetSfixed64Values() []int64

func (*RepeatedNumberMessage) GetSint32Values

func (m *RepeatedNumberMessage) GetSint32Values() []int32

func (*RepeatedNumberMessage) GetSint64Values

func (m *RepeatedNumberMessage) GetSint64Values() []int64

func (*RepeatedNumberMessage) GetUint32Values

func (m *RepeatedNumberMessage) GetUint32Values() []uint32

func (*RepeatedNumberMessage) GetUint64Values

func (m *RepeatedNumberMessage) GetUint64Values() []uint64

func (*RepeatedNumberMessage) MarshalLogObject

func (m *RepeatedNumberMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*RepeatedNumberMessage) ProtoMessage

func (*RepeatedNumberMessage) ProtoMessage()

func (*RepeatedNumberMessage) Reset

func (m *RepeatedNumberMessage) Reset()

func (*RepeatedNumberMessage) String

func (m *RepeatedNumberMessage) String() string

func (*RepeatedNumberMessage) XXX_DiscardUnknown

func (m *RepeatedNumberMessage) XXX_DiscardUnknown()

func (*RepeatedNumberMessage) XXX_Marshal

func (m *RepeatedNumberMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*RepeatedNumberMessage) XXX_Merge

func (m *RepeatedNumberMessage) XXX_Merge(src proto.Message)

func (*RepeatedNumberMessage) XXX_Size

func (m *RepeatedNumberMessage) XXX_Size() int

func (*RepeatedNumberMessage) XXX_Unmarshal

func (m *RepeatedNumberMessage) XXX_Unmarshal(b []byte) error

type SimpleMessage

type SimpleMessage struct {
	StringValue          string   `protobuf:"bytes,1,opt,name=string_value,json=stringValue,proto3" json:"string_value,omitempty"`
	BoolValue            bool     `protobuf:"varint,2,opt,name=bool_value,json=boolValue,proto3" json:"bool_value,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*SimpleMessage) Descriptor

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

func (*SimpleMessage) GetBoolValue

func (m *SimpleMessage) GetBoolValue() bool

func (*SimpleMessage) GetStringValue

func (m *SimpleMessage) GetStringValue() string

func (*SimpleMessage) MarshalLogObject

func (m *SimpleMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*SimpleMessage) ProtoMessage

func (*SimpleMessage) ProtoMessage()

func (*SimpleMessage) Reset

func (m *SimpleMessage) Reset()

func (*SimpleMessage) String

func (m *SimpleMessage) String() string

func (*SimpleMessage) XXX_DiscardUnknown

func (m *SimpleMessage) XXX_DiscardUnknown()

func (*SimpleMessage) XXX_Marshal

func (m *SimpleMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SimpleMessage) XXX_Merge

func (m *SimpleMessage) XXX_Merge(src proto.Message)

func (*SimpleMessage) XXX_Size

func (m *SimpleMessage) XXX_Size() int

func (*SimpleMessage) XXX_Unmarshal

func (m *SimpleMessage) XXX_Unmarshal(b []byte) error

type WellKnownTypeMessage

type WellKnownTypeMessage struct {
	Duration             *durationpb.Duration   `protobuf:"bytes,1,opt,name=duration,proto3" json:"duration,omitempty"`
	Timestamp            *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	XXX_NoUnkeyedLiteral struct{}               `json:"-"`
	XXX_unrecognized     []byte                 `json:"-"`
	XXX_sizecache        int32                  `json:"-"`
}

func (*WellKnownTypeMessage) Descriptor

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

func (*WellKnownTypeMessage) GetDuration

func (m *WellKnownTypeMessage) GetDuration() *durationpb.Duration

func (*WellKnownTypeMessage) GetTimestamp

func (m *WellKnownTypeMessage) GetTimestamp() *timestamppb.Timestamp

func (*WellKnownTypeMessage) MarshalLogObject

func (m *WellKnownTypeMessage) MarshalLogObject(oe zapcore.ObjectEncoder) error

func (*WellKnownTypeMessage) ProtoMessage

func (*WellKnownTypeMessage) ProtoMessage()

func (*WellKnownTypeMessage) Reset

func (m *WellKnownTypeMessage) Reset()

func (*WellKnownTypeMessage) String

func (m *WellKnownTypeMessage) String() string

func (*WellKnownTypeMessage) XXX_DiscardUnknown

func (m *WellKnownTypeMessage) XXX_DiscardUnknown()

func (*WellKnownTypeMessage) XXX_Marshal

func (m *WellKnownTypeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WellKnownTypeMessage) XXX_Merge

func (m *WellKnownTypeMessage) XXX_Merge(src proto.Message)

func (*WellKnownTypeMessage) XXX_Size

func (m *WellKnownTypeMessage) XXX_Size() int

func (*WellKnownTypeMessage) XXX_Unmarshal

func (m *WellKnownTypeMessage) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
cmd
pkg
plugin
Package plugin generates *.zap.go files containing zap marshalers.
Package plugin generates *.zap.go files containing zap marshalers.

Jump to

Keyboard shortcuts

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