diff --git a/playground/api/v1/api.proto b/playground/api/v1/api.proto index bddb56bda5c70..da105e1184d79 100644 --- a/playground/api/v1/api.proto +++ b/playground/api/v1/api.proto @@ -168,6 +168,12 @@ message PrecompiledObject{ bool default_example = 9; } +// DefaultExample represents the default PrecompiledObject and his code +message DefaultExample{ + PrecompiledObject precompiled_object = 1; + string code = 2; +} + // Categories represent the array of messages with sdk and categories at this sdk message Categories{ message Category{ @@ -204,8 +210,8 @@ message GetPrecompiledObjectGraphRequest{ string cloud_path = 1; } -// GetDefaultPrecompiledObjectRequest contains information of the needed PrecompiledObject sdk. -message GetDefaultPrecompiledObjectRequest { +// GetDefaultExampleRequest contains information of the needed PrecompiledObject sdk. +message GetDefaultExampleRequest { Sdk sdk = 1; } @@ -234,9 +240,9 @@ message GetPrecompiledObjectGraphResponse { string graph = 1; } -// GetDefaultPrecompiledObjectResponse represents the default PrecompiledObject and his category for the sdk. -message GetDefaultPrecompiledObjectResponse { - PrecompiledObject precompiled_object = 1; +// GetDefaultExampleResponse represents the default PrecompiledObject and his code for the sdk. +message GetDefaultExampleResponse { + DefaultExample default_example = 1; } service PlaygroundService { @@ -286,6 +292,6 @@ service PlaygroundService { // Get the graph of an PrecompiledObject. rpc GetPrecompiledObjectGraph(GetPrecompiledObjectGraphRequest) returns (GetPrecompiledObjectGraphResponse); - // Get the default precompile object for the sdk. - rpc GetDefaultPrecompiledObject(GetDefaultPrecompiledObjectRequest) returns (GetDefaultPrecompiledObjectResponse); + // Get the default example for the sdk. + rpc GetDefaultExample(GetDefaultExampleRequest) returns (GetDefaultExampleResponse); } diff --git a/playground/backend/cmd/server/controller.go b/playground/backend/cmd/server/controller.go index 06d6d62b2adbb..5180c48a3b1e2 100644 --- a/playground/backend/cmd/server/controller.go +++ b/playground/backend/cmd/server/controller.go @@ -318,26 +318,18 @@ func (controller *playgroundController) GetPrecompiledObjectGraph(ctx context.Co return &response, nil } -// GetDefaultPrecompiledObject returns the default precompile object for sdk. -func (controller *playgroundController) GetDefaultPrecompiledObject(ctx context.Context, info *pb.GetDefaultPrecompiledObjectRequest) (*pb.GetDefaultPrecompiledObjectResponse, error) { +// GetDefaultExample returns the default precompile object for sdk. +func (controller *playgroundController) GetDefaultExample(ctx context.Context, info *pb.GetDefaultExampleRequest) (*pb.GetDefaultExampleResponse, error) { switch info.Sdk { case pb.Sdk_SDK_UNSPECIFIED: - logger.Errorf("GetDefaultPrecompiledObject(): unimplemented sdk: %s\n", info.Sdk) + logger.Errorf("GetDefaultExample(): unimplemented sdk: %s\n", info.Sdk) return nil, errors.InvalidArgumentError("Error during preparing", "Sdk is not implemented yet: %s", info.Sdk.String()) } - precompiledObject, err := utils.GetDefaultPrecompiledObject(ctx, info.Sdk, controller.cacheService) + defaultExample, err := utils.GetDefaultExample(ctx, info.Sdk, controller.cacheService) if err != nil { - logger.Errorf("GetDefaultPrecompiledObject(): error during getting catalog: %s", err.Error()) - return nil, errors.InternalError("Error during getting Precompiled Objects", "Error with cloud connection") + logger.Errorf("GetDefaultExample(): error during getting default example: %s", err.Error()) + return nil, errors.InternalError("Error during getting Default Examples", "Error with cloud connection") } - response := pb.GetDefaultPrecompiledObjectResponse{PrecompiledObject: &pb.PrecompiledObject{ - CloudPath: precompiledObject.CloudPath, - Name: precompiledObject.Name, - Description: precompiledObject.Description, - Type: precompiledObject.Type, - PipelineOptions: precompiledObject.PipelineOptions, - Link: precompiledObject.Link, - DefaultExample: precompiledObject.DefaultExample, - }} + response := pb.GetDefaultExampleResponse{DefaultExample: defaultExample} return &response, nil } diff --git a/playground/backend/cmd/server/server.go b/playground/backend/cmd/server/server.go index abbb37a3c6e00..a70626933aa1b 100644 --- a/playground/backend/cmd/server/server.go +++ b/playground/backend/cmd/server/server.go @@ -119,7 +119,7 @@ func setupCache(ctx context.Context, appEnv environment.ApplicationEnvs) (cache. } } -// setupExamplesCatalog saves precompiled objects catalog from storage to cache +// setupExamplesCatalog saves precompiled objects catalog and default example from storage to cache func setupExamplesCatalog(ctx context.Context, cacheService cache.Cache) error { catalog, err := utils.GetCatalogFromStorage(ctx) if err != nil { @@ -130,12 +130,12 @@ func setupExamplesCatalog(ctx context.Context, cacheService cache.Cache) error { } bucket := cloud_bucket.New() - defaultPrecompiledObjects, err := bucket.GetDefaultPrecompiledObjects(ctx) + defaultExamples, err := bucket.GetDefaultExamples(ctx) if err != nil { return err } - for sdk, precompiledObject := range defaultPrecompiledObjects { - if err := cacheService.SetDefaultPrecompiledObject(ctx, sdk, precompiledObject); err != nil { + for sdk, defaultExample := range defaultExamples { + if err := cacheService.SetDefaultExample(ctx, sdk, defaultExample); err != nil { logger.Errorf("GetPrecompiledObjects(): cache error: %s", err.Error()) return err } diff --git a/playground/backend/internal/api/v1/api.pb.go b/playground/backend/internal/api/v1/api.pb.go index 95023091aaca3..d2644b1ef60dd 100644 --- a/playground/backend/internal/api/v1/api.pb.go +++ b/playground/backend/internal/api/v1/api.pb.go @@ -1304,6 +1304,62 @@ func (x *PrecompiledObject) GetDefaultExample() bool { return false } +// DefaultExample represents the default PrecompiledObject and his code +type DefaultExample struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + PrecompiledObject *PrecompiledObject `protobuf:"bytes,1,opt,name=precompiled_object,json=precompiledObject,proto3" json:"precompiled_object,omitempty"` + Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` +} + +func (x *DefaultExample) Reset() { + *x = DefaultExample{} + if protoimpl.UnsafeEnabled { + mi := &file_api_v1_api_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DefaultExample) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DefaultExample) ProtoMessage() {} + +func (x *DefaultExample) ProtoReflect() protoreflect.Message { + mi := &file_api_v1_api_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DefaultExample.ProtoReflect.Descriptor instead. +func (*DefaultExample) Descriptor() ([]byte, []int) { + return file_api_v1_api_proto_rawDescGZIP(), []int{21} +} + +func (x *DefaultExample) GetPrecompiledObject() *PrecompiledObject { + if x != nil { + return x.PrecompiledObject + } + return nil +} + +func (x *DefaultExample) GetCode() string { + if x != nil { + return x.Code + } + return "" +} + // Categories represent the array of messages with sdk and categories at this sdk type Categories struct { state protoimpl.MessageState @@ -1317,7 +1373,7 @@ type Categories struct { func (x *Categories) Reset() { *x = Categories{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[21] + mi := &file_api_v1_api_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1330,7 +1386,7 @@ func (x *Categories) String() string { func (*Categories) ProtoMessage() {} func (x *Categories) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[21] + mi := &file_api_v1_api_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1343,7 +1399,7 @@ func (x *Categories) ProtoReflect() protoreflect.Message { // Deprecated: Use Categories.ProtoReflect.Descriptor instead. func (*Categories) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{21} + return file_api_v1_api_proto_rawDescGZIP(), []int{22} } func (x *Categories) GetSdk() Sdk { @@ -1373,7 +1429,7 @@ type GetPrecompiledObjectsRequest struct { func (x *GetPrecompiledObjectsRequest) Reset() { *x = GetPrecompiledObjectsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[22] + mi := &file_api_v1_api_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1386,7 +1442,7 @@ func (x *GetPrecompiledObjectsRequest) String() string { func (*GetPrecompiledObjectsRequest) ProtoMessage() {} func (x *GetPrecompiledObjectsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[22] + mi := &file_api_v1_api_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1399,7 +1455,7 @@ func (x *GetPrecompiledObjectsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectsRequest.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectsRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{22} + return file_api_v1_api_proto_rawDescGZIP(), []int{23} } func (x *GetPrecompiledObjectsRequest) GetSdk() Sdk { @@ -1428,7 +1484,7 @@ type GetPrecompiledObjectCodeRequest struct { func (x *GetPrecompiledObjectCodeRequest) Reset() { *x = GetPrecompiledObjectCodeRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[23] + mi := &file_api_v1_api_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1441,7 +1497,7 @@ func (x *GetPrecompiledObjectCodeRequest) String() string { func (*GetPrecompiledObjectCodeRequest) ProtoMessage() {} func (x *GetPrecompiledObjectCodeRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[23] + mi := &file_api_v1_api_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1454,7 +1510,7 @@ func (x *GetPrecompiledObjectCodeRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectCodeRequest.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectCodeRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{23} + return file_api_v1_api_proto_rawDescGZIP(), []int{24} } func (x *GetPrecompiledObjectCodeRequest) GetCloudPath() string { @@ -1476,7 +1532,7 @@ type GetPrecompiledObjectOutputRequest struct { func (x *GetPrecompiledObjectOutputRequest) Reset() { *x = GetPrecompiledObjectOutputRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[24] + mi := &file_api_v1_api_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1489,7 +1545,7 @@ func (x *GetPrecompiledObjectOutputRequest) String() string { func (*GetPrecompiledObjectOutputRequest) ProtoMessage() {} func (x *GetPrecompiledObjectOutputRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[24] + mi := &file_api_v1_api_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1502,7 +1558,7 @@ func (x *GetPrecompiledObjectOutputRequest) ProtoReflect() protoreflect.Message // Deprecated: Use GetPrecompiledObjectOutputRequest.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectOutputRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{24} + return file_api_v1_api_proto_rawDescGZIP(), []int{25} } func (x *GetPrecompiledObjectOutputRequest) GetCloudPath() string { @@ -1524,7 +1580,7 @@ type GetPrecompiledObjectLogsRequest struct { func (x *GetPrecompiledObjectLogsRequest) Reset() { *x = GetPrecompiledObjectLogsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[25] + mi := &file_api_v1_api_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1537,7 +1593,7 @@ func (x *GetPrecompiledObjectLogsRequest) String() string { func (*GetPrecompiledObjectLogsRequest) ProtoMessage() {} func (x *GetPrecompiledObjectLogsRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[25] + mi := &file_api_v1_api_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1550,7 +1606,7 @@ func (x *GetPrecompiledObjectLogsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectLogsRequest.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectLogsRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{25} + return file_api_v1_api_proto_rawDescGZIP(), []int{26} } func (x *GetPrecompiledObjectLogsRequest) GetCloudPath() string { @@ -1572,7 +1628,7 @@ type GetPrecompiledObjectGraphRequest struct { func (x *GetPrecompiledObjectGraphRequest) Reset() { *x = GetPrecompiledObjectGraphRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[26] + mi := &file_api_v1_api_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1585,7 +1641,7 @@ func (x *GetPrecompiledObjectGraphRequest) String() string { func (*GetPrecompiledObjectGraphRequest) ProtoMessage() {} func (x *GetPrecompiledObjectGraphRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[26] + mi := &file_api_v1_api_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1598,7 +1654,7 @@ func (x *GetPrecompiledObjectGraphRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectGraphRequest.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectGraphRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{26} + return file_api_v1_api_proto_rawDescGZIP(), []int{27} } func (x *GetPrecompiledObjectGraphRequest) GetCloudPath() string { @@ -1608,8 +1664,8 @@ func (x *GetPrecompiledObjectGraphRequest) GetCloudPath() string { return "" } -// GetDefaultPrecompiledObjectRequest contains information of the needed PrecompiledObject sdk. -type GetDefaultPrecompiledObjectRequest struct { +// GetDefaultExampleRequest contains information of the needed PrecompiledObject sdk. +type GetDefaultExampleRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields @@ -1617,23 +1673,23 @@ type GetDefaultPrecompiledObjectRequest struct { Sdk Sdk `protobuf:"varint,1,opt,name=sdk,proto3,enum=api.v1.Sdk" json:"sdk,omitempty"` } -func (x *GetDefaultPrecompiledObjectRequest) Reset() { - *x = GetDefaultPrecompiledObjectRequest{} +func (x *GetDefaultExampleRequest) Reset() { + *x = GetDefaultExampleRequest{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[27] + mi := &file_api_v1_api_proto_msgTypes[28] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetDefaultPrecompiledObjectRequest) String() string { +func (x *GetDefaultExampleRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetDefaultPrecompiledObjectRequest) ProtoMessage() {} +func (*GetDefaultExampleRequest) ProtoMessage() {} -func (x *GetDefaultPrecompiledObjectRequest) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[27] +func (x *GetDefaultExampleRequest) ProtoReflect() protoreflect.Message { + mi := &file_api_v1_api_proto_msgTypes[28] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1644,12 +1700,12 @@ func (x *GetDefaultPrecompiledObjectRequest) ProtoReflect() protoreflect.Message return mi.MessageOf(x) } -// Deprecated: Use GetDefaultPrecompiledObjectRequest.ProtoReflect.Descriptor instead. -func (*GetDefaultPrecompiledObjectRequest) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{27} +// Deprecated: Use GetDefaultExampleRequest.ProtoReflect.Descriptor instead. +func (*GetDefaultExampleRequest) Descriptor() ([]byte, []int) { + return file_api_v1_api_proto_rawDescGZIP(), []int{28} } -func (x *GetDefaultPrecompiledObjectRequest) GetSdk() Sdk { +func (x *GetDefaultExampleRequest) GetSdk() Sdk { if x != nil { return x.Sdk } @@ -1668,7 +1724,7 @@ type GetPrecompiledObjectsResponse struct { func (x *GetPrecompiledObjectsResponse) Reset() { *x = GetPrecompiledObjectsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[28] + mi := &file_api_v1_api_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1681,7 +1737,7 @@ func (x *GetPrecompiledObjectsResponse) String() string { func (*GetPrecompiledObjectsResponse) ProtoMessage() {} func (x *GetPrecompiledObjectsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[28] + mi := &file_api_v1_api_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1694,7 +1750,7 @@ func (x *GetPrecompiledObjectsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectsResponse.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectsResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{28} + return file_api_v1_api_proto_rawDescGZIP(), []int{29} } func (x *GetPrecompiledObjectsResponse) GetSdkCategories() []*Categories { @@ -1716,7 +1772,7 @@ type GetPrecompiledObjectCodeResponse struct { func (x *GetPrecompiledObjectCodeResponse) Reset() { *x = GetPrecompiledObjectCodeResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[29] + mi := &file_api_v1_api_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1729,7 +1785,7 @@ func (x *GetPrecompiledObjectCodeResponse) String() string { func (*GetPrecompiledObjectCodeResponse) ProtoMessage() {} func (x *GetPrecompiledObjectCodeResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[29] + mi := &file_api_v1_api_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1742,7 +1798,7 @@ func (x *GetPrecompiledObjectCodeResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectCodeResponse.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectCodeResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{29} + return file_api_v1_api_proto_rawDescGZIP(), []int{30} } func (x *GetPrecompiledObjectCodeResponse) GetCode() string { @@ -1764,7 +1820,7 @@ type GetPrecompiledObjectOutputResponse struct { func (x *GetPrecompiledObjectOutputResponse) Reset() { *x = GetPrecompiledObjectOutputResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[30] + mi := &file_api_v1_api_proto_msgTypes[31] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1777,7 +1833,7 @@ func (x *GetPrecompiledObjectOutputResponse) String() string { func (*GetPrecompiledObjectOutputResponse) ProtoMessage() {} func (x *GetPrecompiledObjectOutputResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[30] + mi := &file_api_v1_api_proto_msgTypes[31] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1790,7 +1846,7 @@ func (x *GetPrecompiledObjectOutputResponse) ProtoReflect() protoreflect.Message // Deprecated: Use GetPrecompiledObjectOutputResponse.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectOutputResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{30} + return file_api_v1_api_proto_rawDescGZIP(), []int{31} } func (x *GetPrecompiledObjectOutputResponse) GetOutput() string { @@ -1812,7 +1868,7 @@ type GetPrecompiledObjectLogsResponse struct { func (x *GetPrecompiledObjectLogsResponse) Reset() { *x = GetPrecompiledObjectLogsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[31] + mi := &file_api_v1_api_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1825,7 +1881,7 @@ func (x *GetPrecompiledObjectLogsResponse) String() string { func (*GetPrecompiledObjectLogsResponse) ProtoMessage() {} func (x *GetPrecompiledObjectLogsResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[31] + mi := &file_api_v1_api_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1838,7 +1894,7 @@ func (x *GetPrecompiledObjectLogsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use GetPrecompiledObjectLogsResponse.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectLogsResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{31} + return file_api_v1_api_proto_rawDescGZIP(), []int{32} } func (x *GetPrecompiledObjectLogsResponse) GetOutput() string { @@ -1860,7 +1916,7 @@ type GetPrecompiledObjectGraphResponse struct { func (x *GetPrecompiledObjectGraphResponse) Reset() { *x = GetPrecompiledObjectGraphResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[32] + mi := &file_api_v1_api_proto_msgTypes[33] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1873,7 +1929,7 @@ func (x *GetPrecompiledObjectGraphResponse) String() string { func (*GetPrecompiledObjectGraphResponse) ProtoMessage() {} func (x *GetPrecompiledObjectGraphResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[32] + mi := &file_api_v1_api_proto_msgTypes[33] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1886,7 +1942,7 @@ func (x *GetPrecompiledObjectGraphResponse) ProtoReflect() protoreflect.Message // Deprecated: Use GetPrecompiledObjectGraphResponse.ProtoReflect.Descriptor instead. func (*GetPrecompiledObjectGraphResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{32} + return file_api_v1_api_proto_rawDescGZIP(), []int{33} } func (x *GetPrecompiledObjectGraphResponse) GetGraph() string { @@ -1896,32 +1952,32 @@ func (x *GetPrecompiledObjectGraphResponse) GetGraph() string { return "" } -// GetDefaultPrecompiledObjectResponse represents the default PrecompiledObject and his category for the sdk. -type GetDefaultPrecompiledObjectResponse struct { +// GetDefaultExampleResponse represents the default PrecompiledObject and his code for the sdk. +type GetDefaultExampleResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - PrecompiledObject *PrecompiledObject `protobuf:"bytes,1,opt,name=precompiled_object,json=precompiledObject,proto3" json:"precompiled_object,omitempty"` + DefaultExample *DefaultExample `protobuf:"bytes,1,opt,name=default_example,json=defaultExample,proto3" json:"default_example,omitempty"` } -func (x *GetDefaultPrecompiledObjectResponse) Reset() { - *x = GetDefaultPrecompiledObjectResponse{} +func (x *GetDefaultExampleResponse) Reset() { + *x = GetDefaultExampleResponse{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[33] + mi := &file_api_v1_api_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *GetDefaultPrecompiledObjectResponse) String() string { +func (x *GetDefaultExampleResponse) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetDefaultPrecompiledObjectResponse) ProtoMessage() {} +func (*GetDefaultExampleResponse) ProtoMessage() {} -func (x *GetDefaultPrecompiledObjectResponse) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[33] +func (x *GetDefaultExampleResponse) ProtoReflect() protoreflect.Message { + mi := &file_api_v1_api_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1932,14 +1988,14 @@ func (x *GetDefaultPrecompiledObjectResponse) ProtoReflect() protoreflect.Messag return mi.MessageOf(x) } -// Deprecated: Use GetDefaultPrecompiledObjectResponse.ProtoReflect.Descriptor instead. -func (*GetDefaultPrecompiledObjectResponse) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{33} +// Deprecated: Use GetDefaultExampleResponse.ProtoReflect.Descriptor instead. +func (*GetDefaultExampleResponse) Descriptor() ([]byte, []int) { + return file_api_v1_api_proto_rawDescGZIP(), []int{34} } -func (x *GetDefaultPrecompiledObjectResponse) GetPrecompiledObject() *PrecompiledObject { +func (x *GetDefaultExampleResponse) GetDefaultExample() *DefaultExample { if x != nil { - return x.PrecompiledObject + return x.DefaultExample } return nil } @@ -1956,7 +2012,7 @@ type Categories_Category struct { func (x *Categories_Category) Reset() { *x = Categories_Category{} if protoimpl.UnsafeEnabled { - mi := &file_api_v1_api_proto_msgTypes[34] + mi := &file_api_v1_api_proto_msgTypes[35] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1969,7 +2025,7 @@ func (x *Categories_Category) String() string { func (*Categories_Category) ProtoMessage() {} func (x *Categories_Category) ProtoReflect() protoreflect.Message { - mi := &file_api_v1_api_proto_msgTypes[34] + mi := &file_api_v1_api_proto_msgTypes[35] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1982,7 +2038,7 @@ func (x *Categories_Category) ProtoReflect() protoreflect.Message { // Deprecated: Use Categories_Category.ProtoReflect.Descriptor instead. func (*Categories_Category) Descriptor() ([]byte, []int) { - return file_api_v1_api_proto_rawDescGZIP(), []int{21, 0} + return file_api_v1_api_proto_rawDescGZIP(), []int{22, 0} } func (x *Categories_Category) GetCategoryName() string { @@ -2095,6 +2151,13 @@ var file_api_v1_api_proto_rawDesc = []byte{ 0x78, 0x74, 0x4c, 0x69, 0x6e, 0x65, 0x12, 0x27, 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x22, + 0x6e, 0x0a, 0x0e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x12, 0x48, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, + 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, + 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x11, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0xe5, 0x01, 0x0a, 0x0a, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x1d, 0x0a, 0x03, 0x73, 0x64, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x64, 0x6b, 0x52, 0x03, 0x73, 0x64, 0x6b, 0x12, 0x3b, 0x0a, @@ -2131,169 +2194,166 @@ var file_api_v1_api_proto_rawDesc = []byte{ 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x43, 0x0a, - 0x22, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x03, 0x73, 0x64, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x64, 0x6b, 0x52, 0x03, 0x73, - 0x64, 0x6b, 0x22, 0x5a, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, - 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x73, 0x64, 0x6b, 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, - 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, - 0x0d, 0x73, 0x64, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x22, 0x36, - 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, - 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3c, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, - 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, - 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, - 0x74, 0x70, 0x75, 0x74, 0x22, 0x3a, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x22, 0x39, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, 0x61, 0x70, 0x68, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x61, 0x70, 0x68, 0x22, 0x6f, 0x0a, 0x23, 0x47, - 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, - 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x48, 0x0a, 0x12, 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x64, 0x5f, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, - 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x11, 0x70, 0x72, 0x65, 0x63, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x2a, 0x52, 0x0a, 0x03, - 0x53, 0x64, 0x6b, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x44, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x44, 0x4b, 0x5f, - 0x4a, 0x41, 0x56, 0x41, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x44, 0x4b, 0x5f, 0x47, 0x4f, - 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x44, 0x4b, 0x5f, 0x50, 0x59, 0x54, 0x48, 0x4f, 0x4e, - 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x44, 0x4b, 0x5f, 0x53, 0x43, 0x49, 0x4f, 0x10, 0x04, - 0x2a, 0xb8, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, - 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1b, 0x0a, 0x17, 0x53, 0x54, - 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, - 0x53, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x03, 0x12, 0x1c, 0x0a, - 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x41, 0x54, - 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x49, 0x4e, 0x47, 0x10, - 0x05, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, - 0x49, 0x4c, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x14, 0x0a, 0x10, 0x53, - 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, 0x4e, 0x47, 0x10, - 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, 0x49, 0x4e, 0x49, - 0x53, 0x48, 0x45, 0x44, 0x10, 0x08, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x09, 0x12, 0x10, 0x0a, 0x0c, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x0a, 0x12, 0x16, - 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x54, 0x49, 0x4d, - 0x45, 0x4f, 0x55, 0x54, 0x10, 0x0b, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, - 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x0c, 0x2a, 0xae, 0x01, 0x0a, 0x15, - 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x50, - 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x23, - 0x0a, 0x1f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, - 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, - 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4b, - 0x41, 0x54, 0x41, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x50, - 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, - 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x03, 0x32, 0x9b, 0x0b, 0x0a, - 0x11, 0x50, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x16, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, - 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, - 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1a, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x52, 0x75, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x16, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3d, 0x0a, - 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, - 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x46, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x22, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x23, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x61, - 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x43, 0x6f, - 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1f, 0x2e, 0x61, 0x70, - 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4f, - 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x61, - 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, - 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x15, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x50, 0x72, - 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, - 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, - 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, - 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, - 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, + 0x28, 0x09, 0x52, 0x09, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x50, 0x61, 0x74, 0x68, 0x22, 0x39, 0x0a, + 0x18, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, + 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x03, 0x73, 0x64, 0x6b, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0b, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x53, 0x64, 0x6b, 0x52, 0x03, 0x73, 0x64, 0x6b, 0x22, 0x5a, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, - 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x73, 0x0a, 0x1a, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x0e, 0x73, 0x64, 0x6b, + 0x5f, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x52, 0x0d, 0x73, 0x64, 0x6b, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x22, 0x36, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x22, 0x3c, 0x0a, 0x22, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, - 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x3a, 0x0a, 0x20, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, + 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, + 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x22, 0x39, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, + 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, + 0x72, 0x61, 0x70, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x67, 0x72, 0x61, 0x70, + 0x68, 0x22, 0x5c, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, + 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, + 0x0a, 0x0f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x65, 0x78, 0x61, 0x6d, 0x70, 0x6c, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, + 0x0e, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x2a, + 0x52, 0x0a, 0x03, 0x53, 0x64, 0x6b, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x44, 0x4b, 0x5f, 0x55, 0x4e, + 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, + 0x44, 0x4b, 0x5f, 0x4a, 0x41, 0x56, 0x41, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x53, 0x44, 0x4b, + 0x5f, 0x47, 0x4f, 0x10, 0x02, 0x12, 0x0e, 0x0a, 0x0a, 0x53, 0x44, 0x4b, 0x5f, 0x50, 0x59, 0x54, + 0x48, 0x4f, 0x4e, 0x10, 0x03, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x44, 0x4b, 0x5f, 0x53, 0x43, 0x49, + 0x4f, 0x10, 0x04, 0x2a, 0xb8, 0x02, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, + 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, + 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, + 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x1b, 0x0a, + 0x17, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x41, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, + 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, 0x52, 0x49, 0x4e, 0x47, 0x10, 0x03, + 0x12, 0x1c, 0x0a, 0x18, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x50, 0x52, 0x45, 0x50, 0x41, + 0x52, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x04, 0x12, 0x14, + 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x49, + 0x4e, 0x47, 0x10, 0x05, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x43, + 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x45, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x06, 0x12, 0x14, + 0x0a, 0x10, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x58, 0x45, 0x43, 0x55, 0x54, 0x49, + 0x4e, 0x47, 0x10, 0x07, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x46, + 0x49, 0x4e, 0x49, 0x53, 0x48, 0x45, 0x44, 0x10, 0x08, 0x12, 0x14, 0x0a, 0x10, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x52, 0x55, 0x4e, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x09, 0x12, + 0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, + 0x0a, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x52, 0x55, 0x4e, 0x5f, + 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x0b, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, + 0x54, 0x55, 0x53, 0x5f, 0x43, 0x41, 0x4e, 0x43, 0x45, 0x4c, 0x45, 0x44, 0x10, 0x0c, 0x2a, 0xae, + 0x01, 0x0a, 0x15, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, + 0x6a, 0x65, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x23, 0x50, 0x52, 0x45, 0x43, + 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x23, 0x0a, 0x1f, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x45, 0x44, + 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x45, 0x58, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x20, 0x0a, 0x1c, 0x50, 0x52, 0x45, 0x43, 0x4f, 0x4d, + 0x50, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, 0x59, 0x50, + 0x45, 0x5f, 0x4b, 0x41, 0x54, 0x41, 0x10, 0x02, 0x12, 0x25, 0x0a, 0x21, 0x50, 0x52, 0x45, 0x43, + 0x4f, 0x4d, 0x50, 0x49, 0x4c, 0x45, 0x44, 0x5f, 0x4f, 0x42, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x54, 0x45, 0x53, 0x54, 0x10, 0x03, 0x32, + 0xfd, 0x0a, 0x0a, 0x11, 0x50, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, + 0x12, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x64, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x46, 0x0a, 0x0b, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x12, 0x1a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x49, 0x0a, 0x0c, 0x47, 0x65, 0x74, + 0x52, 0x75, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1b, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3a, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, + 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x3d, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x17, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, + 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x46, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x1a, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, + 0x72, 0x6f, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x75, 0x6e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5e, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x56, 0x61, + 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x22, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, 0x61, 0x6c, 0x69, 0x64, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x56, + 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x61, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x50, 0x72, + 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, + 0x23, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x70, + 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x65, 0x70, 0x61, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x55, 0x0a, 0x10, 0x47, 0x65, + 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1f, + 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, 0x69, + 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x20, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x37, 0x0a, 0x06, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x12, 0x15, 0x2e, 0x61, 0x70, + 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61, 0x6e, 0x63, + 0x65, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x64, 0x0a, 0x15, 0x47, 0x65, + 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x12, 0x24, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, + 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, + 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x25, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x27, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, + 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, - 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, - 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x12, 0x27, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, - 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, - 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x70, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, - 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x12, 0x28, 0x2e, + 0x65, 0x63, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x73, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, + 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, + 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x6d, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, + 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, + 0x12, 0x27, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, + 0x67, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, + 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x4c, 0x6f, 0x67, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x70, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, - 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, - 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x76, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, - 0x74, 0x12, 0x2a, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, - 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, - 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, - 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x38, 0x5a, 0x36, 0x62, 0x65, - 0x61, 0x6d, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x70, 0x6c, - 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, - 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x3b, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, - 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x28, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, + 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, + 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, + 0x65, 0x64, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x58, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, + 0x75, 0x6c, 0x74, 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x12, 0x20, 0x2e, 0x61, 0x70, 0x69, + 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x45, 0x78, + 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x61, + 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x45, 0x78, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x38, 0x5a, 0x36, 0x62, 0x65, 0x61, 0x6d, 0x2e, 0x61, 0x70, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x6f, + 0x72, 0x67, 0x2f, 0x70, 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x2f, 0x62, 0x61, + 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x3b, 0x70, + 0x6c, 0x61, 0x79, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, } var ( @@ -2309,95 +2369,97 @@ func file_api_v1_api_proto_rawDescGZIP() []byte { } var file_api_v1_api_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_api_v1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 35) +var file_api_v1_api_proto_msgTypes = make([]protoimpl.MessageInfo, 36) var file_api_v1_api_proto_goTypes = []interface{}{ - (Sdk)(0), // 0: api.v1.Sdk - (Status)(0), // 1: api.v1.Status - (PrecompiledObjectType)(0), // 2: api.v1.PrecompiledObjectType - (*RunCodeRequest)(nil), // 3: api.v1.RunCodeRequest - (*RunCodeResponse)(nil), // 4: api.v1.RunCodeResponse - (*CheckStatusRequest)(nil), // 5: api.v1.CheckStatusRequest - (*CheckStatusResponse)(nil), // 6: api.v1.CheckStatusResponse - (*GetValidationOutputRequest)(nil), // 7: api.v1.GetValidationOutputRequest - (*GetValidationOutputResponse)(nil), // 8: api.v1.GetValidationOutputResponse - (*GetPreparationOutputRequest)(nil), // 9: api.v1.GetPreparationOutputRequest - (*GetPreparationOutputResponse)(nil), // 10: api.v1.GetPreparationOutputResponse - (*GetCompileOutputRequest)(nil), // 11: api.v1.GetCompileOutputRequest - (*GetCompileOutputResponse)(nil), // 12: api.v1.GetCompileOutputResponse - (*GetRunOutputRequest)(nil), // 13: api.v1.GetRunOutputRequest - (*GetRunOutputResponse)(nil), // 14: api.v1.GetRunOutputResponse - (*GetRunErrorRequest)(nil), // 15: api.v1.GetRunErrorRequest - (*GetRunErrorResponse)(nil), // 16: api.v1.GetRunErrorResponse - (*GetLogsRequest)(nil), // 17: api.v1.GetLogsRequest - (*GetLogsResponse)(nil), // 18: api.v1.GetLogsResponse - (*GetGraphRequest)(nil), // 19: api.v1.GetGraphRequest - (*GetGraphResponse)(nil), // 20: api.v1.GetGraphResponse - (*CancelRequest)(nil), // 21: api.v1.CancelRequest - (*CancelResponse)(nil), // 22: api.v1.CancelResponse - (*PrecompiledObject)(nil), // 23: api.v1.PrecompiledObject - (*Categories)(nil), // 24: api.v1.Categories - (*GetPrecompiledObjectsRequest)(nil), // 25: api.v1.GetPrecompiledObjectsRequest - (*GetPrecompiledObjectCodeRequest)(nil), // 26: api.v1.GetPrecompiledObjectCodeRequest - (*GetPrecompiledObjectOutputRequest)(nil), // 27: api.v1.GetPrecompiledObjectOutputRequest - (*GetPrecompiledObjectLogsRequest)(nil), // 28: api.v1.GetPrecompiledObjectLogsRequest - (*GetPrecompiledObjectGraphRequest)(nil), // 29: api.v1.GetPrecompiledObjectGraphRequest - (*GetDefaultPrecompiledObjectRequest)(nil), // 30: api.v1.GetDefaultPrecompiledObjectRequest - (*GetPrecompiledObjectsResponse)(nil), // 31: api.v1.GetPrecompiledObjectsResponse - (*GetPrecompiledObjectCodeResponse)(nil), // 32: api.v1.GetPrecompiledObjectCodeResponse - (*GetPrecompiledObjectOutputResponse)(nil), // 33: api.v1.GetPrecompiledObjectOutputResponse - (*GetPrecompiledObjectLogsResponse)(nil), // 34: api.v1.GetPrecompiledObjectLogsResponse - (*GetPrecompiledObjectGraphResponse)(nil), // 35: api.v1.GetPrecompiledObjectGraphResponse - (*GetDefaultPrecompiledObjectResponse)(nil), // 36: api.v1.GetDefaultPrecompiledObjectResponse - (*Categories_Category)(nil), // 37: api.v1.Categories.Category + (Sdk)(0), // 0: api.v1.Sdk + (Status)(0), // 1: api.v1.Status + (PrecompiledObjectType)(0), // 2: api.v1.PrecompiledObjectType + (*RunCodeRequest)(nil), // 3: api.v1.RunCodeRequest + (*RunCodeResponse)(nil), // 4: api.v1.RunCodeResponse + (*CheckStatusRequest)(nil), // 5: api.v1.CheckStatusRequest + (*CheckStatusResponse)(nil), // 6: api.v1.CheckStatusResponse + (*GetValidationOutputRequest)(nil), // 7: api.v1.GetValidationOutputRequest + (*GetValidationOutputResponse)(nil), // 8: api.v1.GetValidationOutputResponse + (*GetPreparationOutputRequest)(nil), // 9: api.v1.GetPreparationOutputRequest + (*GetPreparationOutputResponse)(nil), // 10: api.v1.GetPreparationOutputResponse + (*GetCompileOutputRequest)(nil), // 11: api.v1.GetCompileOutputRequest + (*GetCompileOutputResponse)(nil), // 12: api.v1.GetCompileOutputResponse + (*GetRunOutputRequest)(nil), // 13: api.v1.GetRunOutputRequest + (*GetRunOutputResponse)(nil), // 14: api.v1.GetRunOutputResponse + (*GetRunErrorRequest)(nil), // 15: api.v1.GetRunErrorRequest + (*GetRunErrorResponse)(nil), // 16: api.v1.GetRunErrorResponse + (*GetLogsRequest)(nil), // 17: api.v1.GetLogsRequest + (*GetLogsResponse)(nil), // 18: api.v1.GetLogsResponse + (*GetGraphRequest)(nil), // 19: api.v1.GetGraphRequest + (*GetGraphResponse)(nil), // 20: api.v1.GetGraphResponse + (*CancelRequest)(nil), // 21: api.v1.CancelRequest + (*CancelResponse)(nil), // 22: api.v1.CancelResponse + (*PrecompiledObject)(nil), // 23: api.v1.PrecompiledObject + (*DefaultExample)(nil), // 24: api.v1.DefaultExample + (*Categories)(nil), // 25: api.v1.Categories + (*GetPrecompiledObjectsRequest)(nil), // 26: api.v1.GetPrecompiledObjectsRequest + (*GetPrecompiledObjectCodeRequest)(nil), // 27: api.v1.GetPrecompiledObjectCodeRequest + (*GetPrecompiledObjectOutputRequest)(nil), // 28: api.v1.GetPrecompiledObjectOutputRequest + (*GetPrecompiledObjectLogsRequest)(nil), // 29: api.v1.GetPrecompiledObjectLogsRequest + (*GetPrecompiledObjectGraphRequest)(nil), // 30: api.v1.GetPrecompiledObjectGraphRequest + (*GetDefaultExampleRequest)(nil), // 31: api.v1.GetDefaultExampleRequest + (*GetPrecompiledObjectsResponse)(nil), // 32: api.v1.GetPrecompiledObjectsResponse + (*GetPrecompiledObjectCodeResponse)(nil), // 33: api.v1.GetPrecompiledObjectCodeResponse + (*GetPrecompiledObjectOutputResponse)(nil), // 34: api.v1.GetPrecompiledObjectOutputResponse + (*GetPrecompiledObjectLogsResponse)(nil), // 35: api.v1.GetPrecompiledObjectLogsResponse + (*GetPrecompiledObjectGraphResponse)(nil), // 36: api.v1.GetPrecompiledObjectGraphResponse + (*GetDefaultExampleResponse)(nil), // 37: api.v1.GetDefaultExampleResponse + (*Categories_Category)(nil), // 38: api.v1.Categories.Category } var file_api_v1_api_proto_depIdxs = []int32{ 0, // 0: api.v1.RunCodeRequest.sdk:type_name -> api.v1.Sdk 1, // 1: api.v1.CheckStatusResponse.status:type_name -> api.v1.Status 2, // 2: api.v1.PrecompiledObject.type:type_name -> api.v1.PrecompiledObjectType - 0, // 3: api.v1.Categories.sdk:type_name -> api.v1.Sdk - 37, // 4: api.v1.Categories.categories:type_name -> api.v1.Categories.Category - 0, // 5: api.v1.GetPrecompiledObjectsRequest.sdk:type_name -> api.v1.Sdk - 0, // 6: api.v1.GetDefaultPrecompiledObjectRequest.sdk:type_name -> api.v1.Sdk - 24, // 7: api.v1.GetPrecompiledObjectsResponse.sdk_categories:type_name -> api.v1.Categories - 23, // 8: api.v1.GetDefaultPrecompiledObjectResponse.precompiled_object:type_name -> api.v1.PrecompiledObject - 23, // 9: api.v1.Categories.Category.precompiled_objects:type_name -> api.v1.PrecompiledObject - 3, // 10: api.v1.PlaygroundService.RunCode:input_type -> api.v1.RunCodeRequest - 5, // 11: api.v1.PlaygroundService.CheckStatus:input_type -> api.v1.CheckStatusRequest - 13, // 12: api.v1.PlaygroundService.GetRunOutput:input_type -> api.v1.GetRunOutputRequest - 17, // 13: api.v1.PlaygroundService.GetLogs:input_type -> api.v1.GetLogsRequest - 19, // 14: api.v1.PlaygroundService.GetGraph:input_type -> api.v1.GetGraphRequest - 15, // 15: api.v1.PlaygroundService.GetRunError:input_type -> api.v1.GetRunErrorRequest - 7, // 16: api.v1.PlaygroundService.GetValidationOutput:input_type -> api.v1.GetValidationOutputRequest - 9, // 17: api.v1.PlaygroundService.GetPreparationOutput:input_type -> api.v1.GetPreparationOutputRequest - 11, // 18: api.v1.PlaygroundService.GetCompileOutput:input_type -> api.v1.GetCompileOutputRequest - 21, // 19: api.v1.PlaygroundService.Cancel:input_type -> api.v1.CancelRequest - 25, // 20: api.v1.PlaygroundService.GetPrecompiledObjects:input_type -> api.v1.GetPrecompiledObjectsRequest - 26, // 21: api.v1.PlaygroundService.GetPrecompiledObjectCode:input_type -> api.v1.GetPrecompiledObjectCodeRequest - 27, // 22: api.v1.PlaygroundService.GetPrecompiledObjectOutput:input_type -> api.v1.GetPrecompiledObjectOutputRequest - 28, // 23: api.v1.PlaygroundService.GetPrecompiledObjectLogs:input_type -> api.v1.GetPrecompiledObjectLogsRequest - 29, // 24: api.v1.PlaygroundService.GetPrecompiledObjectGraph:input_type -> api.v1.GetPrecompiledObjectGraphRequest - 30, // 25: api.v1.PlaygroundService.GetDefaultPrecompiledObject:input_type -> api.v1.GetDefaultPrecompiledObjectRequest - 4, // 26: api.v1.PlaygroundService.RunCode:output_type -> api.v1.RunCodeResponse - 6, // 27: api.v1.PlaygroundService.CheckStatus:output_type -> api.v1.CheckStatusResponse - 14, // 28: api.v1.PlaygroundService.GetRunOutput:output_type -> api.v1.GetRunOutputResponse - 18, // 29: api.v1.PlaygroundService.GetLogs:output_type -> api.v1.GetLogsResponse - 20, // 30: api.v1.PlaygroundService.GetGraph:output_type -> api.v1.GetGraphResponse - 16, // 31: api.v1.PlaygroundService.GetRunError:output_type -> api.v1.GetRunErrorResponse - 8, // 32: api.v1.PlaygroundService.GetValidationOutput:output_type -> api.v1.GetValidationOutputResponse - 10, // 33: api.v1.PlaygroundService.GetPreparationOutput:output_type -> api.v1.GetPreparationOutputResponse - 12, // 34: api.v1.PlaygroundService.GetCompileOutput:output_type -> api.v1.GetCompileOutputResponse - 22, // 35: api.v1.PlaygroundService.Cancel:output_type -> api.v1.CancelResponse - 31, // 36: api.v1.PlaygroundService.GetPrecompiledObjects:output_type -> api.v1.GetPrecompiledObjectsResponse - 32, // 37: api.v1.PlaygroundService.GetPrecompiledObjectCode:output_type -> api.v1.GetPrecompiledObjectCodeResponse - 33, // 38: api.v1.PlaygroundService.GetPrecompiledObjectOutput:output_type -> api.v1.GetPrecompiledObjectOutputResponse - 34, // 39: api.v1.PlaygroundService.GetPrecompiledObjectLogs:output_type -> api.v1.GetPrecompiledObjectLogsResponse - 35, // 40: api.v1.PlaygroundService.GetPrecompiledObjectGraph:output_type -> api.v1.GetPrecompiledObjectGraphResponse - 36, // 41: api.v1.PlaygroundService.GetDefaultPrecompiledObject:output_type -> api.v1.GetDefaultPrecompiledObjectResponse - 26, // [26:42] is the sub-list for method output_type - 10, // [10:26] is the sub-list for method input_type - 10, // [10:10] is the sub-list for extension type_name - 10, // [10:10] is the sub-list for extension extendee - 0, // [0:10] is the sub-list for field type_name + 23, // 3: api.v1.DefaultExample.precompiled_object:type_name -> api.v1.PrecompiledObject + 0, // 4: api.v1.Categories.sdk:type_name -> api.v1.Sdk + 38, // 5: api.v1.Categories.categories:type_name -> api.v1.Categories.Category + 0, // 6: api.v1.GetPrecompiledObjectsRequest.sdk:type_name -> api.v1.Sdk + 0, // 7: api.v1.GetDefaultExampleRequest.sdk:type_name -> api.v1.Sdk + 25, // 8: api.v1.GetPrecompiledObjectsResponse.sdk_categories:type_name -> api.v1.Categories + 24, // 9: api.v1.GetDefaultExampleResponse.default_example:type_name -> api.v1.DefaultExample + 23, // 10: api.v1.Categories.Category.precompiled_objects:type_name -> api.v1.PrecompiledObject + 3, // 11: api.v1.PlaygroundService.RunCode:input_type -> api.v1.RunCodeRequest + 5, // 12: api.v1.PlaygroundService.CheckStatus:input_type -> api.v1.CheckStatusRequest + 13, // 13: api.v1.PlaygroundService.GetRunOutput:input_type -> api.v1.GetRunOutputRequest + 17, // 14: api.v1.PlaygroundService.GetLogs:input_type -> api.v1.GetLogsRequest + 19, // 15: api.v1.PlaygroundService.GetGraph:input_type -> api.v1.GetGraphRequest + 15, // 16: api.v1.PlaygroundService.GetRunError:input_type -> api.v1.GetRunErrorRequest + 7, // 17: api.v1.PlaygroundService.GetValidationOutput:input_type -> api.v1.GetValidationOutputRequest + 9, // 18: api.v1.PlaygroundService.GetPreparationOutput:input_type -> api.v1.GetPreparationOutputRequest + 11, // 19: api.v1.PlaygroundService.GetCompileOutput:input_type -> api.v1.GetCompileOutputRequest + 21, // 20: api.v1.PlaygroundService.Cancel:input_type -> api.v1.CancelRequest + 26, // 21: api.v1.PlaygroundService.GetPrecompiledObjects:input_type -> api.v1.GetPrecompiledObjectsRequest + 27, // 22: api.v1.PlaygroundService.GetPrecompiledObjectCode:input_type -> api.v1.GetPrecompiledObjectCodeRequest + 28, // 23: api.v1.PlaygroundService.GetPrecompiledObjectOutput:input_type -> api.v1.GetPrecompiledObjectOutputRequest + 29, // 24: api.v1.PlaygroundService.GetPrecompiledObjectLogs:input_type -> api.v1.GetPrecompiledObjectLogsRequest + 30, // 25: api.v1.PlaygroundService.GetPrecompiledObjectGraph:input_type -> api.v1.GetPrecompiledObjectGraphRequest + 31, // 26: api.v1.PlaygroundService.GetDefaultExample:input_type -> api.v1.GetDefaultExampleRequest + 4, // 27: api.v1.PlaygroundService.RunCode:output_type -> api.v1.RunCodeResponse + 6, // 28: api.v1.PlaygroundService.CheckStatus:output_type -> api.v1.CheckStatusResponse + 14, // 29: api.v1.PlaygroundService.GetRunOutput:output_type -> api.v1.GetRunOutputResponse + 18, // 30: api.v1.PlaygroundService.GetLogs:output_type -> api.v1.GetLogsResponse + 20, // 31: api.v1.PlaygroundService.GetGraph:output_type -> api.v1.GetGraphResponse + 16, // 32: api.v1.PlaygroundService.GetRunError:output_type -> api.v1.GetRunErrorResponse + 8, // 33: api.v1.PlaygroundService.GetValidationOutput:output_type -> api.v1.GetValidationOutputResponse + 10, // 34: api.v1.PlaygroundService.GetPreparationOutput:output_type -> api.v1.GetPreparationOutputResponse + 12, // 35: api.v1.PlaygroundService.GetCompileOutput:output_type -> api.v1.GetCompileOutputResponse + 22, // 36: api.v1.PlaygroundService.Cancel:output_type -> api.v1.CancelResponse + 32, // 37: api.v1.PlaygroundService.GetPrecompiledObjects:output_type -> api.v1.GetPrecompiledObjectsResponse + 33, // 38: api.v1.PlaygroundService.GetPrecompiledObjectCode:output_type -> api.v1.GetPrecompiledObjectCodeResponse + 34, // 39: api.v1.PlaygroundService.GetPrecompiledObjectOutput:output_type -> api.v1.GetPrecompiledObjectOutputResponse + 35, // 40: api.v1.PlaygroundService.GetPrecompiledObjectLogs:output_type -> api.v1.GetPrecompiledObjectLogsResponse + 36, // 41: api.v1.PlaygroundService.GetPrecompiledObjectGraph:output_type -> api.v1.GetPrecompiledObjectGraphResponse + 37, // 42: api.v1.PlaygroundService.GetDefaultExample:output_type -> api.v1.GetDefaultExampleResponse + 27, // [27:43] is the sub-list for method output_type + 11, // [11:27] is the sub-list for method input_type + 11, // [11:11] is the sub-list for extension type_name + 11, // [11:11] is the sub-list for extension extendee + 0, // [0:11] is the sub-list for field type_name } func init() { file_api_v1_api_proto_init() } @@ -2659,7 +2721,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Categories); i { + switch v := v.(*DefaultExample); i { case 0: return &v.state case 1: @@ -2671,7 +2733,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectsRequest); i { + switch v := v.(*Categories); i { case 0: return &v.state case 1: @@ -2683,7 +2745,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectCodeRequest); i { + switch v := v.(*GetPrecompiledObjectsRequest); i { case 0: return &v.state case 1: @@ -2695,7 +2757,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectOutputRequest); i { + switch v := v.(*GetPrecompiledObjectCodeRequest); i { case 0: return &v.state case 1: @@ -2707,7 +2769,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectLogsRequest); i { + switch v := v.(*GetPrecompiledObjectOutputRequest); i { case 0: return &v.state case 1: @@ -2719,7 +2781,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectGraphRequest); i { + switch v := v.(*GetPrecompiledObjectLogsRequest); i { case 0: return &v.state case 1: @@ -2731,7 +2793,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultPrecompiledObjectRequest); i { + switch v := v.(*GetPrecompiledObjectGraphRequest); i { case 0: return &v.state case 1: @@ -2743,7 +2805,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectsResponse); i { + switch v := v.(*GetDefaultExampleRequest); i { case 0: return &v.state case 1: @@ -2755,7 +2817,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectCodeResponse); i { + switch v := v.(*GetPrecompiledObjectsResponse); i { case 0: return &v.state case 1: @@ -2767,7 +2829,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectOutputResponse); i { + switch v := v.(*GetPrecompiledObjectCodeResponse); i { case 0: return &v.state case 1: @@ -2779,7 +2841,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectLogsResponse); i { + switch v := v.(*GetPrecompiledObjectOutputResponse); i { case 0: return &v.state case 1: @@ -2791,7 +2853,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetPrecompiledObjectGraphResponse); i { + switch v := v.(*GetPrecompiledObjectLogsResponse); i { case 0: return &v.state case 1: @@ -2803,7 +2865,7 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDefaultPrecompiledObjectResponse); i { + switch v := v.(*GetPrecompiledObjectGraphResponse); i { case 0: return &v.state case 1: @@ -2815,6 +2877,18 @@ func file_api_v1_api_proto_init() { } } file_api_v1_api_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDefaultExampleResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_api_v1_api_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Categories_Category); i { case 0: return &v.state @@ -2833,7 +2907,7 @@ func file_api_v1_api_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_api_v1_api_proto_rawDesc, NumEnums: 3, - NumMessages: 35, + NumMessages: 36, NumExtensions: 0, NumServices: 1, }, diff --git a/playground/backend/internal/api/v1/api_grpc.pb.go b/playground/backend/internal/api/v1/api_grpc.pb.go index 706aa2df4dfae..02c8c3c90289f 100644 --- a/playground/backend/internal/api/v1/api_grpc.pb.go +++ b/playground/backend/internal/api/v1/api_grpc.pb.go @@ -65,8 +65,8 @@ type PlaygroundServiceClient interface { GetPrecompiledObjectLogs(ctx context.Context, in *GetPrecompiledObjectLogsRequest, opts ...grpc.CallOption) (*GetPrecompiledObjectLogsResponse, error) // Get the graph of an PrecompiledObject. GetPrecompiledObjectGraph(ctx context.Context, in *GetPrecompiledObjectGraphRequest, opts ...grpc.CallOption) (*GetPrecompiledObjectGraphResponse, error) - // Get the default precompile object for the sdk. - GetDefaultPrecompiledObject(ctx context.Context, in *GetDefaultPrecompiledObjectRequest, opts ...grpc.CallOption) (*GetDefaultPrecompiledObjectResponse, error) + // Get the default example for the sdk. + GetDefaultExample(ctx context.Context, in *GetDefaultExampleRequest, opts ...grpc.CallOption) (*GetDefaultExampleResponse, error) } type playgroundServiceClient struct { @@ -212,9 +212,9 @@ func (c *playgroundServiceClient) GetPrecompiledObjectGraph(ctx context.Context, return out, nil } -func (c *playgroundServiceClient) GetDefaultPrecompiledObject(ctx context.Context, in *GetDefaultPrecompiledObjectRequest, opts ...grpc.CallOption) (*GetDefaultPrecompiledObjectResponse, error) { - out := new(GetDefaultPrecompiledObjectResponse) - err := c.cc.Invoke(ctx, "/api.v1.PlaygroundService/GetDefaultPrecompiledObject", in, out, opts...) +func (c *playgroundServiceClient) GetDefaultExample(ctx context.Context, in *GetDefaultExampleRequest, opts ...grpc.CallOption) (*GetDefaultExampleResponse, error) { + out := new(GetDefaultExampleResponse) + err := c.cc.Invoke(ctx, "/api.v1.PlaygroundService/GetDefaultExample", in, out, opts...) if err != nil { return nil, err } @@ -255,8 +255,8 @@ type PlaygroundServiceServer interface { GetPrecompiledObjectLogs(context.Context, *GetPrecompiledObjectLogsRequest) (*GetPrecompiledObjectLogsResponse, error) // Get the graph of an PrecompiledObject. GetPrecompiledObjectGraph(context.Context, *GetPrecompiledObjectGraphRequest) (*GetPrecompiledObjectGraphResponse, error) - // Get the default precompile object for the sdk. - GetDefaultPrecompiledObject(context.Context, *GetDefaultPrecompiledObjectRequest) (*GetDefaultPrecompiledObjectResponse, error) + // Get the default example for the sdk. + GetDefaultExample(context.Context, *GetDefaultExampleRequest) (*GetDefaultExampleResponse, error) } // UnimplementedPlaygroundServiceServer should be embedded to have forward compatible implementations. @@ -308,8 +308,8 @@ func (UnimplementedPlaygroundServiceServer) GetPrecompiledObjectLogs(context.Con func (UnimplementedPlaygroundServiceServer) GetPrecompiledObjectGraph(context.Context, *GetPrecompiledObjectGraphRequest) (*GetPrecompiledObjectGraphResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetPrecompiledObjectGraph not implemented") } -func (UnimplementedPlaygroundServiceServer) GetDefaultPrecompiledObject(context.Context, *GetDefaultPrecompiledObjectRequest) (*GetDefaultPrecompiledObjectResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetDefaultPrecompiledObject not implemented") +func (UnimplementedPlaygroundServiceServer) GetDefaultExample(context.Context, *GetDefaultExampleRequest) (*GetDefaultExampleResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetDefaultExample not implemented") } // UnsafePlaygroundServiceServer may be embedded to opt out of forward compatibility for this service. @@ -593,20 +593,20 @@ func _PlaygroundService_GetPrecompiledObjectGraph_Handler(srv interface{}, ctx c return interceptor(ctx, in, info, handler) } -func _PlaygroundService_GetDefaultPrecompiledObject_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDefaultPrecompiledObjectRequest) +func _PlaygroundService_GetDefaultExample_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDefaultExampleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { - return srv.(PlaygroundServiceServer).GetDefaultPrecompiledObject(ctx, in) + return srv.(PlaygroundServiceServer).GetDefaultExample(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/api.v1.PlaygroundService/GetDefaultPrecompiledObject", + FullMethod: "/api.v1.PlaygroundService/GetDefaultExample", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(PlaygroundServiceServer).GetDefaultPrecompiledObject(ctx, req.(*GetDefaultPrecompiledObjectRequest)) + return srv.(PlaygroundServiceServer).GetDefaultExample(ctx, req.(*GetDefaultExampleRequest)) } return interceptor(ctx, in, info, handler) } @@ -679,8 +679,8 @@ var PlaygroundService_ServiceDesc = grpc.ServiceDesc{ Handler: _PlaygroundService_GetPrecompiledObjectGraph_Handler, }, { - MethodName: "GetDefaultPrecompiledObject", - Handler: _PlaygroundService_GetDefaultPrecompiledObject_Handler, + MethodName: "GetDefaultExample", + Handler: _PlaygroundService_GetDefaultExample_Handler, }, }, Streams: []grpc.StreamDesc{}, diff --git a/playground/backend/internal/cache/cache.go b/playground/backend/internal/cache/cache.go index 2b30f145378bd..05ce485559792 100644 --- a/playground/backend/internal/cache/cache.go +++ b/playground/backend/internal/cache/cache.go @@ -64,7 +64,7 @@ const ( ExamplesCatalog string = "EXAMPLES_CATALOG" // DefaultPrecompiledExamples is used to keep default examples - DefaultPrecompiledExamples string = "DEFAULT_PRECOMPILED_OBJECTS" + DefaultPrecompiledExamples string = "DEFAULT_EXAMPLE" ) // Cache is used to store states and outputs for Apache Beam pipelines that running in Playground @@ -92,9 +92,9 @@ type Cache interface { // GetCatalog returns catalog from cache by ExamplesCatalog key. GetCatalog(ctx context.Context) ([]*pb.Categories, error) - // SetDefaultPrecompiledObject adds default precompiled object for SDK into cache. - SetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk, precompiledObject *pb.PrecompiledObject) error + // SetDefaultExample adds default example for SDK into cache. + SetDefaultExample(ctx context.Context, sdk pb.Sdk, defaultExample *pb.DefaultExample) error - // GetDefaultPrecompiledObject returns default precompiled object for SDK from cache. - GetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk) (*pb.PrecompiledObject, error) + // GetDefaultExample returns default example for SDK from cache. + GetDefaultExample(ctx context.Context, sdk pb.Sdk) (*pb.DefaultExample, error) } diff --git a/playground/backend/internal/cache/local/local_cache.go b/playground/backend/internal/cache/local/local_cache.go index 64c39b6863ad0..4cce44241e574 100644 --- a/playground/backend/internal/cache/local/local_cache.go +++ b/playground/backend/internal/cache/local/local_cache.go @@ -31,23 +31,23 @@ const ( type Cache struct { sync.RWMutex - cleanupInterval time.Duration - items map[uuid.UUID]map[cache.SubKey]interface{} - pipelinesExpiration map[uuid.UUID]time.Time - catalog []*pb.Categories - defaultPrecompiledObjects map[pb.Sdk]*pb.PrecompiledObject + cleanupInterval time.Duration + items map[uuid.UUID]map[cache.SubKey]interface{} + pipelinesExpiration map[uuid.UUID]time.Time + catalog []*pb.Categories + defaultExamples map[pb.Sdk]*pb.DefaultExample } func New(ctx context.Context) *Cache { items := make(map[uuid.UUID]map[cache.SubKey]interface{}) pipelinesExpiration := make(map[uuid.UUID]time.Time) - defaultPrecompiledObjects := make(map[pb.Sdk]*pb.PrecompiledObject) + defaultExamples := make(map[pb.Sdk]*pb.DefaultExample) ls := &Cache{ - cleanupInterval: cleanupInterval, - items: items, - pipelinesExpiration: pipelinesExpiration, - catalog: nil, - defaultPrecompiledObjects: defaultPrecompiledObjects, + cleanupInterval: cleanupInterval, + items: items, + pipelinesExpiration: pipelinesExpiration, + catalog: nil, + defaultExamples: defaultExamples, } go ls.startGC(ctx) @@ -127,17 +127,17 @@ func (lc *Cache) GetCatalog(ctx context.Context) ([]*pb.Categories, error) { return lc.catalog, nil } -func (lc *Cache) SetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk, precompiledObject *pb.PrecompiledObject) error { +func (lc *Cache) SetDefaultExample(ctx context.Context, sdk pb.Sdk, defaultExample *pb.DefaultExample) error { lc.Lock() defer lc.Unlock() - lc.defaultPrecompiledObjects[sdk] = precompiledObject + lc.defaultExamples[sdk] = defaultExample return nil } -func (lc *Cache) GetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk) (*pb.PrecompiledObject, error) { +func (lc *Cache) GetDefaultExample(ctx context.Context, sdk pb.Sdk) (*pb.DefaultExample, error) { lc.RLock() defer lc.RUnlock() - defaultPrecompiledObject := lc.defaultPrecompiledObjects[sdk] + defaultPrecompiledObject := lc.defaultExamples[sdk] if defaultPrecompiledObject == nil { return nil, fmt.Errorf("default precompiled obejct is not found for %s sdk", sdk.String()) } diff --git a/playground/backend/internal/cache/redis/redis_cache.go b/playground/backend/internal/cache/redis/redis_cache.go index 31bc0a479d24e..37b42de609bb1 100644 --- a/playground/backend/internal/cache/redis/redis_cache.go +++ b/playground/backend/internal/cache/redis/redis_cache.go @@ -126,43 +126,43 @@ func (rc *Cache) GetCatalog(ctx context.Context) ([]*pb.Categories, error) { return result, nil } -func (rc *Cache) SetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk, precompiledObject *pb.PrecompiledObject) error { - precompiledObjectMarsh, err := json.Marshal(precompiledObject) +func (rc *Cache) SetDefaultExample(ctx context.Context, sdk pb.Sdk, defaultExample *pb.DefaultExample) error { + defaultExampleMarsh, err := json.Marshal(defaultExample) if err != nil { - logger.Errorf("Redis Cache: set default precompiled object: error during marshal precompiled object: %s, err: %s\n", precompiledObject, err.Error()) + logger.Errorf("Redis Cache: set default example: error during marshal default example: %s, err: %s\n", defaultExample, err.Error()) return err } sdkMarsh, err := json.Marshal(sdk) if err != nil { - logger.Errorf("Redis Cache: set default precompiled object: error during marshal sdk: %s, err: %s\n", sdk, err.Error()) + logger.Errorf("Redis Cache: set default example: error during marshal sdk: %s, err: %s\n", sdk, err.Error()) return err } - err = rc.HSet(ctx, cache.DefaultPrecompiledExamples, sdkMarsh, precompiledObjectMarsh).Err() + err = rc.HSet(ctx, cache.DefaultPrecompiledExamples, sdkMarsh, defaultExampleMarsh).Err() if err != nil { - logger.Errorf("Redis Cache: set default precompiled object: error during HGet operation, err: %s\n", err.Error()) + logger.Errorf("Redis Cache: set default example: error during HGet operation, err: %s\n", err.Error()) return err } return nil } -func (rc *Cache) GetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk) (*pb.PrecompiledObject, error) { +func (rc *Cache) GetDefaultExample(ctx context.Context, sdk pb.Sdk) (*pb.DefaultExample, error) { sdkMarsh, err := json.Marshal(sdk) if err != nil { - logger.Errorf("Redis Cache: get default precompiled object: error during marshal sdk: %s, err: %s\n", sdk, err.Error()) + logger.Errorf("Redis Cache: get default example: error during marshal sdk: %s, err: %s\n", sdk, err.Error()) return nil, err } value, err := rc.HGet(ctx, cache.DefaultPrecompiledExamples, string(sdkMarsh)).Result() if err != nil { - logger.Errorf("Redis Cache: get default precompiled object: error during HGet operation for key: %s, subKey: %s, err: %s\n", cache.DefaultPrecompiledExamples, sdkMarsh, err.Error()) + logger.Errorf("Redis Cache: get default example: error during HGet operation for key: %s, subKey: %s, err: %s\n", cache.DefaultPrecompiledExamples, sdkMarsh, err.Error()) return nil, err } - result := new(pb.PrecompiledObject) + result := new(pb.DefaultExample) err = json.Unmarshal([]byte(value), &result) if err != nil { - logger.Errorf("Redis Cache: get default precompiled object: error during unmarshal value, err: %s\n", err.Error()) + logger.Errorf("Redis Cache: get default example: error during unmarshal value, err: %s\n", err.Error()) } return result, nil } diff --git a/playground/backend/internal/cloud_bucket/precompiled_objects.go b/playground/backend/internal/cloud_bucket/precompiled_objects.go index c04b75c61dd47..506a4f7f9b499 100644 --- a/playground/backend/internal/cloud_bucket/precompiled_objects.go +++ b/playground/backend/internal/cloud_bucket/precompiled_objects.go @@ -222,8 +222,8 @@ func (cd *CloudStorage) GetPrecompiledObjects(ctx context.Context, targetSdk pb. return &precompiledObjects, nil } -// GetDefaultPrecompiledObjects returns the default precompiled objects -func (cd *CloudStorage) GetDefaultPrecompiledObjects(ctx context.Context) (map[pb.Sdk]*pb.PrecompiledObject, error) { +// GetDefaultExamples returns the default examples +func (cd *CloudStorage) GetDefaultExamples(ctx context.Context) (map[pb.Sdk]*pb.DefaultExample, error) { client, err := storage.NewClient(ctx, option.WithoutAuthentication()) if err != nil { return nil, fmt.Errorf("storage.NewClient: %v", err) @@ -244,7 +244,7 @@ func (cd *CloudStorage) GetDefaultPrecompiledObjects(ctx context.Context) (map[p paths[sdk] = path } - defaultPrecompiledObjects := make(map[pb.Sdk]*pb.PrecompiledObject, 0) + defaultExamples := make(map[pb.Sdk]*pb.DefaultExample, 0) for sdk, path := range paths { infoPath := filepath.Join(path, MetaInfoName) rc, err := bucket.Object(infoPath).NewReader(ctx) @@ -266,9 +266,18 @@ func (cd *CloudStorage) GetDefaultPrecompiledObjects(ctx context.Context) (map[p return nil, err } precompiledObject.CloudPath = path - defaultPrecompiledObjects[sdk] = precompiledObject + + code, err := cd.GetPrecompiledObjectCode(ctx, path) + if err != nil { + return nil, err + } + + defaultExamples[sdk] = &pb.DefaultExample{ + PrecompiledObject: precompiledObject, + Code: code, + } } - return defaultPrecompiledObjects, nil + return defaultExamples, nil } // getDefaultPrecompiledObjectsPath returns path for SDK to the default precompiled object diff --git a/playground/backend/internal/utils/precompiled_objects_utils.go b/playground/backend/internal/utils/precompiled_objects_utils.go index 797ad32519c41..e34546fa5b93d 100644 --- a/playground/backend/internal/utils/precompiled_objects_utils.go +++ b/playground/backend/internal/utils/precompiled_objects_utils.go @@ -21,6 +21,7 @@ import ( "beam.apache.org/playground/backend/internal/cloud_bucket" "beam.apache.org/playground/backend/internal/logger" "context" + "fmt" ) // PutPrecompiledObjectsToCategory adds categories with precompiled objects to protobuf object @@ -96,14 +97,28 @@ func FilterCatalog(catalog []*pb.Categories, sdk pb.Sdk, categoryName string) [] return result } -// GetDefaultPrecompiledObject returns the default precompiled objects from cache for sdk -func GetDefaultPrecompiledObject(ctx context.Context, sdk pb.Sdk, cacheService cache.Cache) (*pb.PrecompiledObject, error) { - precompiledObject, err := cacheService.GetDefaultPrecompiledObject(ctx, sdk) +// GetDefaultExample returns the default precompiled objects from cache for sdk +// - If there is no default example in the cache, gets the default examples from the Storage and saves it to the cache +func GetDefaultExample(ctx context.Context, sdk pb.Sdk, cacheService cache.Cache) (*pb.DefaultExample, error) { + defaultExample, err := cacheService.GetDefaultExample(ctx, sdk) if err != nil { - logger.Errorf("GetDefaultPrecompiledObject(): error during getting default precompiled object %s", err.Error()) - return nil, err + bucket := cloud_bucket.New() + defaultExamples, err := bucket.GetDefaultExamples(ctx) + if err != nil { + return nil, err + } + for sdk, defaultExample := range defaultExamples { + if err := cacheService.SetDefaultExample(ctx, sdk, defaultExample); err != nil { + logger.Errorf("GetDefaultExample(): cache error: %s", err.Error()) + } + } + defaultExample, ok := defaultExamples[sdk] + if !ok { + return nil, fmt.Errorf("no default example found for this sdk: %s", sdk) + } + return defaultExample, nil } - return precompiledObject, nil + return defaultExample, nil } // GetCatalogFromCacheOrStorage returns the precompiled objects catalog from cache diff --git a/playground/backend/internal/utils/precompiled_objects_utils_test.go b/playground/backend/internal/utils/precompiled_objects_utils_test.go index e853d5560e1fb..9b4e8f709d8b0 100644 --- a/playground/backend/internal/utils/precompiled_objects_utils_test.go +++ b/playground/backend/internal/utils/precompiled_objects_utils_test.go @@ -210,10 +210,10 @@ func TestFilterPrecompiledObjects(t *testing.T) { } } -func TestGetDefaultPrecompiledObject(t *testing.T) { +func TestGetDefaultExample(t *testing.T) { ctx := context.Background() cacheService := local.New(ctx) - defaultPrecompiledObject := &pb.PrecompiledObject{ + precompiledObject := &pb.PrecompiledObject{ CloudPath: "cloudPath", Name: "Name", Description: "Description", @@ -223,7 +223,12 @@ func TestGetDefaultPrecompiledObject(t *testing.T) { ContextLine: 1, DefaultExample: true, } - err := cacheService.SetDefaultPrecompiledObject(ctx, pb.Sdk_SDK_JAVA, defaultPrecompiledObject) + defaultExample := &pb.DefaultExample{ + PrecompiledObject: precompiledObject, + Code: "CODE", + } + + err := cacheService.SetDefaultExample(ctx, pb.Sdk_SDK_JAVA, defaultExample) if err != nil { logger.Errorf("Error during set up test") } @@ -236,21 +241,21 @@ func TestGetDefaultPrecompiledObject(t *testing.T) { tests := []struct { name string args args - want *pb.PrecompiledObject + want *pb.DefaultExample wantErr bool }{ { - name: "there is default precompiled object", + name: "there is default example", args: args{ ctx: ctx, sdk: pb.Sdk_SDK_JAVA, cacheService: cacheService, }, - want: defaultPrecompiledObject, + want: defaultExample, wantErr: false, }, { - name: "there is no default precompiled object", + name: "there is no default example", args: args{ ctx: ctx, sdk: pb.Sdk_SDK_UNSPECIFIED, @@ -262,13 +267,13 @@ func TestGetDefaultPrecompiledObject(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - got, err := GetDefaultPrecompiledObject(tt.args.ctx, tt.args.sdk, tt.args.cacheService) + got, err := GetDefaultExample(tt.args.ctx, tt.args.sdk, tt.args.cacheService) if (err != nil) != tt.wantErr { - t.Errorf("GetDefaultPrecompiledObject() error = %v, wantErr %v", err, tt.wantErr) + t.Errorf("GetDefaultExample() error = %v, wantErr %v", err, tt.wantErr) return } if !reflect.DeepEqual(got, tt.want) { - t.Errorf("GetDefaultPrecompiledObject() got = %v, want %v", got, tt.want) + t.Errorf("GetDefaultExample() got = %v, want %v", got, tt.want) } }) } diff --git a/playground/frontend/lib/api/v1/api.pb.dart b/playground/frontend/lib/api/v1/api.pb.dart index de916d4552f34..af83def9976b7 100644 --- a/playground/frontend/lib/api/v1/api.pb.dart +++ b/playground/frontend/lib/api/v1/api.pb.dart @@ -1140,6 +1140,69 @@ class PrecompiledObject extends $pb.GeneratedMessage { void clearDefaultExample() => clearField(9); } +class DefaultExample extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DefaultExample', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'precompiledObject', subBuilder: PrecompiledObject.create) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'code') + ..hasRequiredFields = false + ; + + DefaultExample._() : super(); + factory DefaultExample({ + PrecompiledObject? precompiledObject, + $core.String? code, + }) { + final _result = create(); + if (precompiledObject != null) { + _result.precompiledObject = precompiledObject; + } + if (code != null) { + _result.code = code; + } + return _result; + } + factory DefaultExample.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DefaultExample.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DefaultExample clone() => DefaultExample()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DefaultExample copyWith(void Function(DefaultExample) updates) => super.copyWith((message) => updates(message as DefaultExample)) as DefaultExample; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static DefaultExample create() => DefaultExample._(); + DefaultExample createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); + @$core.pragma('dart2js:noInline') + static DefaultExample getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static DefaultExample? _defaultInstance; + + @$pb.TagNumber(1) + PrecompiledObject get precompiledObject => $_getN(0); + @$pb.TagNumber(1) + set precompiledObject(PrecompiledObject v) { setField(1, v); } + @$pb.TagNumber(1) + $core.bool hasPrecompiledObject() => $_has(0); + @$pb.TagNumber(1) + void clearPrecompiledObject() => clearField(1); + @$pb.TagNumber(1) + PrecompiledObject ensurePrecompiledObject() => $_ensure(0); + + @$pb.TagNumber(2) + $core.String get code => $_getSZ(1); + @$pb.TagNumber(2) + set code($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasCode() => $_has(1); + @$pb.TagNumber(2) + void clearCode() => clearField(2); +} + class Categories_Category extends $pb.GeneratedMessage { static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Categories.Category', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'categoryName') @@ -1499,14 +1562,14 @@ class GetPrecompiledObjectGraphRequest extends $pb.GeneratedMessage { void clearCloudPath() => clearField(1); } -class GetDefaultPrecompiledObjectRequest extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetDefaultPrecompiledObjectRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) +class GetDefaultExampleRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetDefaultExampleRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'sdk', $pb.PbFieldType.OE, defaultOrMaker: Sdk.SDK_UNSPECIFIED, valueOf: Sdk.valueOf, enumValues: Sdk.values) ..hasRequiredFields = false ; - GetDefaultPrecompiledObjectRequest._() : super(); - factory GetDefaultPrecompiledObjectRequest({ + GetDefaultExampleRequest._() : super(); + factory GetDefaultExampleRequest({ Sdk? sdk, }) { final _result = create(); @@ -1515,26 +1578,26 @@ class GetDefaultPrecompiledObjectRequest extends $pb.GeneratedMessage { } return _result; } - factory GetDefaultPrecompiledObjectRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetDefaultPrecompiledObjectRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + factory GetDefaultExampleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetDefaultExampleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - GetDefaultPrecompiledObjectRequest clone() => GetDefaultPrecompiledObjectRequest()..mergeFromMessage(this); + GetDefaultExampleRequest clone() => GetDefaultExampleRequest()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - GetDefaultPrecompiledObjectRequest copyWith(void Function(GetDefaultPrecompiledObjectRequest) updates) => super.copyWith((message) => updates(message as GetDefaultPrecompiledObjectRequest)) as GetDefaultPrecompiledObjectRequest; // ignore: deprecated_member_use + GetDefaultExampleRequest copyWith(void Function(GetDefaultExampleRequest) updates) => super.copyWith((message) => updates(message as GetDefaultExampleRequest)) as GetDefaultExampleRequest; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static GetDefaultPrecompiledObjectRequest create() => GetDefaultPrecompiledObjectRequest._(); - GetDefaultPrecompiledObjectRequest createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static GetDefaultExampleRequest create() => GetDefaultExampleRequest._(); + GetDefaultExampleRequest createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetDefaultPrecompiledObjectRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetDefaultPrecompiledObjectRequest? _defaultInstance; + static GetDefaultExampleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetDefaultExampleRequest? _defaultInstance; @$pb.TagNumber(1) Sdk get sdk => $_getN(0); @@ -1775,52 +1838,52 @@ class GetPrecompiledObjectGraphResponse extends $pb.GeneratedMessage { void clearGraph() => clearField(1); } -class GetDefaultPrecompiledObjectResponse extends $pb.GeneratedMessage { - static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetDefaultPrecompiledObjectResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) - ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'precompiledObject', subBuilder: PrecompiledObject.create) +class GetDefaultExampleResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'GetDefaultExampleResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'api.v1'), createEmptyInstance: create) + ..aOM(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'defaultExample', subBuilder: DefaultExample.create) ..hasRequiredFields = false ; - GetDefaultPrecompiledObjectResponse._() : super(); - factory GetDefaultPrecompiledObjectResponse({ - PrecompiledObject? precompiledObject, + GetDefaultExampleResponse._() : super(); + factory GetDefaultExampleResponse({ + DefaultExample? defaultExample, }) { final _result = create(); - if (precompiledObject != null) { - _result.precompiledObject = precompiledObject; + if (defaultExample != null) { + _result.defaultExample = defaultExample; } return _result; } - factory GetDefaultPrecompiledObjectResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); - factory GetDefaultPrecompiledObjectResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + factory GetDefaultExampleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory GetDefaultExampleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' 'Will be removed in next major version') - GetDefaultPrecompiledObjectResponse clone() => GetDefaultPrecompiledObjectResponse()..mergeFromMessage(this); + GetDefaultExampleResponse clone() => GetDefaultExampleResponse()..mergeFromMessage(this); @$core.Deprecated( 'Using this can add significant overhead to your binary. ' 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' 'Will be removed in next major version') - GetDefaultPrecompiledObjectResponse copyWith(void Function(GetDefaultPrecompiledObjectResponse) updates) => super.copyWith((message) => updates(message as GetDefaultPrecompiledObjectResponse)) as GetDefaultPrecompiledObjectResponse; // ignore: deprecated_member_use + GetDefaultExampleResponse copyWith(void Function(GetDefaultExampleResponse) updates) => super.copyWith((message) => updates(message as GetDefaultExampleResponse)) as GetDefaultExampleResponse; // ignore: deprecated_member_use $pb.BuilderInfo get info_ => _i; @$core.pragma('dart2js:noInline') - static GetDefaultPrecompiledObjectResponse create() => GetDefaultPrecompiledObjectResponse._(); - GetDefaultPrecompiledObjectResponse createEmptyInstance() => create(); - static $pb.PbList createRepeated() => $pb.PbList(); + static GetDefaultExampleResponse create() => GetDefaultExampleResponse._(); + GetDefaultExampleResponse createEmptyInstance() => create(); + static $pb.PbList createRepeated() => $pb.PbList(); @$core.pragma('dart2js:noInline') - static GetDefaultPrecompiledObjectResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); - static GetDefaultPrecompiledObjectResponse? _defaultInstance; + static GetDefaultExampleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create); + static GetDefaultExampleResponse? _defaultInstance; @$pb.TagNumber(1) - PrecompiledObject get precompiledObject => $_getN(0); + DefaultExample get defaultExample => $_getN(0); @$pb.TagNumber(1) - set precompiledObject(PrecompiledObject v) { setField(1, v); } + set defaultExample(DefaultExample v) { setField(1, v); } @$pb.TagNumber(1) - $core.bool hasPrecompiledObject() => $_has(0); + $core.bool hasDefaultExample() => $_has(0); @$pb.TagNumber(1) - void clearPrecompiledObject() => clearField(1); + void clearDefaultExample() => clearField(1); @$pb.TagNumber(1) - PrecompiledObject ensurePrecompiledObject() => $_ensure(0); + DefaultExample ensureDefaultExample() => $_ensure(0); } diff --git a/playground/frontend/lib/api/v1/api.pbgrpc.dart b/playground/frontend/lib/api/v1/api.pbgrpc.dart index 35073deb30265..a5f0c40cc998e 100644 --- a/playground/frontend/lib/api/v1/api.pbgrpc.dart +++ b/playground/frontend/lib/api/v1/api.pbgrpc.dart @@ -125,13 +125,12 @@ class PlaygroundServiceClient extends $grpc.Client { ($0.GetPrecompiledObjectGraphRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => $0.GetPrecompiledObjectGraphResponse.fromBuffer(value)); - static final _$getDefaultPrecompiledObject = $grpc.ClientMethod< - $0.GetDefaultPrecompiledObjectRequest, - $0.GetDefaultPrecompiledObjectResponse>( - '/api.v1.PlaygroundService/GetDefaultPrecompiledObject', - ($0.GetDefaultPrecompiledObjectRequest value) => value.writeToBuffer(), + static final _$getDefaultExample = $grpc.ClientMethod< + $0.GetDefaultExampleRequest, $0.GetDefaultExampleResponse>( + '/api.v1.PlaygroundService/GetDefaultExample', + ($0.GetDefaultExampleRequest value) => value.writeToBuffer(), ($core.List<$core.int> value) => - $0.GetDefaultPrecompiledObjectResponse.fromBuffer(value)); + $0.GetDefaultExampleResponse.fromBuffer(value)); PlaygroundServiceClient($grpc.ClientChannel channel, {$grpc.CallOptions? options, @@ -228,11 +227,10 @@ class PlaygroundServiceClient extends $grpc.Client { options: options); } - $grpc.ResponseFuture<$0.GetDefaultPrecompiledObjectResponse> - getDefaultPrecompiledObject($0.GetDefaultPrecompiledObjectRequest request, - {$grpc.CallOptions? options}) { - return $createUnaryCall(_$getDefaultPrecompiledObject, request, - options: options); + $grpc.ResponseFuture<$0.GetDefaultExampleResponse> getDefaultExample( + $0.GetDefaultExampleRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getDefaultExample, request, options: options); } } @@ -368,16 +366,15 @@ abstract class PlaygroundServiceBase extends $grpc.Service { ($core.List<$core.int> value) => $0.GetPrecompiledObjectGraphRequest.fromBuffer(value), ($0.GetPrecompiledObjectGraphResponse value) => value.writeToBuffer())); - $addMethod($grpc.ServiceMethod<$0.GetDefaultPrecompiledObjectRequest, - $0.GetDefaultPrecompiledObjectResponse>( - 'GetDefaultPrecompiledObject', - getDefaultPrecompiledObject_Pre, + $addMethod($grpc.ServiceMethod<$0.GetDefaultExampleRequest, + $0.GetDefaultExampleResponse>( + 'GetDefaultExample', + getDefaultExample_Pre, false, false, ($core.List<$core.int> value) => - $0.GetDefaultPrecompiledObjectRequest.fromBuffer(value), - ($0.GetDefaultPrecompiledObjectResponse value) => - value.writeToBuffer())); + $0.GetDefaultExampleRequest.fromBuffer(value), + ($0.GetDefaultExampleResponse value) => value.writeToBuffer())); } $async.Future<$0.RunCodeResponse> runCode_Pre( @@ -464,10 +461,10 @@ abstract class PlaygroundServiceBase extends $grpc.Service { return getPrecompiledObjectGraph(call, await request); } - $async.Future<$0.GetDefaultPrecompiledObjectResponse> - getDefaultPrecompiledObject_Pre($grpc.ServiceCall call, - $async.Future<$0.GetDefaultPrecompiledObjectRequest> request) async { - return getDefaultPrecompiledObject(call, await request); + $async.Future<$0.GetDefaultExampleResponse> getDefaultExample_Pre( + $grpc.ServiceCall call, + $async.Future<$0.GetDefaultExampleRequest> request) async { + return getDefaultExample(call, await request); } $async.Future<$0.RunCodeResponse> runCode( @@ -501,7 +498,6 @@ abstract class PlaygroundServiceBase extends $grpc.Service { $grpc.ServiceCall call, $0.GetPrecompiledObjectLogsRequest request); $async.Future<$0.GetPrecompiledObjectGraphResponse> getPrecompiledObjectGraph( $grpc.ServiceCall call, $0.GetPrecompiledObjectGraphRequest request); - $async.Future<$0.GetDefaultPrecompiledObjectResponse> - getDefaultPrecompiledObject($grpc.ServiceCall call, - $0.GetDefaultPrecompiledObjectRequest request); + $async.Future<$0.GetDefaultExampleResponse> getDefaultExample( + $grpc.ServiceCall call, $0.GetDefaultExampleRequest request); } diff --git a/playground/frontend/lib/api/v1/api.pbjson.dart b/playground/frontend/lib/api/v1/api.pbjson.dart index a952e8404987e..0b16c4fdf3e2c 100644 --- a/playground/frontend/lib/api/v1/api.pbjson.dart +++ b/playground/frontend/lib/api/v1/api.pbjson.dart @@ -292,6 +292,17 @@ const PrecompiledObject$json = const { /// Descriptor for `PrecompiledObject`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List precompiledObjectDescriptor = $convert.base64Decode('ChFQcmVjb21waWxlZE9iamVjdBIdCgpjbG91ZF9wYXRoGAEgASgJUgljbG91ZFBhdGgSEgoEbmFtZRgCIAEoCVIEbmFtZRIgCgtkZXNjcmlwdGlvbhgDIAEoCVILZGVzY3JpcHRpb24SMQoEdHlwZRgEIAEoDjIdLmFwaS52MS5QcmVjb21waWxlZE9iamVjdFR5cGVSBHR5cGUSKQoQcGlwZWxpbmVfb3B0aW9ucxgFIAEoCVIPcGlwZWxpbmVPcHRpb25zEhIKBGxpbmsYBiABKAlSBGxpbmsSHAoJbXVsdGlmaWxlGAcgASgIUgltdWx0aWZpbGUSIQoMY29udGV4dF9saW5lGAggASgFUgtjb250ZXh0TGluZRInCg9kZWZhdWx0X2V4YW1wbGUYCSABKAhSDmRlZmF1bHRFeGFtcGxl'); +@$core.Deprecated('Use defaultExampleDescriptor instead') +const DefaultExample$json = const { + '1': 'DefaultExample', + '2': const [ + const {'1': 'precompiled_object', '3': 1, '4': 1, '5': 11, '6': '.api.v1.PrecompiledObject', '10': 'precompiledObject'}, + const {'1': 'code', '3': 2, '4': 1, '5': 9, '10': 'code'}, + ], +}; + +/// Descriptor for `DefaultExample`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List defaultExampleDescriptor = $convert.base64Decode('Cg5EZWZhdWx0RXhhbXBsZRJIChJwcmVjb21waWxlZF9vYmplY3QYASABKAsyGS5hcGkudjEuUHJlY29tcGlsZWRPYmplY3RSEXByZWNvbXBpbGVkT2JqZWN0EhIKBGNvZGUYAiABKAlSBGNvZGU='); @$core.Deprecated('Use categoriesDescriptor instead') const Categories$json = const { '1': 'Categories', @@ -364,16 +375,16 @@ const GetPrecompiledObjectGraphRequest$json = const { /// Descriptor for `GetPrecompiledObjectGraphRequest`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPrecompiledObjectGraphRequestDescriptor = $convert.base64Decode('CiBHZXRQcmVjb21waWxlZE9iamVjdEdyYXBoUmVxdWVzdBIdCgpjbG91ZF9wYXRoGAEgASgJUgljbG91ZFBhdGg='); -@$core.Deprecated('Use getDefaultPrecompiledObjectRequestDescriptor instead') -const GetDefaultPrecompiledObjectRequest$json = const { - '1': 'GetDefaultPrecompiledObjectRequest', +@$core.Deprecated('Use getDefaultExampleRequestDescriptor instead') +const GetDefaultExampleRequest$json = const { + '1': 'GetDefaultExampleRequest', '2': const [ const {'1': 'sdk', '3': 1, '4': 1, '5': 14, '6': '.api.v1.Sdk', '10': 'sdk'}, ], }; -/// Descriptor for `GetDefaultPrecompiledObjectRequest`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getDefaultPrecompiledObjectRequestDescriptor = $convert.base64Decode('CiJHZXREZWZhdWx0UHJlY29tcGlsZWRPYmplY3RSZXF1ZXN0Eh0KA3NkaxgBIAEoDjILLmFwaS52MS5TZGtSA3Nkaw=='); +/// Descriptor for `GetDefaultExampleRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getDefaultExampleRequestDescriptor = $convert.base64Decode('ChhHZXREZWZhdWx0RXhhbXBsZVJlcXVlc3QSHQoDc2RrGAEgASgOMgsuYXBpLnYxLlNka1IDc2Rr'); @$core.Deprecated('Use getPrecompiledObjectsResponseDescriptor instead') const GetPrecompiledObjectsResponse$json = const { '1': 'GetPrecompiledObjectsResponse', @@ -424,13 +435,13 @@ const GetPrecompiledObjectGraphResponse$json = const { /// Descriptor for `GetPrecompiledObjectGraphResponse`. Decode as a `google.protobuf.DescriptorProto`. final $typed_data.Uint8List getPrecompiledObjectGraphResponseDescriptor = $convert.base64Decode('CiFHZXRQcmVjb21waWxlZE9iamVjdEdyYXBoUmVzcG9uc2USFAoFZ3JhcGgYASABKAlSBWdyYXBo'); -@$core.Deprecated('Use getDefaultPrecompiledObjectResponseDescriptor instead') -const GetDefaultPrecompiledObjectResponse$json = const { - '1': 'GetDefaultPrecompiledObjectResponse', +@$core.Deprecated('Use getDefaultExampleResponseDescriptor instead') +const GetDefaultExampleResponse$json = const { + '1': 'GetDefaultExampleResponse', '2': const [ - const {'1': 'precompiled_object', '3': 1, '4': 1, '5': 11, '6': '.api.v1.PrecompiledObject', '10': 'precompiledObject'}, + const {'1': 'default_example', '3': 1, '4': 1, '5': 11, '6': '.api.v1.DefaultExample', '10': 'defaultExample'}, ], }; -/// Descriptor for `GetDefaultPrecompiledObjectResponse`. Decode as a `google.protobuf.DescriptorProto`. -final $typed_data.Uint8List getDefaultPrecompiledObjectResponseDescriptor = $convert.base64Decode('CiNHZXREZWZhdWx0UHJlY29tcGlsZWRPYmplY3RSZXNwb25zZRJIChJwcmVjb21waWxlZF9vYmplY3QYASABKAsyGS5hcGkudjEuUHJlY29tcGlsZWRPYmplY3RSEXByZWNvbXBpbGVkT2JqZWN0'); +/// Descriptor for `GetDefaultExampleResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List getDefaultExampleResponseDescriptor = $convert.base64Decode('ChlHZXREZWZhdWx0RXhhbXBsZVJlc3BvbnNlEj8KD2RlZmF1bHRfZXhhbXBsZRgBIAEoCzIWLmFwaS52MS5EZWZhdWx0RXhhbXBsZVIOZGVmYXVsdEV4YW1wbGU=');