issue260

package
Version: v2.0.0-beta-001+incomp... Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2018 License: Apache-2.0, BSD-3-Clause Imports: 7 Imported by: 0

README

The Bug

If in a message the following options are set:

  • typedecl false
  • go_getters false
  • marshaller true

And one of the fields is using the stdtime and nullable false extension (to use time.Time instead of the protobuf type), then an import to the time package is added even if it is not needed.

Documentation

Overview

Package issue260 is a generated protocol buffer package.

It is generated from these files:

issue260.proto

It has these top-level messages:

Dropped
DroppedWithoutGetters
Kept

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthIssue260 = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIssue260   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Dropped

type Dropped struct {
	Name string
	Age  int32
}

func NewPopulatedDropped

func NewPopulatedDropped(r randyIssue260, easy bool) *Dropped

func (*Dropped) Descriptor

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

func (*Dropped) Drop

func (d *Dropped) Drop() bool

func (*Dropped) Equal

func (this *Dropped) Equal(that interface{}) bool

func (*Dropped) GetAge

func (m *Dropped) GetAge() int32

func (*Dropped) GetName

func (m *Dropped) GetName() string

func (*Dropped) Marshal

func (m *Dropped) Marshal() (dAtA []byte, err error)

func (*Dropped) MarshalTo

func (m *Dropped) MarshalTo(dAtA []byte) (int, error)

func (*Dropped) ProtoMessage

func (*Dropped) ProtoMessage()

func (*Dropped) Reset

func (m *Dropped) Reset()

func (*Dropped) Size

func (m *Dropped) Size() (n int)

func (*Dropped) String

func (m *Dropped) String() string

func (*Dropped) Unmarshal

func (m *Dropped) Unmarshal(dAtA []byte) error

func (*Dropped) VerboseEqual

func (this *Dropped) VerboseEqual(that interface{}) error

type DroppedWithoutGetters

type DroppedWithoutGetters struct {
	Width             int64
	Height            int64
	Timestamp         time.Time  `protobuf:"bytes,3,opt,name=timestamp,stdtime" json:"timestamp"`
	NullableTimestamp *time.Time `protobuf:"bytes,4,opt,name=nullable_timestamp,json=nullableTimestamp,stdtime" json:"nullable_timestamp,omitempty"`
}

func NewPopulatedDroppedWithoutGetters

func NewPopulatedDroppedWithoutGetters(r randyIssue260, easy bool) *DroppedWithoutGetters

func (*DroppedWithoutGetters) Descriptor

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

func (*DroppedWithoutGetters) Equal

func (this *DroppedWithoutGetters) Equal(that interface{}) bool

func (*DroppedWithoutGetters) Marshal

func (m *DroppedWithoutGetters) Marshal() (dAtA []byte, err error)

func (*DroppedWithoutGetters) MarshalTo

func (m *DroppedWithoutGetters) MarshalTo(dAtA []byte) (int, error)

func (*DroppedWithoutGetters) ProtoMessage

func (*DroppedWithoutGetters) ProtoMessage()

func (*DroppedWithoutGetters) Reset

func (m *DroppedWithoutGetters) Reset()

func (*DroppedWithoutGetters) Size

func (m *DroppedWithoutGetters) Size() (n int)

func (*DroppedWithoutGetters) String

func (m *DroppedWithoutGetters) String() string

func (*DroppedWithoutGetters) Unmarshal

func (m *DroppedWithoutGetters) Unmarshal(dAtA []byte) error

func (*DroppedWithoutGetters) VerboseEqual

func (this *DroppedWithoutGetters) VerboseEqual(that interface{}) error

type Kept

type Kept struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Age  int32  `protobuf:"varint,2,opt,name=age,proto3" json:"age,omitempty"`
}

func NewPopulatedKept

func NewPopulatedKept(r randyIssue260, easy bool) *Kept

func (*Kept) Descriptor

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

func (*Kept) Equal

func (this *Kept) Equal(that interface{}) bool

func (*Kept) GetAge

func (m *Kept) GetAge() int32

func (*Kept) GetName

func (m *Kept) GetName() string

func (*Kept) Marshal

func (m *Kept) Marshal() (dAtA []byte, err error)

func (*Kept) MarshalTo

func (m *Kept) MarshalTo(dAtA []byte) (int, error)

func (*Kept) ProtoMessage

func (*Kept) ProtoMessage()

func (*Kept) Reset

func (m *Kept) Reset()

func (*Kept) Size

func (m *Kept) Size() (n int)

func (*Kept) String

func (m *Kept) String() string

func (*Kept) Unmarshal

func (m *Kept) Unmarshal(dAtA []byte) error

func (*Kept) VerboseEqual

func (this *Kept) VerboseEqual(that interface{}) error

Jump to

Keyboard shortcuts

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