diff --git a/engine/cli/src/commands.rs b/engine/cli/src/commands.rs index 71678807cb..b2e795e191 100644 --- a/engine/cli/src/commands.rs +++ b/engine/cli/src/commands.rs @@ -60,40 +60,61 @@ impl RuntimeCli { args.from = BamlRuntime::parse_baml_src_path(&args.from)?; match args.run(defaults) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } } } Commands::Init(args) => match args.run(defaults) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } }, Commands::Serve(args) => { args.from = BamlRuntime::parse_baml_src_path(&args.from)?; match args.run() { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } } } Commands::Dev(args) => { args.from = BamlRuntime::parse_baml_src_path(&args.from)?; match args.run(defaults) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } } } Commands::Auth(args) => match t.block_on(async { args.run_async().await }) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } }, Commands::Login(args) => match t.block_on(async { args.run_async().await }) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } }, Commands::Deploy(args) => { args.from = BamlRuntime::parse_baml_src_path(&args.from)?; match t.block_on(async { args.run_async().await }) { Ok(()) => Ok(crate::ExitCode::Success), - Err(_) => Ok(crate::ExitCode::Other), + Err(e) => { + eprintln!("Error: {e}"); + Ok(crate::ExitCode::Other) + } } } Commands::Format(args) => { diff --git a/engine/language_client_codegen/src/version_check.rs b/engine/language_client_codegen/src/version_check.rs index 99267da4e5..3b2955df08 100644 --- a/engine/language_client_codegen/src/version_check.rs +++ b/engine/language_client_codegen/src/version_check.rs @@ -101,7 +101,7 @@ pub fn check_version( let update_instruction = match generator_language { GeneratorOutputType::OpenApi => format!("use 'npx @boundaryml/baml@{gen_version}'"), GeneratorOutputType::PythonPydantic | GeneratorOutputType::PythonPydanticV1 => { - format!("pip install --upgrade baml-py=={gen_version}") + format!("pip install --upgrade baml-py=={gen_version}, or uv add baml-py=={gen_version}") } GeneratorOutputType::Typescript => { format!("npm install --save-dev @boundaryml/baml@{gen_version}") diff --git a/engine/language_client_go/pkg/cffi/cffi.pb.go b/engine/language_client_go/pkg/cffi/cffi.pb.go index c7fd7ee27d..699bad697b 100644 --- a/engine/language_client_go/pkg/cffi/cffi.pb.go +++ b/engine/language_client_go/pkg/cffi/cffi.pb.go @@ -1,6 +1,6 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.36.6 +// protoc-gen-go v1.33.0 // protoc v5.28.2 // source: types/cffi.proto @@ -11,7 +11,6 @@ import ( protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" - unsafe "unsafe" ) const ( @@ -166,7 +165,10 @@ func (CFFIStreamState) EnumDescriptor() ([]byte, []int) { // The wrapper message for CFFIValue. type CFFIValueHolder struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + // we must include this because we might be a "string" // but in a container type like (string | int) and some languages // require we decode this. @@ -174,7 +176,7 @@ type CFFIValueHolder struct { // Required for BAML -> CFFI // But not for CFFI -> BAML (BAML always does type validation again at boundaries) // - // Types that are valid to be assigned to Value: + // Types that are assignable to Value: // // *CFFIValueHolder_NullValue // *CFFIValueHolder_StringValue @@ -190,17 +192,17 @@ type CFFIValueHolder struct { // *CFFIValueHolder_UnionVariantValue // *CFFIValueHolder_CheckedValue // *CFFIValueHolder_StreamingStateValue - Value isCFFIValueHolder_Value `protobuf_oneof:"value"` - Type *CFFIFieldTypeHolder `protobuf:"bytes,16,opt,name=type,proto3" json:"type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Value isCFFIValueHolder_Value `protobuf_oneof:"value"` + Type *CFFIFieldTypeHolder `protobuf:"bytes,16,opt,name=type,proto3" json:"type,omitempty"` } func (x *CFFIValueHolder) Reset() { *x = CFFIValueHolder{} - mi := &file_types_cffi_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueHolder) String() string { @@ -211,7 +213,7 @@ func (*CFFIValueHolder) ProtoMessage() {} func (x *CFFIValueHolder) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[0] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -226,135 +228,107 @@ func (*CFFIValueHolder) Descriptor() ([]byte, []int) { return file_types_cffi_proto_rawDescGZIP(), []int{0} } -func (x *CFFIValueHolder) GetValue() isCFFIValueHolder_Value { - if x != nil { - return x.Value +func (m *CFFIValueHolder) GetValue() isCFFIValueHolder_Value { + if m != nil { + return m.Value } return nil } func (x *CFFIValueHolder) GetNullValue() *CFFIValueNull { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_NullValue); ok { - return x.NullValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_NullValue); ok { + return x.NullValue } return nil } func (x *CFFIValueHolder) GetStringValue() string { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_StringValue); ok { - return x.StringValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_StringValue); ok { + return x.StringValue } return "" } func (x *CFFIValueHolder) GetIntValue() int64 { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_IntValue); ok { - return x.IntValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_IntValue); ok { + return x.IntValue } return 0 } func (x *CFFIValueHolder) GetFloatValue() float64 { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_FloatValue); ok { - return x.FloatValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_FloatValue); ok { + return x.FloatValue } return 0 } func (x *CFFIValueHolder) GetBoolValue() bool { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_BoolValue); ok { - return x.BoolValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_BoolValue); ok { + return x.BoolValue } return false } func (x *CFFIValueHolder) GetListValue() *CFFIValueList { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_ListValue); ok { - return x.ListValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_ListValue); ok { + return x.ListValue } return nil } func (x *CFFIValueHolder) GetMapValue() *CFFIValueMap { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_MapValue); ok { - return x.MapValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_MapValue); ok { + return x.MapValue } return nil } func (x *CFFIValueHolder) GetClassValue() *CFFIValueClass { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_ClassValue); ok { - return x.ClassValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_ClassValue); ok { + return x.ClassValue } return nil } func (x *CFFIValueHolder) GetEnumValue() *CFFIValueEnum { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_EnumValue); ok { - return x.EnumValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_EnumValue); ok { + return x.EnumValue } return nil } func (x *CFFIValueHolder) GetMediaValue() *CFFIValueMedia { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_MediaValue); ok { - return x.MediaValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_MediaValue); ok { + return x.MediaValue } return nil } func (x *CFFIValueHolder) GetTupleValue() *CFFIValueTuple { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_TupleValue); ok { - return x.TupleValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_TupleValue); ok { + return x.TupleValue } return nil } func (x *CFFIValueHolder) GetUnionVariantValue() *CFFIValueUnionVariant { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_UnionVariantValue); ok { - return x.UnionVariantValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_UnionVariantValue); ok { + return x.UnionVariantValue } return nil } func (x *CFFIValueHolder) GetCheckedValue() *CFFIValueChecked { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_CheckedValue); ok { - return x.CheckedValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_CheckedValue); ok { + return x.CheckedValue } return nil } func (x *CFFIValueHolder) GetStreamingStateValue() *CFFIValueStreamingState { - if x != nil { - if x, ok := x.Value.(*CFFIValueHolder_StreamingStateValue); ok { - return x.StreamingStateValue - } + if x, ok := x.GetValue().(*CFFIValueHolder_StreamingStateValue); ok { + return x.StreamingStateValue } return nil } @@ -456,19 +430,22 @@ func (*CFFIValueHolder_StreamingStateValue) isCFFIValueHolder_Value() {} // wrapper for the name of a type type CFFITypeName struct { - state protoimpl.MessageState `protogen:"open.v1"` - Namespace CFFITypeNamespace `protobuf:"varint,1,opt,name=namespace,proto3,enum=baml.cffi.CFFITypeNamespace" json:"namespace,omitempty"` - // the name of the type - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Namespace CFFITypeNamespace `protobuf:"varint,1,opt,name=namespace,proto3,enum=baml.cffi.CFFITypeNamespace" json:"namespace,omitempty"` + // the name of the type + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` } func (x *CFFITypeName) Reset() { *x = CFFITypeName{} - mi := &file_types_cffi_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFITypeName) String() string { @@ -479,7 +456,7 @@ func (*CFFITypeName) ProtoMessage() {} func (x *CFFITypeName) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[1] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -509,16 +486,18 @@ func (x *CFFITypeName) GetName() string { } type CFFIValueNull struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIValueNull) Reset() { *x = CFFIValueNull{} - mi := &file_types_cffi_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueNull) String() string { @@ -529,7 +508,7 @@ func (*CFFIValueNull) ProtoMessage() {} func (x *CFFIValueNull) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[2] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -546,18 +525,21 @@ func (*CFFIValueNull) Descriptor() ([]byte, []int) { // Each variant as a message. type CFFIValueList struct { - state protoimpl.MessageState `protogen:"open.v1"` - ValueType *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` - Values []*CFFIValueHolder `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + ValueType *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` + Values []*CFFIValueHolder `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` } func (x *CFFIValueList) Reset() { *x = CFFIValueList{} - mi := &file_types_cffi_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueList) String() string { @@ -568,7 +550,7 @@ func (*CFFIValueList) ProtoMessage() {} func (x *CFFIValueList) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[3] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -599,18 +581,21 @@ func (x *CFFIValueList) GetValues() []*CFFIValueHolder { // A helper message to represent map entries (used also in Class). type CFFIMapEntry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *CFFIValueHolder `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *CFFIValueHolder `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFIMapEntry) Reset() { *x = CFFIMapEntry{} - mi := &file_types_cffi_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIMapEntry) String() string { @@ -621,7 +606,7 @@ func (*CFFIMapEntry) ProtoMessage() {} func (x *CFFIMapEntry) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[4] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -651,19 +636,22 @@ func (x *CFFIMapEntry) GetValue() *CFFIValueHolder { } type CFFIValueMap struct { - state protoimpl.MessageState `protogen:"open.v1"` - KeyType *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` - ValueType *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` - Entries []*CFFIMapEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + KeyType *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=key_type,json=keyType,proto3" json:"key_type,omitempty"` + ValueType *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"` + Entries []*CFFIMapEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` } func (x *CFFIValueMap) Reset() { *x = CFFIValueMap{} - mi := &file_types_cffi_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueMap) String() string { @@ -674,7 +662,7 @@ func (*CFFIValueMap) ProtoMessage() {} func (x *CFFIValueMap) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[5] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -711,19 +699,22 @@ func (x *CFFIValueMap) GetEntries() []*CFFIMapEntry { } type CFFIValueClass struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Fields []*CFFIMapEntry `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` - DynamicFields []*CFFIMapEntry `protobuf:"bytes,3,rep,name=dynamic_fields,json=dynamicFields,proto3" json:"dynamic_fields,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Fields []*CFFIMapEntry `protobuf:"bytes,2,rep,name=fields,proto3" json:"fields,omitempty"` + DynamicFields []*CFFIMapEntry `protobuf:"bytes,3,rep,name=dynamic_fields,json=dynamicFields,proto3" json:"dynamic_fields,omitempty"` } func (x *CFFIValueClass) Reset() { *x = CFFIValueClass{} - mi := &file_types_cffi_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueClass) String() string { @@ -734,7 +725,7 @@ func (*CFFIValueClass) ProtoMessage() {} func (x *CFFIValueClass) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[6] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -771,19 +762,22 @@ func (x *CFFIValueClass) GetDynamicFields() []*CFFIMapEntry { } type CFFIValueEnum struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - IsDynamic bool `protobuf:"varint,3,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + IsDynamic bool `protobuf:"varint,3,opt,name=is_dynamic,json=isDynamic,proto3" json:"is_dynamic,omitempty"` } func (x *CFFIValueEnum) Reset() { *x = CFFIValueEnum{} - mi := &file_types_cffi_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueEnum) String() string { @@ -794,7 +788,7 @@ func (*CFFIValueEnum) ProtoMessage() {} func (x *CFFIValueEnum) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[7] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -831,18 +825,21 @@ func (x *CFFIValueEnum) GetIsDynamic() bool { } type CFFIValueMedia struct { - state protoimpl.MessageState `protogen:"open.v1"` - MediaType *CFFIFieldTypeMedia `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` - MediaValue *CFFIMediaValue `protobuf:"bytes,2,opt,name=media_value,json=mediaValue,proto3" json:"media_value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + MediaType *CFFIFieldTypeMedia `protobuf:"bytes,1,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"` + MediaValue *CFFIMediaValue `protobuf:"bytes,2,opt,name=media_value,json=mediaValue,proto3" json:"media_value,omitempty"` } func (x *CFFIValueMedia) Reset() { *x = CFFIValueMedia{} - mi := &file_types_cffi_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueMedia) String() string { @@ -853,7 +850,7 @@ func (*CFFIValueMedia) ProtoMessage() {} func (x *CFFIValueMedia) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[8] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -883,17 +880,20 @@ func (x *CFFIValueMedia) GetMediaValue() *CFFIMediaValue { } type CFFIValueTuple struct { - state protoimpl.MessageState `protogen:"open.v1"` - Values []*CFFIValueHolder `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Values []*CFFIValueHolder `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` } func (x *CFFIValueTuple) Reset() { *x = CFFIValueTuple{} - mi := &file_types_cffi_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueTuple) String() string { @@ -904,7 +904,7 @@ func (*CFFIValueTuple) ProtoMessage() {} func (x *CFFIValueTuple) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[9] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -928,21 +928,24 @@ func (x *CFFIValueTuple) GetValues() []*CFFIValueHolder { // For the Rust variant `Union(Vec, Box)` type CFFIValueUnionVariant struct { - state protoimpl.MessageState `protogen:"open.v1"` + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` VariantName string `protobuf:"bytes,2,opt,name=variant_name,json=variantName,proto3" json:"variant_name,omitempty"` FieldTypes []*CFFIFieldTypeHolder `protobuf:"bytes,3,rep,name=field_types,json=fieldTypes,proto3" json:"field_types,omitempty"` ValueTypeIndex int32 `protobuf:"varint,4,opt,name=value_type_index,json=valueTypeIndex,proto3" json:"value_type_index,omitempty"` Value *CFFIValueHolder `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache } func (x *CFFIValueUnionVariant) Reset() { *x = CFFIValueUnionVariant{} - mi := &file_types_cffi_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueUnionVariant) String() string { @@ -953,7 +956,7 @@ func (*CFFIValueUnionVariant) ProtoMessage() {} func (x *CFFIValueUnionVariant) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[10] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1004,18 +1007,21 @@ func (x *CFFIValueUnionVariant) GetValue() *CFFIValueHolder { } type CFFIValueChecked struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value *CFFIValueHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Checks []*CFFICheckValue `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *CFFIValueHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Checks []*CFFICheckValue `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"` } func (x *CFFIValueChecked) Reset() { *x = CFFIValueChecked{} - mi := &file_types_cffi_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueChecked) String() string { @@ -1026,7 +1032,7 @@ func (*CFFIValueChecked) ProtoMessage() {} func (x *CFFIValueChecked) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[11] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1056,17 +1062,20 @@ func (x *CFFIValueChecked) GetChecks() []*CFFICheckValue { } type CFFIMediaContentUrl struct { - state protoimpl.MessageState `protogen:"open.v1"` - Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` } func (x *CFFIMediaContentUrl) Reset() { *x = CFFIMediaContentUrl{} - mi := &file_types_cffi_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIMediaContentUrl) String() string { @@ -1077,7 +1086,7 @@ func (*CFFIMediaContentUrl) ProtoMessage() {} func (x *CFFIMediaContentUrl) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[12] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1100,17 +1109,20 @@ func (x *CFFIMediaContentUrl) GetUrl() string { } type CFFIMediaContentBase64 struct { - state protoimpl.MessageState `protogen:"open.v1"` - Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` } func (x *CFFIMediaContentBase64) Reset() { *x = CFFIMediaContentBase64{} - mi := &file_types_cffi_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIMediaContentBase64) String() string { @@ -1121,7 +1133,7 @@ func (*CFFIMediaContentBase64) ProtoMessage() {} func (x *CFFIMediaContentBase64) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[13] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1144,17 +1156,20 @@ func (x *CFFIMediaContentBase64) GetData() string { } type CFFIMediaContentFile struct { - state protoimpl.MessageState `protogen:"open.v1"` - Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` } func (x *CFFIMediaContentFile) Reset() { *x = CFFIMediaContentFile{} - mi := &file_types_cffi_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIMediaContentFile) String() string { @@ -1165,7 +1180,7 @@ func (*CFFIMediaContentFile) ProtoMessage() {} func (x *CFFIMediaContentFile) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[14] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1188,23 +1203,26 @@ func (x *CFFIMediaContentFile) GetPath() string { } type CFFIMediaValue struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Content: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Content: // // *CFFIMediaValue_UrlContent // *CFFIMediaValue_Base64Content // *CFFIMediaValue_FileContent - Content isCFFIMediaValue_Content `protobuf_oneof:"content"` - MimeType *string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3,oneof" json:"mime_type,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Content isCFFIMediaValue_Content `protobuf_oneof:"content"` + MimeType *string `protobuf:"bytes,4,opt,name=mime_type,json=mimeType,proto3,oneof" json:"mime_type,omitempty"` } func (x *CFFIMediaValue) Reset() { *x = CFFIMediaValue{} - mi := &file_types_cffi_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIMediaValue) String() string { @@ -1215,7 +1233,7 @@ func (*CFFIMediaValue) ProtoMessage() {} func (x *CFFIMediaValue) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[15] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1230,36 +1248,30 @@ func (*CFFIMediaValue) Descriptor() ([]byte, []int) { return file_types_cffi_proto_rawDescGZIP(), []int{15} } -func (x *CFFIMediaValue) GetContent() isCFFIMediaValue_Content { - if x != nil { - return x.Content +func (m *CFFIMediaValue) GetContent() isCFFIMediaValue_Content { + if m != nil { + return m.Content } return nil } func (x *CFFIMediaValue) GetUrlContent() *CFFIMediaContentUrl { - if x != nil { - if x, ok := x.Content.(*CFFIMediaValue_UrlContent); ok { - return x.UrlContent - } + if x, ok := x.GetContent().(*CFFIMediaValue_UrlContent); ok { + return x.UrlContent } return nil } func (x *CFFIMediaValue) GetBase64Content() *CFFIMediaContentBase64 { - if x != nil { - if x, ok := x.Content.(*CFFIMediaValue_Base64Content); ok { - return x.Base64Content - } + if x, ok := x.GetContent().(*CFFIMediaValue_Base64Content); ok { + return x.Base64Content } return nil } func (x *CFFIMediaValue) GetFileContent() *CFFIMediaContentFile { - if x != nil { - if x, ok := x.Content.(*CFFIMediaValue_FileContent); ok { - return x.FileContent - } + if x, ok := x.GetContent().(*CFFIMediaValue_FileContent); ok { + return x.FileContent } return nil } @@ -1295,8 +1307,11 @@ func (*CFFIMediaValue_FileContent) isCFFIMediaValue_Content() {} // The wrapper message for CFFIFieldType. type CFFIFieldTypeHolder struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Type: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Type: // // *CFFIFieldTypeHolder_StringType // *CFFIFieldTypeHolder_IntType @@ -1315,16 +1330,16 @@ type CFFIFieldTypeHolder struct { // *CFFIFieldTypeHolder_OptionalType // *CFFIFieldTypeHolder_CheckedType // *CFFIFieldTypeHolder_StreamStateType - Type isCFFIFieldTypeHolder_Type `protobuf_oneof:"type"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Type isCFFIFieldTypeHolder_Type `protobuf_oneof:"type"` } func (x *CFFIFieldTypeHolder) Reset() { *x = CFFIFieldTypeHolder{} - mi := &file_types_cffi_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeHolder) String() string { @@ -1335,7 +1350,7 @@ func (*CFFIFieldTypeHolder) ProtoMessage() {} func (x *CFFIFieldTypeHolder) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[16] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1350,162 +1365,128 @@ func (*CFFIFieldTypeHolder) Descriptor() ([]byte, []int) { return file_types_cffi_proto_rawDescGZIP(), []int{16} } -func (x *CFFIFieldTypeHolder) GetType() isCFFIFieldTypeHolder_Type { - if x != nil { - return x.Type +func (m *CFFIFieldTypeHolder) GetType() isCFFIFieldTypeHolder_Type { + if m != nil { + return m.Type } return nil } func (x *CFFIFieldTypeHolder) GetStringType() *CFFIFieldTypeString { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_StringType); ok { - return x.StringType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_StringType); ok { + return x.StringType } return nil } func (x *CFFIFieldTypeHolder) GetIntType() *CFFIFieldTypeInt { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_IntType); ok { - return x.IntType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_IntType); ok { + return x.IntType } return nil } func (x *CFFIFieldTypeHolder) GetFloatType() *CFFIFieldTypeFloat { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_FloatType); ok { - return x.FloatType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_FloatType); ok { + return x.FloatType } return nil } func (x *CFFIFieldTypeHolder) GetBoolType() *CFFIFieldTypeBool { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_BoolType); ok { - return x.BoolType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_BoolType); ok { + return x.BoolType } return nil } func (x *CFFIFieldTypeHolder) GetNullType() *CFFIFieldTypeNull { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_NullType); ok { - return x.NullType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_NullType); ok { + return x.NullType } return nil } func (x *CFFIFieldTypeHolder) GetLiteralType() *CFFIFieldTypeLiteral { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_LiteralType); ok { - return x.LiteralType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_LiteralType); ok { + return x.LiteralType } return nil } func (x *CFFIFieldTypeHolder) GetMediaType() *CFFIFieldTypeMedia { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_MediaType); ok { - return x.MediaType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_MediaType); ok { + return x.MediaType } return nil } func (x *CFFIFieldTypeHolder) GetEnumType() *CFFIFieldTypeEnum { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_EnumType); ok { - return x.EnumType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_EnumType); ok { + return x.EnumType } return nil } func (x *CFFIFieldTypeHolder) GetClassType() *CFFIFieldTypeClass { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_ClassType); ok { - return x.ClassType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_ClassType); ok { + return x.ClassType } return nil } func (x *CFFIFieldTypeHolder) GetTypeAliasType() *CFFIFieldTypeTypeAlias { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_TypeAliasType); ok { - return x.TypeAliasType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_TypeAliasType); ok { + return x.TypeAliasType } return nil } func (x *CFFIFieldTypeHolder) GetListType() *CFFIFieldTypeList { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_ListType); ok { - return x.ListType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_ListType); ok { + return x.ListType } return nil } func (x *CFFIFieldTypeHolder) GetMapType() *CFFIFieldTypeMap { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_MapType); ok { - return x.MapType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_MapType); ok { + return x.MapType } return nil } func (x *CFFIFieldTypeHolder) GetTupleType() *CFFIFieldTypeTuple { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_TupleType); ok { - return x.TupleType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_TupleType); ok { + return x.TupleType } return nil } func (x *CFFIFieldTypeHolder) GetUnionVariantType() *CFFIFieldTypeUnionVariant { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_UnionVariantType); ok { - return x.UnionVariantType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_UnionVariantType); ok { + return x.UnionVariantType } return nil } func (x *CFFIFieldTypeHolder) GetOptionalType() *CFFIFieldTypeOptional { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_OptionalType); ok { - return x.OptionalType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_OptionalType); ok { + return x.OptionalType } return nil } func (x *CFFIFieldTypeHolder) GetCheckedType() *CFFIFieldTypeChecked { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_CheckedType); ok { - return x.CheckedType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_CheckedType); ok { + return x.CheckedType } return nil } func (x *CFFIFieldTypeHolder) GetStreamStateType() *CFFIFieldTypeStreamState { - if x != nil { - if x, ok := x.Type.(*CFFIFieldTypeHolder_StreamStateType); ok { - return x.StreamStateType - } + if x, ok := x.GetType().(*CFFIFieldTypeHolder_StreamStateType); ok { + return x.StreamStateType } return nil } @@ -1618,16 +1599,18 @@ func (*CFFIFieldTypeHolder_StreamStateType) isCFFIFieldTypeHolder_Type() {} // Simple marker messages for primitive types. type CFFIFieldTypeString struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIFieldTypeString) Reset() { *x = CFFIFieldTypeString{} - mi := &file_types_cffi_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeString) String() string { @@ -1638,7 +1621,7 @@ func (*CFFIFieldTypeString) ProtoMessage() {} func (x *CFFIFieldTypeString) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[17] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1654,16 +1637,18 @@ func (*CFFIFieldTypeString) Descriptor() ([]byte, []int) { } type CFFIFieldTypeInt struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIFieldTypeInt) Reset() { *x = CFFIFieldTypeInt{} - mi := &file_types_cffi_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeInt) String() string { @@ -1674,7 +1659,7 @@ func (*CFFIFieldTypeInt) ProtoMessage() {} func (x *CFFIFieldTypeInt) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[18] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1690,16 +1675,18 @@ func (*CFFIFieldTypeInt) Descriptor() ([]byte, []int) { } type CFFIFieldTypeFloat struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIFieldTypeFloat) Reset() { *x = CFFIFieldTypeFloat{} - mi := &file_types_cffi_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeFloat) String() string { @@ -1710,7 +1697,7 @@ func (*CFFIFieldTypeFloat) ProtoMessage() {} func (x *CFFIFieldTypeFloat) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[19] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1726,16 +1713,18 @@ func (*CFFIFieldTypeFloat) Descriptor() ([]byte, []int) { } type CFFIFieldTypeBool struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIFieldTypeBool) Reset() { *x = CFFIFieldTypeBool{} - mi := &file_types_cffi_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeBool) String() string { @@ -1746,7 +1735,7 @@ func (*CFFIFieldTypeBool) ProtoMessage() {} func (x *CFFIFieldTypeBool) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[20] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1762,16 +1751,18 @@ func (*CFFIFieldTypeBool) Descriptor() ([]byte, []int) { } type CFFIFieldTypeNull struct { - state protoimpl.MessageState `protogen:"open.v1"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields } func (x *CFFIFieldTypeNull) Reset() { *x = CFFIFieldTypeNull{} - mi := &file_types_cffi_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeNull) String() string { @@ -1782,7 +1773,7 @@ func (*CFFIFieldTypeNull) ProtoMessage() {} func (x *CFFIFieldTypeNull) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[21] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1799,17 +1790,20 @@ func (*CFFIFieldTypeNull) Descriptor() ([]byte, []int) { // Literal: wraps a literal oneof. type CFFILiteralString struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFILiteralString) Reset() { *x = CFFILiteralString{} - mi := &file_types_cffi_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFILiteralString) String() string { @@ -1820,7 +1814,7 @@ func (*CFFILiteralString) ProtoMessage() {} func (x *CFFILiteralString) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[22] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1843,17 +1837,20 @@ func (x *CFFILiteralString) GetValue() string { } type CFFILiteralInt struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value int64 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFILiteralInt) Reset() { *x = CFFILiteralInt{} - mi := &file_types_cffi_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFILiteralInt) String() string { @@ -1864,7 +1861,7 @@ func (*CFFILiteralInt) ProtoMessage() {} func (x *CFFILiteralInt) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[23] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1887,17 +1884,20 @@ func (x *CFFILiteralInt) GetValue() int64 { } type CFFILiteralBool struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFILiteralBool) Reset() { *x = CFFILiteralBool{} - mi := &file_types_cffi_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFILiteralBool) String() string { @@ -1908,7 +1908,7 @@ func (*CFFILiteralBool) ProtoMessage() {} func (x *CFFILiteralBool) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[24] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1931,22 +1931,25 @@ func (x *CFFILiteralBool) GetValue() bool { } type CFFIFieldTypeLiteral struct { - state protoimpl.MessageState `protogen:"open.v1"` - // Types that are valid to be assigned to Literal: + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Types that are assignable to Literal: // // *CFFIFieldTypeLiteral_StringLiteral // *CFFIFieldTypeLiteral_IntLiteral // *CFFIFieldTypeLiteral_BoolLiteral - Literal isCFFIFieldTypeLiteral_Literal `protobuf_oneof:"literal"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + Literal isCFFIFieldTypeLiteral_Literal `protobuf_oneof:"literal"` } func (x *CFFIFieldTypeLiteral) Reset() { *x = CFFIFieldTypeLiteral{} - mi := &file_types_cffi_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeLiteral) String() string { @@ -1957,7 +1960,7 @@ func (*CFFIFieldTypeLiteral) ProtoMessage() {} func (x *CFFIFieldTypeLiteral) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[25] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -1972,36 +1975,30 @@ func (*CFFIFieldTypeLiteral) Descriptor() ([]byte, []int) { return file_types_cffi_proto_rawDescGZIP(), []int{25} } -func (x *CFFIFieldTypeLiteral) GetLiteral() isCFFIFieldTypeLiteral_Literal { - if x != nil { - return x.Literal +func (m *CFFIFieldTypeLiteral) GetLiteral() isCFFIFieldTypeLiteral_Literal { + if m != nil { + return m.Literal } return nil } func (x *CFFIFieldTypeLiteral) GetStringLiteral() *CFFILiteralString { - if x != nil { - if x, ok := x.Literal.(*CFFIFieldTypeLiteral_StringLiteral); ok { - return x.StringLiteral - } + if x, ok := x.GetLiteral().(*CFFIFieldTypeLiteral_StringLiteral); ok { + return x.StringLiteral } return nil } func (x *CFFIFieldTypeLiteral) GetIntLiteral() *CFFILiteralInt { - if x != nil { - if x, ok := x.Literal.(*CFFIFieldTypeLiteral_IntLiteral); ok { - return x.IntLiteral - } + if x, ok := x.GetLiteral().(*CFFIFieldTypeLiteral_IntLiteral); ok { + return x.IntLiteral } return nil } func (x *CFFIFieldTypeLiteral) GetBoolLiteral() *CFFILiteralBool { - if x != nil { - if x, ok := x.Literal.(*CFFIFieldTypeLiteral_BoolLiteral); ok { - return x.BoolLiteral - } + if x, ok := x.GetLiteral().(*CFFIFieldTypeLiteral_BoolLiteral); ok { + return x.BoolLiteral } return nil } @@ -2030,17 +2027,20 @@ func (*CFFIFieldTypeLiteral_BoolLiteral) isCFFIFieldTypeLiteral_Literal() {} // For Media, reuse the CFFIMediaType message. type CFFIFieldTypeMedia struct { - state protoimpl.MessageState `protogen:"open.v1"` - Media MediaTypeEnum `protobuf:"varint,1,opt,name=media,proto3,enum=baml.cffi.MediaTypeEnum" json:"media,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Media MediaTypeEnum `protobuf:"varint,1,opt,name=media,proto3,enum=baml.cffi.MediaTypeEnum" json:"media,omitempty"` } func (x *CFFIFieldTypeMedia) Reset() { *x = CFFIFieldTypeMedia{} - mi := &file_types_cffi_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeMedia) String() string { @@ -2051,7 +2051,7 @@ func (*CFFIFieldTypeMedia) ProtoMessage() {} func (x *CFFIFieldTypeMedia) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[26] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2074,17 +2074,20 @@ func (x *CFFIFieldTypeMedia) GetMedia() MediaTypeEnum { } type CFFIFieldTypeEnum struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *CFFIFieldTypeEnum) Reset() { *x = CFFIFieldTypeEnum{} - mi := &file_types_cffi_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeEnum) String() string { @@ -2095,7 +2098,7 @@ func (*CFFIFieldTypeEnum) ProtoMessage() {} func (x *CFFIFieldTypeEnum) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[27] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2118,17 +2121,20 @@ func (x *CFFIFieldTypeEnum) GetName() string { } type CFFIFieldTypeClass struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *CFFIFieldTypeClass) Reset() { *x = CFFIFieldTypeClass{} - mi := &file_types_cffi_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeClass) String() string { @@ -2139,7 +2145,7 @@ func (*CFFIFieldTypeClass) ProtoMessage() {} func (x *CFFIFieldTypeClass) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[28] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2162,17 +2168,20 @@ func (x *CFFIFieldTypeClass) GetName() *CFFITypeName { } type CFFIFieldTypeTypeAlias struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` } func (x *CFFIFieldTypeTypeAlias) Reset() { *x = CFFIFieldTypeTypeAlias{} - mi := &file_types_cffi_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeTypeAlias) String() string { @@ -2183,7 +2192,7 @@ func (*CFFIFieldTypeTypeAlias) ProtoMessage() {} func (x *CFFIFieldTypeTypeAlias) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[29] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2206,17 +2215,20 @@ func (x *CFFIFieldTypeTypeAlias) GetName() *CFFITypeName { } type CFFIFieldTypeList struct { - state protoimpl.MessageState `protogen:"open.v1"` - Element *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Element *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` } func (x *CFFIFieldTypeList) Reset() { *x = CFFIFieldTypeList{} - mi := &file_types_cffi_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeList) String() string { @@ -2227,7 +2239,7 @@ func (*CFFIFieldTypeList) ProtoMessage() {} func (x *CFFIFieldTypeList) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[30] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2250,18 +2262,21 @@ func (x *CFFIFieldTypeList) GetElement() *CFFIFieldTypeHolder { } type CFFIFieldTypeMap struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFIFieldTypeMap) Reset() { *x = CFFIFieldTypeMap{} - mi := &file_types_cffi_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeMap) String() string { @@ -2272,7 +2287,7 @@ func (*CFFIFieldTypeMap) ProtoMessage() {} func (x *CFFIFieldTypeMap) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[31] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2302,17 +2317,20 @@ func (x *CFFIFieldTypeMap) GetValue() *CFFIFieldTypeHolder { } type CFFIFieldTypeTuple struct { - state protoimpl.MessageState `protogen:"open.v1"` - Elements []*CFFIFieldTypeHolder `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Elements []*CFFIFieldTypeHolder `protobuf:"bytes,1,rep,name=elements,proto3" json:"elements,omitempty"` } func (x *CFFIFieldTypeTuple) Reset() { *x = CFFIFieldTypeTuple{} - mi := &file_types_cffi_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeTuple) String() string { @@ -2323,7 +2341,7 @@ func (*CFFIFieldTypeTuple) ProtoMessage() {} func (x *CFFIFieldTypeTuple) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[32] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2346,18 +2364,21 @@ func (x *CFFIFieldTypeTuple) GetElements() []*CFFIFieldTypeHolder { } type CFFIFieldTypeUnionVariant struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Options []*CFFIFieldTypeHolder `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name *CFFITypeName `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Options []*CFFIFieldTypeHolder `protobuf:"bytes,2,rep,name=options,proto3" json:"options,omitempty"` } func (x *CFFIFieldTypeUnionVariant) Reset() { *x = CFFIFieldTypeUnionVariant{} - mi := &file_types_cffi_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeUnionVariant) String() string { @@ -2368,7 +2389,7 @@ func (*CFFIFieldTypeUnionVariant) ProtoMessage() {} func (x *CFFIFieldTypeUnionVariant) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[33] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2398,17 +2419,20 @@ func (x *CFFIFieldTypeUnionVariant) GetOptions() []*CFFIFieldTypeHolder { } type CFFIFieldTypeOptional struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFIFieldTypeOptional) Reset() { *x = CFFIFieldTypeOptional{} - mi := &file_types_cffi_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeOptional) String() string { @@ -2419,7 +2443,7 @@ func (*CFFIFieldTypeOptional) ProtoMessage() {} func (x *CFFIFieldTypeOptional) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[34] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2442,18 +2466,21 @@ func (x *CFFIFieldTypeOptional) GetValue() *CFFIFieldTypeHolder { } type CFFIFieldTypeChecked struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - Checks []*CFFICheckType `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + Checks []*CFFICheckType `protobuf:"bytes,2,rep,name=checks,proto3" json:"checks,omitempty"` } func (x *CFFIFieldTypeChecked) Reset() { *x = CFFIFieldTypeChecked{} - mi := &file_types_cffi_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeChecked) String() string { @@ -2464,7 +2491,7 @@ func (*CFFIFieldTypeChecked) ProtoMessage() {} func (x *CFFIFieldTypeChecked) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[35] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2494,17 +2521,20 @@ func (x *CFFIFieldTypeChecked) GetChecks() []*CFFICheckType { } type CFFIFieldTypeStreamState struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *CFFIFieldTypeHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFIFieldTypeStreamState) Reset() { *x = CFFIFieldTypeStreamState{} - mi := &file_types_cffi_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFieldTypeStreamState) String() string { @@ -2515,7 +2545,7 @@ func (*CFFIFieldTypeStreamState) ProtoMessage() {} func (x *CFFIFieldTypeStreamState) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[36] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2538,18 +2568,21 @@ func (x *CFFIFieldTypeStreamState) GetValue() *CFFIFieldTypeHolder { } type CFFIEnvVar struct { - state protoimpl.MessageState `protogen:"open.v1"` - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFIEnvVar) Reset() { *x = CFFIEnvVar{} - mi := &file_types_cffi_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIEnvVar) String() string { @@ -2560,7 +2593,7 @@ func (*CFFIEnvVar) ProtoMessage() {} func (x *CFFIEnvVar) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[37] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2590,20 +2623,23 @@ func (x *CFFIEnvVar) GetValue() string { } type CFFIFunctionArguments struct { - state protoimpl.MessageState `protogen:"open.v1"` - Kwargs []*CFFIMapEntry `protobuf:"bytes,1,rep,name=kwargs,proto3" json:"kwargs,omitempty"` - ClientRegistry *CFFIClientRegistry `protobuf:"bytes,2,opt,name=client_registry,json=clientRegistry,proto3" json:"client_registry,omitempty"` - Env []*CFFIEnvVar `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"` - Collectors []*CFFICollector `protobuf:"bytes,4,rep,name=collectors,proto3" json:"collectors,omitempty"` - unknownFields protoimpl.UnknownFields - sizeCache protoimpl.SizeCache + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Kwargs []*CFFIMapEntry `protobuf:"bytes,1,rep,name=kwargs,proto3" json:"kwargs,omitempty"` + ClientRegistry *CFFIClientRegistry `protobuf:"bytes,2,opt,name=client_registry,json=clientRegistry,proto3" json:"client_registry,omitempty"` + Env []*CFFIEnvVar `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty"` + Collectors []*CFFICollector `protobuf:"bytes,4,rep,name=collectors,proto3" json:"collectors,omitempty"` } func (x *CFFIFunctionArguments) Reset() { *x = CFFIFunctionArguments{} - mi := &file_types_cffi_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIFunctionArguments) String() string { @@ -2614,7 +2650,7 @@ func (*CFFIFunctionArguments) ProtoMessage() {} func (x *CFFIFunctionArguments) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[38] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2659,17 +2695,20 @@ func (x *CFFIFunctionArguments) GetCollectors() []*CFFICollector { // Collectors are just pointers type CFFICollector struct { - state protoimpl.MessageState `protogen:"open.v1"` - Pointer int64 `protobuf:"varint,1,opt,name=pointer,proto3" json:"pointer,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Pointer int64 `protobuf:"varint,1,opt,name=pointer,proto3" json:"pointer,omitempty"` } func (x *CFFICollector) Reset() { *x = CFFICollector{} - mi := &file_types_cffi_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFICollector) String() string { @@ -2680,7 +2719,7 @@ func (*CFFICollector) ProtoMessage() {} func (x *CFFICollector) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[39] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2703,18 +2742,21 @@ func (x *CFFICollector) GetPointer() int64 { } type CFFIClientRegistry struct { - state protoimpl.MessageState `protogen:"open.v1"` - Primary *string `protobuf:"bytes,1,opt,name=primary,proto3,oneof" json:"primary,omitempty"` - Clients []*CFFIClientProperty `protobuf:"bytes,2,rep,name=clients,proto3" json:"clients,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Primary *string `protobuf:"bytes,1,opt,name=primary,proto3,oneof" json:"primary,omitempty"` + Clients []*CFFIClientProperty `protobuf:"bytes,2,rep,name=clients,proto3" json:"clients,omitempty"` } func (x *CFFIClientRegistry) Reset() { *x = CFFIClientRegistry{} - mi := &file_types_cffi_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIClientRegistry) String() string { @@ -2725,7 +2767,7 @@ func (*CFFIClientRegistry) ProtoMessage() {} func (x *CFFIClientRegistry) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[40] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2755,20 +2797,23 @@ func (x *CFFIClientRegistry) GetClients() []*CFFIClientProperty { } type CFFIClientProperty struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` - RetryPolicy *string `protobuf:"bytes,3,opt,name=retry_policy,json=retryPolicy,proto3,oneof" json:"retry_policy,omitempty"` - Options []*CFFIMapEntry `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider,omitempty"` + RetryPolicy *string `protobuf:"bytes,3,opt,name=retry_policy,json=retryPolicy,proto3,oneof" json:"retry_policy,omitempty"` + Options []*CFFIMapEntry `protobuf:"bytes,4,rep,name=options,proto3" json:"options,omitempty"` } func (x *CFFIClientProperty) Reset() { *x = CFFIClientProperty{} - mi := &file_types_cffi_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIClientProperty) String() string { @@ -2779,7 +2824,7 @@ func (*CFFIClientProperty) ProtoMessage() {} func (x *CFFIClientProperty) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[41] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2823,18 +2868,21 @@ func (x *CFFIClientProperty) GetOptions() []*CFFIMapEntry { } type CFFICheckType struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Returns *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=returns,proto3" json:"returns,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Returns *CFFIFieldTypeHolder `protobuf:"bytes,2,opt,name=returns,proto3" json:"returns,omitempty"` } func (x *CFFICheckType) Reset() { *x = CFFICheckType{} - mi := &file_types_cffi_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFICheckType) String() string { @@ -2845,7 +2893,7 @@ func (*CFFICheckType) ProtoMessage() {} func (x *CFFICheckType) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[42] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2875,20 +2923,23 @@ func (x *CFFICheckType) GetReturns() *CFFIFieldTypeHolder { } type CFFICheckValue struct { - state protoimpl.MessageState `protogen:"open.v1"` - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` - Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - Value *CFFIValueHolder `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + Value *CFFIValueHolder `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"` } func (x *CFFICheckValue) Reset() { *x = CFFICheckValue{} - mi := &file_types_cffi_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFICheckValue) String() string { @@ -2899,7 +2950,7 @@ func (*CFFICheckValue) ProtoMessage() {} func (x *CFFICheckValue) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[43] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2944,18 +2995,21 @@ func (x *CFFICheckValue) GetValue() *CFFIValueHolder { // The wrapper message for CFFIValue. type CFFIValueStreamingState struct { - state protoimpl.MessageState `protogen:"open.v1"` - Value *CFFIValueHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` - State CFFIStreamState `protobuf:"varint,2,opt,name=state,proto3,enum=baml.cffi.CFFIStreamState" json:"state,omitempty"` - unknownFields protoimpl.UnknownFields + state protoimpl.MessageState sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Value *CFFIValueHolder `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` + State CFFIStreamState `protobuf:"varint,2,opt,name=state,proto3,enum=baml.cffi.CFFIStreamState" json:"state,omitempty"` } func (x *CFFIValueStreamingState) Reset() { *x = CFFIValueStreamingState{} - mi := &file_types_cffi_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) + if protoimpl.UnsafeEnabled { + mi := &file_types_cffi_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } } func (x *CFFIValueStreamingState) String() string { @@ -2966,7 +3020,7 @@ func (*CFFIValueStreamingState) ProtoMessage() {} func (x *CFFIValueStreamingState) ProtoReflect() protoreflect.Message { mi := &file_types_cffi_proto_msgTypes[44] - if x != nil { + if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) @@ -2997,222 +3051,431 @@ func (x *CFFIValueStreamingState) GetState() CFFIStreamState { var File_types_cffi_proto protoreflect.FileDescriptor -const file_types_cffi_proto_rawDesc = "" + - "\n" + - "\x10types/cffi.proto\x12\tbaml.cffi\"\xeb\x06\n" + - "\x0fCFFIValueHolder\x129\n" + - "\n" + - "null_value\x18\x02 \x01(\v2\x18.baml.cffi.CFFIValueNullH\x00R\tnullValue\x12#\n" + - "\fstring_value\x18\x03 \x01(\tH\x00R\vstringValue\x12\x1d\n" + - "\tint_value\x18\x04 \x01(\x03H\x00R\bintValue\x12!\n" + - "\vfloat_value\x18\x05 \x01(\x01H\x00R\n" + - "floatValue\x12\x1f\n" + - "\n" + - "bool_value\x18\x06 \x01(\bH\x00R\tboolValue\x129\n" + - "\n" + - "list_value\x18\a \x01(\v2\x18.baml.cffi.CFFIValueListH\x00R\tlistValue\x126\n" + - "\tmap_value\x18\b \x01(\v2\x17.baml.cffi.CFFIValueMapH\x00R\bmapValue\x12<\n" + - "\vclass_value\x18\t \x01(\v2\x19.baml.cffi.CFFIValueClassH\x00R\n" + - "classValue\x129\n" + - "\n" + - "enum_value\x18\n" + - " \x01(\v2\x18.baml.cffi.CFFIValueEnumH\x00R\tenumValue\x12<\n" + - "\vmedia_value\x18\v \x01(\v2\x19.baml.cffi.CFFIValueMediaH\x00R\n" + - "mediaValue\x12<\n" + - "\vtuple_value\x18\f \x01(\v2\x19.baml.cffi.CFFIValueTupleH\x00R\n" + - "tupleValue\x12R\n" + - "\x13union_variant_value\x18\r \x01(\v2 .baml.cffi.CFFIValueUnionVariantH\x00R\x11unionVariantValue\x12B\n" + - "\rchecked_value\x18\x0e \x01(\v2\x1b.baml.cffi.CFFIValueCheckedH\x00R\fcheckedValue\x12X\n" + - "\x15streaming_state_value\x18\x0f \x01(\v2\".baml.cffi.CFFIValueStreamingStateH\x00R\x13streamingStateValue\x122\n" + - "\x04type\x18\x10 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x04typeB\a\n" + - "\x05value\"^\n" + - "\fCFFITypeName\x12:\n" + - "\tnamespace\x18\x01 \x01(\x0e2\x1c.baml.cffi.CFFITypeNamespaceR\tnamespace\x12\x12\n" + - "\x04name\x18\x02 \x01(\tR\x04name\"\x0f\n" + - "\rCFFIValueNull\"\x82\x01\n" + - "\rCFFIValueList\x12=\n" + - "\n" + - "value_type\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\tvalueType\x122\n" + - "\x06values\x18\x02 \x03(\v2\x1a.baml.cffi.CFFIValueHolderR\x06values\"R\n" + - "\fCFFIMapEntry\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x120\n" + - "\x05value\x18\x02 \x01(\v2\x1a.baml.cffi.CFFIValueHolderR\x05value\"\xbb\x01\n" + - "\fCFFIValueMap\x129\n" + - "\bkey_type\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\akeyType\x12=\n" + - "\n" + - "value_type\x18\x02 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\tvalueType\x121\n" + - "\aentries\x18\x03 \x03(\v2\x17.baml.cffi.CFFIMapEntryR\aentries\"\xae\x01\n" + - "\x0eCFFIValueClass\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\x12/\n" + - "\x06fields\x18\x02 \x03(\v2\x17.baml.cffi.CFFIMapEntryR\x06fields\x12>\n" + - "\x0edynamic_fields\x18\x03 \x03(\v2\x17.baml.cffi.CFFIMapEntryR\rdynamicFields\"q\n" + - "\rCFFIValueEnum\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value\x12\x1d\n" + - "\n" + - "is_dynamic\x18\x03 \x01(\bR\tisDynamic\"\x8a\x01\n" + - "\x0eCFFIValueMedia\x12<\n" + - "\n" + - "media_type\x18\x01 \x01(\v2\x1d.baml.cffi.CFFIFieldTypeMediaR\tmediaType\x12:\n" + - "\vmedia_value\x18\x02 \x01(\v2\x19.baml.cffi.CFFIMediaValueR\n" + - "mediaValue\"D\n" + - "\x0eCFFIValueTuple\x122\n" + - "\x06values\x18\x01 \x03(\v2\x1a.baml.cffi.CFFIValueHolderR\x06values\"\x84\x02\n" + - "\x15CFFIValueUnionVariant\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\x12!\n" + - "\fvariant_name\x18\x02 \x01(\tR\vvariantName\x12?\n" + - "\vfield_types\x18\x03 \x03(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\n" + - "fieldTypes\x12(\n" + - "\x10value_type_index\x18\x04 \x01(\x05R\x0evalueTypeIndex\x120\n" + - "\x05value\x18\x05 \x01(\v2\x1a.baml.cffi.CFFIValueHolderR\x05value\"w\n" + - "\x10CFFIValueChecked\x120\n" + - "\x05value\x18\x01 \x01(\v2\x1a.baml.cffi.CFFIValueHolderR\x05value\x121\n" + - "\x06checks\x18\x02 \x03(\v2\x19.baml.cffi.CFFICheckValueR\x06checks\"'\n" + - "\x13CFFIMediaContentUrl\x12\x10\n" + - "\x03url\x18\x01 \x01(\tR\x03url\",\n" + - "\x16CFFIMediaContentBase64\x12\x12\n" + - "\x04data\x18\x01 \x01(\tR\x04data\"*\n" + - "\x14CFFIMediaContentFile\x12\x12\n" + - "\x04path\x18\x01 \x01(\tR\x04path\"\xa0\x02\n" + - "\x0eCFFIMediaValue\x12A\n" + - "\vurl_content\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIMediaContentUrlH\x00R\n" + - "urlContent\x12J\n" + - "\x0ebase64_content\x18\x02 \x01(\v2!.baml.cffi.CFFIMediaContentBase64H\x00R\rbase64Content\x12D\n" + - "\ffile_content\x18\x03 \x01(\v2\x1f.baml.cffi.CFFIMediaContentFileH\x00R\vfileContent\x12 \n" + - "\tmime_type\x18\x04 \x01(\tH\x01R\bmimeType\x88\x01\x01B\t\n" + - "\acontentB\f\n" + - "\n" + - "_mime_type\"\x93\t\n" + - "\x13CFFIFieldTypeHolder\x12A\n" + - "\vstring_type\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeStringH\x00R\n" + - "stringType\x128\n" + - "\bint_type\x18\x02 \x01(\v2\x1b.baml.cffi.CFFIFieldTypeIntH\x00R\aintType\x12>\n" + - "\n" + - "float_type\x18\x03 \x01(\v2\x1d.baml.cffi.CFFIFieldTypeFloatH\x00R\tfloatType\x12;\n" + - "\tbool_type\x18\x04 \x01(\v2\x1c.baml.cffi.CFFIFieldTypeBoolH\x00R\bboolType\x12;\n" + - "\tnull_type\x18\x05 \x01(\v2\x1c.baml.cffi.CFFIFieldTypeNullH\x00R\bnullType\x12D\n" + - "\fliteral_type\x18\x06 \x01(\v2\x1f.baml.cffi.CFFIFieldTypeLiteralH\x00R\vliteralType\x12>\n" + - "\n" + - "media_type\x18\a \x01(\v2\x1d.baml.cffi.CFFIFieldTypeMediaH\x00R\tmediaType\x12;\n" + - "\tenum_type\x18\b \x01(\v2\x1c.baml.cffi.CFFIFieldTypeEnumH\x00R\benumType\x12>\n" + - "\n" + - "class_type\x18\t \x01(\v2\x1d.baml.cffi.CFFIFieldTypeClassH\x00R\tclassType\x12K\n" + - "\x0ftype_alias_type\x18\n" + - " \x01(\v2!.baml.cffi.CFFIFieldTypeTypeAliasH\x00R\rtypeAliasType\x12;\n" + - "\tlist_type\x18\v \x01(\v2\x1c.baml.cffi.CFFIFieldTypeListH\x00R\blistType\x128\n" + - "\bmap_type\x18\f \x01(\v2\x1b.baml.cffi.CFFIFieldTypeMapH\x00R\amapType\x12>\n" + - "\n" + - "tuple_type\x18\r \x01(\v2\x1d.baml.cffi.CFFIFieldTypeTupleH\x00R\ttupleType\x12T\n" + - "\x12union_variant_type\x18\x0e \x01(\v2$.baml.cffi.CFFIFieldTypeUnionVariantH\x00R\x10unionVariantType\x12G\n" + - "\roptional_type\x18\x0f \x01(\v2 .baml.cffi.CFFIFieldTypeOptionalH\x00R\foptionalType\x12D\n" + - "\fchecked_type\x18\x10 \x01(\v2\x1f.baml.cffi.CFFIFieldTypeCheckedH\x00R\vcheckedType\x12Q\n" + - "\x11stream_state_type\x18\x11 \x01(\v2#.baml.cffi.CFFIFieldTypeStreamStateH\x00R\x0fstreamStateTypeB\x06\n" + - "\x04type\"\x15\n" + - "\x13CFFIFieldTypeString\"\x12\n" + - "\x10CFFIFieldTypeInt\"\x14\n" + - "\x12CFFIFieldTypeFloat\"\x13\n" + - "\x11CFFIFieldTypeBool\"\x13\n" + - "\x11CFFIFieldTypeNull\")\n" + - "\x11CFFILiteralString\x12\x14\n" + - "\x05value\x18\x01 \x01(\tR\x05value\"&\n" + - "\x0eCFFILiteralInt\x12\x14\n" + - "\x05value\x18\x01 \x01(\x03R\x05value\"'\n" + - "\x0fCFFILiteralBool\x12\x14\n" + - "\x05value\x18\x01 \x01(\bR\x05value\"\xe7\x01\n" + - "\x14CFFIFieldTypeLiteral\x12E\n" + - "\x0estring_literal\x18\x01 \x01(\v2\x1c.baml.cffi.CFFILiteralStringH\x00R\rstringLiteral\x12<\n" + - "\vint_literal\x18\x02 \x01(\v2\x19.baml.cffi.CFFILiteralIntH\x00R\n" + - "intLiteral\x12?\n" + - "\fbool_literal\x18\x03 \x01(\v2\x1a.baml.cffi.CFFILiteralBoolH\x00R\vboolLiteralB\t\n" + - "\aliteral\"D\n" + - "\x12CFFIFieldTypeMedia\x12.\n" + - "\x05media\x18\x01 \x01(\x0e2\x18.baml.cffi.MediaTypeEnumR\x05media\"'\n" + - "\x11CFFIFieldTypeEnum\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\"A\n" + - "\x12CFFIFieldTypeClass\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\"E\n" + - "\x16CFFIFieldTypeTypeAlias\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\"M\n" + - "\x11CFFIFieldTypeList\x128\n" + - "\aelement\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\aelement\"z\n" + - "\x10CFFIFieldTypeMap\x120\n" + - "\x03key\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x03key\x124\n" + - "\x05value\x18\x02 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x05value\"P\n" + - "\x12CFFIFieldTypeTuple\x12:\n" + - "\belements\x18\x01 \x03(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\belements\"\x82\x01\n" + - "\x19CFFIFieldTypeUnionVariant\x12+\n" + - "\x04name\x18\x01 \x01(\v2\x17.baml.cffi.CFFITypeNameR\x04name\x128\n" + - "\aoptions\x18\x02 \x03(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\aoptions\"M\n" + - "\x15CFFIFieldTypeOptional\x124\n" + - "\x05value\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x05value\"~\n" + - "\x14CFFIFieldTypeChecked\x124\n" + - "\x05value\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x05value\x120\n" + - "\x06checks\x18\x02 \x03(\v2\x18.baml.cffi.CFFICheckTypeR\x06checks\"P\n" + - "\x18CFFIFieldTypeStreamState\x124\n" + - "\x05value\x18\x01 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\x05value\"4\n" + - "\n" + - "CFFIEnvVar\x12\x10\n" + - "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + - "\x05value\x18\x02 \x01(\tR\x05value\"\xf3\x01\n" + - "\x15CFFIFunctionArguments\x12/\n" + - "\x06kwargs\x18\x01 \x03(\v2\x17.baml.cffi.CFFIMapEntryR\x06kwargs\x12F\n" + - "\x0fclient_registry\x18\x02 \x01(\v2\x1d.baml.cffi.CFFIClientRegistryR\x0eclientRegistry\x12'\n" + - "\x03env\x18\x03 \x03(\v2\x15.baml.cffi.CFFIEnvVarR\x03env\x128\n" + - "\n" + - "collectors\x18\x04 \x03(\v2\x18.baml.cffi.CFFICollectorR\n" + - "collectors\")\n" + - "\rCFFICollector\x12\x18\n" + - "\apointer\x18\x01 \x01(\x03R\apointer\"x\n" + - "\x12CFFIClientRegistry\x12\x1d\n" + - "\aprimary\x18\x01 \x01(\tH\x00R\aprimary\x88\x01\x01\x127\n" + - "\aclients\x18\x02 \x03(\v2\x1d.baml.cffi.CFFIClientPropertyR\aclientsB\n" + - "\n" + - "\b_primary\"\xb0\x01\n" + - "\x12CFFIClientProperty\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x1a\n" + - "\bprovider\x18\x02 \x01(\tR\bprovider\x12&\n" + - "\fretry_policy\x18\x03 \x01(\tH\x00R\vretryPolicy\x88\x01\x01\x121\n" + - "\aoptions\x18\x04 \x03(\v2\x17.baml.cffi.CFFIMapEntryR\aoptionsB\x0f\n" + - "\r_retry_policy\"]\n" + - "\rCFFICheckType\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x128\n" + - "\areturns\x18\x02 \x01(\v2\x1e.baml.cffi.CFFIFieldTypeHolderR\areturns\"\x8e\x01\n" + - "\x0eCFFICheckValue\x12\x12\n" + - "\x04name\x18\x01 \x01(\tR\x04name\x12\x1e\n" + - "\n" + - "expression\x18\x02 \x01(\tR\n" + - "expression\x12\x16\n" + - "\x06status\x18\x03 \x01(\tR\x06status\x120\n" + - "\x05value\x18\x04 \x01(\v2\x1a.baml.cffi.CFFIValueHolderR\x05value\"}\n" + - "\x17CFFIValueStreamingState\x120\n" + - "\x05value\x18\x01 \x01(\v2\x1a.baml.cffi.CFFIValueHolderR\x05value\x120\n" + - "\x05state\x18\x02 \x01(\x0e2\x1a.baml.cffi.CFFIStreamStateR\x05state*0\n" + - "\x11CFFITypeNamespace\x12\t\n" + - "\x05TYPES\x10\x00\x12\x10\n" + - "\fSTREAM_TYPES\x10\x01*%\n" + - "\rMediaTypeEnum\x12\t\n" + - "\x05IMAGE\x10\x00\x12\t\n" + - "\x05AUDIO\x10\x01*5\n" + - "\x0fCFFIStreamState\x12\v\n" + - "\aPENDING\x10\x00\x12\v\n" + - "\aSTARTED\x10\x01\x12\b\n" + - "\x04DONE\x10\x02B\bZ\x06./cffib\x06proto3" +var file_types_cffi_proto_rawDesc = []byte{ + 0x0a, 0x10, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x12, 0x09, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x22, 0xeb, 0x06, + 0x0a, 0x0f, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, + 0x72, 0x12, 0x39, 0x0a, 0x0a, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x75, 0x6c, 0x6c, 0x48, + 0x00, 0x52, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x23, 0x0a, 0x0c, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x12, 0x1d, 0x0a, 0x09, 0x69, 0x6e, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x08, 0x69, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x21, 0x0a, 0x0b, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x01, 0x48, 0x00, 0x52, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x12, 0x1f, 0x0a, 0x0a, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, + 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, + 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x36, 0x0a, 0x09, 0x6d, 0x61, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x08, 0x6d, + 0x61, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, 0x0a, 0x0b, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, + 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x45, + 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x3c, 0x0a, 0x0b, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, + 0x48, 0x00, 0x52, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x3c, + 0x0a, 0x0b, 0x74, 0x75, 0x70, 0x6c, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x75, 0x70, 0x6c, 0x65, 0x48, 0x00, + 0x52, 0x0a, 0x74, 0x75, 0x70, 0x6c, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x52, 0x0a, 0x13, + 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x5f, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x5f, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x55, + 0x6e, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x11, 0x75, + 0x6e, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x42, 0x0a, 0x0d, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, + 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x58, 0x0a, 0x15, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, + 0x67, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, + 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x13, 0x73, 0x74, 0x72, 0x65, 0x61, + 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x65, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x32, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, + 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x04, 0x74, 0x79, + 0x70, 0x65, 0x42, 0x07, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x5e, 0x0a, 0x0c, 0x43, + 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x09, 0x6e, + 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1c, + 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x54, + 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6e, 0x61, + 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x0f, 0x0a, 0x0d, 0x43, + 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4e, 0x75, 0x6c, 0x6c, 0x22, 0x82, 0x01, 0x0a, + 0x0d, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x3d, + 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, + 0x65, 0x72, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x32, 0x0a, + 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x73, 0x22, 0x52, 0x0a, 0x0c, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, + 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, + 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xbb, 0x01, 0x0a, 0x0c, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, + 0x6c, 0x75, 0x65, 0x4d, 0x61, 0x70, 0x12, 0x39, 0x0a, 0x08, 0x6b, 0x65, 0x79, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, + 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x07, 0x6b, 0x65, 0x79, 0x54, 0x79, 0x70, + 0x65, 0x12, 0x3d, 0x0a, 0x0a, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, + 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x09, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x31, 0x0a, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, + 0x46, 0x49, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x0e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, + 0x2e, 0x43, 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x12, 0x2f, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x12, 0x3e, 0x0a, 0x0e, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x5f, + 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, + 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x61, 0x70, + 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0d, 0x64, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x73, 0x22, 0x71, 0x0a, 0x0d, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, + 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, + 0x44, 0x79, 0x6e, 0x61, 0x6d, 0x69, 0x63, 0x22, 0x8a, 0x01, 0x0a, 0x0e, 0x43, 0x46, 0x46, 0x49, + 0x56, 0x61, 0x6c, 0x75, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x12, 0x3c, 0x0a, 0x0a, 0x6d, 0x65, + 0x64, 0x69, 0x61, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, + 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x52, 0x09, 0x6d, + 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x0b, 0x6d, 0x65, 0x64, 0x69, + 0x61, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, + 0x64, 0x69, 0x61, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x44, 0x0a, 0x0e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, + 0x65, 0x54, 0x75, 0x70, 0x6c, 0x65, 0x12, 0x32, 0x0a, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, + 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, + 0x65, 0x72, 0x52, 0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x84, 0x02, 0x0a, 0x15, 0x43, + 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x55, 0x6e, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, + 0x69, 0x61, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x12, 0x21, 0x0a, 0x0c, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x3f, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x0a, 0x66, 0x69, 0x65, 0x6c, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, + 0x0e, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, + 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, + 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x77, 0x0a, 0x10, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x43, 0x68, + 0x65, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, + 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x31, 0x0a, 0x06, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, + 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x56, 0x61, 0x6c, + 0x75, 0x65, 0x52, 0x06, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x22, 0x27, 0x0a, 0x13, 0x43, 0x46, + 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x55, 0x72, + 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x75, 0x72, 0x6c, 0x22, 0x2c, 0x0a, 0x16, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, + 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65, 0x36, 0x34, 0x12, 0x12, 0x0a, + 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, + 0x61, 0x22, 0x2a, 0x0a, 0x14, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, + 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xa0, 0x02, + 0x0a, 0x0e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x56, 0x61, 0x6c, 0x75, 0x65, + 0x12, 0x41, 0x0a, 0x0b, 0x75, 0x72, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x55, 0x72, 0x6c, 0x48, 0x00, 0x52, 0x0a, 0x75, 0x72, 0x6c, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x12, 0x4a, 0x0a, 0x0e, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x5f, 0x63, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x61, + 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, + 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x73, 0x65, 0x36, 0x34, 0x48, 0x00, + 0x52, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x36, 0x34, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, + 0x44, 0x0a, 0x0c, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x46, 0x69, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x0b, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x6f, + 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x08, 0x6d, 0x69, 0x6d, 0x65, + 0x54, 0x79, 0x70, 0x65, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x6d, 0x69, 0x6d, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x22, 0x93, 0x09, 0x0a, 0x13, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x12, 0x41, 0x0a, 0x0b, 0x73, 0x74, 0x72, 0x69, + 0x6e, 0x67, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, + 0x0a, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x69, + 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x07, 0x69, 0x6e, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x66, 0x6c, 0x6f, 0x61, 0x74, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x48, 0x00, 0x52, 0x09, 0x66, 0x6c, 0x6f, 0x61, + 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x62, 0x6f, 0x6f, 0x6c, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, + 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x48, 0x00, 0x52, 0x08, 0x62, 0x6f, 0x6f, 0x6c, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x6e, 0x75, 0x6c, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, + 0x75, 0x6c, 0x6c, 0x48, 0x00, 0x52, 0x08, 0x6e, 0x75, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x44, 0x0a, 0x0c, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, + 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0b, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x5f, 0x74, + 0x79, 0x70, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x48, 0x00, 0x52, 0x09, 0x6d, 0x65, 0x64, 0x69, + 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x09, 0x65, 0x6e, 0x75, 0x6d, 0x5f, 0x74, 0x79, + 0x70, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, + 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x48, 0x00, 0x52, 0x08, 0x65, 0x6e, 0x75, 0x6d, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, + 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x48, 0x00, 0x52, 0x09, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x54, 0x79, + 0x70, 0x65, 0x12, 0x4b, 0x0a, 0x0f, 0x74, 0x79, 0x70, 0x65, 0x5f, 0x61, 0x6c, 0x69, 0x61, 0x73, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x62, 0x61, + 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x48, 0x00, + 0x52, 0x0d, 0x74, 0x79, 0x70, 0x65, 0x41, 0x6c, 0x69, 0x61, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, + 0x3b, 0x0a, 0x09, 0x6c, 0x69, 0x73, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0b, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x08, 0x6c, 0x69, 0x73, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x08, + 0x6d, 0x61, 0x70, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x61, 0x70, 0x48, 0x00, 0x52, 0x07, 0x6d, + 0x61, 0x70, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3e, 0x0a, 0x0a, 0x74, 0x75, 0x70, 0x6c, 0x65, 0x5f, + 0x74, 0x79, 0x70, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6d, + 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x54, 0x75, 0x70, 0x6c, 0x65, 0x48, 0x00, 0x52, 0x09, 0x74, 0x75, 0x70, + 0x6c, 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x54, 0x0a, 0x12, 0x75, 0x6e, 0x69, 0x6f, 0x6e, 0x5f, + 0x76, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0e, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x55, 0x6e, 0x69, 0x6f, + 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x10, 0x75, 0x6e, 0x69, 0x6f, + 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x47, 0x0a, 0x0d, + 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x0f, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4f, 0x70, 0x74, + 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x48, 0x00, 0x52, 0x0c, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, + 0x6c, 0x54, 0x79, 0x70, 0x65, 0x12, 0x44, 0x0a, 0x0c, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, + 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x62, 0x61, + 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, + 0x64, 0x54, 0x79, 0x70, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x48, 0x00, 0x52, 0x0b, + 0x63, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x51, 0x0a, 0x11, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x79, 0x70, 0x65, + 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, + 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x73, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x54, 0x79, 0x70, 0x65, 0x42, 0x06, + 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x22, 0x12, 0x0a, + 0x10, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x49, 0x6e, + 0x74, 0x22, 0x14, 0x0a, 0x12, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x22, 0x13, 0x0a, 0x11, 0x43, 0x46, 0x46, 0x49, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x42, 0x6f, 0x6f, 0x6c, 0x22, 0x13, 0x0a, 0x11, + 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x75, 0x6c, + 0x6c, 0x22, 0x29, 0x0a, 0x11, 0x43, 0x46, 0x46, 0x49, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, + 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x26, 0x0a, 0x0e, + 0x43, 0x46, 0x46, 0x49, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x12, 0x14, + 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x22, 0x27, 0x0a, 0x0f, 0x43, 0x46, 0x46, 0x49, 0x4c, 0x69, 0x74, 0x65, + 0x72, 0x61, 0x6c, 0x42, 0x6f, 0x6f, 0x6c, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe7, 0x01, + 0x0a, 0x14, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x45, 0x0a, 0x0e, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, + 0x5f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, + 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4c, + 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x0d, + 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x3c, 0x0a, + 0x0b, 0x69, 0x6e, 0x74, 0x5f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, + 0x46, 0x46, 0x49, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x49, 0x6e, 0x74, 0x48, 0x00, 0x52, + 0x0a, 0x69, 0x6e, 0x74, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x3f, 0x0a, 0x0c, 0x62, + 0x6f, 0x6f, 0x6c, 0x5f, 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, + 0x46, 0x49, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x42, 0x6f, 0x6f, 0x6c, 0x48, 0x00, 0x52, + 0x0b, 0x62, 0x6f, 0x6f, 0x6c, 0x4c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x42, 0x09, 0x0a, 0x07, + 0x6c, 0x69, 0x74, 0x65, 0x72, 0x61, 0x6c, 0x22, 0x44, 0x0a, 0x12, 0x43, 0x46, 0x46, 0x49, 0x46, + 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x12, 0x2e, 0x0a, + 0x05, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x62, + 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x4d, 0x65, 0x64, 0x69, 0x61, 0x54, 0x79, + 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x52, 0x05, 0x6d, 0x65, 0x64, 0x69, 0x61, 0x22, 0x27, 0x0a, + 0x11, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, + 0x75, 0x6d, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x41, 0x0a, 0x12, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2b, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, + 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, + 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x45, 0x0a, 0x16, 0x43, 0x46, 0x46, + 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x54, 0x79, 0x70, 0x65, 0x41, 0x6c, + 0x69, 0x61, 0x73, 0x12, 0x2b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, + 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x22, 0x4d, 0x0a, 0x11, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, + 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, + 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x07, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x22, + 0x7a, 0x0a, 0x10, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, + 0x4d, 0x61, 0x70, 0x12, 0x30, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, + 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, + 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, + 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x50, 0x0a, 0x12, 0x43, + 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x54, 0x75, 0x70, 0x6c, + 0x65, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, + 0x64, 0x65, 0x72, 0x52, 0x08, 0x65, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x82, 0x01, + 0x0a, 0x19, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x55, + 0x6e, 0x69, 0x6f, 0x6e, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x54, 0x79, 0x70, 0x65, 0x4e, 0x61, + 0x6d, 0x65, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x22, 0x4d, 0x0a, 0x15, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, + 0x79, 0x70, 0x65, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x61, 0x6c, 0x12, 0x34, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, + 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, + 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x22, 0x7e, 0x0a, 0x14, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x65, 0x64, 0x12, 0x34, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, + 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, + 0x30, 0x0a, 0x06, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x52, 0x06, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x73, 0x22, 0x50, 0x0a, 0x18, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x54, 0x79, + 0x70, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x34, 0x0a, + 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x62, + 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, 0x61, + 0x6c, 0x75, 0x65, 0x22, 0x34, 0x0a, 0x0a, 0x43, 0x46, 0x46, 0x49, 0x45, 0x6e, 0x76, 0x56, 0x61, + 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xf3, 0x01, 0x0a, 0x15, 0x43, 0x46, + 0x46, 0x49, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x41, 0x72, 0x67, 0x75, 0x6d, 0x65, + 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x0a, 0x06, 0x6b, 0x77, 0x61, 0x72, 0x67, 0x73, 0x18, 0x01, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6b, 0x77, + 0x61, 0x72, 0x67, 0x73, 0x12, 0x46, 0x0a, 0x0f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x72, + 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x43, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x52, 0x0e, 0x63, 0x6c, + 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x12, 0x27, 0x0a, 0x03, + 0x65, 0x6e, 0x76, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x45, 0x6e, 0x76, 0x56, 0x61, 0x72, + 0x52, 0x03, 0x65, 0x6e, 0x76, 0x12, 0x38, 0x0a, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, + 0x6f, 0x72, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x61, 0x6d, 0x6c, + 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, + 0x74, 0x6f, 0x72, 0x52, 0x0a, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x73, 0x22, + 0x29, 0x0a, 0x0d, 0x43, 0x46, 0x46, 0x49, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x12, 0x18, 0x0a, 0x07, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x03, 0x52, 0x07, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x22, 0x78, 0x0a, 0x12, 0x43, 0x46, + 0x46, 0x49, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, + 0x12, 0x1d, 0x0a, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x07, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x88, 0x01, 0x01, 0x12, + 0x37, 0x0a, 0x07, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1d, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, + 0x49, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x52, + 0x07, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x73, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x70, 0x72, 0x69, + 0x6d, 0x61, 0x72, 0x79, 0x22, 0xb0, 0x01, 0x0a, 0x12, 0x43, 0x46, 0x46, 0x49, 0x43, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x26, 0x0a, 0x0c, 0x72, + 0x65, 0x74, 0x72, 0x79, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x0b, 0x72, 0x65, 0x74, 0x72, 0x79, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, + 0x2e, 0x43, 0x46, 0x46, 0x49, 0x4d, 0x61, 0x70, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x6f, + 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x72, 0x65, 0x74, 0x72, 0x79, + 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x5d, 0x0a, 0x0d, 0x43, 0x46, 0x46, 0x49, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x07, + 0x72, 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, + 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, 0x46, 0x49, 0x46, 0x69, + 0x65, 0x6c, 0x64, 0x54, 0x79, 0x70, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x07, 0x72, + 0x65, 0x74, 0x75, 0x72, 0x6e, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x0e, 0x43, 0x46, 0x46, 0x49, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1e, 0x0a, + 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x72, 0x65, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, + 0x2e, 0x43, 0x46, 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x7d, 0x0a, 0x17, 0x43, 0x46, 0x46, 0x49, 0x56, + 0x61, 0x6c, 0x75, 0x65, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, 0x43, 0x46, + 0x46, 0x49, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x48, 0x6f, 0x6c, 0x64, 0x65, 0x72, 0x52, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x12, 0x30, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x62, 0x61, 0x6d, 0x6c, 0x2e, 0x63, 0x66, 0x66, 0x69, 0x2e, + 0x43, 0x46, 0x46, 0x49, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, + 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2a, 0x30, 0x0a, 0x11, 0x43, 0x46, 0x46, 0x49, 0x54, 0x79, + 0x70, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x09, 0x0a, 0x05, 0x54, + 0x59, 0x50, 0x45, 0x53, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x52, 0x45, 0x41, 0x4d, + 0x5f, 0x54, 0x59, 0x50, 0x45, 0x53, 0x10, 0x01, 0x2a, 0x25, 0x0a, 0x0d, 0x4d, 0x65, 0x64, 0x69, + 0x61, 0x54, 0x79, 0x70, 0x65, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x09, 0x0a, 0x05, 0x49, 0x4d, 0x41, + 0x47, 0x45, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x41, 0x55, 0x44, 0x49, 0x4f, 0x10, 0x01, 0x2a, + 0x35, 0x0a, 0x0f, 0x43, 0x46, 0x46, 0x49, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x00, 0x12, + 0x0b, 0x0a, 0x07, 0x53, 0x54, 0x41, 0x52, 0x54, 0x45, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, + 0x44, 0x4f, 0x4e, 0x45, 0x10, 0x02, 0x42, 0x08, 0x5a, 0x06, 0x2e, 0x2f, 0x63, 0x66, 0x66, 0x69, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} var ( file_types_cffi_proto_rawDescOnce sync.Once - file_types_cffi_proto_rawDescData []byte + file_types_cffi_proto_rawDescData = file_types_cffi_proto_rawDesc ) func file_types_cffi_proto_rawDescGZIP() []byte { file_types_cffi_proto_rawDescOnce.Do(func() { - file_types_cffi_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_types_cffi_proto_rawDesc), len(file_types_cffi_proto_rawDesc))) + file_types_cffi_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_cffi_proto_rawDescData) }) return file_types_cffi_proto_rawDescData } var file_types_cffi_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_types_cffi_proto_msgTypes = make([]protoimpl.MessageInfo, 45) -var file_types_cffi_proto_goTypes = []any{ +var file_types_cffi_proto_goTypes = []interface{}{ (CFFITypeNamespace)(0), // 0: baml.cffi.CFFITypeNamespace (MediaTypeEnum)(0), // 1: baml.cffi.MediaTypeEnum (CFFIStreamState)(0), // 2: baml.cffi.CFFIStreamState @@ -3351,7 +3614,549 @@ func file_types_cffi_proto_init() { if File_types_cffi_proto != nil { return } - file_types_cffi_proto_msgTypes[0].OneofWrappers = []any{ + if !protoimpl.UnsafeEnabled { + file_types_cffi_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueHolder); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFITypeName); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueNull); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIMapEntry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueClass); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueEnum); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueMedia); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueUnionVariant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueChecked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIMediaContentUrl); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIMediaContentBase64); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIMediaContentFile); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIMediaValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeHolder); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeString); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeInt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeFloat); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeBool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeNull); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFILiteralString); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFILiteralInt); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFILiteralBool); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeLiteral); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeMedia); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeEnum); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeClass); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeTypeAlias); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeList); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeMap); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeTuple); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeUnionVariant); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeOptional); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeChecked); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFieldTypeStreamState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIEnvVar); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIFunctionArguments); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFICollector); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIClientRegistry); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIClientProperty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFICheckType); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFICheckValue); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_cffi_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CFFIValueStreamingState); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_types_cffi_proto_msgTypes[0].OneofWrappers = []interface{}{ (*CFFIValueHolder_NullValue)(nil), (*CFFIValueHolder_StringValue)(nil), (*CFFIValueHolder_IntValue)(nil), @@ -3367,12 +4172,12 @@ func file_types_cffi_proto_init() { (*CFFIValueHolder_CheckedValue)(nil), (*CFFIValueHolder_StreamingStateValue)(nil), } - file_types_cffi_proto_msgTypes[15].OneofWrappers = []any{ + file_types_cffi_proto_msgTypes[15].OneofWrappers = []interface{}{ (*CFFIMediaValue_UrlContent)(nil), (*CFFIMediaValue_Base64Content)(nil), (*CFFIMediaValue_FileContent)(nil), } - file_types_cffi_proto_msgTypes[16].OneofWrappers = []any{ + file_types_cffi_proto_msgTypes[16].OneofWrappers = []interface{}{ (*CFFIFieldTypeHolder_StringType)(nil), (*CFFIFieldTypeHolder_IntType)(nil), (*CFFIFieldTypeHolder_FloatType)(nil), @@ -3391,18 +4196,18 @@ func file_types_cffi_proto_init() { (*CFFIFieldTypeHolder_CheckedType)(nil), (*CFFIFieldTypeHolder_StreamStateType)(nil), } - file_types_cffi_proto_msgTypes[25].OneofWrappers = []any{ + file_types_cffi_proto_msgTypes[25].OneofWrappers = []interface{}{ (*CFFIFieldTypeLiteral_StringLiteral)(nil), (*CFFIFieldTypeLiteral_IntLiteral)(nil), (*CFFIFieldTypeLiteral_BoolLiteral)(nil), } - file_types_cffi_proto_msgTypes[40].OneofWrappers = []any{} - file_types_cffi_proto_msgTypes[41].OneofWrappers = []any{} + file_types_cffi_proto_msgTypes[40].OneofWrappers = []interface{}{} + file_types_cffi_proto_msgTypes[41].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: unsafe.Slice(unsafe.StringData(file_types_cffi_proto_rawDesc), len(file_types_cffi_proto_rawDesc)), + RawDescriptor: file_types_cffi_proto_rawDesc, NumEnums: 3, NumMessages: 45, NumExtensions: 0, @@ -3414,6 +4219,7 @@ func file_types_cffi_proto_init() { MessageInfos: file_types_cffi_proto_msgTypes, }.Build() File_types_cffi_proto = out.File + file_types_cffi_proto_rawDesc = nil file_types_cffi_proto_goTypes = nil file_types_cffi_proto_depIdxs = nil } diff --git a/engine/language_client_python/python_src/baml_py/safe_import.py b/engine/language_client_python/python_src/baml_py/safe_import.py index 27962463f4..3f00283b60 100644 --- a/engine/language_client_python/python_src/baml_py/safe_import.py +++ b/engine/language_client_python/python_src/baml_py/safe_import.py @@ -66,7 +66,7 @@ def raise_version_error(self, msg: str): raise ImportError(f""" {msg} -Please upgrade baml-py to version "{target_version}". +Please set baml-py to version "{target_version}". $ pip install {self._target_package_name()} $ uv add {self._target_package_name()} diff --git a/fern/01-guide/02-languages/python.mdx b/fern/01-guide/02-languages/python.mdx index 018cc1fb9e..98a77295f2 100644 --- a/fern/01-guide/02-languages/python.mdx +++ b/fern/01-guide/02-languages/python.mdx @@ -22,36 +22,48 @@ To set up BAML with Python do the following: ### Install BAML - - ```bash pip - pip install baml-py - ``` - - ```bash poetry - poetry add baml-py - ``` - - ```bash uv - uv add baml-py - ``` - + + + ```bash pip + pip install baml-py + ``` + + + + ```bash poetry + poetry add baml-py + ``` + + + + ```bash uv + uv add baml-py + ``` + + ### Add BAML to your existing project This will give you some starter BAML code in a `baml_src` directory. - - ```bash pip - baml-cli init - ``` - - ```bash poetry - poetry run baml-cli init - ``` - - ```bash uv - uv run baml-cli init - ``` - + + + ```bash pip + baml-cli init + ``` + + + + ```bash poetry + poetry run baml-cli init + ``` + + + + ```bash uv + uv run baml-cli init + ``` + + ### Generate the `baml_client` python module from `.baml` files @@ -60,22 +72,27 @@ To set up BAML with Python do the following: Any types defined in .baml files will be converted into Pydantic models in the `baml_client` directory. - - ```bash pip - baml-cli generate - ``` + + + ```bash pip + baml-cli generate + ``` + + + ```bash poetry + poetry run baml-cli generate + ``` + - ```bash poetry - poetry run baml-cli generate - ``` + + ```bash uv + uv run baml-cli generate + ``` + + - ```bash uv - uv run baml-cli generate - ``` - - - See [What is baml_client](/guide/introduction/baml_client) to learn more about how this works. + See [What is baml_client](/guide/introduction/baml_client) to learn more about how this works. @@ -86,50 +103,53 @@ To set up BAML with Python do the following: ### Use a BAML function in Python! If `baml_client` doesn't exist, make sure to run the previous step! - - ```python main.py - from baml_client.sync_client import b - from baml_client.types import Resume - - def example(raw_resume: str) -> Resume: - # BAML's internal parser guarantees ExtractResume - # to be always return a Resume type - response = b.ExtractResume(raw_resume) - return response - - def example_stream(raw_resume: str) -> Resume: - stream = b.stream.ExtractResume(raw_resume) - for msg in stream: - print(msg) # This will be a PartialResume type - - # This will be a Resume type - final = stream.get_final_response() - - return final - ``` - - ```python async_main.py - from baml_client.async_client import b - from baml_client.types import Resume - - async def example(raw_resume: str) -> Resume: - # BAML's internal parser guarantees ExtractResume - # to be always return a Resume type - response = await b.ExtractResume(raw_resume) - return response - - async def example_stream(raw_resume: str) -> Resume: - stream = b.stream.ExtractResume(raw_resume) - async for msg in stream: - print(msg) # This will be a PartialResume type - - # This will be a Resume type - final = await stream.get_final_response() - - return final - ``` - - + + + ```python main.py + from baml_client.sync_client import b + from baml_client.types import Resume + + def example(raw_resume: str) -> Resume: + # BAML's internal parser guarantees ExtractResume + # to be always return a Resume type + response = b.ExtractResume(raw_resume) + return response + + def example_stream(raw_resume: str) -> Resume: + stream = b.stream.ExtractResume(raw_resume) + for msg in stream: + print(msg) # This will be a PartialResume type + + # This will be a Resume type + final = stream.get_final_response() + + return final + ``` + + + + ```python async_main.py + from baml_client.async_client import b + from baml_client.types import Resume + + async def example(raw_resume: str) -> Resume: + # BAML's internal parser guarantees ExtractResume + # to be always return a Resume type + response = await b.ExtractResume(raw_resume) + return response + + async def example_stream(raw_resume: str) -> Resume: + stream = b.stream.ExtractResume(raw_resume) + async for msg in stream: + print(msg) # This will be a PartialResume type + + # This will be a Resume type + final = await stream.get_final_response() + + return final + ``` + + diff --git a/fern/01-guide/02-languages/ruby.mdx b/fern/01-guide/02-languages/ruby.mdx index de45e1a195..207328d98a 100644 --- a/fern/01-guide/02-languages/ruby.mdx +++ b/fern/01-guide/02-languages/ruby.mdx @@ -40,7 +40,8 @@ To set up BAML with Ruby do the following: ### Use a BAML function in Ruby! If `baml_client` doesn't exist, make sure to run the previous step! - + + ```ruby main.rb require_relative "baml_client/client" @@ -52,6 +53,14 @@ To set up BAML with Ruby do the following: puts r.inspect end + example 'Grace Hopper created COBOL' + ``` + + + + ```ruby stream_example.rb + require_relative "baml_client/client" + def example_stream(raw_resume) stream = Baml.Client.stream.ExtractResume(resume: raw_resume) @@ -64,8 +73,8 @@ To set up BAML with Ruby do the following: stream.get_final_response end - example 'Grace Hopper created COBOL' example_stream 'Grace Hopper created COBOL' ``` - + + diff --git a/fern/01-guide/02-languages/typescript.mdx b/fern/01-guide/02-languages/typescript.mdx index 56675735ca..55759cfb77 100644 --- a/fern/01-guide/02-languages/typescript.mdx +++ b/fern/01-guide/02-languages/typescript.mdx @@ -11,81 +11,110 @@ To set up BAML with Typescript do the following: - prompt previews ### Install BAML - - ```bash npm - npm install @boundaryml/baml - ``` + + + ```bash npm + npm install @boundaryml/baml + ``` + + + + ```bash pnpm + pnpm add @boundaryml/baml + ``` + + + + ```bash yarn + yarn add @boundaryml/baml + ``` + + + + ```bash bun + bun add @boundaryml/baml + ``` + + + + ```bash deno + deno install npm:@boundaryml/baml + ``` + + - ```bash pnpm - pnpm add @boundaryml/baml - ``` + ### Add BAML to your existing project + This will give you some starter BAML code in a `baml_src` directory. - ```bash yarn - yarn add @boundaryml/baml - ``` + + + ```bash npm + npx baml-cli init + ``` + + + + ```bash pnpm + pnpm exec baml-cli init + ``` + + + + ```bash yarn + yarn baml-cli init + ``` + + + + ```bash bun + bun baml-cli init + ``` + + + + ```bash deno + deno run -A npm:@boundaryml/baml/baml-cli init + ``` + + - ```bash bun - bun add @boundaryml/baml - ``` - - ```bash deno - deno install npm:@boundaryml/baml - ``` - + ### Generate the `baml_client` typescript package from `.baml` files - ### Add BAML to your existing project - This will give you some starter BAML code in a `baml_src` directory. + One of the files in your `baml_src` directory will have a [generator block](/ref/baml/generator). This tells BAML how to generate the `baml_client` directory, which will have auto-generated typescript code to call your BAML functions. - + + ```bash npm - npx baml-cli init + npx baml-cli generate ``` + + ```bash pnpm - pnpm exec baml-cli init + pnpm exec baml-cli generate ``` + + ```bash yarn - yarn baml-cli init + yarn baml-cli generate ``` + + ```bash bun - bun baml-cli init + bun baml-cli generate ``` + + ```bash deno - deno run -A npm:@boundaryml/baml/baml-cli init + deno run -A npm:@boundaryml/baml/baml-cli generate + # You may need to use the --unstable-sloppy-imports flag if you get an error about ESM + # https://github.com/BoundaryML/baml/issues/1213#issuecomment-2526200783 ``` - - - ### Generate the `baml_client` typescript package from `.baml` files - - One of the files in your `baml_src` directory will have a [generator block](/ref/baml/generator). This tells BAML how to generate the `baml_client` directory, which will have auto-generated typescript code to call your BAML functions. - - - ```bash npm - npx baml-cli generate - ``` - - ```bash pnpm - pnpm exec baml-cli generate - ``` - - ```bash yarn - yarn baml-cli generate - ``` - - ```bash bun - bun baml-cli generate - ``` - - ```bash deno - deno run -A npm:@boundaryml/baml/baml-cli generate - # You may need to use the --unstable-sloppy-imports flag if you get an error about ESM - # https://github.com/BoundaryML/baml/issues/1213#issuecomment-2526200783 - - ``` - + + If you need baml_client to be 'ESM' compatible, you can add the following `generator` configuration to your `.baml` file: @@ -122,7 +151,8 @@ To set up BAML with Typescript do the following: ### Use a BAML function in Typescript! If `baml_client` doesn't exist, make sure to run the previous step! - + + ```typescript index.ts import { b } from "./baml_client" import type { Resume } from "./baml_client/types" @@ -144,7 +174,9 @@ To set up BAML with Typescript do the following: return await stream.getFinalResponse(); } ``` + + ```typescript sync_example.ts import { b } from "./baml_client/sync_client" import type { Resume } from "./baml_client/types" @@ -157,7 +189,7 @@ To set up BAML with Typescript do the following: } // Streaming is not available in the sync_client. - ``` - + + diff --git a/fern/01-guide/05-baml-advanced/checks-and-asserts.mdx b/fern/01-guide/05-baml-advanced/checks-and-asserts.mdx index fcb296a04c..04bece31fb 100644 --- a/fern/01-guide/05-baml-advanced/checks-and-asserts.mdx +++ b/fern/01-guide/05-baml-advanced/checks-and-asserts.mdx @@ -146,9 +146,9 @@ class Citation { } ``` - - -```python Python + + +```python from baml_client import b from baml_client.types import Citation @@ -165,10 +165,11 @@ def main(): print(f"Validation error: {str(e)}") except Exception as e: print(f"An unexpected error occurred: {e}") - ``` + -```typescript Typescript + +```typescript import { b, BamlValidationError } from './baml_client'; import { Citation } from './baml_client/types'; @@ -196,8 +197,8 @@ const main = () => { } }; ``` - - + + ## Checks @@ -211,15 +212,19 @@ runtime. ( bar int @check(less_than_zero, {{ this < 0 }}) )[] ``` - -```python Python + + +```python List[Checked[int, Dict[Literal["less_than_zero"]]]] ``` + -```typescript Typescript + +```typescript Checked[] ``` - + + The following example uses both `@check` and `@assert`. If `line_number` fails its @@ -252,8 +257,9 @@ function GetCitation(full_text: string) -> Citation { ``` - -```python Python + + +```python from baml_client import b from baml_client.types import Citation, get_checks @@ -272,13 +278,15 @@ def main(): for check in get_checks(citation.quote.checks): print(f"Check {check.name}: {check.status}") ``` + -```typescript Typescript + +```typescript import { b, get_checks } from './baml_client' import { Citation } from './baml_client/types' const main = () => { - const citation = b.GetCitation("SpaceX, is an American spacecraft manufacturer, launch service provider...") + const citation = b.GetCitation("SpaceX, is an American spacecraft manufacturer, launch service provider..."); // Access the value of the quote field const quote = citation.quote.value @@ -294,9 +302,8 @@ const main = () => { } } ``` - - - + + You can also chain multiple `@check` and `@assert` attributes on a single field. @@ -359,4 +366,5 @@ class Person { this.age >= 18 or this.address.country != "USA", }}) } + ``` diff --git a/fern/01-guide/05-baml-advanced/dynamic-types.mdx b/fern/01-guide/05-baml-advanced/dynamic-types.mdx index 50adaae2c4..f35b14dd43 100644 --- a/fern/01-guide/05-baml-advanced/dynamic-types.mdx +++ b/fern/01-guide/05-baml-advanced/dynamic-types.mdx @@ -129,9 +129,9 @@ function DynamicUserCreator(user_info: string) -> User { We can then modify the `User` schema at runtime. Since we marked `User` with `@@dynamic`, it'll be available as a property of `TypeBuilder`. - - -```python Python + + +```python from baml_client.type_builder import TypeBuilder from baml_client import b @@ -142,10 +142,11 @@ async def run(): res = await b.DynamicUserCreator("some user info", { "tb": tb }) # Now res can have email and address fields print(res) - ``` + -```typescript TypeScript + +```typescript import TypeBuilder from '../baml_client/type_builder' import { b @@ -160,8 +161,10 @@ async function run() { console.log(res) } ``` + -```ruby Ruby + +```ruby require_relative 'baml_client/client' def run @@ -169,12 +172,13 @@ def run tb.User.add_property('email', tb.string) tb.User.add_property('address', tb.string).description("The user's address") - res = Baml.Client.dynamic_user_creator(input: "some user info", baml_options: {tb: tb}) + res = Baml::Client.dynamic_user_creator(input: "some user info", baml_options: { tb: tb }) # Now res can have email and address fields puts res end ``` - + + ### Add existing BAML types to a property (e.g. you want to add a subset of tools) @@ -258,73 +262,77 @@ The previous examples showed how to modify existing types. Here we create a new Note that you must attach the new types to the existing Return Type of your BAML function(in this case it's `User`). - - -```python Python -from baml_client.type_builder import TypeBuilder -from baml_client.async_client import b - -async def run(): - tb = TypeBuilder() - hobbies_enum = tb.add_enum("Hobbies") - hobbies_enum.add_value("Soccer") - hobbies_enum.add_value("Reading") - - address_class = tb.add_class("Address") - address_class.add_property("street", tb.string()).description("The user's street address") - - tb.User.add_property("hobby", hobbies_enum.type().optional()) - tb.User.add_property("address", address_class.type().optional()) - res = await b.DynamicUserCreator("some user info", {"tb": tb}) - # Now res might have the hobby property, which can be Soccer or Reading - print(res) - -``` - -```typescript TypeScript -import TypeBuilder from '../baml_client/type_builder' -import { b } from '../baml_client' - -async function run() { - const tb = new TypeBuilder() - const hobbiesEnum = tb.addEnum('Hobbies') - hobbiesEnum.addValue('Soccer') - hobbiesEnum.addValue('Reading') - - const addressClass = tb.addClass('Address') - addressClass.addProperty('street', tb.string()).description("The user's street address") - - - tb.User.addProperty('hobby', hobbiesEnum.type().optional()) - tb.User.addProperty('address', addressClass.type()) - const res = await b.DynamicUserCreator("some user info", { tb: tb }) - // Now res might have the hobby property, which can be Soccer or Reading - console.log(res) -} -``` - -```ruby Ruby -require_relative 'baml_client/client' - -def run - tb = Baml::TypeBuilder.new - hobbies_enum = tb.add_enum('Hobbies') - hobbies_enum.add_value('Soccer') - hobbies_enum.add_value('Reading') - - address_class = tb.add_class('Address') - address_class.add_property('street', tb.string) - - tb.User.add_property('hobby', hobbies_enum.type.optional) - tb.User.add_property('address', address_class.type.optional) - - res = Baml::Client.dynamic_user_creator(input: "some user info", baml_options: { tb: tb }) - # Now res might have the hobby property, which can be Soccer or Reading - puts res -end -``` - - + + + ```python Python + from baml_client.type_builder import TypeBuilder + from baml_client.async_client import b + + async def run(): + tb = TypeBuilder() + hobbies_enum = tb.add_enum("Hobbies") + hobbies_enum.add_value("Soccer") + hobbies_enum.add_value("Reading") + + address_class = tb.add_class("Address") + address_class.add_property("street", tb.string()).description("The user's street address") + + tb.User.add_property("hobby", hobbies_enum.type().optional()) + tb.User.add_property("address", address_class.type().optional()) + res = await b.DynamicUserCreator("some user info", {"tb": tb}) + # Now res might have the hobby property, which can be Soccer or Reading + print(res) + + ``` + + + + ```typescript TypeScript + import TypeBuilder from '../baml_client/type_builder' + import { b } from '../baml_client' + + async function run() { + const tb = new TypeBuilder() + const hobbiesEnum = tb.addEnum('Hobbies') + hobbiesEnum.addValue('Soccer') + hobbiesEnum.addValue('Reading') + + const addressClass = tb.addClass('Address') + addressClass.addProperty('street', tb.string()).description("The user's street address") + + + tb.User.addProperty('hobby', hobbiesEnum.type().optional()) + tb.User.addProperty('address', addressClass.type()) + const res = await b.DynamicUserCreator("some user info", { tb: tb }) + # Now res might have the hobby property, which can be Soccer or Reading + console.log(res) + } + ``` + + + + ```ruby Ruby + require_relative 'baml_client/client' + + def run + tb = Baml::TypeBuilder.new + hobbies_enum = tb.add_enum('Hobbies') + hobbies_enum.add_value('Soccer') + hobbies_enum.add_value('Reading') + + address_class = tb.add_class('Address') + address_class.add_property('street', tb.string) + + tb.User.add_property('hobby', hobbies_enum.type.optional) + tb.User.add_property('address', address_class.type.optional) + + res = Baml::Client.dynamic_user_creator(input: "some user info", baml_options: { tb: tb }) + # Now res might have the hobby property, which can be Soccer or Reading + puts res + end + ``` + + TypeBuilder provides methods for building different kinds of types: @@ -348,24 +356,28 @@ TypeBuilder provides methods for building different kinds of types: ### Adding descriptions to dynamic types - - -```python Python + + +```python tb = TypeBuilder() tb.User.add_property("email", tb.string()).description("The user's email") ``` + -```typescript TypeScript + +```typescript const tb = new TypeBuilder() tb.User.addProperty("email", tb.string()).description("The user's email") ``` + -```ruby Ruby + +```ruby tb = Baml::TypeBuilder.new tb.User.add_property("email", tb.string).description("The user's email") ``` - - + + ### Creating dynamic classes and enums at runtime with BAML syntax diff --git a/fern/03-reference/baml_client/client.mdx b/fern/03-reference/baml_client/client.mdx index c648f6e011..03a2c98b1e 100644 --- a/fern/03-reference/baml_client/client.mdx +++ b/fern/03-reference/baml_client/client.mdx @@ -29,7 +29,8 @@ function WriteAPoemAbout(input: string) -> string { After running `baml-cli generate` you can directly call these functions from your code. Here's an example using the async client: - + + ```python from baml_client.async_client import b @@ -38,7 +39,9 @@ async def example(): story = await b.TellMeAStory() poem = await b.WriteAPoemAbout("Roses") ``` + + ```typescript import { b } from '../baml_client/async_client' @@ -48,7 +51,9 @@ async function example() { const poem = await b.WriteAPoemAbout("Roses") } ``` + + ```ruby # Ruby doesn't have an async client. require 'baml_client/client' @@ -59,12 +64,14 @@ def example poem = b.WriteAPoemAbout("Roses") end ``` - + + The sync client is exactly the same but it doesn't need an async runtime, instead it just blocks. - + + ```python from baml_client.sync_client import b @@ -73,7 +80,9 @@ def example(): story = b.TellMeAStory() poem = b.WriteAPoemAbout("Roses") ``` + + ```typescript import { b } from '../baml_client/sync_client' @@ -83,7 +92,9 @@ function example() { const poem = b.WriteAPoemAbout("Roses") } ``` + + ```ruby require 'baml_client/client' @@ -95,7 +106,8 @@ def example poem = b.WriteAPoemAbout("Roses") end ``` - + + ## Call Patterns @@ -106,7 +118,8 @@ functions in a different manner. The `.stream` object is used to stream the response from a function. - + + ```python from baml_client.async_client import b @@ -118,7 +131,9 @@ async def example(): print(await stream.get_final_response()) ``` + + ```typescript import { b } from '../baml_client/async_client' @@ -132,7 +147,9 @@ async function example() { console.log(await stream.getFinalResponse()) } ``` + + ```ruby require 'baml_client/client' @@ -148,7 +165,8 @@ def example puts stream.get_final_response end ``` - + + ### `.request` @@ -161,7 +179,8 @@ However, the async client still returns an awaitable object because we might need to resolve media types like images and convert them to base64 or the required format in order to send them to the LLM. - + + ```python from baml_client.async_client import b @@ -171,7 +190,9 @@ async def example(): print(request.headers) print(request.body.json()) ``` + + ```typescript import { b } from '../baml_client/async_client' @@ -182,7 +203,9 @@ async function example() { console.log(request.body.json()) } ``` + + ```ruby require 'baml_client/client' @@ -195,7 +218,8 @@ def example puts request.body.json end ``` - + + ### `.stream_request` @@ -205,7 +229,8 @@ end Same as [`.request`](#request) but sets the streaming options to `true`. - + + ```python from baml_client.async_client import b @@ -215,7 +240,9 @@ async def example(): print(request.headers) print(request.body.json()) ``` + + ```typescript import { b } from '../baml_client/async_client' @@ -226,7 +253,9 @@ async function example() { console.log(request.body.json()) } ``` + + ```ruby require 'baml_client/client' @@ -239,7 +268,8 @@ def example puts request.body.json end ``` - + + ### `.parse` @@ -250,7 +280,8 @@ end The `.parse` object is used to parse the response returned by the LLM after the function call. Can be used in combination with [`.request`](#request). - + + ```python import requests # requests is not async so for simplicity we'll use the sync client. @@ -269,7 +300,9 @@ def example(): # Fully parsed response. print(parsed) ``` + + ```typescript import { b } from '../baml_client/async_client' @@ -294,7 +327,9 @@ async function example() { console.log(parsed) } ``` + + ```ruby require 'net/http' require 'uri' @@ -330,7 +365,8 @@ def run puts parsed end ``` - + + ### `.parse_stream` @@ -341,7 +377,8 @@ end Same as [`.parse`](#parse) but for streaming responses. Can be used in combination with [`.stream_request`](#stream_request). - + + ```python from openai import AsyncOpenAI from baml_client.async_client import b @@ -358,7 +395,9 @@ async def example(): llm_response.append(chunk.choices[0].delta.content) print(b.parse_stream.TellMeAStory("".join(llm_response))) ``` + + ```typescript import OpenAI from 'openai' import { b } from '../baml_client/async_client' @@ -378,4 +417,5 @@ async function example() { } } ``` - + + diff --git a/fern/03-reference/baml_client/typebuilder.mdx b/fern/03-reference/baml_client/typebuilder.mdx index 75f201f151..c246c8eae4 100644 --- a/fern/03-reference/baml_client/typebuilder.mdx +++ b/fern/03-reference/baml_client/typebuilder.mdx @@ -26,8 +26,9 @@ function Categorize(text: string) -> Category { ``` **Runtime Usage** - -```python Python + + +```python from baml_client.type_builder import TypeBuilder from baml_client import b @@ -42,7 +43,10 @@ tb.Category.add_value('YELLOW') result = b.Categorize("The sun is bright", {"tb": tb}) # result can now be RED, BLUE, GREEN, or YELLOW ``` -```typescript TypeScript + + + +```typescript import { TypeBuilder } from '../baml_client/type_builder' import { b } from '../baml_client' @@ -57,7 +61,10 @@ tb.Category.addValue('YELLOW') const result = await b.Categorize("The sun is bright", { tb }) // result can now be RED, BLUE, GREEN, or YELLOW ``` -```ruby Ruby + + + +```ruby require_relative 'baml_client/client' # Create a TypeBuilder instance @@ -71,7 +78,8 @@ tb.Category.add_value('YELLOW') result = Baml::Client.categorize(text: "The sun is bright", baml_options: { tb: tb }) # result can now be RED, BLUE, GREEN, or YELLOW ``` - + + ## Dynamic Types @@ -93,23 +101,31 @@ class User { ``` **Runtime Usage** - -```python Python + + +```python tb = TypeBuilder() tb.User.add_property('email', tb.string()) tb.User.add_property('address', tb.string()) ``` -```typescript TypeScript + + + +```typescript const tb = new TypeBuilder() tb.User.addProperty('email', tb.string()) tb.User.addProperty('address', tb.string()) ``` -```ruby Ruby + + + +```ruby tb = Baml::TypeBuilder.new tb.User.add_property('email', tb.string) tb.User.add_property('address', tb.string) ``` - + + @@ -122,31 +138,40 @@ enum Category { ``` **Runtime Usage** - -```python Python + + +```python tb = TypeBuilder() tb.Category.add_value('VALUE3') tb.Category.add_value('VALUE4') ``` -```typescript TypeScript + + + +```typescript const tb = new TypeBuilder() tb.Category.addValue('VALUE3') tb.Category.addValue('VALUE4') ``` -```ruby Ruby + + + +```ruby tb = Baml::TypeBuilder.new tb.Category.add_value('VALUE3') tb.Category.add_value('VALUE4') ``` - + + ### Creating New Types You can also create entirely new types at runtime: - -```python Python + + +```python tb = TypeBuilder() # Create a new enum @@ -163,7 +188,10 @@ address.add_property("city", tb.string()) tb.User.add_property("hobbies", hobbies.type().list()) tb.User.add_property("address", address.type()) ``` -```typescript TypeScript + + + +```typescript const tb = new TypeBuilder() // Create a new enum @@ -180,7 +208,10 @@ address.addProperty("city", tb.string()) tb.User.addProperty("hobbies", hobbies.type().list()) tb.User.addProperty("address", address.type()) ``` -```ruby Ruby + + + +```ruby tb = Baml::TypeBuilder.new # Create a new enum @@ -197,7 +228,8 @@ address.add_property("city", tb.string) tb.User.add_property("hobbies", hobbies.type.list) tb.User.add_property("address", address.type) ``` - + + ## Type Builders @@ -289,8 +321,9 @@ tb.User.add_property("email", tb.string()) You can add descriptions to properties and enum values to help guide the LLM: - -```python Python + + +```python tb = TypeBuilder() # Add description to a property @@ -301,7 +334,10 @@ tb.User.add_property("email", tb.string()) \ tb.Category.add_value("URGENT") \ .description("Needs immediate attention") ``` -```typescript TypeScript + + + +```typescript const tb = new TypeBuilder() // Add description to a property @@ -312,7 +348,10 @@ tb.User.addProperty("email", tb.string()) tb.Category.addValue("URGENT") .description("Needs immediate attention") ``` -```ruby Ruby + + + +```ruby tb = Baml::TypeBuilder.new # Add description to a property @@ -323,16 +362,17 @@ tb.User.add_property("email", tb.string) tb.Category.add_value("URGENT") .description("Needs immediate attention") ``` - + + ## Creating/modyfing dynamic types with the `add_baml` method The `TypeBuilder` has a higher level API for creating dynamic types at runtime. Here's an example: - - -```python Python + + +```python tb = TypeBuilder() tb.add_baml(""" // Creates a new class Address that does not exist in the BAML source. @@ -353,8 +393,10 @@ tb.add_baml(""" } """) ``` + -```typescript TypeScript + +```typescript const tb = new TypeBuilder() tb.addBaml(` // Creates a new class Address that does not exist in the BAML source. @@ -375,8 +417,10 @@ tb.addBaml(` } `) ``` + -```ruby Ruby + +```ruby tb = Baml::TypeBuilder.new tb.add_baml(" // Creates a new class Address that does not exist in the BAML source. @@ -397,8 +441,8 @@ tb.add_baml(" } ") ``` - - + + ## Common Patterns