Documentation ¶
Index ¶
- Variables
- type IntOrString
- func (*IntOrString) Descriptor() ([]byte, []int)
- func (m *IntOrString) GetIntVal() int32
- func (m *IntOrString) GetStrVal() string
- func (m *IntOrString) GetType() int64
- func (m *IntOrString) Marshal() (dAtA []byte, err error)
- func (m *IntOrString) MarshalTo(dAtA []byte) (int, error)
- func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IntOrString) ProtoMessage()
- func (m *IntOrString) Reset()
- func (m *IntOrString) Size() (n int)
- func (m *IntOrString) String() string
- func (m *IntOrString) Unmarshal(dAtA []byte) error
- func (m *IntOrString) XXX_DiscardUnknown()
- func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IntOrString) XXX_Merge(src proto.Message)
- func (m *IntOrString) XXX_Size() int
- func (m *IntOrString) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type IntOrString ¶
type IntOrString struct { Type *int64 `protobuf:"varint,1,opt,name=type" json:"type,omitempty"` IntVal *int32 `protobuf:"varint,2,opt,name=intVal" json:"intVal,omitempty"` StrVal *string `protobuf:"bytes,3,opt,name=strVal" json:"strVal,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. TODO: Rename to Int32OrString
+protobuf=true +protobuf.options.(gogoproto.goproto_stringer)=false +k8s:openapi-gen=true
func (*IntOrString) Descriptor ¶
func (*IntOrString) Descriptor() ([]byte, []int)
func (*IntOrString) GetIntVal ¶
func (m *IntOrString) GetIntVal() int32
func (*IntOrString) GetStrVal ¶
func (m *IntOrString) GetStrVal() string
func (*IntOrString) GetType ¶
func (m *IntOrString) GetType() int64
func (*IntOrString) Marshal ¶
func (m *IntOrString) Marshal() (dAtA []byte, err error)
func (*IntOrString) MarshalToSizedBuffer ¶ added in v1.2.1
func (m *IntOrString) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IntOrString) ProtoMessage ¶
func (*IntOrString) ProtoMessage()
func (*IntOrString) Reset ¶
func (m *IntOrString) Reset()
func (*IntOrString) Size ¶
func (m *IntOrString) Size() (n int)
func (*IntOrString) String ¶
func (m *IntOrString) String() string
func (*IntOrString) Unmarshal ¶
func (m *IntOrString) Unmarshal(dAtA []byte) error
func (*IntOrString) XXX_DiscardUnknown ¶ added in v1.2.1
func (m *IntOrString) XXX_DiscardUnknown()
func (*IntOrString) XXX_Marshal ¶ added in v1.2.1
func (m *IntOrString) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IntOrString) XXX_Merge ¶ added in v1.2.1
func (m *IntOrString) XXX_Merge(src proto.Message)
func (*IntOrString) XXX_Size ¶ added in v1.2.1
func (m *IntOrString) XXX_Size() int
func (*IntOrString) XXX_Unmarshal ¶ added in v1.2.1
func (m *IntOrString) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.