protoyaml

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// WrapperFieldName is the name of the single field (`value`) used by
	// common wrapper types
	//
	// See https://protobuf.dev/reference/protobuf/google.protobuf/
	WrapperFieldName protoreflect.Name = protoreflect.Name("value")
)

Variables

View Source
var (
	DelegateMatch_name = map[int32]string{
		0: "DELEGATE_MATCH_UNSPECIFIED",
		1: "DELEGATE_MATCH_ALL_FIELDS",
		2: "DELEGATE_MATCH_FIRST_KEY",
	}
	DelegateMatch_value = map[string]int32{
		"DELEGATE_MATCH_UNSPECIFIED": 0,
		"DELEGATE_MATCH_ALL_FIELDS":  1,
		"DELEGATE_MATCH_FIRST_KEY":   2,
	}
)

Enum value maps for DelegateMatch.

View Source
var (
	CacheAccess_name = map[int32]string{
		0: "CACHE_ACCESS_UNSPECIFIED",
		1: "CACHE_ACCESS_SHARED",
		2: "CACHE_ACCESS_PRIVATE",
		3: "CACHE_ACCESS_LOCKED",
	}
	CacheAccess_value = map[string]int32{
		"CACHE_ACCESS_UNSPECIFIED": 0,
		"CACHE_ACCESS_SHARED":      1,
		"CACHE_ACCESS_PRIVATE":     2,
		"CACHE_ACCESS_LOCKED":      3,
	}
)

Enum value maps for CacheAccess.

View Source
var (
	Blerp_name = map[int32]string{
		0: "BLERP_UNSPECIFIED",
		1: "BLERP_BLERP",
		2: "BLERP_BLORP",
	}
	Blerp_value = map[string]int32{
		"BLERP_UNSPECIFIED": 0,
		"BLERP_BLERP":       1,
		"BLERP_BLORP":       2,
	}
)

Enum value maps for Blerp.

View Source
var (
	// optional string delegate = 8675309;
	E_Delegate = &file_protoyaml_options_proto_extTypes[0]
)

Extension fields to descriptorpb.MessageOptions.

View Source
var (
	// optional wikimedia.dduvall.protoyaml.DelegateMatch delegate_match = 8675309;
	E_DelegateMatch = &file_protoyaml_options_proto_extTypes[1]
)

Extension fields to descriptorpb.OneofOptions.

View Source
var File_protoyaml_options_proto protoreflect.FileDescriptor
View Source
var File_protoyaml_test_proto protoreflect.FileDescriptor

Functions

func DecodeNew

func DecodeNew[T any](node *Node) (protoreflect.Value, error)

DecodeNew[T] takes a YAML node and returns a new protoreflect.Value based on a new T

func Unmarshal

func Unmarshal(data []byte, message proto.Message) error

Unmarshal decodes the given YAML data to a proto.Message.

Types

type Bleeps

type Bleeps struct {
	Blerps []Blerp `protobuf:"varint,1,rep,packed,name=blerps,proto3,enum=wikimedia.dduvall.protoyaml.test.Blerp" json:"blerps,omitempty"`
	// contains filtered or unexported fields
}

func (*Bleeps) Descriptor deprecated

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

Deprecated: Use Bleeps.ProtoReflect.Descriptor instead.

func (*Bleeps) GetBlerps

func (x *Bleeps) GetBlerps() []Blerp

func (*Bleeps) ProtoMessage

func (*Bleeps) ProtoMessage()

func (*Bleeps) ProtoReflect

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

func (*Bleeps) Reset

func (x *Bleeps) Reset()

func (*Bleeps) String

func (x *Bleeps) String() string

type Blerp

type Blerp int32
const (
	Blerp_BLERP_UNSPECIFIED Blerp = 0
	Blerp_BLERP_BLERP       Blerp = 1
	Blerp_BLERP_BLORP       Blerp = 2
)

func (Blerp) Descriptor

func (Blerp) Descriptor() protoreflect.EnumDescriptor

func (Blerp) Enum

func (x Blerp) Enum() *Blerp

func (Blerp) EnumDescriptor deprecated

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

Deprecated: Use Blerp.Descriptor instead.

func (Blerp) Number

func (x Blerp) Number() protoreflect.EnumNumber

func (Blerp) String

func (x Blerp) String() string

func (Blerp) Type

func (Blerp) Type() protoreflect.EnumType

type Cache

type Cache struct {
	Target string      `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	Access CacheAccess `protobuf:"varint,2,opt,name=access,proto3,enum=wikimedia.dduvall.protoyaml.test.CacheAccess" json:"access,omitempty"`
	// contains filtered or unexported fields
}

func (*Cache) Descriptor deprecated

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

Deprecated: Use Cache.ProtoReflect.Descriptor instead.

func (*Cache) GetAccess

func (x *Cache) GetAccess() CacheAccess

func (*Cache) GetTarget

func (x *Cache) GetTarget() string

func (*Cache) ProtoMessage

func (*Cache) ProtoMessage()

func (*Cache) ProtoReflect

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

func (*Cache) Reset

func (x *Cache) Reset()

func (*Cache) String

func (x *Cache) String() string

type CacheAccess

type CacheAccess int32
const (
	CacheAccess_CACHE_ACCESS_UNSPECIFIED CacheAccess = 0
	CacheAccess_CACHE_ACCESS_SHARED      CacheAccess = 1
	CacheAccess_CACHE_ACCESS_PRIVATE     CacheAccess = 2
	CacheAccess_CACHE_ACCESS_LOCKED      CacheAccess = 3
)

func (CacheAccess) Descriptor

func (CacheAccess) Enum

func (x CacheAccess) Enum() *CacheAccess

func (CacheAccess) EnumDescriptor deprecated

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

Deprecated: Use CacheAccess.Descriptor instead.

func (CacheAccess) Number

func (x CacheAccess) Number() protoreflect.EnumNumber

func (CacheAccess) String

func (x CacheAccess) String() string

func (CacheAccess) Type

type Copy

type Copy struct {
	Source      string       `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	From        *Filesystem  `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	Destination *Destination `protobuf:"bytes,3,opt,name=destination,proto3" json:"destination,omitempty"`
	Ctime       *Timestamp   `protobuf:"bytes,4,opt,name=ctime,proto3" json:"ctime,omitempty"`
	// contains filtered or unexported fields
}

func (*Copy) Descriptor deprecated

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

Deprecated: Use Copy.ProtoReflect.Descriptor instead.

func (*Copy) GetCtime

func (x *Copy) GetCtime() *Timestamp

func (*Copy) GetDestination

func (x *Copy) GetDestination() *Destination

func (*Copy) GetFrom

func (x *Copy) GetFrom() *Filesystem

func (*Copy) GetSource

func (x *Copy) GetSource() string

func (*Copy) ProtoMessage

func (*Copy) ProtoMessage()

func (*Copy) ProtoReflect

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

func (*Copy) Reset

func (x *Copy) Reset()

func (*Copy) String

func (x *Copy) String() string

type DelegateMatch

type DelegateMatch int32
const (
	DelegateMatch_DELEGATE_MATCH_UNSPECIFIED DelegateMatch = 0
	DelegateMatch_DELEGATE_MATCH_ALL_FIELDS  DelegateMatch = 1
	DelegateMatch_DELEGATE_MATCH_FIRST_KEY   DelegateMatch = 2
)

func (DelegateMatch) Descriptor

func (DelegateMatch) Enum

func (x DelegateMatch) Enum() *DelegateMatch

func (DelegateMatch) EnumDescriptor deprecated

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

Deprecated: Use DelegateMatch.Descriptor instead.

func (DelegateMatch) Number

func (DelegateMatch) String

func (x DelegateMatch) String() string

func (DelegateMatch) Type

type Destination

type Destination struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

func (*Destination) Descriptor deprecated

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

Deprecated: Use Destination.ProtoReflect.Descriptor instead.

func (*Destination) GetPath

func (x *Destination) GetPath() string

func (*Destination) ProtoMessage

func (*Destination) ProtoMessage()

func (*Destination) ProtoReflect

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

func (*Destination) Reset

func (x *Destination) Reset()

func (*Destination) String

func (x *Destination) String() string

type Filesystem

type Filesystem struct {
	Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
	// contains filtered or unexported fields
}

func (*Filesystem) Descriptor deprecated

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

Deprecated: Use Filesystem.ProtoReflect.Descriptor instead.

func (*Filesystem) GetRef

func (x *Filesystem) GetRef() string

func (*Filesystem) ProtoMessage

func (*Filesystem) ProtoMessage()

func (*Filesystem) ProtoReflect

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

func (*Filesystem) Reset

func (x *Filesystem) Reset()

func (*Filesystem) String

func (x *Filesystem) String() string

type Foo

type Foo struct {

	// Types that are assignable to Opt:
	//
	//	*Foo_Opt1
	//	*Foo_Opt2
	Opt isFoo_Opt `protobuf_oneof:"opt"`
	// contains filtered or unexported fields
}

func (*Foo) Descriptor deprecated

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

Deprecated: Use Foo.ProtoReflect.Descriptor instead.

func (*Foo) GetOpt

func (m *Foo) GetOpt() isFoo_Opt

func (*Foo) GetOpt1

func (x *Foo) GetOpt1() *Opt1

func (*Foo) GetOpt2

func (x *Foo) GetOpt2() *Opt2

func (*Foo) ProtoMessage

func (*Foo) ProtoMessage()

func (*Foo) ProtoReflect

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

func (*Foo) Reset

func (x *Foo) Reset()

func (*Foo) String

func (x *Foo) String() string

type Foo_Opt1

type Foo_Opt1 struct {
	Opt1 *Opt1 `protobuf:"bytes,1,opt,name=opt1,proto3,oneof"`
}

type Foo_Opt2

type Foo_Opt2 struct {
	Opt2 *Opt2 `protobuf:"bytes,2,opt,name=opt2,proto3,oneof"`
}

type Host

type Host struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Ip   string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`
	// contains filtered or unexported fields
}

func (*Host) Descriptor deprecated

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

Deprecated: Use Host.ProtoReflect.Descriptor instead.

func (*Host) GetIp

func (x *Host) GetIp() string

func (*Host) GetName

func (x *Host) GetName() string

func (*Host) ProtoMessage

func (*Host) ProtoMessage()

func (*Host) ProtoReflect

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

func (*Host) Reset

func (x *Host) Reset()

func (*Host) String

func (x *Host) String() string

type MessageDelegate

type MessageDelegate interface {
	// Field returns the descriptor for the field that should act as the message
	// delegate and by populated by the YAML node.
	Field() protoreflect.FieldDescriptor

	// MatchedBy returns the method by which a oneof field specified as the
	// message delegate was matched.
	MatchedBy() DelegateMatch
}

MessageDelegate represents information about a message delegate, namely the message field that should be populated by the YAML node.

type NoFields

type NoFields struct {
	// contains filtered or unexported fields
}

func (*NoFields) Descriptor deprecated

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

Deprecated: Use NoFields.ProtoReflect.Descriptor instead.

func (*NoFields) ProtoMessage

func (*NoFields) ProtoMessage()

func (*NoFields) ProtoReflect

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

func (*NoFields) Reset

func (x *NoFields) Reset()

func (*NoFields) String

func (x *NoFields) String() string

type Node

type Node struct {
	*yaml.Node
}

Node encapsulates a yaml.Node and provides methods for parsing YAML nodes into protobuf types

func (*Node) DecodeBytes

func (node *Node) DecodeBytes() (protoreflect.Value, error)

DecodeBytes decodes the YAML node with base64 encoded data and decodes it into a new protoreflect.Value.

func (*Node) DecodeEnum

func (node *Node) DecodeEnum(field protoreflect.FieldDescriptor) (protoreflect.Value, error)

DecodeEnum decodes the YAML node to an enum field.

Rules

## Node is a !!str

  1. Convert the node value to uppercase
  2. Resolve an enum value by name
  3. If not found, try to prefix the node value with upper underscore case version of enum name (e.g. `CACHE_ACCESS_` for `CacheAccess`)
  4. Resolve an enum value by name

## Node is an !!int

  1. Resolve an enum value by number

## Otherwise

  1. Error

func (*Node) DecodeField

func (node *Node) DecodeField(message protoreflect.Message, field protoreflect.FieldDescriptor) error

DecodeField decodes the YAML node into the given field.

Rules

## Field is a map

  1. Decode field using [DecodeMap]

## Field is a list

  1. Decode field using [DecodeList]

## Field is a message

  1. If underlying interface implements Unmarshaler, call UnmarshalProtoYAML on interface.
  2. If underlying interface implements yaml.Unmarshaler, call UnmarshalYAML on interface.
  3. Otherwise, recurse on field's protoreflect.Message with [DecodeMessage].

## Field is an enum

  1. Decode field using [DecodeEnum].

## Otherwise

  1. Decode field using [DecodeScalar].

func (*Node) DecodeList

func (node *Node) DecodeList(field protoreflect.FieldDescriptor, list protoreflect.List) error

DecodeList decodes the YAML node to a mutable repeated (list) value.

Rules

## Node is a sequence

  1. Decode each content node to a new list value and append.

## Otherwise, error

func (*Node) DecodeMap

func (node *Node) DecodeMap(field protoreflect.FieldDescriptor, mmap protoreflect.Map) error

DecodeMap decodes the YAML node to a mutable repeated (map) value.

Rules

## Node is a map

  1. Decode each content node pair into a key/value and append the map.

## Otherwise, error

func (*Node) DecodeMessage

func (node *Node) DecodeMessage(message protoreflect.Message) error

DecodeMessage decodes the current YAML node into the given protoreflect.Message.

#Rules

## Message contains no fields

  1. Discard node

## Message contains a `protoyaml.delegate` option

  1. Resolve delegate
  2. Decode to delegate field using [DecodeField]

## Message contains single field called `value`

  1. Assume a wrapper message type
  2. Decode this node to single field

## Mapping

  1. Iterate over node pairs.
  2. Replace `-` in key name with `_`. Note case is not converted.
  3. Match key to message fields by name.
  4. Check oneof encapsulated fields first, disregarding oneof name.
  5. Check other fields next.
  6. Upon a match, decode pair value node to field. See [DecodeField] for field rules.

## Other

  1. Discard node

func (*Node) DecodeProto

func (node *Node) DecodeProto(pm proto.Message) error

DecodeProto decodes the current YAML node into the given proto.Message implementation. See [DecodeMessage] for parsing rules.

func (*Node) DecodeScalar

func (node *Node) DecodeScalar(kind protoreflect.Kind) (protoreflect.Value, error)

DecodeScalar decodes the YAML node to a new scalar protoreflect.Value.

func (*Node) Entry

func (node *Node) Entry(key string) (*Node, error)

Entry returns a single entry of a YAML mapping node

func (*Node) Errorf

func (node *Node) Errorf(msg string, v ...any) error

Errorf returns an [error] with line/column information from the encapsulated yaml.Node

func (*Node) Keys

func (node *Node) Keys() []*Node

Keys returns all key nodes of the mapping YAML node.

func (*Node) Len

func (node *Node) Len() int

Len returns the _effective_ content length. For YAML mapping nodes, this is the number of entries. For YAML sequence nodes (and all other node types), this is the same as `len(node.Content)`.

func (*Node) MessageDelegate

func (node *Node) MessageDelegate(message protoreflect.Message) MessageDelegate

MessageDelegate returns the field that has been assigned as the message delegate using the `protoyaml.delegate` message option.

Example proto

message Option {
  option (protoyaml.delegate) = "opt";

  oneof opt {
    option (protoyaml.match) = MATCH_FIRST_KEY;

    Host host = 1;
    Cache cache = 2;
  }
}

func (*Node) WithEntry

func (node *Node) WithEntry(key string, fn func(*Node) error) error

WithEntry calls the given function for a single entry in the YAML mapping node

func (*Node) WithPairs

func (node *Node) WithPairs(fn func(i int, k, v *Node) error) error

WithPairs calls the function on each key/value pair in the YAML mapping node. It returns upon the first error returned by the function.

type Op

type Op struct {

	// Types that are assignable to Op:
	//
	//	*Op_Run
	//	*Op_Copy
	Op isOp_Op `protobuf_oneof:"op"`
	// contains filtered or unexported fields
}

func (*Op) Descriptor deprecated

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

Deprecated: Use Op.ProtoReflect.Descriptor instead.

func (*Op) GetCopy

func (x *Op) GetCopy() *Copy

func (*Op) GetOp

func (m *Op) GetOp() isOp_Op

func (*Op) GetRun

func (x *Op) GetRun() *Run

func (*Op) ProtoMessage

func (*Op) ProtoMessage()

func (*Op) ProtoReflect

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

func (*Op) Reset

func (x *Op) Reset()

func (*Op) String

func (x *Op) String() string

type Op_Copy

type Op_Copy struct {
	Copy *Copy `protobuf:"bytes,2,opt,name=copy,proto3,oneof"`
}

type Op_Run

type Op_Run struct {
	Run *Run `protobuf:"bytes,1,opt,name=run,proto3,oneof"`
}

type Opt1

type Opt1 struct {
	Field1 string `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2 string `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
	// contains filtered or unexported fields
}

func (*Opt1) Descriptor deprecated

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

Deprecated: Use Opt1.ProtoReflect.Descriptor instead.

func (*Opt1) GetField1

func (x *Opt1) GetField1() string

func (*Opt1) GetField2

func (x *Opt1) GetField2() string

func (*Opt1) ProtoMessage

func (*Opt1) ProtoMessage()

func (*Opt1) ProtoReflect

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

func (*Opt1) Reset

func (x *Opt1) Reset()

func (*Opt1) String

func (x *Opt1) String() string

type Opt2

type Opt2 struct {
	Field1 string `protobuf:"bytes,1,opt,name=field1,proto3" json:"field1,omitempty"`
	Field2 string `protobuf:"bytes,2,opt,name=field2,proto3" json:"field2,omitempty"`
	Field3 string `protobuf:"bytes,3,opt,name=field3,proto3" json:"field3,omitempty"`
	// contains filtered or unexported fields
}

func (*Opt2) Descriptor deprecated

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

Deprecated: Use Opt2.ProtoReflect.Descriptor instead.

func (*Opt2) GetField1

func (x *Opt2) GetField1() string

func (*Opt2) GetField2

func (x *Opt2) GetField2() string

func (*Opt2) GetField3

func (x *Opt2) GetField3() string

func (*Opt2) ProtoMessage

func (*Opt2) ProtoMessage()

func (*Opt2) ProtoReflect

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

func (*Opt2) Reset

func (x *Opt2) Reset()

func (*Opt2) String

func (x *Opt2) String() string

type Pairs

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

func (*Pairs) Descriptor deprecated

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

Deprecated: Use Pairs.ProtoReflect.Descriptor instead.

func (*Pairs) GetPairs

func (x *Pairs) GetPairs() map[string]string

func (*Pairs) ProtoMessage

func (*Pairs) ProtoMessage()

func (*Pairs) ProtoReflect

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

func (*Pairs) Reset

func (x *Pairs) Reset()

func (*Pairs) String

func (x *Pairs) String() string

type Phrase

type Phrase struct {
	Words []string `protobuf:"bytes,1,rep,name=words,proto3" json:"words,omitempty"`
	// contains filtered or unexported fields
}

func (*Phrase) Descriptor deprecated

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

Deprecated: Use Phrase.ProtoReflect.Descriptor instead.

func (*Phrase) GetWords

func (x *Phrase) GetWords() []string

func (*Phrase) ProtoMessage

func (*Phrase) ProtoMessage()

func (*Phrase) ProtoReflect

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

func (*Phrase) Reset

func (x *Phrase) Reset()

func (*Phrase) String

func (x *Phrase) String() string

type Run

type Run struct {
	Command   string        `protobuf:"bytes,1,opt,name=command,proto3" json:"command,omitempty"`
	Arguments []string      `protobuf:"bytes,2,rep,name=arguments,proto3" json:"arguments,omitempty"`
	Options   []*Run_Option `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"`
	// contains filtered or unexported fields
}

func (*Run) Descriptor deprecated

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

Deprecated: Use Run.ProtoReflect.Descriptor instead.

func (*Run) GetArguments

func (x *Run) GetArguments() []string

func (*Run) GetCommand

func (x *Run) GetCommand() string

func (*Run) GetOptions

func (x *Run) GetOptions() []*Run_Option

func (*Run) ProtoMessage

func (*Run) ProtoMessage()

func (*Run) ProtoReflect

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

func (*Run) Reset

func (x *Run) Reset()

func (*Run) String

func (x *Run) String() string

type Run_Option

type Run_Option struct {

	// Types that are assignable to Opt:
	//
	//	*Run_Option_Host
	//	*Run_Option_Cache
	//	*Run_Option_LongName
	Opt isRun_Option_Opt `protobuf_oneof:"opt"`
	// contains filtered or unexported fields
}

func (*Run_Option) Descriptor deprecated

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

Deprecated: Use Run_Option.ProtoReflect.Descriptor instead.

func (*Run_Option) GetCache

func (x *Run_Option) GetCache() *Cache

func (*Run_Option) GetHost

func (x *Run_Option) GetHost() *Host

func (*Run_Option) GetLongName

func (x *Run_Option) GetLongName() string

func (*Run_Option) GetOpt

func (m *Run_Option) GetOpt() isRun_Option_Opt

func (*Run_Option) ProtoMessage

func (*Run_Option) ProtoMessage()

func (*Run_Option) ProtoReflect

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

func (*Run_Option) Reset

func (x *Run_Option) Reset()

func (*Run_Option) String

func (x *Run_Option) String() string

type Run_Option_Cache

type Run_Option_Cache struct {
	Cache *Cache `protobuf:"bytes,2,opt,name=cache,proto3,oneof"`
}

type Run_Option_Host

type Run_Option_Host struct {
	Host *Host `protobuf:"bytes,1,opt,name=host,proto3,oneof"`
}

type Run_Option_LongName

type Run_Option_LongName struct {
	LongName string `protobuf:"bytes,3,opt,name=long_name,json=longName,proto3,oneof"`
}

type Timestamp

type Timestamp struct {
	Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*Timestamp) Descriptor deprecated

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

Deprecated: Use Timestamp.ProtoReflect.Descriptor instead.

func (*Timestamp) GetValue

func (x *Timestamp) GetValue() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) ProtoReflect

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

func (*Timestamp) Reset

func (x *Timestamp) Reset()

func (*Timestamp) String

func (x *Timestamp) String() string

type Unmarshaler

type Unmarshaler interface {
	UnmarshalProtoYAML(*Node) error
}

Unmarshaler describes an interface that can decode a Node

Jump to

Keyboard shortcuts

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