Versions in this module Expand all Collapse all v0 v0.22.3 Sep 17, 2021 Changes in this version + var ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") + func GetScaledValueFromIntOrPercent(intOrPercent *IntOrString, total int, roundUp bool) (int, error) + func GetValueFromIntOrPercent(intOrPercent *IntOrString, total int, roundUp bool) (int, error) + type IntOrString struct + IntVal int32 + StrVal string + Type Type + func FromInt(val int) IntOrString + func FromString(val string) IntOrString + func Parse(val string) IntOrString + func ValueOrDefault(intOrPercent *IntOrString, defaultValue IntOrString) *IntOrString + func (*IntOrString) Descriptor() ([]byte, []int) + func (*IntOrString) ProtoMessage() + func (IntOrString) OpenAPISchemaFormat() string + func (IntOrString) OpenAPISchemaType() []string + func (intstr *IntOrString) Fuzz(c fuzz.Continue) + func (intstr *IntOrString) IntValue() int + func (intstr *IntOrString) String() string + func (intstr *IntOrString) UnmarshalJSON(value []byte) error + func (intstr IntOrString) MarshalJSON() ([]byte, error) + 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 (m *IntOrString) Reset() + func (m *IntOrString) Size() (n int) + 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 + type Type int64 + const Int + const String