khifile

package
v0.59.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_khifile_shared_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type InternedListValue

type InternedListValue struct {

	// Repeated field of dynamically typed values.
	Values []*InternedValue `protobuf:"bytes,1,rep,name=values" json:"values,omitempty"`
	// contains filtered or unexported fields
}

`InternedListValue` is a wrapper around a repeated field of values.

func (*InternedListValue) Descriptor deprecated

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

Deprecated: Use InternedListValue.ProtoReflect.Descriptor instead.

func (*InternedListValue) GetValues

func (x *InternedListValue) GetValues() []*InternedValue

func (*InternedListValue) ProtoMessage

func (*InternedListValue) ProtoMessage()

func (*InternedListValue) ProtoReflect

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

func (*InternedListValue) Reset

func (x *InternedListValue) Reset()

func (*InternedListValue) String

func (x *InternedListValue) String() string

type InternedStruct

type InternedStruct struct {

	// The ID of the field path in InterningPoolChunk.
	// A field path is an ordered list of field names (represented as interned string IDs).
	// The `values` array aligns with this field path order.
	//
	// Example:
	// If a JSON object is `{"verb": "create", "user": "alice"}`,
	// the field path would be the list of interned IDs for `["verb", "user"]`.
	// If the IDs for "verb" and "user" are 10 and 11 respectively, the field path is `[10, 11]`.
	// The `values` array would contain the values for "create" and "alice" in that order.
	//
	// Example (Flattened):
	// If a nested JSON object is `{"metadata": {"name": "pod-1", "namespace": "default"}}`,
	// it can be flattened into a single field path `["metadata\0name","metadata\0namespace"]`.
	// If the IDs for "metadata\0name" is 20, and "metadata\0namespace" is 21, the field path is [20, 21].
	// The `values` array would contain the single string value "pod-1".
	FieldPathSetId *uint32 `protobuf:"varint,1,opt,name=field_path_set_id,json=fieldPathSetId" json:"field_path_set_id,omitempty"`
	// Values corresponding to the field path order.
	Values []*InternedValue `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"`
	// Unique ID of the interned struct when stored in InterningPoolChunk.
	Id *uint32 `protobuf:"varint,3,opt,name=id" json:"id,omitempty"`
	// contains filtered or unexported fields
}

`InternedStruct` represents a structured data value, consisting of fields corresponding to a FieldPath.

func (*InternedStruct) Descriptor deprecated

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

Deprecated: Use InternedStruct.ProtoReflect.Descriptor instead.

func (*InternedStruct) GetFieldPathSetId

func (x *InternedStruct) GetFieldPathSetId() uint32

func (*InternedStruct) GetId added in v0.58.0

func (x *InternedStruct) GetId() uint32

func (*InternedStruct) GetValues

func (x *InternedStruct) GetValues() []*InternedValue

func (*InternedStruct) ProtoMessage

func (*InternedStruct) ProtoMessage()

func (*InternedStruct) ProtoReflect

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

func (*InternedStruct) Reset

func (x *InternedStruct) Reset()

func (*InternedStruct) String

func (x *InternedStruct) String() string

type InternedValue

type InternedValue struct {

	// The kind of value.
	//
	// Types that are valid to be assigned to Kind:
	//
	//	*InternedValue_NullValue
	//	*InternedValue_Int64Value
	//	*InternedValue_DoubleValue
	//	*InternedValue_StringValue
	//	*InternedValue_BoolValue
	//	*InternedValue_StructValue
	//	*InternedValue_ListValue
	//	*InternedValue_TimestampValue
	//	*InternedValue_StructId
	Kind isInternedValue_Kind `protobuf_oneof:"kind"`
	// contains filtered or unexported fields
}

`InternedValue` represents a dynamically typed value which can be either null, a number, a string, a boolean, a recursive struct value, or a list of values. A producer of value is expected to set one of these variants. Absence of any variant indicates an error.

func (*InternedValue) Descriptor deprecated

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

Deprecated: Use InternedValue.ProtoReflect.Descriptor instead.

func (*InternedValue) GetBoolValue

func (x *InternedValue) GetBoolValue() bool

func (*InternedValue) GetDoubleValue

func (x *InternedValue) GetDoubleValue() float64

func (*InternedValue) GetInt64Value

func (x *InternedValue) GetInt64Value() int64

func (*InternedValue) GetKind

func (x *InternedValue) GetKind() isInternedValue_Kind

func (*InternedValue) GetListValue

func (x *InternedValue) GetListValue() *InternedListValue

func (*InternedValue) GetNullValue

func (x *InternedValue) GetNullValue() structpb.NullValue

func (*InternedValue) GetStringValue

func (x *InternedValue) GetStringValue() uint32

func (*InternedValue) GetStructId added in v0.58.0

func (x *InternedValue) GetStructId() uint32

func (*InternedValue) GetStructValue

func (x *InternedValue) GetStructValue() *InternedStruct

func (*InternedValue) GetTimestampValue

func (x *InternedValue) GetTimestampValue() *timestamppb.Timestamp

func (*InternedValue) ProtoMessage

func (*InternedValue) ProtoMessage()

func (*InternedValue) ProtoReflect

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

func (*InternedValue) Reset

func (x *InternedValue) Reset()

func (*InternedValue) String

func (x *InternedValue) String() string

type InternedValue_BoolValue

type InternedValue_BoolValue struct {
	// Represents a boolean value.
	BoolValue bool `protobuf:"varint,5,opt,name=bool_value,json=boolValue,oneof"`
}

type InternedValue_DoubleValue

type InternedValue_DoubleValue struct {
	// Represents a double value.
	DoubleValue float64 `protobuf:"fixed64,3,opt,name=double_value,json=doubleValue,oneof"`
}

type InternedValue_Int64Value

type InternedValue_Int64Value struct {
	// Represents a 64 bit signed integer value.
	Int64Value int64 `protobuf:"varint,2,opt,name=int64_value,json=int64Value,oneof"`
}

type InternedValue_ListValue

type InternedValue_ListValue struct {
	// Represents a repeated `InternedValue`.
	ListValue *InternedListValue `protobuf:"bytes,7,opt,name=list_value,json=listValue,oneof"`
}

type InternedValue_NullValue

type InternedValue_NullValue struct {
	// Represents a null value.
	NullValue structpb.NullValue `protobuf:"varint,1,opt,name=null_value,json=nullValue,enum=google.protobuf.NullValue,oneof"`
}

type InternedValue_StringValue

type InternedValue_StringValue struct {
	// Represents a string value.
	StringValue uint32 `protobuf:"varint,4,opt,name=string_value,json=stringValue,oneof"` // the id in InterningPoolChunk.
}

type InternedValue_StructId added in v0.58.0

type InternedValue_StructId struct {
	// Represents an interned struct ID in InterningPoolChunk.
	StructId uint32 `protobuf:"varint,9,opt,name=struct_id,json=structId,oneof"`
}

type InternedValue_StructValue

type InternedValue_StructValue struct {
	// Represents a structured value (deprecated in favor of struct_id).
	StructValue *InternedStruct `protobuf:"bytes,6,opt,name=struct_value,json=structValue,oneof"`
}

type InternedValue_TimestampValue

type InternedValue_TimestampValue struct {
	// Represents a timestamp value.
	TimestampValue *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp_value,json=timestampValue,oneof"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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