versions_go_proto

package
v1.12.2-0...-1b6f133 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VersionDef

type VersionDef struct {
	// The version of the code that produced this data.
	Producer int32 `protobuf:"varint,1,opt,name=producer,proto3" json:"producer,omitempty"`
	// Any consumer below this version is not allowed to consume this data.
	MinConsumer int32 `protobuf:"varint,2,opt,name=min_consumer,json=minConsumer,proto3" json:"min_consumer,omitempty"`
	// Specific consumer versions which are disallowed (e.g. due to bugs).
	BadConsumers         []int32  `protobuf:"varint,3,rep,packed,name=bad_consumers,json=badConsumers,proto3" json:"bad_consumers,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Version information for a piece of serialized data

There are different types of versions for each type of data (GraphDef, etc.), but they all have the same common shape described here.

Each consumer has "consumer" and "min_producer" versions (specified elsewhere). A consumer is allowed to consume this data if

producer >= min_producer
consumer >= min_consumer
consumer not in bad_consumers

func (*VersionDef) Descriptor

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

func (*VersionDef) GetBadConsumers

func (m *VersionDef) GetBadConsumers() []int32

func (*VersionDef) GetMinConsumer

func (m *VersionDef) GetMinConsumer() int32

func (*VersionDef) GetProducer

func (m *VersionDef) GetProducer() int32

func (*VersionDef) ProtoMessage

func (*VersionDef) ProtoMessage()

func (*VersionDef) Reset

func (m *VersionDef) Reset()

func (*VersionDef) String

func (m *VersionDef) String() string

func (*VersionDef) XXX_DiscardUnknown

func (m *VersionDef) XXX_DiscardUnknown()

func (*VersionDef) XXX_Marshal

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

func (*VersionDef) XXX_Merge

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

func (*VersionDef) XXX_Size

func (m *VersionDef) XXX_Size() int

func (*VersionDef) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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