types

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UpdateMode_name = map[int32]string{
		0: "PUT",
		1: "PATCH",
	}
	UpdateMode_value = map[string]int32{
		"PUT":   0,
		"PATCH": 1,
	}
)

Enum value maps for UpdateMode.

View Source
var File_common_types_types_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type UpdateMode

type UpdateMode int32
const (
	UpdateMode_PUT   UpdateMode = 0
	UpdateMode_PATCH UpdateMode = 1
)

func ParseUpdateModeFromString

func ParseUpdateModeFromString(str string) (UpdateMode, error)

ParseUpdateModeFromString Parse UpdateMode from string

func (UpdateMode) Descriptor

func (UpdateMode) Descriptor() protoreflect.EnumDescriptor

func (UpdateMode) Enum

func (x UpdateMode) Enum() *UpdateMode

func (UpdateMode) EnumDescriptor deprecated

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

Deprecated: Use UpdateMode.Descriptor instead.

func (UpdateMode) Equal

func (t UpdateMode) Equal(target UpdateMode) bool

Equal type compare

func (UpdateMode) IsIn

func (t UpdateMode) IsIn(targets ...UpdateMode) bool

IsIn todo

func (UpdateMode) MarshalJSON

func (t UpdateMode) MarshalJSON() ([]byte, error)

MarshalJSON todo

func (UpdateMode) Number

func (x UpdateMode) Number() protoreflect.EnumNumber

func (UpdateMode) String

func (x UpdateMode) String() string

func (UpdateMode) Type

func (*UpdateMode) UnmarshalJSON

func (t *UpdateMode) UnmarshalJSON(b []byte) error

UnmarshalJSON todo

Jump to

Keyboard shortcuts

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