From c7154f0b5c68c44bfc0244785118ad8e50cc93e4 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Tue, 11 Oct 2022 20:28:31 +0000 Subject: [PATCH 1/4] feat: Add project proto & generate --- CMakeLists.txt | 9 +- gooseai/project/project.pb.go | 943 +++++++++++ gooseai/project/project_grpc.pb.go | 283 ++++ gooseai/project/project_grpc_pb.d.ts | 43 + gooseai/project/project_grpc_pb.js | 140 ++ gooseai/project/project_pb.d.ts | 270 ++++ gooseai/project/project_pb.js | 1931 +++++++++++++++++++++++ gooseai/project/project_pb2.py | 119 ++ gooseai/project/project_pb2_grpc.py | 212 +++ gooseai/project/project_pb_service.d.ts | 131 ++ gooseai/project/project_pb_service.js | 229 +++ src/proto/project.proto | 85 + 12 files changed, 4391 insertions(+), 4 deletions(-) create mode 100644 gooseai/project/project.pb.go create mode 100644 gooseai/project/project_grpc.pb.go create mode 100644 gooseai/project/project_grpc_pb.d.ts create mode 100644 gooseai/project/project_grpc_pb.js create mode 100644 gooseai/project/project_pb.d.ts create mode 100644 gooseai/project/project_pb.js create mode 100644 gooseai/project/project_pb2.py create mode 100644 gooseai/project/project_pb2_grpc.py create mode 100644 gooseai/project/project_pb_service.d.ts create mode 100644 gooseai/project/project_pb_service.js create mode 100644 src/proto/project.proto diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ee0126..472a736 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,7 +114,7 @@ if (NOT ${EXIT_CODE} EQUAL 0) endif() set(NODE_BIN_DIRECTORY "${PROJECT_SOURCE_DIR}/node_modules/.bin") -set(javascript_exec "protoc") +set(javascript_exec "${PROJECT_SOURCE_DIR}/src/bin/protoc") set(javascript_plugin "--plugin=protoc-gen-ts=${NODE_BIN_DIRECTORY}/protoc-gen-ts") set(javascript_args "") set(javascript_output "--js_out=import_style=commonjs,binary:") @@ -122,7 +122,7 @@ set(javascript_output_dir "${PROJECT_SOURCE_DIR}/gooseai") file(MAKE_DIRECTORY "${javascript_output_dir}") set(javascript_exts "_pb.js") -set(javascript_grpc_exec "protoc") +set(javascript_grpc_exec "${PROJECT_SOURCE_DIR}/src/bin/protoc") set(javascript_grpc_plugin "--plugin=protoc-gen-ts=${NODE_BIN_DIRECTORY}/protoc-gen-ts" "--plugin=protoc-gen-grpc=${NODE_BIN_DIRECTORY}/grpc_tools_node_protoc_plugin") set(javascript_grpc_args "") set(javascript_grpc_output "--grpc_out=import_style=commonjs,binary:") @@ -130,7 +130,7 @@ set(javascript_grpc_output_dir "${PROJECT_SOURCE_DIR}/gooseai") file(MAKE_DIRECTORY "${javascript_grpc_output_dir}") set(javascript_grpc_exts "_grpc_pb.js") -set(typescript_web_exec "protoc") +set(typescript_web_exec "${PROJECT_SOURCE_DIR}/src/bin/protoc") set(typescript_web_plugin "--plugin=protoc-gen-ts=${NODE_BIN_DIRECTORY}/protoc-gen-ts") set(typescript_web_args "") set(typescript_web_output "--ts_out=service=grpc-web:") @@ -138,7 +138,7 @@ set(typescript_web_output_dir "${PROJECT_SOURCE_DIR}/gooseai") file(MAKE_DIRECTORY "${typescript_output_dir}") set(typescript_web_exts "_grpc_pb_service.d.ts;_grpc_pb_service.js") -set(typescript_node_exec "protoc") +set(typescript_node_exec "${PROJECT_SOURCE_DIR}/src/bin/protoc") set(typescript_node_plugin "--plugin=protoc-gen-ts=${NODE_BIN_DIRECTORY}/protoc-gen-ts" "--plugin=protoc-gen-grpc=${NODE_BIN_DIRECTORY}/grpc_tools_node_protoc_plugin") set(typescript_node_args "") set(typescript_node_output "--ts_out=service=grpc-node:") @@ -244,6 +244,7 @@ add_protobufs(${CMAKE_SOURCE_DIR}/src/proto/dashboard.proto) add_protobufs(${CMAKE_SOURCE_DIR}/src/proto/generation.proto) add_protobufs(${CMAKE_SOURCE_DIR}/src/proto/completion.proto) add_protobufs(${CMAKE_SOURCE_DIR}/src/proto/engines.proto) +add_protobufs(${CMAKE_SOURCE_DIR}/src/proto/project.proto) generate_interfaces() add_custom_command( diff --git a/gooseai/project/project.pb.go b/gooseai/project/project.pb.go new file mode 100644 index 0000000..181ae91 --- /dev/null +++ b/gooseai/project/project.pb.go @@ -0,0 +1,943 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc v3.21.4 +// source: project.proto + +package project + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ProjectAccess int32 + +const ( + ProjectAccess_PROJECT_ACCESS_PRIVATE ProjectAccess = 0 // Private access, only owner organization can access + ProjectAccess_PROJECT_ACCESS_PUBLIC ProjectAccess = 1 // Public access, anyone can access +) + +// Enum value maps for ProjectAccess. +var ( + ProjectAccess_name = map[int32]string{ + 0: "PROJECT_ACCESS_PRIVATE", + 1: "PROJECT_ACCESS_PUBLIC", + } + ProjectAccess_value = map[string]int32{ + "PROJECT_ACCESS_PRIVATE": 0, + "PROJECT_ACCESS_PUBLIC": 1, + } +) + +func (x ProjectAccess) Enum() *ProjectAccess { + p := new(ProjectAccess) + *p = x + return p +} + +func (x ProjectAccess) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectAccess) Descriptor() protoreflect.EnumDescriptor { + return file_project_proto_enumTypes[0].Descriptor() +} + +func (ProjectAccess) Type() protoreflect.EnumType { + return &file_project_proto_enumTypes[0] +} + +func (x ProjectAccess) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectAccess.Descriptor instead. +func (ProjectAccess) EnumDescriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{0} +} + +type ProjectStatus int32 + +const ( + ProjectStatus_PROJECT_STATUS_INACTIVE ProjectStatus = 0 // Inactive project + ProjectStatus_PROJECT_STATUS_ACTIVE ProjectStatus = 1 // Active project +) + +// Enum value maps for ProjectStatus. +var ( + ProjectStatus_name = map[int32]string{ + 0: "PROJECT_STATUS_INACTIVE", + 1: "PROJECT_STATUS_ACTIVE", + } + ProjectStatus_value = map[string]int32{ + "PROJECT_STATUS_INACTIVE": 0, + "PROJECT_STATUS_ACTIVE": 1, + } +) + +func (x ProjectStatus) Enum() *ProjectStatus { + p := new(ProjectStatus) + *p = x + return p +} + +func (x ProjectStatus) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectStatus) Descriptor() protoreflect.EnumDescriptor { + return file_project_proto_enumTypes[1].Descriptor() +} + +func (ProjectStatus) Type() protoreflect.EnumType { + return &file_project_proto_enumTypes[1] +} + +func (x ProjectStatus) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectStatus.Descriptor instead. +func (ProjectStatus) EnumDescriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{1} +} + +type ProjectAssetUse int32 + +const ( + ProjectAssetUse_PROJECT_ASSET_USE_INPUT ProjectAssetUse = 0 // Asset is used as an input for the project + ProjectAssetUse_PROJECT_ASSET_USE_OUTPUT ProjectAssetUse = 1 // Asset is an output from the project + ProjectAssetUse_PROJECT_ASSET_USE_INTERMEDIATE ProjectAssetUse = 2 // Asset is an output from an intermediate step of the project + ProjectAssetUse_PROJECT_ASSET_USE_PROJECT ProjectAssetUse = 3 // Asset is used as the project file for the project +) + +// Enum value maps for ProjectAssetUse. +var ( + ProjectAssetUse_name = map[int32]string{ + 0: "PROJECT_ASSET_USE_INPUT", + 1: "PROJECT_ASSET_USE_OUTPUT", + 2: "PROJECT_ASSET_USE_INTERMEDIATE", + 3: "PROJECT_ASSET_USE_PROJECT", + } + ProjectAssetUse_value = map[string]int32{ + "PROJECT_ASSET_USE_INPUT": 0, + "PROJECT_ASSET_USE_OUTPUT": 1, + "PROJECT_ASSET_USE_INTERMEDIATE": 2, + "PROJECT_ASSET_USE_PROJECT": 3, + } +) + +func (x ProjectAssetUse) Enum() *ProjectAssetUse { + p := new(ProjectAssetUse) + *p = x + return p +} + +func (x ProjectAssetUse) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (ProjectAssetUse) Descriptor() protoreflect.EnumDescriptor { + return file_project_proto_enumTypes[2].Descriptor() +} + +func (ProjectAssetUse) Type() protoreflect.EnumType { + return &file_project_proto_enumTypes[2] +} + +func (x ProjectAssetUse) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use ProjectAssetUse.Descriptor instead. +func (ProjectAssetUse) EnumDescriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{2} +} + +type ProjectAsset struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset + URI string `protobuf:"bytes,2,opt,name=URI,proto3" json:"URI,omitempty"` // The URI to the asset + Use ProjectAssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.ProjectAssetUse" json:"use,omitempty"` // The use of the asset with respect to the project +} + +func (x *ProjectAsset) Reset() { + *x = ProjectAsset{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectAsset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectAsset) ProtoMessage() {} + +func (x *ProjectAsset) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[0] + 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 ProjectAsset.ProtoReflect.Descriptor instead. +func (*ProjectAsset) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{0} +} + +func (x *ProjectAsset) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *ProjectAsset) GetURI() string { + if x != nil { + return x.URI + } + return "" +} + +func (x *ProjectAsset) GetUse() ProjectAssetUse { + if x != nil { + return x.Use + } + return ProjectAssetUse_PROJECT_ASSET_USE_INPUT +} + +type Project struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Title of the project + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // The ID of the organization owning the project + Access ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) + Status ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gooseai.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) + Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // The size of the project in bytes + File *ProjectAsset `protobuf:"bytes,7,opt,name=file,proto3" json:"file,omitempty"` // Project file for the project + CreatedAt uint64 `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Time of project creation (UTC seconds epoch) + UpdatedAt uint64 `protobuf:"varint,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Time of last project update (UTC seconds epoch) + Assets []*ProjectAsset `protobuf:"bytes,10,rep,name=assets,proto3" json:"assets,omitempty"` // The listing of all assets associated with the project +} + +func (x *Project) Reset() { + *x = Project{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Project) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Project) ProtoMessage() {} + +func (x *Project) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[1] + 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 Project.ProtoReflect.Descriptor instead. +func (*Project) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{1} +} + +func (x *Project) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *Project) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Project) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *Project) GetAccess() ProjectAccess { + if x != nil { + return x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *Project) GetStatus() ProjectStatus { + if x != nil { + return x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *Project) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *Project) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +func (x *Project) GetCreatedAt() uint64 { + if x != nil { + return x.CreatedAt + } + return 0 +} + +func (x *Project) GetUpdatedAt() uint64 { + if x != nil { + return x.UpdatedAt + } + return 0 +} + +func (x *Project) GetAssets() []*ProjectAsset { + if x != nil { + return x.Assets + } + return nil +} + +type CreateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // title of the project + Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user + Access ProjectAccess `protobuf:"varint,3,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) + Status ProjectStatus `protobuf:"varint,4,opt,name=status,proto3,enum=gooseai.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,5,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project (if existing, else will create) +} + +func (x *CreateProjectRequest) Reset() { + *x = CreateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CreateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateProjectRequest) ProtoMessage() {} + +func (x *CreateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[2] + 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 CreateProjectRequest.ProtoReflect.Descriptor instead. +func (*CreateProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateProjectRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateProjectRequest) GetOwner() string { + if x != nil && x.Owner != nil { + return *x.Owner + } + return "" +} + +func (x *CreateProjectRequest) GetAccess() ProjectAccess { + if x != nil { + return x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *CreateProjectRequest) GetStatus() ProjectStatus { + if x != nil { + return x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *CreateProjectRequest) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +type UpdateProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project + Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user + Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // Title of the project + Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) + Status *ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gooseai.ProjectStatus,oneof" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,6,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project +} + +func (x *UpdateProjectRequest) Reset() { + *x = UpdateProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *UpdateProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateProjectRequest) ProtoMessage() {} + +func (x *UpdateProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[3] + 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 UpdateProjectRequest.ProtoReflect.Descriptor instead. +func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{3} +} + +func (x *UpdateProjectRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *UpdateProjectRequest) GetOwner() string { + if x != nil && x.Owner != nil { + return *x.Owner + } + return "" +} + +func (x *UpdateProjectRequest) GetTitle() string { + if x != nil && x.Title != nil { + return *x.Title + } + return "" +} + +func (x *UpdateProjectRequest) GetAccess() ProjectAccess { + if x != nil && x.Access != nil { + return *x.Access + } + return ProjectAccess_PROJECT_ACCESS_PRIVATE +} + +func (x *UpdateProjectRequest) GetStatus() ProjectStatus { + if x != nil && x.Status != nil { + return *x.Status + } + return ProjectStatus_PROJECT_STATUS_INACTIVE +} + +func (x *UpdateProjectRequest) GetFile() *ProjectAsset { + if x != nil { + return x.File + } + return nil +} + +type ListProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Owner *string `protobuf:"bytes,1,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user +} + +func (x *ListProjectRequest) Reset() { + *x = ListProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ListProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListProjectRequest) ProtoMessage() {} + +func (x *ListProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[4] + 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 ListProjectRequest.ProtoReflect.Descriptor instead. +func (*ListProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{4} +} + +func (x *ListProjectRequest) GetOwner() string { + if x != nil && x.Owner != nil { + return *x.Owner + } + return "" +} + +type GetDeleteProjectRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request + Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user +} + +func (x *GetDeleteProjectRequest) Reset() { + *x = GetDeleteProjectRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetDeleteProjectRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDeleteProjectRequest) ProtoMessage() {} + +func (x *GetDeleteProjectRequest) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[5] + 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 GetDeleteProjectRequest.ProtoReflect.Descriptor instead. +func (*GetDeleteProjectRequest) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{5} +} + +func (x *GetDeleteProjectRequest) GetId() uint64 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *GetDeleteProjectRequest) GetOwner() string { + if x != nil && x.Owner != nil { + return *x.Owner + } + return "" +} + +// Message for empty requests / response where no additional data is needed +type ProjectEmpty struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *ProjectEmpty) Reset() { + *x = ProjectEmpty{} + if protoimpl.UnsafeEnabled { + mi := &file_project_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ProjectEmpty) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ProjectEmpty) ProtoMessage() {} + +func (x *ProjectEmpty) ProtoReflect() protoreflect.Message { + mi := &file_project_proto_msgTypes[6] + 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 ProjectEmpty.ProtoReflect.Descriptor instead. +func (*ProjectEmpty) Descriptor() ([]byte, []int) { + return file_project_proto_rawDescGZIP(), []int{6} +} + +var File_project_proto protoreflect.FileDescriptor + +var file_project_proto_rawDesc = []byte{ + 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x22, 0x5c, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x52, 0x49, 0x12, 0x2a, 0x0a, 0x03, 0x75, 0x73, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, + 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xd1, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2e, + 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x2e, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, + 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x14, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, + 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x07, + 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa9, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, + 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x69, + 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x02, + 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, 0x73, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, + 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, + 0x69, 0x6c, 0x65, 0x22, 0x39, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x4e, + 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x0e, + 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x2a, 0x46, + 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, + 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, + 0x53, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, + 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x55, + 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x47, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, + 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, + 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, + 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x2a, + 0x8f, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x00, + 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, + 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x22, + 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, + 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, + 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, + 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, + 0x03, 0x32, 0xc7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, + 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, + 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x39, + 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x03, 0x47, 0x65, 0x74, + 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, + 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, + 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x33, +} + +var ( + file_project_proto_rawDescOnce sync.Once + file_project_proto_rawDescData = file_project_proto_rawDesc +) + +func file_project_proto_rawDescGZIP() []byte { + file_project_proto_rawDescOnce.Do(func() { + file_project_proto_rawDescData = protoimpl.X.CompressGZIP(file_project_proto_rawDescData) + }) + return file_project_proto_rawDescData +} + +var file_project_proto_enumTypes = make([]protoimpl.EnumInfo, 3) +var file_project_proto_msgTypes = make([]protoimpl.MessageInfo, 7) +var file_project_proto_goTypes = []interface{}{ + (ProjectAccess)(0), // 0: gooseai.ProjectAccess + (ProjectStatus)(0), // 1: gooseai.ProjectStatus + (ProjectAssetUse)(0), // 2: gooseai.ProjectAssetUse + (*ProjectAsset)(nil), // 3: gooseai.ProjectAsset + (*Project)(nil), // 4: gooseai.Project + (*CreateProjectRequest)(nil), // 5: gooseai.CreateProjectRequest + (*UpdateProjectRequest)(nil), // 6: gooseai.UpdateProjectRequest + (*ListProjectRequest)(nil), // 7: gooseai.ListProjectRequest + (*GetDeleteProjectRequest)(nil), // 8: gooseai.GetDeleteProjectRequest + (*ProjectEmpty)(nil), // 9: gooseai.ProjectEmpty +} +var file_project_proto_depIdxs = []int32{ + 2, // 0: gooseai.ProjectAsset.use:type_name -> gooseai.ProjectAssetUse + 0, // 1: gooseai.Project.access:type_name -> gooseai.ProjectAccess + 1, // 2: gooseai.Project.status:type_name -> gooseai.ProjectStatus + 3, // 3: gooseai.Project.file:type_name -> gooseai.ProjectAsset + 3, // 4: gooseai.Project.assets:type_name -> gooseai.ProjectAsset + 0, // 5: gooseai.CreateProjectRequest.access:type_name -> gooseai.ProjectAccess + 1, // 6: gooseai.CreateProjectRequest.status:type_name -> gooseai.ProjectStatus + 3, // 7: gooseai.CreateProjectRequest.file:type_name -> gooseai.ProjectAsset + 0, // 8: gooseai.UpdateProjectRequest.access:type_name -> gooseai.ProjectAccess + 1, // 9: gooseai.UpdateProjectRequest.status:type_name -> gooseai.ProjectStatus + 3, // 10: gooseai.UpdateProjectRequest.file:type_name -> gooseai.ProjectAsset + 5, // 11: gooseai.ProjectService.Create:input_type -> gooseai.CreateProjectRequest + 6, // 12: gooseai.ProjectService.Update:input_type -> gooseai.UpdateProjectRequest + 7, // 13: gooseai.ProjectService.List:input_type -> gooseai.ListProjectRequest + 8, // 14: gooseai.ProjectService.Get:input_type -> gooseai.GetDeleteProjectRequest + 8, // 15: gooseai.ProjectService.Delete:input_type -> gooseai.GetDeleteProjectRequest + 4, // 16: gooseai.ProjectService.Create:output_type -> gooseai.Project + 4, // 17: gooseai.ProjectService.Update:output_type -> gooseai.Project + 4, // 18: gooseai.ProjectService.List:output_type -> gooseai.Project + 4, // 19: gooseai.ProjectService.Get:output_type -> gooseai.Project + 9, // 20: gooseai.ProjectService.Delete:output_type -> gooseai.ProjectEmpty + 16, // [16:21] is the sub-list for method output_type + 11, // [11:16] 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_project_proto_init() } +func file_project_proto_init() { + if File_project_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_project_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectAsset); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Project); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CreateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*UpdateProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ListProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetDeleteProjectRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ProjectEmpty); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_project_proto_msgTypes[2].OneofWrappers = []interface{}{} + file_project_proto_msgTypes[3].OneofWrappers = []interface{}{} + file_project_proto_msgTypes[4].OneofWrappers = []interface{}{} + file_project_proto_msgTypes[5].OneofWrappers = []interface{}{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_project_proto_rawDesc, + NumEnums: 3, + NumMessages: 7, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_project_proto_goTypes, + DependencyIndexes: file_project_proto_depIdxs, + EnumInfos: file_project_proto_enumTypes, + MessageInfos: file_project_proto_msgTypes, + }.Build() + File_project_proto = out.File + file_project_proto_rawDesc = nil + file_project_proto_goTypes = nil + file_project_proto_depIdxs = nil +} diff --git a/gooseai/project/project_grpc.pb.go b/gooseai/project/project_grpc.pb.go new file mode 100644 index 0000000..c6c4651 --- /dev/null +++ b/gooseai/project/project_grpc.pb.go @@ -0,0 +1,283 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. + +package project + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ProjectServiceClient is the client API for ProjectService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ProjectServiceClient interface { + // Create a new project if it does not exist + Create(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Update an existing project + Update(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) + // List all the projects for an organization + List(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (ProjectService_ListClient, error) + // Get a project + Get(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) + // Delete a project + Delete(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*ProjectEmpty, error) +} + +type projectServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewProjectServiceClient(cc grpc.ClientConnInterface) ProjectServiceClient { + return &projectServiceClient{cc} +} + +func (c *projectServiceClient) Create(ctx context.Context, in *CreateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Create", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) Update(ctx context.Context, in *UpdateProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) List(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (ProjectService_ListClient, error) { + stream, err := c.cc.NewStream(ctx, &ProjectService_ServiceDesc.Streams[0], "/gooseai.ProjectService/List", opts...) + if err != nil { + return nil, err + } + x := &projectServiceListClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type ProjectService_ListClient interface { + Recv() (*Project, error) + grpc.ClientStream +} + +type projectServiceListClient struct { + grpc.ClientStream +} + +func (x *projectServiceListClient) Recv() (*Project, error) { + m := new(Project) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +func (c *projectServiceClient) Get(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) + err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Get", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *projectServiceClient) Delete(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*ProjectEmpty, error) { + out := new(ProjectEmpty) + err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Delete", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ProjectServiceServer is the server API for ProjectService service. +// All implementations must embed UnimplementedProjectServiceServer +// for forward compatibility +type ProjectServiceServer interface { + // Create a new project if it does not exist + Create(context.Context, *CreateProjectRequest) (*Project, error) + // Update an existing project + Update(context.Context, *UpdateProjectRequest) (*Project, error) + // List all the projects for an organization + List(*ListProjectRequest, ProjectService_ListServer) error + // Get a project + Get(context.Context, *GetDeleteProjectRequest) (*Project, error) + // Delete a project + Delete(context.Context, *GetDeleteProjectRequest) (*ProjectEmpty, error) + mustEmbedUnimplementedProjectServiceServer() +} + +// UnimplementedProjectServiceServer must be embedded to have forward compatible implementations. +type UnimplementedProjectServiceServer struct { +} + +func (UnimplementedProjectServiceServer) Create(context.Context, *CreateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Create not implemented") +} +func (UnimplementedProjectServiceServer) Update(context.Context, *UpdateProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedProjectServiceServer) List(*ListProjectRequest, ProjectService_ListServer) error { + return status.Errorf(codes.Unimplemented, "method List not implemented") +} +func (UnimplementedProjectServiceServer) Get(context.Context, *GetDeleteProjectRequest) (*Project, error) { + return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") +} +func (UnimplementedProjectServiceServer) Delete(context.Context, *GetDeleteProjectRequest) (*ProjectEmpty, error) { + return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") +} +func (UnimplementedProjectServiceServer) mustEmbedUnimplementedProjectServiceServer() {} + +// UnsafeProjectServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ProjectServiceServer will +// result in compilation errors. +type UnsafeProjectServiceServer interface { + mustEmbedUnimplementedProjectServiceServer() +} + +func RegisterProjectServiceServer(s grpc.ServiceRegistrar, srv ProjectServiceServer) { + s.RegisterService(&ProjectService_ServiceDesc, srv) +} + +func _ProjectService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CreateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Create(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gooseai.ProjectService/Create", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Create(ctx, req.(*CreateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(UpdateProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gooseai.ProjectService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Update(ctx, req.(*UpdateProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_List_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(ListProjectRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(ProjectServiceServer).List(m, &projectServiceListServer{stream}) +} + +type ProjectService_ListServer interface { + Send(*Project) error + grpc.ServerStream +} + +type projectServiceListServer struct { + grpc.ServerStream +} + +func (x *projectServiceListServer) Send(m *Project) error { + return x.ServerStream.SendMsg(m) +} + +func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDeleteProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Get(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gooseai.ProjectService/Get", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Get(ctx, req.(*GetDeleteProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetDeleteProjectRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ProjectServiceServer).Delete(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/gooseai.ProjectService/Delete", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ProjectServiceServer).Delete(ctx, req.(*GetDeleteProjectRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ProjectService_ServiceDesc is the grpc.ServiceDesc for ProjectService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ProjectService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "gooseai.ProjectService", + HandlerType: (*ProjectServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Create", + Handler: _ProjectService_Create_Handler, + }, + { + MethodName: "Update", + Handler: _ProjectService_Update_Handler, + }, + { + MethodName: "Get", + Handler: _ProjectService_Get_Handler, + }, + { + MethodName: "Delete", + Handler: _ProjectService_Delete_Handler, + }, + }, + Streams: []grpc.StreamDesc{ + { + StreamName: "List", + Handler: _ProjectService_List_Handler, + ServerStreams: true, + }, + }, + Metadata: "project.proto", +} diff --git a/gooseai/project/project_grpc_pb.d.ts b/gooseai/project/project_grpc_pb.d.ts new file mode 100644 index 0000000..7ae90ad --- /dev/null +++ b/gooseai/project/project_grpc_pb.d.ts @@ -0,0 +1,43 @@ +// GENERATED CODE -- DO NOT EDIT! + +// package: gooseai +// file: project.proto + +import * as project_pb from "./project_pb"; +import * as grpc from "grpc"; + +interface IProjectServiceService extends grpc.ServiceDefinition { + create: grpc.MethodDefinition; + update: grpc.MethodDefinition; + list: grpc.MethodDefinition; + get: grpc.MethodDefinition; + delete: grpc.MethodDefinition; +} + +export const ProjectServiceService: IProjectServiceService; + +export interface IProjectServiceServer extends grpc.UntypedServiceImplementation { + create: grpc.handleUnaryCall; + update: grpc.handleUnaryCall; + list: grpc.handleServerStreamingCall; + get: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; +} + +export class ProjectServiceClient extends grpc.Client { + constructor(address: string, credentials: grpc.ChannelCredentials, options?: object); + create(argument: project_pb.CreateProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + create(argument: project_pb.CreateProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + create(argument: project_pb.CreateProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + update(argument: project_pb.UpdateProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + update(argument: project_pb.UpdateProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + update(argument: project_pb.UpdateProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + list(argument: project_pb.ListProjectRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; + list(argument: project_pb.ListProjectRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; + get(argument: project_pb.GetDeleteProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + get(argument: project_pb.GetDeleteProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + get(argument: project_pb.GetDeleteProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.GetDeleteProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.GetDeleteProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.GetDeleteProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; +} diff --git a/gooseai/project/project_grpc_pb.js b/gooseai/project/project_grpc_pb.js new file mode 100644 index 0000000..a77bee4 --- /dev/null +++ b/gooseai/project/project_grpc_pb.js @@ -0,0 +1,140 @@ +// GENERATED CODE -- DO NOT EDIT! + +'use strict'; +var grpc = require('grpc'); +var project_pb = require('./project_pb.js'); + +function serialize_gooseai_CreateProjectRequest(arg) { + if (!(arg instanceof project_pb.CreateProjectRequest)) { + throw new Error('Expected argument of type gooseai.CreateProjectRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_CreateProjectRequest(buffer_arg) { + return project_pb.CreateProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_GetDeleteProjectRequest(arg) { + if (!(arg instanceof project_pb.GetDeleteProjectRequest)) { + throw new Error('Expected argument of type gooseai.GetDeleteProjectRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_GetDeleteProjectRequest(buffer_arg) { + return project_pb.GetDeleteProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_ListProjectRequest(arg) { + if (!(arg instanceof project_pb.ListProjectRequest)) { + throw new Error('Expected argument of type gooseai.ListProjectRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_ListProjectRequest(buffer_arg) { + return project_pb.ListProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_Project(arg) { + if (!(arg instanceof project_pb.Project)) { + throw new Error('Expected argument of type gooseai.Project'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_Project(buffer_arg) { + return project_pb.Project.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_ProjectEmpty(arg) { + if (!(arg instanceof project_pb.ProjectEmpty)) { + throw new Error('Expected argument of type gooseai.ProjectEmpty'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_ProjectEmpty(buffer_arg) { + return project_pb.ProjectEmpty.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_UpdateProjectRequest(arg) { + if (!(arg instanceof project_pb.UpdateProjectRequest)) { + throw new Error('Expected argument of type gooseai.UpdateProjectRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_UpdateProjectRequest(buffer_arg) { + return project_pb.UpdateProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + + +// +// gRPC services +// +var ProjectServiceService = exports.ProjectServiceService = { + // Create a new project if it does not exist +create: { + path: '/gooseai.ProjectService/Create', + requestStream: false, + responseStream: false, + requestType: project_pb.CreateProjectRequest, + responseType: project_pb.Project, + requestSerialize: serialize_gooseai_CreateProjectRequest, + requestDeserialize: deserialize_gooseai_CreateProjectRequest, + responseSerialize: serialize_gooseai_Project, + responseDeserialize: deserialize_gooseai_Project, + }, + // Update an existing project +update: { + path: '/gooseai.ProjectService/Update', + requestStream: false, + responseStream: false, + requestType: project_pb.UpdateProjectRequest, + responseType: project_pb.Project, + requestSerialize: serialize_gooseai_UpdateProjectRequest, + requestDeserialize: deserialize_gooseai_UpdateProjectRequest, + responseSerialize: serialize_gooseai_Project, + responseDeserialize: deserialize_gooseai_Project, + }, + // List all the projects for an organization +list: { + path: '/gooseai.ProjectService/List', + requestStream: false, + responseStream: true, + requestType: project_pb.ListProjectRequest, + responseType: project_pb.Project, + requestSerialize: serialize_gooseai_ListProjectRequest, + requestDeserialize: deserialize_gooseai_ListProjectRequest, + responseSerialize: serialize_gooseai_Project, + responseDeserialize: deserialize_gooseai_Project, + }, + // Get a project +get: { + path: '/gooseai.ProjectService/Get', + requestStream: false, + responseStream: false, + requestType: project_pb.GetDeleteProjectRequest, + responseType: project_pb.Project, + requestSerialize: serialize_gooseai_GetDeleteProjectRequest, + requestDeserialize: deserialize_gooseai_GetDeleteProjectRequest, + responseSerialize: serialize_gooseai_Project, + responseDeserialize: deserialize_gooseai_Project, + }, + // Delete a project +delete: { + path: '/gooseai.ProjectService/Delete', + requestStream: false, + responseStream: false, + requestType: project_pb.GetDeleteProjectRequest, + responseType: project_pb.ProjectEmpty, + requestSerialize: serialize_gooseai_GetDeleteProjectRequest, + requestDeserialize: deserialize_gooseai_GetDeleteProjectRequest, + responseSerialize: serialize_gooseai_ProjectEmpty, + responseDeserialize: deserialize_gooseai_ProjectEmpty, + }, +}; + +exports.ProjectServiceClient = grpc.makeGenericClientConstructor(ProjectServiceService); diff --git a/gooseai/project/project_pb.d.ts b/gooseai/project/project_pb.d.ts new file mode 100644 index 0000000..5038aa3 --- /dev/null +++ b/gooseai/project/project_pb.d.ts @@ -0,0 +1,270 @@ +// package: gooseai +// file: project.proto + +import * as jspb from "google-protobuf"; + +export class ProjectAsset extends jspb.Message { + getId(): number; + setId(value: number): void; + + getUri(): string; + setUri(value: string): void; + + getUse(): ProjectAssetUseMap[keyof ProjectAssetUseMap]; + setUse(value: ProjectAssetUseMap[keyof ProjectAssetUseMap]): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProjectAsset.AsObject; + static toObject(includeInstance: boolean, msg: ProjectAsset): ProjectAsset.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProjectAsset, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProjectAsset; + static deserializeBinaryFromReader(message: ProjectAsset, reader: jspb.BinaryReader): ProjectAsset; +} + +export namespace ProjectAsset { + export type AsObject = { + id: number, + uri: string, + use: ProjectAssetUseMap[keyof ProjectAssetUseMap], + } +} + +export class Project extends jspb.Message { + getId(): number; + setId(value: number): void; + + getTitle(): string; + setTitle(value: string): void; + + getOwner(): string; + setOwner(value: string): void; + + getAccess(): ProjectAccessMap[keyof ProjectAccessMap]; + setAccess(value: ProjectAccessMap[keyof ProjectAccessMap]): void; + + getStatus(): ProjectStatusMap[keyof ProjectStatusMap]; + setStatus(value: ProjectStatusMap[keyof ProjectStatusMap]): void; + + getSize(): number; + setSize(value: number): void; + + hasFile(): boolean; + clearFile(): void; + getFile(): ProjectAsset | undefined; + setFile(value?: ProjectAsset): void; + + getCreatedAt(): number; + setCreatedAt(value: number): void; + + getUpdatedAt(): number; + setUpdatedAt(value: number): void; + + clearAssetsList(): void; + getAssetsList(): Array; + setAssetsList(value: Array): void; + addAssets(value?: ProjectAsset, index?: number): ProjectAsset; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): Project.AsObject; + static toObject(includeInstance: boolean, msg: Project): Project.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: Project, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): Project; + static deserializeBinaryFromReader(message: Project, reader: jspb.BinaryReader): Project; +} + +export namespace Project { + export type AsObject = { + id: number, + title: string, + owner: string, + access: ProjectAccessMap[keyof ProjectAccessMap], + status: ProjectStatusMap[keyof ProjectStatusMap], + size: number, + file?: ProjectAsset.AsObject, + createdAt: number, + updatedAt: number, + assetsList: Array, + } +} + +export class CreateProjectRequest extends jspb.Message { + getTitle(): string; + setTitle(value: string): void; + + hasOwner(): boolean; + clearOwner(): void; + getOwner(): string; + setOwner(value: string): void; + + getAccess(): ProjectAccessMap[keyof ProjectAccessMap]; + setAccess(value: ProjectAccessMap[keyof ProjectAccessMap]): void; + + getStatus(): ProjectStatusMap[keyof ProjectStatusMap]; + setStatus(value: ProjectStatusMap[keyof ProjectStatusMap]): void; + + hasFile(): boolean; + clearFile(): void; + getFile(): ProjectAsset | undefined; + setFile(value?: ProjectAsset): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): CreateProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: CreateProjectRequest): CreateProjectRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: CreateProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): CreateProjectRequest; + static deserializeBinaryFromReader(message: CreateProjectRequest, reader: jspb.BinaryReader): CreateProjectRequest; +} + +export namespace CreateProjectRequest { + export type AsObject = { + title: string, + owner: string, + access: ProjectAccessMap[keyof ProjectAccessMap], + status: ProjectStatusMap[keyof ProjectStatusMap], + file?: ProjectAsset.AsObject, + } +} + +export class UpdateProjectRequest extends jspb.Message { + getId(): number; + setId(value: number): void; + + hasOwner(): boolean; + clearOwner(): void; + getOwner(): string; + setOwner(value: string): void; + + hasTitle(): boolean; + clearTitle(): void; + getTitle(): string; + setTitle(value: string): void; + + hasAccess(): boolean; + clearAccess(): void; + getAccess(): ProjectAccessMap[keyof ProjectAccessMap]; + setAccess(value: ProjectAccessMap[keyof ProjectAccessMap]): void; + + hasStatus(): boolean; + clearStatus(): void; + getStatus(): ProjectStatusMap[keyof ProjectStatusMap]; + setStatus(value: ProjectStatusMap[keyof ProjectStatusMap]): void; + + hasFile(): boolean; + clearFile(): void; + getFile(): ProjectAsset | undefined; + setFile(value?: ProjectAsset): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): UpdateProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: UpdateProjectRequest): UpdateProjectRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: UpdateProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): UpdateProjectRequest; + static deserializeBinaryFromReader(message: UpdateProjectRequest, reader: jspb.BinaryReader): UpdateProjectRequest; +} + +export namespace UpdateProjectRequest { + export type AsObject = { + id: number, + owner: string, + title: string, + access: ProjectAccessMap[keyof ProjectAccessMap], + status: ProjectStatusMap[keyof ProjectStatusMap], + file?: ProjectAsset.AsObject, + } +} + +export class ListProjectRequest extends jspb.Message { + hasOwner(): boolean; + clearOwner(): void; + getOwner(): string; + setOwner(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ListProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: ListProjectRequest): ListProjectRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ListProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ListProjectRequest; + static deserializeBinaryFromReader(message: ListProjectRequest, reader: jspb.BinaryReader): ListProjectRequest; +} + +export namespace ListProjectRequest { + export type AsObject = { + owner: string, + } +} + +export class GetDeleteProjectRequest extends jspb.Message { + getId(): number; + setId(value: number): void; + + hasOwner(): boolean; + clearOwner(): void; + getOwner(): string; + setOwner(value: string): void; + + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): GetDeleteProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetDeleteProjectRequest): GetDeleteProjectRequest.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: GetDeleteProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetDeleteProjectRequest; + static deserializeBinaryFromReader(message: GetDeleteProjectRequest, reader: jspb.BinaryReader): GetDeleteProjectRequest; +} + +export namespace GetDeleteProjectRequest { + export type AsObject = { + id: number, + owner: string, + } +} + +export class ProjectEmpty extends jspb.Message { + serializeBinary(): Uint8Array; + toObject(includeInstance?: boolean): ProjectEmpty.AsObject; + static toObject(includeInstance: boolean, msg: ProjectEmpty): ProjectEmpty.AsObject; + static extensions: {[key: number]: jspb.ExtensionFieldInfo}; + static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; + static serializeBinaryToWriter(message: ProjectEmpty, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): ProjectEmpty; + static deserializeBinaryFromReader(message: ProjectEmpty, reader: jspb.BinaryReader): ProjectEmpty; +} + +export namespace ProjectEmpty { + export type AsObject = { + } +} + +export interface ProjectAccessMap { + PROJECT_ACCESS_PRIVATE: 0; + PROJECT_ACCESS_PUBLIC: 1; +} + +export const ProjectAccess: ProjectAccessMap; + +export interface ProjectStatusMap { + PROJECT_STATUS_INACTIVE: 0; + PROJECT_STATUS_ACTIVE: 1; +} + +export const ProjectStatus: ProjectStatusMap; + +export interface ProjectAssetUseMap { + PROJECT_ASSET_USE_INPUT: 0; + PROJECT_ASSET_USE_OUTPUT: 1; + PROJECT_ASSET_USE_INTERMEDIATE: 2; + PROJECT_ASSET_USE_PROJECT: 3; +} + +export const ProjectAssetUse: ProjectAssetUseMap; + diff --git a/gooseai/project/project_pb.js b/gooseai/project/project_pb.js new file mode 100644 index 0000000..711bd99 --- /dev/null +++ b/gooseai/project/project_pb.js @@ -0,0 +1,1931 @@ +// source: project.proto +/** + * @fileoverview + * @enhanceable + * @suppress {missingRequire} reports error on implicit type usages. + * @suppress {messageConventions} JS Compiler reports an error if a variable or + * field starts with 'MSG_' and isn't a translatable message. + * @public + */ +// GENERATED CODE -- DO NOT EDIT! +/* eslint-disable */ +// @ts-nocheck + +var jspb = require('google-protobuf'); +var goog = jspb; +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); + +goog.exportSymbol('proto.gooseai.CreateProjectRequest', null, global); +goog.exportSymbol('proto.gooseai.GetDeleteProjectRequest', null, global); +goog.exportSymbol('proto.gooseai.ListProjectRequest', null, global); +goog.exportSymbol('proto.gooseai.Project', null, global); +goog.exportSymbol('proto.gooseai.ProjectAccess', null, global); +goog.exportSymbol('proto.gooseai.ProjectAsset', null, global); +goog.exportSymbol('proto.gooseai.ProjectAssetUse', null, global); +goog.exportSymbol('proto.gooseai.ProjectEmpty', null, global); +goog.exportSymbol('proto.gooseai.ProjectStatus', null, global); +goog.exportSymbol('proto.gooseai.UpdateProjectRequest', null, global); +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.ProjectAsset = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.ProjectAsset, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.ProjectAsset.displayName = 'proto.gooseai.ProjectAsset'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.Project = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, proto.gooseai.Project.repeatedFields_, null); +}; +goog.inherits(proto.gooseai.Project, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.Project.displayName = 'proto.gooseai.Project'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.CreateProjectRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.CreateProjectRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.CreateProjectRequest.displayName = 'proto.gooseai.CreateProjectRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.UpdateProjectRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.UpdateProjectRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.UpdateProjectRequest.displayName = 'proto.gooseai.UpdateProjectRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.ListProjectRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.ListProjectRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.ListProjectRequest.displayName = 'proto.gooseai.ListProjectRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.GetDeleteProjectRequest = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.GetDeleteProjectRequest, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.GetDeleteProjectRequest.displayName = 'proto.gooseai.GetDeleteProjectRequest'; +} +/** + * Generated by JsPbCodeGenerator. + * @param {Array=} opt_data Optional initial data array, typically from a + * server response, or constructed directly in Javascript. The array is used + * in place and becomes part of the constructed object. It is not cloned. + * If no data is provided, the constructed object will be empty, but still + * valid. + * @extends {jspb.Message} + * @constructor + */ +proto.gooseai.ProjectEmpty = function(opt_data) { + jspb.Message.initialize(this, opt_data, 0, -1, null, null); +}; +goog.inherits(proto.gooseai.ProjectEmpty, jspb.Message); +if (goog.DEBUG && !COMPILED) { + /** + * @public + * @override + */ + proto.gooseai.ProjectEmpty.displayName = 'proto.gooseai.ProjectEmpty'; +} + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.ProjectAsset.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.ProjectAsset.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.ProjectAsset} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ProjectAsset.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + uri: jspb.Message.getFieldWithDefault(msg, 2, ""), + use: jspb.Message.getFieldWithDefault(msg, 3, 0) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.ProjectAsset} + */ +proto.gooseai.ProjectAsset.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.ProjectAsset; + return proto.gooseai.ProjectAsset.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.ProjectAsset} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.ProjectAsset} + */ +proto.gooseai.ProjectAsset.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setUri(value); + break; + case 3: + var value = /** @type {!proto.gooseai.ProjectAssetUse} */ (reader.readEnum()); + msg.setUse(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.ProjectAsset.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.ProjectAsset.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.ProjectAsset} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ProjectAsset.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getUri(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getUse(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.gooseai.ProjectAsset.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.ProjectAsset} returns this + */ +proto.gooseai.ProjectAsset.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string URI = 2; + * @return {string} + */ +proto.gooseai.ProjectAsset.prototype.getUri = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.ProjectAsset} returns this + */ +proto.gooseai.ProjectAsset.prototype.setUri = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional ProjectAssetUse use = 3; + * @return {!proto.gooseai.ProjectAssetUse} + */ +proto.gooseai.ProjectAsset.prototype.getUse = function() { + return /** @type {!proto.gooseai.ProjectAssetUse} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectAssetUse} value + * @return {!proto.gooseai.ProjectAsset} returns this + */ +proto.gooseai.ProjectAsset.prototype.setUse = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + + +/** + * List of repeated fields within this message type. + * @private {!Array} + * @const + */ +proto.gooseai.Project.repeatedFields_ = [10]; + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.Project.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.Project.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.Project} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.Project.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + title: jspb.Message.getFieldWithDefault(msg, 2, ""), + owner: jspb.Message.getFieldWithDefault(msg, 3, ""), + access: jspb.Message.getFieldWithDefault(msg, 4, 0), + status: jspb.Message.getFieldWithDefault(msg, 5, 0), + size: jspb.Message.getFieldWithDefault(msg, 6, 0), + file: (f = msg.getFile()) && proto.gooseai.ProjectAsset.toObject(includeInstance, f), + createdAt: jspb.Message.getFieldWithDefault(msg, 8, 0), + updatedAt: jspb.Message.getFieldWithDefault(msg, 9, 0), + assetsList: jspb.Message.toObjectList(msg.getAssetsList(), + proto.gooseai.ProjectAsset.toObject, includeInstance) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.Project} + */ +proto.gooseai.Project.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.Project; + return proto.gooseai.Project.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.Project} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.Project} + */ +proto.gooseai.Project.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + case 4: + var value = /** @type {!proto.gooseai.ProjectAccess} */ (reader.readEnum()); + msg.setAccess(value); + break; + case 5: + var value = /** @type {!proto.gooseai.ProjectStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 6: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSize(value); + break; + case 7: + var value = new proto.gooseai.ProjectAsset; + reader.readMessage(value,proto.gooseai.ProjectAsset.deserializeBinaryFromReader); + msg.setFile(value); + break; + case 8: + var value = /** @type {number} */ (reader.readUint64()); + msg.setCreatedAt(value); + break; + case 9: + var value = /** @type {number} */ (reader.readUint64()); + msg.setUpdatedAt(value); + break; + case 10: + var value = new proto.gooseai.ProjectAsset; + reader.readMessage(value,proto.gooseai.ProjectAsset.deserializeBinaryFromReader); + msg.addAssets(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.Project.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.Project.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.Project} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = message.getTitle(); + if (f.length > 0) { + writer.writeString( + 2, + f + ); + } + f = message.getOwner(); + if (f.length > 0) { + writer.writeString( + 3, + f + ); + } + f = message.getAccess(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 5, + f + ); + } + f = message.getSize(); + if (f !== 0) { + writer.writeUint64( + 6, + f + ); + } + f = message.getFile(); + if (f != null) { + writer.writeMessage( + 7, + f, + proto.gooseai.ProjectAsset.serializeBinaryToWriter + ); + } + f = message.getCreatedAt(); + if (f !== 0) { + writer.writeUint64( + 8, + f + ); + } + f = message.getUpdatedAt(); + if (f !== 0) { + writer.writeUint64( + 9, + f + ); + } + f = message.getAssetsList(); + if (f.length > 0) { + writer.writeRepeatedMessage( + 10, + f, + proto.gooseai.ProjectAsset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.gooseai.Project.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string title = 2; + * @return {string} + */ +proto.gooseai.Project.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setTitle = function(value) { + return jspb.Message.setProto3StringField(this, 2, value); +}; + + +/** + * optional string owner = 3; + * @return {string} + */ +proto.gooseai.Project.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setOwner = function(value) { + return jspb.Message.setProto3StringField(this, 3, value); +}; + + +/** + * optional ProjectAccess access = 4; + * @return {!proto.gooseai.ProjectAccess} + */ +proto.gooseai.Project.prototype.getAccess = function() { + return /** @type {!proto.gooseai.ProjectAccess} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectAccess} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setAccess = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional ProjectStatus status = 5; + * @return {!proto.gooseai.ProjectStatus} + */ +proto.gooseai.Project.prototype.getStatus = function() { + return /** @type {!proto.gooseai.ProjectStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectStatus} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 5, value); +}; + + +/** + * optional uint64 size = 6; + * @return {number} + */ +proto.gooseai.Project.prototype.getSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setSize = function(value) { + return jspb.Message.setProto3IntField(this, 6, value); +}; + + +/** + * optional ProjectAsset file = 7; + * @return {?proto.gooseai.ProjectAsset} + */ +proto.gooseai.Project.prototype.getFile = function() { + return /** @type{?proto.gooseai.ProjectAsset} */ ( + jspb.Message.getWrapperField(this, proto.gooseai.ProjectAsset, 7)); +}; + + +/** + * @param {?proto.gooseai.ProjectAsset|undefined} value + * @return {!proto.gooseai.Project} returns this +*/ +proto.gooseai.Project.prototype.setFile = function(value) { + return jspb.Message.setWrapperField(this, 7, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.clearFile = function() { + return this.setFile(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.Project.prototype.hasFile = function() { + return jspb.Message.getField(this, 7) != null; +}; + + +/** + * optional uint64 created_at = 8; + * @return {number} + */ +proto.gooseai.Project.prototype.getCreatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setCreatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 8, value); +}; + + +/** + * optional uint64 updated_at = 9; + * @return {number} + */ +proto.gooseai.Project.prototype.getUpdatedAt = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.setUpdatedAt = function(value) { + return jspb.Message.setProto3IntField(this, 9, value); +}; + + +/** + * repeated ProjectAsset assets = 10; + * @return {!Array} + */ +proto.gooseai.Project.prototype.getAssetsList = function() { + return /** @type{!Array} */ ( + jspb.Message.getRepeatedWrapperField(this, proto.gooseai.ProjectAsset, 10)); +}; + + +/** + * @param {!Array} value + * @return {!proto.gooseai.Project} returns this +*/ +proto.gooseai.Project.prototype.setAssetsList = function(value) { + return jspb.Message.setRepeatedWrapperField(this, 10, value); +}; + + +/** + * @param {!proto.gooseai.ProjectAsset=} opt_value + * @param {number=} opt_index + * @return {!proto.gooseai.ProjectAsset} + */ +proto.gooseai.Project.prototype.addAssets = function(opt_value, opt_index) { + return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.gooseai.ProjectAsset, opt_index); +}; + + +/** + * Clears the list making it empty but non-null. + * @return {!proto.gooseai.Project} returns this + */ +proto.gooseai.Project.prototype.clearAssetsList = function() { + return this.setAssetsList([]); +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.CreateProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.CreateProjectRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.CreateProjectRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.CreateProjectRequest.toObject = function(includeInstance, msg) { + var f, obj = { + title: jspb.Message.getFieldWithDefault(msg, 1, ""), + owner: jspb.Message.getFieldWithDefault(msg, 2, ""), + access: jspb.Message.getFieldWithDefault(msg, 3, 0), + status: jspb.Message.getFieldWithDefault(msg, 4, 0), + file: (f = msg.getFile()) && proto.gooseai.ProjectAsset.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.CreateProjectRequest} + */ +proto.gooseai.CreateProjectRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.CreateProjectRequest; + return proto.gooseai.CreateProjectRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.CreateProjectRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.CreateProjectRequest} + */ +proto.gooseai.CreateProjectRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + case 3: + var value = /** @type {!proto.gooseai.ProjectAccess} */ (reader.readEnum()); + msg.setAccess(value); + break; + case 4: + var value = /** @type {!proto.gooseai.ProjectStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 5: + var value = new proto.gooseai.ProjectAsset; + reader.readMessage(value,proto.gooseai.ProjectAsset.deserializeBinaryFromReader); + msg.setFile(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.CreateProjectRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.CreateProjectRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.CreateProjectRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.CreateProjectRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getTitle(); + if (f.length > 0) { + writer.writeString( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = message.getAccess(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } + f = message.getStatus(); + if (f !== 0.0) { + writer.writeEnum( + 4, + f + ); + } + f = message.getFile(); + if (f != null) { + writer.writeMessage( + 5, + f, + proto.gooseai.ProjectAsset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional string title = 1; + * @return {string} + */ +proto.gooseai.CreateProjectRequest.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.setTitle = function(value) { + return jspb.Message.setProto3StringField(this, 1, value); +}; + + +/** + * optional string owner = 2; + * @return {string} + */ +proto.gooseai.CreateProjectRequest.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.setOwner = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.clearOwner = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.CreateProjectRequest.prototype.hasOwner = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional ProjectAccess access = 3; + * @return {!proto.gooseai.ProjectAccess} + */ +proto.gooseai.CreateProjectRequest.prototype.getAccess = function() { + return /** @type {!proto.gooseai.ProjectAccess} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectAccess} value + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.setAccess = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); +}; + + +/** + * optional ProjectStatus status = 4; + * @return {!proto.gooseai.ProjectStatus} + */ +proto.gooseai.CreateProjectRequest.prototype.getStatus = function() { + return /** @type {!proto.gooseai.ProjectStatus} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectStatus} value + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.setStatus = function(value) { + return jspb.Message.setProto3EnumField(this, 4, value); +}; + + +/** + * optional ProjectAsset file = 5; + * @return {?proto.gooseai.ProjectAsset} + */ +proto.gooseai.CreateProjectRequest.prototype.getFile = function() { + return /** @type{?proto.gooseai.ProjectAsset} */ ( + jspb.Message.getWrapperField(this, proto.gooseai.ProjectAsset, 5)); +}; + + +/** + * @param {?proto.gooseai.ProjectAsset|undefined} value + * @return {!proto.gooseai.CreateProjectRequest} returns this +*/ +proto.gooseai.CreateProjectRequest.prototype.setFile = function(value) { + return jspb.Message.setWrapperField(this, 5, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gooseai.CreateProjectRequest} returns this + */ +proto.gooseai.CreateProjectRequest.prototype.clearFile = function() { + return this.setFile(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.CreateProjectRequest.prototype.hasFile = function() { + return jspb.Message.getField(this, 5) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.UpdateProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.UpdateProjectRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.UpdateProjectRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.UpdateProjectRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + owner: jspb.Message.getFieldWithDefault(msg, 2, ""), + title: jspb.Message.getFieldWithDefault(msg, 3, ""), + access: jspb.Message.getFieldWithDefault(msg, 4, 0), + status: jspb.Message.getFieldWithDefault(msg, 5, 0), + file: (f = msg.getFile()) && proto.gooseai.ProjectAsset.toObject(includeInstance, f) + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.UpdateProjectRequest} + */ +proto.gooseai.UpdateProjectRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.UpdateProjectRequest; + return proto.gooseai.UpdateProjectRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.UpdateProjectRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.UpdateProjectRequest} + */ +proto.gooseai.UpdateProjectRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + case 3: + var value = /** @type {string} */ (reader.readString()); + msg.setTitle(value); + break; + case 4: + var value = /** @type {!proto.gooseai.ProjectAccess} */ (reader.readEnum()); + msg.setAccess(value); + break; + case 5: + var value = /** @type {!proto.gooseai.ProjectStatus} */ (reader.readEnum()); + msg.setStatus(value); + break; + case 6: + var value = new proto.gooseai.ProjectAsset; + reader.readMessage(value,proto.gooseai.ProjectAsset.deserializeBinaryFromReader); + msg.setFile(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.UpdateProjectRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.UpdateProjectRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 3)); + if (f != null) { + writer.writeString( + 3, + f + ); + } + f = /** @type {!proto.gooseai.ProjectAccess} */ (jspb.Message.getField(message, 4)); + if (f != null) { + writer.writeEnum( + 4, + f + ); + } + f = /** @type {!proto.gooseai.ProjectStatus} */ (jspb.Message.getField(message, 5)); + if (f != null) { + writer.writeEnum( + 5, + f + ); + } + f = message.getFile(); + if (f != null) { + writer.writeMessage( + 6, + f, + proto.gooseai.ProjectAsset.serializeBinaryToWriter + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.gooseai.UpdateProjectRequest.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string owner = 2; + * @return {string} + */ +proto.gooseai.UpdateProjectRequest.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.setOwner = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.clearOwner = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.UpdateProjectRequest.prototype.hasOwner = function() { + return jspb.Message.getField(this, 2) != null; +}; + + +/** + * optional string title = 3; + * @return {string} + */ +proto.gooseai.UpdateProjectRequest.prototype.getTitle = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.setTitle = function(value) { + return jspb.Message.setField(this, 3, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.clearTitle = function() { + return jspb.Message.setField(this, 3, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.UpdateProjectRequest.prototype.hasTitle = function() { + return jspb.Message.getField(this, 3) != null; +}; + + +/** + * optional ProjectAccess access = 4; + * @return {!proto.gooseai.ProjectAccess} + */ +proto.gooseai.UpdateProjectRequest.prototype.getAccess = function() { + return /** @type {!proto.gooseai.ProjectAccess} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectAccess} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.setAccess = function(value) { + return jspb.Message.setField(this, 4, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.clearAccess = function() { + return jspb.Message.setField(this, 4, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.UpdateProjectRequest.prototype.hasAccess = function() { + return jspb.Message.getField(this, 4) != null; +}; + + +/** + * optional ProjectStatus status = 5; + * @return {!proto.gooseai.ProjectStatus} + */ +proto.gooseai.UpdateProjectRequest.prototype.getStatus = function() { + return /** @type {!proto.gooseai.ProjectStatus} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); +}; + + +/** + * @param {!proto.gooseai.ProjectStatus} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.setStatus = function(value) { + return jspb.Message.setField(this, 5, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.clearStatus = function() { + return jspb.Message.setField(this, 5, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.UpdateProjectRequest.prototype.hasStatus = function() { + return jspb.Message.getField(this, 5) != null; +}; + + +/** + * optional ProjectAsset file = 6; + * @return {?proto.gooseai.ProjectAsset} + */ +proto.gooseai.UpdateProjectRequest.prototype.getFile = function() { + return /** @type{?proto.gooseai.ProjectAsset} */ ( + jspb.Message.getWrapperField(this, proto.gooseai.ProjectAsset, 6)); +}; + + +/** + * @param {?proto.gooseai.ProjectAsset|undefined} value + * @return {!proto.gooseai.UpdateProjectRequest} returns this +*/ +proto.gooseai.UpdateProjectRequest.prototype.setFile = function(value) { + return jspb.Message.setWrapperField(this, 6, value); +}; + + +/** + * Clears the message field making it undefined. + * @return {!proto.gooseai.UpdateProjectRequest} returns this + */ +proto.gooseai.UpdateProjectRequest.prototype.clearFile = function() { + return this.setFile(undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.UpdateProjectRequest.prototype.hasFile = function() { + return jspb.Message.getField(this, 6) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.ListProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.ListProjectRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.ListProjectRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ListProjectRequest.toObject = function(includeInstance, msg) { + var f, obj = { + owner: jspb.Message.getFieldWithDefault(msg, 1, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.ListProjectRequest} + */ +proto.gooseai.ListProjectRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.ListProjectRequest; + return proto.gooseai.ListProjectRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.ListProjectRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.ListProjectRequest} + */ +proto.gooseai.ListProjectRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.ListProjectRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.ListProjectRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.ListProjectRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ListProjectRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = /** @type {string} */ (jspb.Message.getField(message, 1)); + if (f != null) { + writer.writeString( + 1, + f + ); + } +}; + + +/** + * optional string owner = 1; + * @return {string} + */ +proto.gooseai.ListProjectRequest.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.ListProjectRequest} returns this + */ +proto.gooseai.ListProjectRequest.prototype.setOwner = function(value) { + return jspb.Message.setField(this, 1, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.ListProjectRequest} returns this + */ +proto.gooseai.ListProjectRequest.prototype.clearOwner = function() { + return jspb.Message.setField(this, 1, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.ListProjectRequest.prototype.hasOwner = function() { + return jspb.Message.getField(this, 1) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.GetDeleteProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.GetDeleteProjectRequest.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.GetDeleteProjectRequest} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.GetDeleteProjectRequest.toObject = function(includeInstance, msg) { + var f, obj = { + id: jspb.Message.getFieldWithDefault(msg, 1, 0), + owner: jspb.Message.getFieldWithDefault(msg, 2, "") + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.GetDeleteProjectRequest} + */ +proto.gooseai.GetDeleteProjectRequest.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.GetDeleteProjectRequest; + return proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.GetDeleteProjectRequest} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.GetDeleteProjectRequest} + */ +proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + case 1: + var value = /** @type {number} */ (reader.readUint64()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOwner(value); + break; + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.GetDeleteProjectRequest.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.GetDeleteProjectRequest.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.GetDeleteProjectRequest} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.GetDeleteProjectRequest.serializeBinaryToWriter = function(message, writer) { + var f = undefined; + f = message.getId(); + if (f !== 0) { + writer.writeUint64( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional uint64 id = 1; + * @return {number} + */ +proto.gooseai.GetDeleteProjectRequest.prototype.getId = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + */ +proto.gooseai.GetDeleteProjectRequest.prototype.setId = function(value) { + return jspb.Message.setProto3IntField(this, 1, value); +}; + + +/** + * optional string owner = 2; + * @return {string} + */ +proto.gooseai.GetDeleteProjectRequest.prototype.getOwner = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + */ +proto.gooseai.GetDeleteProjectRequest.prototype.setOwner = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + */ +proto.gooseai.GetDeleteProjectRequest.prototype.clearOwner = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.GetDeleteProjectRequest.prototype.hasOwner = function() { + return jspb.Message.getField(this, 2) != null; +}; + + + + + +if (jspb.Message.GENERATE_TO_OBJECT) { +/** + * Creates an object representation of this proto. + * Field names that are reserved in JavaScript and will be renamed to pb_name. + * Optional fields that are not set will be set to undefined. + * To access a reserved field use, foo.pb_, eg, foo.pb_default. + * For the list of reserved names please see: + * net/proto2/compiler/js/internal/generator.cc#kKeyword. + * @param {boolean=} opt_includeInstance Deprecated. whether to include the + * JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @return {!Object} + */ +proto.gooseai.ProjectEmpty.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.ProjectEmpty.toObject(opt_includeInstance, this); +}; + + +/** + * Static version of the {@see toObject} method. + * @param {boolean|undefined} includeInstance Deprecated. Whether to include + * the JSPB instance for transitional soy proto support: + * http://goto/soy-param-migration + * @param {!proto.gooseai.ProjectEmpty} msg The msg instance to transform. + * @return {!Object} + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ProjectEmpty.toObject = function(includeInstance, msg) { + var f, obj = { + + }; + + if (includeInstance) { + obj.$jspbMessageInstance = msg; + } + return obj; +}; +} + + +/** + * Deserializes binary data (in protobuf wire format). + * @param {jspb.ByteSource} bytes The bytes to deserialize. + * @return {!proto.gooseai.ProjectEmpty} + */ +proto.gooseai.ProjectEmpty.deserializeBinary = function(bytes) { + var reader = new jspb.BinaryReader(bytes); + var msg = new proto.gooseai.ProjectEmpty; + return proto.gooseai.ProjectEmpty.deserializeBinaryFromReader(msg, reader); +}; + + +/** + * Deserializes binary data (in protobuf wire format) from the + * given reader into the given message object. + * @param {!proto.gooseai.ProjectEmpty} msg The message object to deserialize into. + * @param {!jspb.BinaryReader} reader The BinaryReader to use. + * @return {!proto.gooseai.ProjectEmpty} + */ +proto.gooseai.ProjectEmpty.deserializeBinaryFromReader = function(msg, reader) { + while (reader.nextField()) { + if (reader.isEndGroup()) { + break; + } + var field = reader.getFieldNumber(); + switch (field) { + default: + reader.skipField(); + break; + } + } + return msg; +}; + + +/** + * Serializes the message to binary data (in protobuf wire format). + * @return {!Uint8Array} + */ +proto.gooseai.ProjectEmpty.prototype.serializeBinary = function() { + var writer = new jspb.BinaryWriter(); + proto.gooseai.ProjectEmpty.serializeBinaryToWriter(this, writer); + return writer.getResultBuffer(); +}; + + +/** + * Serializes the given message to binary data (in protobuf wire + * format), writing to the given BinaryWriter. + * @param {!proto.gooseai.ProjectEmpty} message + * @param {!jspb.BinaryWriter} writer + * @suppress {unusedLocalVariables} f is only used for nested messages + */ +proto.gooseai.ProjectEmpty.serializeBinaryToWriter = function(message, writer) { + var f = undefined; +}; + + +/** + * @enum {number} + */ +proto.gooseai.ProjectAccess = { + PROJECT_ACCESS_PRIVATE: 0, + PROJECT_ACCESS_PUBLIC: 1 +}; + +/** + * @enum {number} + */ +proto.gooseai.ProjectStatus = { + PROJECT_STATUS_INACTIVE: 0, + PROJECT_STATUS_ACTIVE: 1 +}; + +/** + * @enum {number} + */ +proto.gooseai.ProjectAssetUse = { + PROJECT_ASSET_USE_INPUT: 0, + PROJECT_ASSET_USE_OUTPUT: 1, + PROJECT_ASSET_USE_INTERMEDIATE: 2, + PROJECT_ASSET_USE_PROJECT: 3 +}; + +goog.object.extend(exports, proto.gooseai); diff --git a/gooseai/project/project_pb2.py b/gooseai/project/project_pb2.py new file mode 100644 index 0000000..56acda0 --- /dev/null +++ b/gooseai/project/project_pb2.py @@ -0,0 +1,119 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: project.proto +"""Generated protocol buffer code.""" +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x85\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\x04\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05owner\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xc6\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x08\n\x06_ownerB\x07\n\x05_file\"\x81\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x08\n\x06_ownerB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"2\n\x12ListProjectRequest\x12\x12\n\x05owner\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_owner\"C\n\x17GetDeleteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_owner\"\x0e\n\x0cProjectEmpty*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*G\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01*\x8f\x01\n\x0fProjectAssetUse\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x00\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x01\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x02\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x03\x32\xc7\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12;\n\x03Get\x12 .gooseai.GetDeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x43\n\x06\x44\x65lete\x12 .gooseai.GetDeleteProjectRequest\x1a\x15.gooseai.ProjectEmpty\"\x00\x42\x0cZ\n./;projectb\x06proto3') + +_PROJECTACCESS = DESCRIPTOR.enum_types_by_name['ProjectAccess'] +ProjectAccess = enum_type_wrapper.EnumTypeWrapper(_PROJECTACCESS) +_PROJECTSTATUS = DESCRIPTOR.enum_types_by_name['ProjectStatus'] +ProjectStatus = enum_type_wrapper.EnumTypeWrapper(_PROJECTSTATUS) +_PROJECTASSETUSE = DESCRIPTOR.enum_types_by_name['ProjectAssetUse'] +ProjectAssetUse = enum_type_wrapper.EnumTypeWrapper(_PROJECTASSETUSE) +PROJECT_ACCESS_PRIVATE = 0 +PROJECT_ACCESS_PUBLIC = 1 +PROJECT_STATUS_INACTIVE = 0 +PROJECT_STATUS_ACTIVE = 1 +PROJECT_ASSET_USE_INPUT = 0 +PROJECT_ASSET_USE_OUTPUT = 1 +PROJECT_ASSET_USE_INTERMEDIATE = 2 +PROJECT_ASSET_USE_PROJECT = 3 + + +_PROJECTASSET = DESCRIPTOR.message_types_by_name['ProjectAsset'] +_PROJECT = DESCRIPTOR.message_types_by_name['Project'] +_CREATEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['CreateProjectRequest'] +_UPDATEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['UpdateProjectRequest'] +_LISTPROJECTREQUEST = DESCRIPTOR.message_types_by_name['ListProjectRequest'] +_GETDELETEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['GetDeleteProjectRequest'] +_PROJECTEMPTY = DESCRIPTOR.message_types_by_name['ProjectEmpty'] +ProjectAsset = _reflection.GeneratedProtocolMessageType('ProjectAsset', (_message.Message,), { + 'DESCRIPTOR' : _PROJECTASSET, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.ProjectAsset) + }) +_sym_db.RegisterMessage(ProjectAsset) + +Project = _reflection.GeneratedProtocolMessageType('Project', (_message.Message,), { + 'DESCRIPTOR' : _PROJECT, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.Project) + }) +_sym_db.RegisterMessage(Project) + +CreateProjectRequest = _reflection.GeneratedProtocolMessageType('CreateProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _CREATEPROJECTREQUEST, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.CreateProjectRequest) + }) +_sym_db.RegisterMessage(CreateProjectRequest) + +UpdateProjectRequest = _reflection.GeneratedProtocolMessageType('UpdateProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _UPDATEPROJECTREQUEST, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.UpdateProjectRequest) + }) +_sym_db.RegisterMessage(UpdateProjectRequest) + +ListProjectRequest = _reflection.GeneratedProtocolMessageType('ListProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _LISTPROJECTREQUEST, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.ListProjectRequest) + }) +_sym_db.RegisterMessage(ListProjectRequest) + +GetDeleteProjectRequest = _reflection.GeneratedProtocolMessageType('GetDeleteProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETDELETEPROJECTREQUEST, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.GetDeleteProjectRequest) + }) +_sym_db.RegisterMessage(GetDeleteProjectRequest) + +ProjectEmpty = _reflection.GeneratedProtocolMessageType('ProjectEmpty', (_message.Message,), { + 'DESCRIPTOR' : _PROJECTEMPTY, + '__module__' : 'project_pb2' + # @@protoc_insertion_point(class_scope:gooseai.ProjectEmpty) + }) +_sym_db.RegisterMessage(ProjectEmpty) + +_PROJECTSERVICE = DESCRIPTOR.services_by_name['ProjectService'] +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z\n./;project' + _PROJECTACCESS._serialized_start=968 + _PROJECTACCESS._serialized_end=1038 + _PROJECTSTATUS._serialized_start=1040 + _PROJECTSTATUS._serialized_end=1111 + _PROJECTASSETUSE._serialized_start=1114 + _PROJECTASSETUSE._serialized_end=1257 + _PROJECTASSET._serialized_start=26 + _PROJECTASSET._serialized_end=104 + _PROJECT._serialized_start=107 + _PROJECT._serialized_end=368 + _CREATEPROJECTREQUEST._serialized_start=371 + _CREATEPROJECTREQUEST._serialized_end=569 + _UPDATEPROJECTREQUEST._serialized_start=572 + _UPDATEPROJECTREQUEST._serialized_end=829 + _LISTPROJECTREQUEST._serialized_start=831 + _LISTPROJECTREQUEST._serialized_end=881 + _GETDELETEPROJECTREQUEST._serialized_start=883 + _GETDELETEPROJECTREQUEST._serialized_end=950 + _PROJECTEMPTY._serialized_start=952 + _PROJECTEMPTY._serialized_end=966 + _PROJECTSERVICE._serialized_start=1260 + _PROJECTSERVICE._serialized_end=1587 +# @@protoc_insertion_point(module_scope) diff --git a/gooseai/project/project_pb2_grpc.py b/gooseai/project/project_pb2_grpc.py new file mode 100644 index 0000000..87db3f7 --- /dev/null +++ b/gooseai/project/project_pb2_grpc.py @@ -0,0 +1,212 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +"""Client and server classes corresponding to protobuf-defined services.""" +import grpc + +import project_pb2 as project__pb2 + + +class ProjectServiceStub(object): + """ + gRPC services + + """ + + def __init__(self, channel): + """Constructor. + + Args: + channel: A grpc.Channel. + """ + self.Create = channel.unary_unary( + '/gooseai.ProjectService/Create', + request_serializer=project__pb2.CreateProjectRequest.SerializeToString, + response_deserializer=project__pb2.Project.FromString, + ) + self.Update = channel.unary_unary( + '/gooseai.ProjectService/Update', + request_serializer=project__pb2.UpdateProjectRequest.SerializeToString, + response_deserializer=project__pb2.Project.FromString, + ) + self.List = channel.unary_stream( + '/gooseai.ProjectService/List', + request_serializer=project__pb2.ListProjectRequest.SerializeToString, + response_deserializer=project__pb2.Project.FromString, + ) + self.Get = channel.unary_unary( + '/gooseai.ProjectService/Get', + request_serializer=project__pb2.GetDeleteProjectRequest.SerializeToString, + response_deserializer=project__pb2.Project.FromString, + ) + self.Delete = channel.unary_unary( + '/gooseai.ProjectService/Delete', + request_serializer=project__pb2.GetDeleteProjectRequest.SerializeToString, + response_deserializer=project__pb2.ProjectEmpty.FromString, + ) + + +class ProjectServiceServicer(object): + """ + gRPC services + + """ + + def Create(self, request, context): + """Create a new project if it does not exist + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Update(self, request, context): + """Update an existing project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def List(self, request, context): + """List all the projects for an organization + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Get(self, request, context): + """Get a project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + def Delete(self, request, context): + """Delete a project + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details('Method not implemented!') + raise NotImplementedError('Method not implemented!') + + +def add_ProjectServiceServicer_to_server(servicer, server): + rpc_method_handlers = { + 'Create': grpc.unary_unary_rpc_method_handler( + servicer.Create, + request_deserializer=project__pb2.CreateProjectRequest.FromString, + response_serializer=project__pb2.Project.SerializeToString, + ), + 'Update': grpc.unary_unary_rpc_method_handler( + servicer.Update, + request_deserializer=project__pb2.UpdateProjectRequest.FromString, + response_serializer=project__pb2.Project.SerializeToString, + ), + 'List': grpc.unary_stream_rpc_method_handler( + servicer.List, + request_deserializer=project__pb2.ListProjectRequest.FromString, + response_serializer=project__pb2.Project.SerializeToString, + ), + 'Get': grpc.unary_unary_rpc_method_handler( + servicer.Get, + request_deserializer=project__pb2.GetDeleteProjectRequest.FromString, + response_serializer=project__pb2.Project.SerializeToString, + ), + 'Delete': grpc.unary_unary_rpc_method_handler( + servicer.Delete, + request_deserializer=project__pb2.GetDeleteProjectRequest.FromString, + response_serializer=project__pb2.ProjectEmpty.SerializeToString, + ), + } + generic_handler = grpc.method_handlers_generic_handler( + 'gooseai.ProjectService', rpc_method_handlers) + server.add_generic_rpc_handlers((generic_handler,)) + + + # This class is part of an EXPERIMENTAL API. +class ProjectService(object): + """ + gRPC services + + """ + + @staticmethod + def Create(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Create', + project__pb2.CreateProjectRequest.SerializeToString, + project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Update(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Update', + project__pb2.UpdateProjectRequest.SerializeToString, + project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def List(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_stream(request, target, '/gooseai.ProjectService/List', + project__pb2.ListProjectRequest.SerializeToString, + project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Get(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Get', + project__pb2.GetDeleteProjectRequest.SerializeToString, + project__pb2.Project.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + + @staticmethod + def Delete(request, + target, + options=(), + channel_credentials=None, + call_credentials=None, + insecure=False, + compression=None, + wait_for_ready=None, + timeout=None, + metadata=None): + return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Delete', + project__pb2.GetDeleteProjectRequest.SerializeToString, + project__pb2.ProjectEmpty.FromString, + options, channel_credentials, + insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gooseai/project/project_pb_service.d.ts b/gooseai/project/project_pb_service.d.ts new file mode 100644 index 0000000..bc085b0 --- /dev/null +++ b/gooseai/project/project_pb_service.d.ts @@ -0,0 +1,131 @@ +// package: gooseai +// file: project.proto + +import * as project_pb from "./project_pb"; +import {grpc} from "@improbable-eng/grpc-web"; + +type ProjectServiceCreate = { + readonly methodName: string; + readonly service: typeof ProjectService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof project_pb.CreateProjectRequest; + readonly responseType: typeof project_pb.Project; +}; + +type ProjectServiceUpdate = { + readonly methodName: string; + readonly service: typeof ProjectService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof project_pb.UpdateProjectRequest; + readonly responseType: typeof project_pb.Project; +}; + +type ProjectServiceList = { + readonly methodName: string; + readonly service: typeof ProjectService; + readonly requestStream: false; + readonly responseStream: true; + readonly requestType: typeof project_pb.ListProjectRequest; + readonly responseType: typeof project_pb.Project; +}; + +type ProjectServiceGet = { + readonly methodName: string; + readonly service: typeof ProjectService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof project_pb.GetDeleteProjectRequest; + readonly responseType: typeof project_pb.Project; +}; + +type ProjectServiceDelete = { + readonly methodName: string; + readonly service: typeof ProjectService; + readonly requestStream: false; + readonly responseStream: false; + readonly requestType: typeof project_pb.GetDeleteProjectRequest; + readonly responseType: typeof project_pb.ProjectEmpty; +}; + +export class ProjectService { + static readonly serviceName: string; + static readonly Create: ProjectServiceCreate; + static readonly Update: ProjectServiceUpdate; + static readonly List: ProjectServiceList; + static readonly Get: ProjectServiceGet; + static readonly Delete: ProjectServiceDelete; +} + +export type ServiceError = { message: string, code: number; metadata: grpc.Metadata } +export type Status = { details: string, code: number; metadata: grpc.Metadata } + +interface UnaryResponse { + cancel(): void; +} +interface ResponseStream { + cancel(): void; + on(type: 'data', handler: (message: T) => void): ResponseStream; + on(type: 'end', handler: (status?: Status) => void): ResponseStream; + on(type: 'status', handler: (status: Status) => void): ResponseStream; +} +interface RequestStream { + write(message: T): RequestStream; + end(): void; + cancel(): void; + on(type: 'end', handler: (status?: Status) => void): RequestStream; + on(type: 'status', handler: (status: Status) => void): RequestStream; +} +interface BidirectionalStream { + write(message: ReqT): BidirectionalStream; + end(): void; + cancel(): void; + on(type: 'data', handler: (message: ResT) => void): BidirectionalStream; + on(type: 'end', handler: (status?: Status) => void): BidirectionalStream; + on(type: 'status', handler: (status: Status) => void): BidirectionalStream; +} + +export class ProjectServiceClient { + readonly serviceHost: string; + + constructor(serviceHost: string, options?: grpc.RpcOptions); + create( + requestMessage: project_pb.CreateProjectRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + create( + requestMessage: project_pb.CreateProjectRequest, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + update( + requestMessage: project_pb.UpdateProjectRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + update( + requestMessage: project_pb.UpdateProjectRequest, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + list(requestMessage: project_pb.ListProjectRequest, metadata?: grpc.Metadata): ResponseStream; + get( + requestMessage: project_pb.GetDeleteProjectRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + get( + requestMessage: project_pb.GetDeleteProjectRequest, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void + ): UnaryResponse; + delete( + requestMessage: project_pb.GetDeleteProjectRequest, + metadata: grpc.Metadata, + callback: (error: ServiceError|null, responseMessage: project_pb.ProjectEmpty|null) => void + ): UnaryResponse; + delete( + requestMessage: project_pb.GetDeleteProjectRequest, + callback: (error: ServiceError|null, responseMessage: project_pb.ProjectEmpty|null) => void + ): UnaryResponse; +} + diff --git a/gooseai/project/project_pb_service.js b/gooseai/project/project_pb_service.js new file mode 100644 index 0000000..eec6e49 --- /dev/null +++ b/gooseai/project/project_pb_service.js @@ -0,0 +1,229 @@ +// package: gooseai +// file: project.proto + +var project_pb = require("./project_pb"); +var grpc = require("@improbable-eng/grpc-web").grpc; + +var ProjectService = (function () { + function ProjectService() {} + ProjectService.serviceName = "gooseai.ProjectService"; + return ProjectService; +}()); + +ProjectService.Create = { + methodName: "Create", + service: ProjectService, + requestStream: false, + responseStream: false, + requestType: project_pb.CreateProjectRequest, + responseType: project_pb.Project +}; + +ProjectService.Update = { + methodName: "Update", + service: ProjectService, + requestStream: false, + responseStream: false, + requestType: project_pb.UpdateProjectRequest, + responseType: project_pb.Project +}; + +ProjectService.List = { + methodName: "List", + service: ProjectService, + requestStream: false, + responseStream: true, + requestType: project_pb.ListProjectRequest, + responseType: project_pb.Project +}; + +ProjectService.Get = { + methodName: "Get", + service: ProjectService, + requestStream: false, + responseStream: false, + requestType: project_pb.GetDeleteProjectRequest, + responseType: project_pb.Project +}; + +ProjectService.Delete = { + methodName: "Delete", + service: ProjectService, + requestStream: false, + responseStream: false, + requestType: project_pb.GetDeleteProjectRequest, + responseType: project_pb.ProjectEmpty +}; + +exports.ProjectService = ProjectService; + +function ProjectServiceClient(serviceHost, options) { + this.serviceHost = serviceHost; + this.options = options || {}; +} + +ProjectServiceClient.prototype.create = function create(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(ProjectService.Create, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ProjectServiceClient.prototype.update = function update(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(ProjectService.Update, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ProjectServiceClient.prototype.list = function list(requestMessage, metadata) { + var listeners = { + data: [], + end: [], + status: [] + }; + var client = grpc.invoke(ProjectService.List, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onMessage: function (responseMessage) { + listeners.data.forEach(function (handler) { + handler(responseMessage); + }); + }, + onEnd: function (status, statusMessage, trailers) { + listeners.status.forEach(function (handler) { + handler({ code: status, details: statusMessage, metadata: trailers }); + }); + listeners.end.forEach(function (handler) { + handler({ code: status, details: statusMessage, metadata: trailers }); + }); + listeners = null; + } + }); + return { + on: function (type, handler) { + listeners[type].push(handler); + return this; + }, + cancel: function () { + listeners = null; + client.close(); + } + }; +}; + +ProjectServiceClient.prototype.get = function get(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(ProjectService.Get, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +ProjectServiceClient.prototype.delete = function pb_delete(requestMessage, metadata, callback) { + if (arguments.length === 2) { + callback = arguments[1]; + } + var client = grpc.unary(ProjectService.Delete, { + request: requestMessage, + host: this.serviceHost, + metadata: metadata, + transport: this.options.transport, + debug: this.options.debug, + onEnd: function (response) { + if (callback) { + if (response.status !== grpc.Code.OK) { + var err = new Error(response.statusMessage); + err.code = response.status; + err.metadata = response.trailers; + callback(err, null); + } else { + callback(null, response.message); + } + } + } + }); + return { + cancel: function () { + callback = null; + client.close(); + } + }; +}; + +exports.ProjectServiceClient = ProjectServiceClient; + diff --git a/src/proto/project.proto b/src/proto/project.proto new file mode 100644 index 0000000..0fe5d14 --- /dev/null +++ b/src/proto/project.proto @@ -0,0 +1,85 @@ +syntax = 'proto3'; +package gooseai; +option go_package = "./;project"; + +enum ProjectAccess { + PROJECT_ACCESS_PRIVATE = 0; // Private access, only owner organization can access + PROJECT_ACCESS_PUBLIC = 1; // Public access, anyone can access +} + +enum ProjectStatus { + PROJECT_STATUS_INACTIVE = 0; // Inactive project + PROJECT_STATUS_ACTIVE = 1; // Active project +} + +enum ProjectAssetUse { + PROJECT_ASSET_USE_INPUT = 0; // Asset is used as an input for the project + PROJECT_ASSET_USE_OUTPUT = 1; // Asset is an output from the project + PROJECT_ASSET_USE_INTERMEDIATE = 2; // Asset is an output from an intermediate step of the project + PROJECT_ASSET_USE_PROJECT = 3; // Asset is used as the project file for the project +} + +message ProjectAsset { + uint64 id = 1; // ID of the asset + string URI = 2; // The URI to the asset + ProjectAssetUse use = 3; // The use of the asset with respect to the project +} + +message Project { + uint64 id = 1; // ID of the project + string title = 2; // Title of the project + string owner = 3; // The ID of the organization owning the project + ProjectAccess access = 4; // The access of the project (such as public vs private) + ProjectStatus status = 5; // The status of the project (such as active vs inactive) + uint64 size = 6; // The size of the project in bytes + ProjectAsset file = 7; // Project file for the project + uint64 created_at = 8; // Time of project creation (UTC seconds epoch) + uint64 updated_at = 9; // Time of last project update (UTC seconds epoch) + repeated ProjectAsset assets = 10; // The listing of all assets associated with the project +} + +message CreateProjectRequest { + string title = 1; // title of the project + optional string owner = 2; // The ID of the organization owning the project, empty for default org for user + ProjectAccess access = 3; // The access of the project (such as public vs private) + ProjectStatus status = 4; // The status of the project (such as active vs inactive) + optional ProjectAsset file = 5; // Project file for the project (if existing, else will create) +} + +message UpdateProjectRequest { + uint64 id = 1; // ID of the project + optional string owner = 2; // The ID of the organization owning the project, empty for default org for user + optional string title = 3; // Title of the project + optional ProjectAccess access = 4; // The access of the project (such as public vs private) + optional ProjectStatus status = 5; // The status of the project (such as active vs inactive) + optional ProjectAsset file = 6; // Project file for the project +} + +message ListProjectRequest { + optional string owner = 1; // The ID of the organization owning the project, empty for default org for user +} + +message GetDeleteProjectRequest { + uint64 id = 1; // ID of the project to request + optional string owner = 2; // The ID of the organization owning the project, empty for default org for user +} + +// Message for empty requests / response where no additional data is needed +message ProjectEmpty { +} + +// +// gRPC services +// +service ProjectService { + // Create a new project if it does not exist + rpc Create (CreateProjectRequest) returns (Project) {}; + // Update an existing project + rpc Update (UpdateProjectRequest) returns (Project) {}; + // List all the projects for an organization + rpc List (ListProjectRequest) returns (stream Project) {}; + // Get a project + rpc Get (GetDeleteProjectRequest) returns (Project) {}; + // Delete a project + rpc Delete (GetDeleteProjectRequest) returns (ProjectEmpty) {}; +} From e508a0e53185028878414a837c44d8797e6486cb Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Mon, 17 Oct 2022 16:31:10 +0000 Subject: [PATCH 2/4] feat: Update project & asset proto - Change project id to UUIDv4 instead of uint64 - Change asset id to UUIDv4 instead of uint64 - Rename `owner` to `owner_id` for project to be more clear - Add undefined usage to `ProjectAssetUse` - Add deleted status to `ProjectStatus` - Update `Delete` rpc to return project - Add `uuid` and `size` to artifact - Add enumeration for asset usage to generation.proto to mirror that of the usage enum in project.proto, current files have some issues with importing / sharing proto definitions. - Add asset usage to `AssetParameters` - Regenerate files --- gooseai/generation/generation.pb.go | 1016 +++++++++++++---------- gooseai/generation/generation_pb.d.ts | 32 +- gooseai/generation/generation_pb.js | 186 ++++- gooseai/generation/generation_pb2.py | 149 ++-- gooseai/project/project.pb.go | 396 +++++---- gooseai/project/project_grpc.pb.go | 26 +- gooseai/project/project_grpc_pb.d.ts | 20 +- gooseai/project/project_grpc_pb.js | 50 +- gooseai/project/project_pb.d.ts | 128 +-- gooseai/project/project_pb.js | 445 +++++++--- gooseai/project/project_pb2.py | 70 +- gooseai/project/project_pb2_grpc.py | 18 +- gooseai/project/project_pb_service.d.ts | 18 +- gooseai/project/project_pb_service.js | 6 +- src/proto/generation.proto | 15 +- src/proto/project.proto | 39 +- 16 files changed, 1580 insertions(+), 1034 deletions(-) diff --git a/gooseai/generation/generation.pb.go b/gooseai/generation/generation.pb.go index 9936bb4..b802136 100644 --- a/gooseai/generation/generation.pb.go +++ b/gooseai/generation/generation.pb.go @@ -1,7 +1,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.26.0 -// protoc v3.19.5 +// protoc v3.21.4 // source: generation.proto package generation @@ -522,6 +522,63 @@ func (AssetAction) EnumDescriptor() ([]byte, []int) { return file_generation_proto_rawDescGZIP(), []int{8} } +// AssetUse defines how the asset is used within a project. This enum matches +// the values the project proto. +type AssetUse int32 + +const ( + AssetUse_ASSET_USE_UNDEFINED AssetUse = 0 // Asset does not have use defined + AssetUse_ASSET_USE_INPUT AssetUse = 1 // Asset is used as an input for the project + AssetUse_ASSET_USE_OUTPUT AssetUse = 2 // Asset is an output from the project + AssetUse_ASSET_USE_INTERMEDIATE AssetUse = 3 // Asset is an output from an intermediate step of the project + AssetUse_ASSET_USE_PROJECT AssetUse = 4 // Asset is used as the project file for the project +) + +// Enum value maps for AssetUse. +var ( + AssetUse_name = map[int32]string{ + 0: "ASSET_USE_UNDEFINED", + 1: "ASSET_USE_INPUT", + 2: "ASSET_USE_OUTPUT", + 3: "ASSET_USE_INTERMEDIATE", + 4: "ASSET_USE_PROJECT", + } + AssetUse_value = map[string]int32{ + "ASSET_USE_UNDEFINED": 0, + "ASSET_USE_INPUT": 1, + "ASSET_USE_OUTPUT": 2, + "ASSET_USE_INTERMEDIATE": 3, + "ASSET_USE_PROJECT": 4, + } +) + +func (x AssetUse) Enum() *AssetUse { + p := new(AssetUse) + *p = x + return p +} + +func (x AssetUse) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (AssetUse) Descriptor() protoreflect.EnumDescriptor { + return file_generation_proto_enumTypes[9].Descriptor() +} + +func (AssetUse) Type() protoreflect.EnumType { + return &file_generation_proto_enumTypes[9] +} + +func (x AssetUse) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use AssetUse.Descriptor instead. +func (AssetUse) EnumDescriptor() ([]byte, []int) { + return file_generation_proto_rawDescGZIP(), []int{9} +} + type StageAction int32 const ( @@ -555,11 +612,11 @@ func (x StageAction) String() string { } func (StageAction) Descriptor() protoreflect.EnumDescriptor { - return file_generation_proto_enumTypes[9].Descriptor() + return file_generation_proto_enumTypes[10].Descriptor() } func (StageAction) Type() protoreflect.EnumType { - return &file_generation_proto_enumTypes[9] + return &file_generation_proto_enumTypes[10] } func (x StageAction) Number() protoreflect.EnumNumber { @@ -568,7 +625,7 @@ func (x StageAction) Number() protoreflect.EnumNumber { // Deprecated: Use StageAction.Descriptor instead. func (StageAction) EnumDescriptor() ([]byte, []int) { - return file_generation_proto_rawDescGZIP(), []int{9} + return file_generation_proto_rawDescGZIP(), []int{10} } // Generally, a GPT BPE 16-bit token, paired with an optional string representation. @@ -703,6 +760,8 @@ type Artifact struct { Index uint32 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` // Index of this artifact in input/output list FinishReason FinishReason `protobuf:"varint,9,opt,name=finish_reason,json=finishReason,proto3,enum=gooseai.FinishReason" json:"finish_reason,omitempty"` // Reason for finishing, if applicable Seed uint32 `protobuf:"varint,10,opt,name=seed,proto3" json:"seed,omitempty"` // Seed used to generate this artifact + Uuid []byte `protobuf:"bytes,12,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUIDv4 of the artifact, used for asset lookup + Size uint64 `protobuf:"varint,13,opt,name=size,proto3" json:"size,omitempty"` // Size of the artifact in bytes } func (x *Artifact) Reset() { @@ -821,6 +880,20 @@ func (x *Artifact) GetSeed() uint32 { return 0 } +func (x *Artifact) GetUuid() []byte { + if x != nil { + return x.Uuid + } + return nil +} + +func (x *Artifact) GetSize() uint64 { + if x != nil { + return x.Size + } + return 0 +} + type isArtifact_Data interface { isArtifact_Data() } @@ -2027,8 +2100,9 @@ type AssetParameters struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Action AssetAction `protobuf:"varint,1,opt,name=action,proto3,enum=gooseai.AssetAction" json:"action,omitempty"` - Project uint64 `protobuf:"varint,2,opt,name=project,proto3" json:"project,omitempty"` + Action AssetAction `protobuf:"varint,1,opt,name=action,proto3,enum=gooseai.AssetAction" json:"action,omitempty"` + ProjectId []byte `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + Use AssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.AssetUse" json:"use,omitempty"` } func (x *AssetParameters) Reset() { @@ -2070,11 +2144,18 @@ func (x *AssetParameters) GetAction() AssetAction { return AssetAction_ASSET_PUT } -func (x *AssetParameters) GetProject() uint64 { +func (x *AssetParameters) GetProjectId() []byte { if x != nil { - return x.Project + return x.ProjectId } - return 0 + return nil +} + +func (x *AssetParameters) GetUse() AssetUse { + if x != nil { + return x.Use + } + return AssetUse_ASSET_USE_UNDEFINED } // AnswerMeta is a set of metadata about an answer, usually the operating @@ -2572,7 +2653,7 @@ var file_generation_proto_rawDesc = []byte{ 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0b, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x69, 0x7a, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x22, 0x88, 0x03, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x0e, + 0x64, 0x22, 0xb0, 0x03, 0x0a, 0x08, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x29, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, @@ -2595,385 +2676,398 @@ var file_generation_proto_rawDesc = []byte{ 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x22, 0x5c, 0x0a, 0x10, - 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x12, 0x17, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, - 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x77, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x06, 0x77, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0xd3, 0x01, 0x0a, 0x06, 0x50, - 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x3e, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, - 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x06, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x06, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2f, 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, - 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x61, - 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, - 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, - 0x22, 0xb1, 0x02, 0x0a, 0x11, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x15, 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, - 0x0e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, - 0x67, 0x53, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x0f, 0x6c, 0x61, 0x74, - 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x04, 0x48, 0x02, 0x52, 0x0e, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, - 0x6e, 0x65, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x12, 0x34, 0x0a, 0x13, 0x64, 0x6f, 0x77, 0x6e, 0x73, - 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x12, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, - 0x09, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, - 0x48, 0x04, 0x52, 0x08, 0x63, 0x66, 0x67, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, - 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x74, 0x61, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6c, - 0x61, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x16, - 0x0a, 0x14, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, - 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x63, 0x66, 0x67, 0x5f, 0x73, - 0x63, 0x61, 0x6c, 0x65, 0x22, 0xab, 0x01, 0x0a, 0x15, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, - 0x0a, 0x13, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, - 0x70, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x76, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, - 0x61, 0x69, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x76, - 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, - 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x65, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, - 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, - 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x0d, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, - 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, - 0x53, 0x74, 0x65, 0x70, 0x12, 0x39, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, - 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, - 0x3c, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, - 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, - 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x02, 0x52, 0x08, - 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, - 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x73, 0x63, 0x68, 0x65, - 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, - 0x65, 0x22, 0xda, 0x01, 0x0a, 0x05, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x12, 0x3e, 0x0a, 0x0c, 0x61, - 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4d, 0x6f, 0x64, 0x65, - 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, - 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, - 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x74, - 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, - 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, - 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, - 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, - 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0xe3, - 0x01, 0x0a, 0x10, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, - 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, - 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x12, 0x19, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, 0x00, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x67, 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x02, 0x48, 0x01, 0x52, 0x04, 0x67, 0x72, 0x61, 0x79, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, - 0x62, 0x6c, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x48, 0x02, 0x52, 0x04, 0x62, 0x6c, - 0x75, 0x72, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x70, 0x6f, - 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, - 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x63, 0x6f, - 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x67, 0x72, 0x61, 0x79, 0x42, 0x07, 0x0a, 0x05, - 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x70, - 0x6f, 0x77, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, - 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcc, 0x02, 0x0a, 0x1a, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, - 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, - 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4d, 0x6f, - 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x11, 0x67, - 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x10, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, - 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x38, - 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x07, 0x63, 0x75, - 0x74, 0x6f, 0x75, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, - 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, - 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x48, 0x02, 0x52, 0x06, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, - 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, - 0x5f, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x6f, - 0x6d, 0x70, 0x74, 0x22, 0x99, 0x01, 0x0a, 0x12, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, - 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0f, 0x67, 0x75, - 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x75, - 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x52, 0x0e, 0x67, 0x75, - 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x09, - 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, - 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, - 0x74, 0x65, 0x72, 0x73, 0x52, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, - 0x83, 0x01, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, - 0x65, 0x12, 0x39, 0x0a, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x44, - 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, - 0x00, 0x52, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x08, - 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, - 0x72, 0x48, 0x00, 0x52, 0x08, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xc3, 0x02, 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, - 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, - 0x01, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, - 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, - 0x73, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x05, 0x73, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, - 0x39, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x54, 0x72, 0x61, - 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, - 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, - 0x72, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x08, 0x0a, - 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, - 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x0c, 0x0a, - 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x22, 0x5e, 0x0a, 0x11, 0x43, - 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, - 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, - 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, - 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, - 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x22, 0xa8, 0x02, 0x0a, 0x12, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, + 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, + 0x7a, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, + 0x61, 0x67, 0x69, 0x63, 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x17, 0x0a, 0x04, 0x69, 0x6e, 0x69, 0x74, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x04, 0x69, 0x6e, 0x69, 0x74, 0x88, 0x01, + 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x01, 0x52, 0x06, 0x77, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x42, 0x07, + 0x0a, 0x05, 0x5f, 0x69, 0x6e, 0x69, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x77, 0x65, 0x69, 0x67, + 0x68, 0x74, 0x22, 0xd3, 0x01, 0x0a, 0x06, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x3e, 0x0a, + 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6d, + 0x70, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0a, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x88, 0x01, 0x01, 0x12, 0x14, 0x0a, + 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x74, + 0x65, 0x78, 0x74, 0x12, 0x29, 0x0a, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x48, 0x00, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x12, 0x2f, + 0x0a, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x48, 0x00, 0x52, 0x08, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x42, + 0x08, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x22, 0xb1, 0x02, 0x0a, 0x11, 0x53, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x15, + 0x0a, 0x03, 0x65, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x03, 0x65, + 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x0e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, + 0x67, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, + 0x0d, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x2c, 0x0a, 0x0f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, 0x61, 0x6e, + 0x6e, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, 0x52, 0x0e, 0x6c, 0x61, + 0x74, 0x65, 0x6e, 0x74, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x88, 0x01, 0x01, 0x12, + 0x34, 0x0a, 0x13, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, + 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x12, + 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x46, 0x61, 0x63, 0x74, + 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, + 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x02, 0x48, 0x04, 0x52, 0x08, 0x63, 0x66, 0x67, 0x53, + 0x63, 0x61, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x74, 0x61, 0x42, + 0x11, 0x0a, 0x0f, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x74, 0x65, + 0x70, 0x73, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x6c, 0x61, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x68, + 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x73, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x73, + 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x66, 0x61, 0x63, 0x74, 0x6f, 0x72, 0x42, 0x0c, + 0x0a, 0x0a, 0x5f, 0x63, 0x66, 0x67, 0x5f, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x22, 0xab, 0x01, 0x0a, + 0x15, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x13, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, + 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x11, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x41, 0x64, 0x6a, + 0x75, 0x73, 0x74, 0x50, 0x72, 0x69, 0x6f, 0x72, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x0b, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, + 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, + 0x01, 0x01, 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x76, 0x65, 0x63, 0x74, 0x6f, 0x72, 0x5f, 0x61, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x69, 0x6f, 0x72, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, + 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x7d, 0x0a, 0x12, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x12, 0x19, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x48, + 0x00, 0x52, 0x05, 0x73, 0x74, 0x61, 0x72, 0x74, 0x88, 0x01, 0x01, 0x12, 0x15, 0x0a, 0x03, 0x65, + 0x6e, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x03, 0x65, 0x6e, 0x64, 0x88, + 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, + 0x06, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x42, 0x06, 0x0a, 0x04, 0x5f, 0x65, 0x6e, 0x64, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x8d, 0x02, 0x0a, 0x0d, 0x53, 0x74, + 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x64, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, + 0x52, 0x0a, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x64, 0x53, 0x74, 0x65, 0x70, 0x12, 0x39, 0x0a, 0x07, + 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x07, 0x73, 0x61, 0x6d, + 0x70, 0x6c, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, + 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x3c, 0x0a, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, + 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x48, 0x02, 0x52, 0x08, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, + 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x42, + 0x0b, 0x0a, 0x09, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x42, 0x0b, 0x0a, 0x09, + 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x22, 0xda, 0x01, 0x0a, 0x05, 0x4d, 0x6f, + 0x64, 0x65, 0x6c, 0x12, 0x3e, 0x0a, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, + 0x63, 0x74, 0x75, 0x72, 0x65, 0x52, 0x0c, 0x61, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, + 0x75, 0x72, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, + 0x72, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x07, 0x64, 0x61, 0x74, 0x61, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x76, + 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x07, 0x76, 0x65, + 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x0a, 0x10, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, + 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x0f, 0x73, 0x65, 0x6d, 0x61, 0x6e, 0x74, 0x69, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, + 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x05, 0x61, 0x6c, 0x69, 0x61, 0x73, 0x22, 0xe3, 0x01, 0x0a, 0x10, 0x43, 0x75, 0x74, 0x6f, 0x75, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x33, 0x0a, 0x07, 0x63, + 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, + 0x12, 0x19, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x48, + 0x00, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x67, + 0x72, 0x61, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x01, 0x52, 0x04, 0x67, 0x72, 0x61, + 0x79, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x02, 0x48, 0x02, 0x52, 0x04, 0x62, 0x6c, 0x75, 0x72, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, + 0x0a, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x02, 0x48, 0x03, 0x52, 0x09, 0x73, 0x69, 0x7a, 0x65, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x88, 0x01, + 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x67, 0x72, 0x61, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x62, 0x6c, 0x75, 0x72, 0x42, 0x0d, 0x0a, + 0x0b, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x5f, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x22, 0x4e, 0x0a, 0x1a, + 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, + 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x08, 0x64, 0x75, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xcc, 0x02, 0x0a, + 0x1a, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, + 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x26, 0x0a, 0x06, 0x6d, + 0x6f, 0x64, 0x65, 0x6c, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x52, 0x06, 0x6d, 0x6f, 0x64, + 0x65, 0x6c, 0x73, 0x12, 0x30, 0x0a, 0x11, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, + 0x73, 0x74, 0x72, 0x65, 0x6e, 0x67, 0x74, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, + 0x52, 0x10, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x74, 0x72, 0x65, 0x6e, 0x67, + 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x65, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x08, 0x73, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x38, 0x0a, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x43, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x48, 0x01, 0x52, 0x07, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x2c, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, + 0x74, 0x48, 0x02, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x88, 0x01, 0x01, 0x42, 0x14, + 0x0a, 0x12, 0x5f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x73, 0x74, 0x72, 0x65, + 0x6e, 0x67, 0x74, 0x68, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x63, 0x75, 0x74, 0x6f, 0x75, 0x74, 0x73, + 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x22, 0x99, 0x01, 0x0a, 0x12, + 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x40, 0x0a, 0x0f, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, + 0x72, 0x65, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x52, 0x0e, 0x67, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, + 0x65, 0x73, 0x65, 0x74, 0x12, 0x41, 0x0a, 0x09, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, + 0x63, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x52, 0x09, 0x69, 0x6e, + 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x22, 0x83, 0x01, 0x0a, 0x0d, 0x54, 0x72, 0x61, 0x6e, + 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x39, 0x0a, 0x09, 0x64, 0x69, 0x66, + 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, + 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x09, 0x64, 0x69, 0x66, 0x66, 0x75, + 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2f, 0x0a, 0x08, 0x75, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x08, 0x75, 0x70, 0x73, + 0x63, 0x61, 0x6c, 0x65, 0x72, 0x42, 0x06, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0xc3, 0x02, + 0x0a, 0x0f, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, + 0x73, 0x12, 0x1b, 0x0a, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x04, 0x48, 0x00, 0x52, 0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x88, 0x01, 0x01, 0x12, 0x19, + 0x0a, 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x48, 0x01, 0x52, + 0x05, 0x77, 0x69, 0x64, 0x74, 0x68, 0x88, 0x01, 0x01, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, + 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x1d, 0x0a, + 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x48, 0x02, + 0x52, 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, + 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x04, 0x48, 0x03, 0x52, 0x05, 0x73, + 0x74, 0x65, 0x70, 0x73, 0x88, 0x01, 0x01, 0x12, 0x39, 0x0a, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x66, 0x6f, 0x72, 0x6d, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x54, 0x79, + 0x70, 0x65, 0x48, 0x04, 0x52, 0x09, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, 0x6f, 0x72, 0x6d, 0x88, + 0x01, 0x01, 0x12, 0x36, 0x0a, 0x0a, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, + 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x53, 0x74, 0x65, 0x70, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x52, 0x0a, + 0x70, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x68, + 0x65, 0x69, 0x67, 0x68, 0x74, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x77, 0x69, 0x64, 0x74, 0x68, 0x42, + 0x0a, 0x0a, 0x08, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, + 0x73, 0x74, 0x65, 0x70, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x66, + 0x6f, 0x72, 0x6d, 0x22, 0x5e, 0x0a, 0x11, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x63, + 0x65, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x63, 0x65, + 0x70, 0x74, 0x12, 0x21, 0x0a, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, 0x6c, 0x64, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x09, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x6f, + 0x6c, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, + 0x6f, 0x6c, 0x64, 0x22, 0xa8, 0x02, 0x0a, 0x12, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, + 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, + 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, + 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, + 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, + 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x06, 0x61, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x45, 0x0a, 0x0f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, + 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, + 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xdd, + 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, + 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x3b, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, + 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, + 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, + 0x72, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, + 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, - 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x36, 0x0a, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, - 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, - 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x6f, 0x6e, - 0x63, 0x65, 0x70, 0x74, 0x52, 0x08, 0x63, 0x6f, 0x6e, 0x63, 0x65, 0x70, 0x74, 0x73, 0x12, 0x23, - 0x0a, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x02, 0x48, 0x00, 0x52, 0x0a, 0x61, 0x64, 0x6a, 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, - 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x01, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, - 0x01, 0x12, 0x45, 0x0a, 0x0f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x5f, - 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, - 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, - 0x6f, 0x64, 0x65, 0x48, 0x02, 0x52, 0x0e, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x61, 0x64, 0x6a, - 0x75, 0x73, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, - 0x72, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x22, 0xdd, 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x61, 0x73, 0x73, - 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, - 0x3b, 0x0a, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, - 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, - 0x52, 0x0a, 0x63, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x12, 0x35, 0x0a, 0x07, - 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, - 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, - 0x65, 0x72, 0x43, 0x61, 0x74, 0x65, 0x67, 0x6f, 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, 0x63, 0x65, - 0x65, 0x64, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x67, - 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, - 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, - 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, - 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x59, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, - 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x73, - 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x22, 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, - 0x12, 0x1a, 0x0a, 0x06, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x48, 0x00, 0x52, 0x05, 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x06, - 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, - 0x63, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x64, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x6e, 0x6f, 0x64, - 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, - 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x67, 0x70, 0x75, - 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x0a, - 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x65, - 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0xe2, 0x01, 0x0a, 0x06, 0x41, 0x6e, 0x73, - 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x49, 0x64, - 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, - 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x07, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x6e, - 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, 0x65, 0x74, 0x61, - 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, - 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, - 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, - 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x22, 0xb2, 0x03, - 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x6e, 0x67, - 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x6e, - 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, - 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, - 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x54, - 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x04, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, - 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x30, 0x0a, 0x05, - 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, 0x72, 0x61, 0x6d, - 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3f, - 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6c, 0x61, - 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, - 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, - 0x30, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, - 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, - 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, - 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, - 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, - 0x65, 0x72, 0x22, 0x8f, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, - 0x2d, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0e, 0x32, - 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, - 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x1b, - 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, - 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x06, 0x61, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x74, 0x61, - 0x72, 0x67, 0x65, 0x74, 0x22, 0x73, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x2a, 0x0a, - 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x6f, 0x6e, 0x5f, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, - 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, - 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x53, 0x0a, 0x0c, 0x43, 0x68, 0x61, - 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x67, - 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, - 0x69, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, 0x65, 0x2a, 0x45, - 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x08, - 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, 0x45, 0x4e, 0x47, - 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, 0x02, 0x12, 0x09, - 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x49, 0x4c, - 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xba, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, - 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, - 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, - 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, 0x12, 0x12, 0x0a, - 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x10, - 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x54, 0x45, - 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, - 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x52, 0x54, - 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, 0x4e, 0x47, 0x10, - 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x43, 0x4c, - 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x06, 0x12, - 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, 0x41, 0x53, 0x4b, - 0x10, 0x07, 0x2a, 0xc5, 0x01, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, 0x69, 0x6f, 0x6e, - 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, 0x4d, - 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, 0x0a, 0x0f, 0x53, - 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x10, 0x02, - 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, - 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x03, 0x12, - 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x48, 0x45, 0x55, - 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, - 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, - 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, 0x4e, 0x43, 0x45, - 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, 0x4d, 0x50, 0x4c, - 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x2a, 0x46, 0x0a, 0x08, 0x55, 0x70, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, - 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, - 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, 0x12, 0x13, 0x0a, - 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, 0x47, 0x41, 0x4e, - 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, 0x63, 0x65, 0x50, - 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, - 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, - 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, - 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, 0x0a, 0x19, 0x47, - 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, - 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, 0x47, 0x55, - 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x46, 0x41, - 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, - 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, - 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, - 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x52, 0x10, 0x05, - 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, - 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, 0x2a, 0x91, 0x01, - 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, 0x65, 0x63, 0x74, - 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, - 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, - 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, - 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, 0x49, 0x54, 0x10, - 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, - 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x52, 0x45, 0x53, - 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, - 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, 0x44, 0x4d, 0x10, - 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, 0x52, 0x4f, 0x55, - 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, - 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, - 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, - 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, 0x1a, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, - 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, - 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, 0x41, 0x54, 0x45, - 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, - 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, - 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4c, 0x53, 0x46, - 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, 0x4f, 0x54, 0x10, - 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, - 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, 0x3d, 0x0a, 0x0b, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x0a, 0x09, 0x41, - 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x53, - 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x41, 0x53, 0x53, - 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x57, 0x0a, 0x0b, 0x53, - 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, - 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, - 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, - 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, - 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, - 0x52, 0x4e, 0x10, 0x02, 0x32, 0x83, 0x01, 0x0a, 0x11, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x31, 0x0a, 0x08, 0x47, 0x65, - 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, - 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, - 0x61, 0x69, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, - 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x15, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, - 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, - 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x33, + 0x72, 0x79, 0x52, 0x07, 0x65, 0x78, 0x63, 0x65, 0x65, 0x64, 0x73, 0x12, 0x3d, 0x0a, 0x0f, 0x72, + 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, + 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, + 0x64, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x72, + 0x65, 0x61, 0x6c, 0x69, 0x7a, 0x65, 0x64, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x83, + 0x01, 0x0a, 0x0f, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, + 0x72, 0x73, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, + 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, + 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, + 0x23, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, + 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, + 0x65, 0x74, 0x61, 0x12, 0x1a, 0x0a, 0x06, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x67, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, + 0x1a, 0x0a, 0x06, 0x63, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x01, 0x52, 0x05, 0x63, 0x70, 0x75, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1c, 0x0a, 0x07, 0x6e, + 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, + 0x6e, 0x6f, 0x64, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x65, 0x6e, 0x67, + 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x08, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, + 0x67, 0x70, 0x75, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x70, 0x75, 0x5f, 0x69, + 0x64, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x69, 0x64, 0x42, 0x0c, 0x0a, + 0x0a, 0x5f, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x22, 0xe2, 0x01, 0x0a, 0x06, + 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x6e, 0x73, 0x77, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x08, 0x72, 0x65, 0x63, 0x65, 0x69, 0x76, 0x65, 0x64, 0x12, 0x18, + 0x0a, 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, + 0x07, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x12, 0x2c, 0x0a, 0x04, 0x6d, 0x65, 0x74, 0x61, + 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, 0x65, 0x74, 0x61, 0x48, 0x00, 0x52, 0x04, 0x6d, + 0x65, 0x74, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x09, 0x61, 0x72, 0x74, 0x69, 0x66, 0x61, + 0x63, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x52, 0x09, 0x61, 0x72, + 0x74, 0x69, 0x66, 0x61, 0x63, 0x74, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6d, 0x65, 0x74, 0x61, + 0x22, 0xb2, 0x03, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, + 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x08, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x3c, 0x0a, 0x0e, 0x72, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, + 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x72, 0x74, 0x69, 0x66, + 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x65, 0x64, 0x54, 0x79, 0x70, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, + 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, + 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, + 0x30, 0x0a, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x61, + 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x12, 0x3f, 0x0a, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, + 0x43, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, + 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x0a, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x69, 0x66, 0x69, + 0x65, 0x72, 0x12, 0x30, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, + 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x00, 0x52, 0x05, 0x61, + 0x73, 0x73, 0x65, 0x74, 0x12, 0x45, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, + 0x6e, 0x65, 0x72, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x67, 0x6f, 0x6f, 0x73, + 0x65, 0x61, 0x69, 0x2e, 0x43, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x50, + 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x73, 0x48, 0x01, 0x52, 0x0b, 0x63, 0x6f, 0x6e, + 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x70, + 0x61, 0x72, 0x61, 0x6d, 0x73, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x65, 0x72, 0x22, 0x8f, 0x01, 0x0a, 0x08, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x12, 0x2d, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, + 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x46, 0x69, 0x6e, + 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x1b, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x00, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2c, + 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x14, + 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, + 0x5f, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x73, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x67, 0x65, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x2a, 0x0a, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, + 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x4f, 0x6e, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x08, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x53, 0x0a, 0x0c, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, + 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x09, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x05, 0x73, + 0x74, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x67, 0x6f, 0x6f, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x67, 0x65, 0x52, 0x05, 0x73, 0x74, 0x61, 0x67, + 0x65, 0x2a, 0x45, 0x0a, 0x0c, 0x46, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x12, 0x08, 0x0a, 0x04, 0x4e, 0x55, 0x4c, 0x4c, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4c, + 0x45, 0x4e, 0x47, 0x54, 0x48, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x53, 0x54, 0x4f, 0x50, 0x10, + 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x03, 0x12, 0x0a, 0x0a, 0x06, + 0x46, 0x49, 0x4c, 0x54, 0x45, 0x52, 0x10, 0x04, 0x2a, 0xba, 0x01, 0x0a, 0x0c, 0x41, 0x72, 0x74, + 0x69, 0x66, 0x61, 0x63, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, + 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, + 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x49, 0x4d, 0x41, 0x47, 0x45, 0x10, 0x01, + 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x56, 0x49, 0x44, + 0x45, 0x4f, 0x10, 0x02, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, + 0x5f, 0x54, 0x45, 0x58, 0x54, 0x10, 0x03, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x52, 0x54, 0x49, 0x46, + 0x41, 0x43, 0x54, 0x5f, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x53, 0x10, 0x04, 0x12, 0x16, 0x0a, 0x12, + 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x45, 0x4d, 0x42, 0x45, 0x44, 0x44, 0x49, + 0x4e, 0x47, 0x10, 0x05, 0x12, 0x1c, 0x0a, 0x18, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, + 0x5f, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x49, 0x46, 0x49, 0x43, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x53, + 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x52, 0x54, 0x49, 0x46, 0x41, 0x43, 0x54, 0x5f, 0x4d, + 0x41, 0x53, 0x4b, 0x10, 0x07, 0x2a, 0xc5, 0x01, 0x0a, 0x10, 0x44, 0x69, 0x66, 0x66, 0x75, 0x73, + 0x69, 0x6f, 0x6e, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x49, 0x4d, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c, + 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x44, 0x44, 0x50, 0x4d, 0x10, 0x01, 0x12, 0x13, + 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x45, 0x55, 0x4c, 0x45, + 0x52, 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, + 0x5f, 0x45, 0x55, 0x4c, 0x45, 0x52, 0x5f, 0x41, 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, + 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, + 0x48, 0x45, 0x55, 0x4e, 0x10, 0x04, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x41, 0x4d, 0x50, 0x4c, 0x45, + 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x10, 0x05, 0x12, 0x1d, 0x0a, 0x19, 0x53, + 0x41, 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x44, 0x50, 0x4d, 0x5f, 0x32, 0x5f, 0x41, + 0x4e, 0x43, 0x45, 0x53, 0x54, 0x52, 0x41, 0x4c, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x41, + 0x4d, 0x50, 0x4c, 0x45, 0x52, 0x5f, 0x4b, 0x5f, 0x4c, 0x4d, 0x53, 0x10, 0x07, 0x2a, 0x46, 0x0a, + 0x08, 0x55, 0x70, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x0c, 0x55, 0x50, 0x53, + 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x52, 0x47, 0x42, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x55, + 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x47, 0x46, 0x50, 0x47, 0x41, 0x4e, 0x10, 0x01, + 0x12, 0x13, 0x0a, 0x0f, 0x55, 0x50, 0x53, 0x43, 0x41, 0x4c, 0x45, 0x52, 0x5f, 0x45, 0x53, 0x52, + 0x47, 0x41, 0x4e, 0x10, 0x02, 0x2a, 0xd8, 0x01, 0x0a, 0x0e, 0x47, 0x75, 0x69, 0x64, 0x61, 0x6e, + 0x63, 0x65, 0x50, 0x72, 0x65, 0x73, 0x65, 0x74, 0x12, 0x18, 0x0a, 0x14, 0x47, 0x55, 0x49, 0x44, + 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, + 0x10, 0x00, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, + 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x49, 0x4d, 0x50, 0x4c, 0x45, 0x10, 0x01, 0x12, 0x1d, + 0x0a, 0x19, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, + 0x54, 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x42, 0x4c, 0x55, 0x45, 0x10, 0x02, 0x12, 0x1e, 0x0a, + 0x1a, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x5f, 0x46, 0x41, 0x53, 0x54, 0x5f, 0x47, 0x52, 0x45, 0x45, 0x4e, 0x10, 0x03, 0x12, 0x18, 0x0a, + 0x14, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, + 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x10, 0x04, 0x12, 0x1a, 0x0a, 0x16, 0x47, 0x55, 0x49, 0x44, 0x41, + 0x4e, 0x43, 0x45, 0x5f, 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, + 0x52, 0x10, 0x05, 0x12, 0x1b, 0x0a, 0x17, 0x47, 0x55, 0x49, 0x44, 0x41, 0x4e, 0x43, 0x45, 0x5f, + 0x50, 0x52, 0x45, 0x53, 0x45, 0x54, 0x5f, 0x53, 0x4c, 0x4f, 0x57, 0x45, 0x53, 0x54, 0x10, 0x06, + 0x2a, 0x91, 0x01, 0x0a, 0x11, 0x4d, 0x6f, 0x64, 0x65, 0x6c, 0x41, 0x72, 0x63, 0x68, 0x69, 0x74, + 0x65, 0x63, 0x74, 0x75, 0x72, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, + 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4e, 0x4f, 0x4e, + 0x45, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, 0x43, + 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, 0x56, + 0x49, 0x54, 0x10, 0x01, 0x12, 0x22, 0x0a, 0x1e, 0x4d, 0x4f, 0x44, 0x45, 0x4c, 0x5f, 0x41, 0x52, + 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x50, 0x5f, + 0x52, 0x45, 0x53, 0x4e, 0x45, 0x54, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4d, 0x4f, 0x44, 0x45, + 0x4c, 0x5f, 0x41, 0x52, 0x43, 0x48, 0x49, 0x54, 0x45, 0x43, 0x54, 0x55, 0x52, 0x45, 0x5f, 0x4c, + 0x44, 0x4d, 0x10, 0x03, 0x2a, 0xa2, 0x01, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, + 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x54, 0x48, + 0x52, 0x4f, 0x55, 0x47, 0x48, 0x10, 0x00, 0x12, 0x1f, 0x0a, 0x1b, 0x41, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, + 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x47, 0x45, 0x4e, 0x45, 0x52, 0x41, 0x54, 0x45, 0x10, 0x02, 0x12, + 0x1e, 0x0a, 0x1a, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, + 0x41, 0x54, 0x45, 0x5f, 0x44, 0x55, 0x50, 0x4c, 0x49, 0x43, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, + 0x14, 0x0a, 0x10, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x4f, 0x42, 0x46, 0x55, 0x53, 0x43, + 0x41, 0x54, 0x45, 0x10, 0x04, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, + 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, 0x10, 0x05, 0x2a, 0x44, 0x0a, 0x0e, 0x43, 0x6c, 0x61, + 0x73, 0x73, 0x69, 0x66, 0x69, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x43, + 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x5a, 0x45, 0x52, 0x4f, 0x53, 0x48, + 0x4f, 0x54, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4c, 0x53, 0x46, 0x52, 0x5f, 0x4d, 0x4f, + 0x44, 0x45, 0x5f, 0x4d, 0x55, 0x4c, 0x54, 0x49, 0x43, 0x4c, 0x41, 0x53, 0x53, 0x10, 0x01, 0x2a, + 0x3d, 0x0a, 0x0b, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, + 0x0a, 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x50, 0x55, 0x54, 0x10, 0x00, 0x12, 0x0d, 0x0a, + 0x09, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x47, 0x45, 0x54, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, + 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x10, 0x02, 0x2a, 0x81, + 0x01, 0x0a, 0x08, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, + 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x41, 0x53, 0x53, + 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, + 0x1a, 0x0a, 0x16, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, + 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x10, 0x04, 0x2a, 0x57, 0x0a, 0x0b, 0x53, 0x74, 0x61, 0x67, 0x65, 0x41, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, + 0x4e, 0x5f, 0x50, 0x41, 0x53, 0x53, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x47, + 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x44, 0x49, 0x53, 0x43, 0x41, 0x52, 0x44, + 0x10, 0x01, 0x12, 0x17, 0x0a, 0x13, 0x53, 0x54, 0x41, 0x47, 0x45, 0x5f, 0x41, 0x43, 0x54, 0x49, + 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x54, 0x55, 0x52, 0x4e, 0x10, 0x02, 0x32, 0x83, 0x01, 0x0a, 0x11, + 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, + 0x65, 0x12, 0x31, 0x0a, 0x08, 0x47, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x10, 0x2e, + 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x0f, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, + 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x47, 0x65, 0x6e, + 0x65, 0x72, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, + 0x43, 0x68, 0x61, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x22, 0x00, 0x30, + 0x01, 0x42, 0x0f, 0x5a, 0x0d, 0x2e, 0x2f, 0x3b, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2988,7 +3082,7 @@ func file_generation_proto_rawDescGZIP() []byte { return file_generation_proto_rawDescData } -var file_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 10) +var file_generation_proto_enumTypes = make([]protoimpl.EnumInfo, 11) var file_generation_proto_msgTypes = make([]protoimpl.MessageInfo, 26) var file_generation_proto_goTypes = []interface{}{ (FinishReason)(0), // 0: gooseai.FinishReason @@ -3000,88 +3094,90 @@ var file_generation_proto_goTypes = []interface{}{ (Action)(0), // 6: gooseai.Action (ClassifierMode)(0), // 7: gooseai.ClassifierMode (AssetAction)(0), // 8: gooseai.AssetAction - (StageAction)(0), // 9: gooseai.StageAction - (*Token)(nil), // 10: gooseai.Token - (*Tokens)(nil), // 11: gooseai.Tokens - (*Artifact)(nil), // 12: gooseai.Artifact - (*PromptParameters)(nil), // 13: gooseai.PromptParameters - (*Prompt)(nil), // 14: gooseai.Prompt - (*SamplerParameters)(nil), // 15: gooseai.SamplerParameters - (*ConditionerParameters)(nil), // 16: gooseai.ConditionerParameters - (*ScheduleParameters)(nil), // 17: gooseai.ScheduleParameters - (*StepParameter)(nil), // 18: gooseai.StepParameter - (*Model)(nil), // 19: gooseai.Model - (*CutoutParameters)(nil), // 20: gooseai.CutoutParameters - (*GuidanceScheduleParameters)(nil), // 21: gooseai.GuidanceScheduleParameters - (*GuidanceInstanceParameters)(nil), // 22: gooseai.GuidanceInstanceParameters - (*GuidanceParameters)(nil), // 23: gooseai.GuidanceParameters - (*TransformType)(nil), // 24: gooseai.TransformType - (*ImageParameters)(nil), // 25: gooseai.ImageParameters - (*ClassifierConcept)(nil), // 26: gooseai.ClassifierConcept - (*ClassifierCategory)(nil), // 27: gooseai.ClassifierCategory - (*ClassifierParameters)(nil), // 28: gooseai.ClassifierParameters - (*AssetParameters)(nil), // 29: gooseai.AssetParameters - (*AnswerMeta)(nil), // 30: gooseai.AnswerMeta - (*Answer)(nil), // 31: gooseai.Answer - (*Request)(nil), // 32: gooseai.Request - (*OnStatus)(nil), // 33: gooseai.OnStatus - (*Stage)(nil), // 34: gooseai.Stage - (*ChainRequest)(nil), // 35: gooseai.ChainRequest + (AssetUse)(0), // 9: gooseai.AssetUse + (StageAction)(0), // 10: gooseai.StageAction + (*Token)(nil), // 11: gooseai.Token + (*Tokens)(nil), // 12: gooseai.Tokens + (*Artifact)(nil), // 13: gooseai.Artifact + (*PromptParameters)(nil), // 14: gooseai.PromptParameters + (*Prompt)(nil), // 15: gooseai.Prompt + (*SamplerParameters)(nil), // 16: gooseai.SamplerParameters + (*ConditionerParameters)(nil), // 17: gooseai.ConditionerParameters + (*ScheduleParameters)(nil), // 18: gooseai.ScheduleParameters + (*StepParameter)(nil), // 19: gooseai.StepParameter + (*Model)(nil), // 20: gooseai.Model + (*CutoutParameters)(nil), // 21: gooseai.CutoutParameters + (*GuidanceScheduleParameters)(nil), // 22: gooseai.GuidanceScheduleParameters + (*GuidanceInstanceParameters)(nil), // 23: gooseai.GuidanceInstanceParameters + (*GuidanceParameters)(nil), // 24: gooseai.GuidanceParameters + (*TransformType)(nil), // 25: gooseai.TransformType + (*ImageParameters)(nil), // 26: gooseai.ImageParameters + (*ClassifierConcept)(nil), // 27: gooseai.ClassifierConcept + (*ClassifierCategory)(nil), // 28: gooseai.ClassifierCategory + (*ClassifierParameters)(nil), // 29: gooseai.ClassifierParameters + (*AssetParameters)(nil), // 30: gooseai.AssetParameters + (*AnswerMeta)(nil), // 31: gooseai.AnswerMeta + (*Answer)(nil), // 32: gooseai.Answer + (*Request)(nil), // 33: gooseai.Request + (*OnStatus)(nil), // 34: gooseai.OnStatus + (*Stage)(nil), // 35: gooseai.Stage + (*ChainRequest)(nil), // 36: gooseai.ChainRequest } var file_generation_proto_depIdxs = []int32{ - 10, // 0: gooseai.Tokens.tokens:type_name -> gooseai.Token + 11, // 0: gooseai.Tokens.tokens:type_name -> gooseai.Token 1, // 1: gooseai.Artifact.type:type_name -> gooseai.ArtifactType - 11, // 2: gooseai.Artifact.tokens:type_name -> gooseai.Tokens - 28, // 3: gooseai.Artifact.classifier:type_name -> gooseai.ClassifierParameters + 12, // 2: gooseai.Artifact.tokens:type_name -> gooseai.Tokens + 29, // 3: gooseai.Artifact.classifier:type_name -> gooseai.ClassifierParameters 0, // 4: gooseai.Artifact.finish_reason:type_name -> gooseai.FinishReason - 13, // 5: gooseai.Prompt.parameters:type_name -> gooseai.PromptParameters - 11, // 6: gooseai.Prompt.tokens:type_name -> gooseai.Tokens - 12, // 7: gooseai.Prompt.artifact:type_name -> gooseai.Artifact - 19, // 8: gooseai.ConditionerParameters.conditioner:type_name -> gooseai.Model - 15, // 9: gooseai.StepParameter.sampler:type_name -> gooseai.SamplerParameters - 17, // 10: gooseai.StepParameter.schedule:type_name -> gooseai.ScheduleParameters - 23, // 11: gooseai.StepParameter.guidance:type_name -> gooseai.GuidanceParameters + 14, // 5: gooseai.Prompt.parameters:type_name -> gooseai.PromptParameters + 12, // 6: gooseai.Prompt.tokens:type_name -> gooseai.Tokens + 13, // 7: gooseai.Prompt.artifact:type_name -> gooseai.Artifact + 20, // 8: gooseai.ConditionerParameters.conditioner:type_name -> gooseai.Model + 16, // 9: gooseai.StepParameter.sampler:type_name -> gooseai.SamplerParameters + 18, // 10: gooseai.StepParameter.schedule:type_name -> gooseai.ScheduleParameters + 24, // 11: gooseai.StepParameter.guidance:type_name -> gooseai.GuidanceParameters 5, // 12: gooseai.Model.architecture:type_name -> gooseai.ModelArchitecture - 20, // 13: gooseai.CutoutParameters.cutouts:type_name -> gooseai.CutoutParameters - 19, // 14: gooseai.GuidanceInstanceParameters.models:type_name -> gooseai.Model - 21, // 15: gooseai.GuidanceInstanceParameters.schedule:type_name -> gooseai.GuidanceScheduleParameters - 20, // 16: gooseai.GuidanceInstanceParameters.cutouts:type_name -> gooseai.CutoutParameters - 14, // 17: gooseai.GuidanceInstanceParameters.prompt:type_name -> gooseai.Prompt + 21, // 13: gooseai.CutoutParameters.cutouts:type_name -> gooseai.CutoutParameters + 20, // 14: gooseai.GuidanceInstanceParameters.models:type_name -> gooseai.Model + 22, // 15: gooseai.GuidanceInstanceParameters.schedule:type_name -> gooseai.GuidanceScheduleParameters + 21, // 16: gooseai.GuidanceInstanceParameters.cutouts:type_name -> gooseai.CutoutParameters + 15, // 17: gooseai.GuidanceInstanceParameters.prompt:type_name -> gooseai.Prompt 4, // 18: gooseai.GuidanceParameters.guidance_preset:type_name -> gooseai.GuidancePreset - 22, // 19: gooseai.GuidanceParameters.instances:type_name -> gooseai.GuidanceInstanceParameters + 23, // 19: gooseai.GuidanceParameters.instances:type_name -> gooseai.GuidanceInstanceParameters 2, // 20: gooseai.TransformType.diffusion:type_name -> gooseai.DiffusionSampler 3, // 21: gooseai.TransformType.upscaler:type_name -> gooseai.Upscaler - 24, // 22: gooseai.ImageParameters.transform:type_name -> gooseai.TransformType - 18, // 23: gooseai.ImageParameters.parameters:type_name -> gooseai.StepParameter - 26, // 24: gooseai.ClassifierCategory.concepts:type_name -> gooseai.ClassifierConcept + 25, // 22: gooseai.ImageParameters.transform:type_name -> gooseai.TransformType + 19, // 23: gooseai.ImageParameters.parameters:type_name -> gooseai.StepParameter + 27, // 24: gooseai.ClassifierCategory.concepts:type_name -> gooseai.ClassifierConcept 6, // 25: gooseai.ClassifierCategory.action:type_name -> gooseai.Action 7, // 26: gooseai.ClassifierCategory.classifier_mode:type_name -> gooseai.ClassifierMode - 27, // 27: gooseai.ClassifierParameters.categories:type_name -> gooseai.ClassifierCategory - 27, // 28: gooseai.ClassifierParameters.exceeds:type_name -> gooseai.ClassifierCategory + 28, // 27: gooseai.ClassifierParameters.categories:type_name -> gooseai.ClassifierCategory + 28, // 28: gooseai.ClassifierParameters.exceeds:type_name -> gooseai.ClassifierCategory 6, // 29: gooseai.ClassifierParameters.realized_action:type_name -> gooseai.Action 8, // 30: gooseai.AssetParameters.action:type_name -> gooseai.AssetAction - 30, // 31: gooseai.Answer.meta:type_name -> gooseai.AnswerMeta - 12, // 32: gooseai.Answer.artifacts:type_name -> gooseai.Artifact - 1, // 33: gooseai.Request.requested_type:type_name -> gooseai.ArtifactType - 14, // 34: gooseai.Request.prompt:type_name -> gooseai.Prompt - 25, // 35: gooseai.Request.image:type_name -> gooseai.ImageParameters - 28, // 36: gooseai.Request.classifier:type_name -> gooseai.ClassifierParameters - 29, // 37: gooseai.Request.asset:type_name -> gooseai.AssetParameters - 16, // 38: gooseai.Request.conditioner:type_name -> gooseai.ConditionerParameters - 0, // 39: gooseai.OnStatus.reason:type_name -> gooseai.FinishReason - 9, // 40: gooseai.OnStatus.action:type_name -> gooseai.StageAction - 32, // 41: gooseai.Stage.request:type_name -> gooseai.Request - 33, // 42: gooseai.Stage.on_status:type_name -> gooseai.OnStatus - 34, // 43: gooseai.ChainRequest.stage:type_name -> gooseai.Stage - 32, // 44: gooseai.GenerationService.Generate:input_type -> gooseai.Request - 35, // 45: gooseai.GenerationService.ChainGenerate:input_type -> gooseai.ChainRequest - 31, // 46: gooseai.GenerationService.Generate:output_type -> gooseai.Answer - 31, // 47: gooseai.GenerationService.ChainGenerate:output_type -> gooseai.Answer - 46, // [46:48] is the sub-list for method output_type - 44, // [44:46] is the sub-list for method input_type - 44, // [44:44] is the sub-list for extension type_name - 44, // [44:44] is the sub-list for extension extendee - 0, // [0:44] is the sub-list for field type_name + 9, // 31: gooseai.AssetParameters.use:type_name -> gooseai.AssetUse + 31, // 32: gooseai.Answer.meta:type_name -> gooseai.AnswerMeta + 13, // 33: gooseai.Answer.artifacts:type_name -> gooseai.Artifact + 1, // 34: gooseai.Request.requested_type:type_name -> gooseai.ArtifactType + 15, // 35: gooseai.Request.prompt:type_name -> gooseai.Prompt + 26, // 36: gooseai.Request.image:type_name -> gooseai.ImageParameters + 29, // 37: gooseai.Request.classifier:type_name -> gooseai.ClassifierParameters + 30, // 38: gooseai.Request.asset:type_name -> gooseai.AssetParameters + 17, // 39: gooseai.Request.conditioner:type_name -> gooseai.ConditionerParameters + 0, // 40: gooseai.OnStatus.reason:type_name -> gooseai.FinishReason + 10, // 41: gooseai.OnStatus.action:type_name -> gooseai.StageAction + 33, // 42: gooseai.Stage.request:type_name -> gooseai.Request + 34, // 43: gooseai.Stage.on_status:type_name -> gooseai.OnStatus + 35, // 44: gooseai.ChainRequest.stage:type_name -> gooseai.Stage + 33, // 45: gooseai.GenerationService.Generate:input_type -> gooseai.Request + 36, // 46: gooseai.GenerationService.ChainGenerate:input_type -> gooseai.ChainRequest + 32, // 47: gooseai.GenerationService.Generate:output_type -> gooseai.Answer + 32, // 48: gooseai.GenerationService.ChainGenerate:output_type -> gooseai.Answer + 47, // [47:49] is the sub-list for method output_type + 45, // [45:47] is the sub-list for method input_type + 45, // [45:45] is the sub-list for extension type_name + 45, // [45:45] is the sub-list for extension extendee + 0, // [0:45] is the sub-list for field type_name } func init() { file_generation_proto_init() } @@ -3444,7 +3540,7 @@ func file_generation_proto_init() { File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_generation_proto_rawDesc, - NumEnums: 10, + NumEnums: 11, NumMessages: 26, NumExtensions: 0, NumServices: 1, diff --git a/gooseai/generation/generation_pb.d.ts b/gooseai/generation/generation_pb.d.ts index 95c4106..a0977d3 100644 --- a/gooseai/generation/generation_pb.d.ts +++ b/gooseai/generation/generation_pb.d.ts @@ -103,6 +103,14 @@ export class Artifact extends jspb.Message { getSeed(): number; setSeed(value: number): void; + getUuid(): Uint8Array | string; + getUuid_asU8(): Uint8Array; + getUuid_asB64(): string; + setUuid(value: Uint8Array | string): void; + + getSize(): number; + setSize(value: number): void; + getDataCase(): Artifact.DataCase; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): Artifact.AsObject; @@ -127,6 +135,8 @@ export namespace Artifact { index: number, finishReason: FinishReasonMap[keyof FinishReasonMap], seed: number, + uuid: Uint8Array | string, + size: number, } export enum DataCase { @@ -743,8 +753,13 @@ export class AssetParameters extends jspb.Message { getAction(): AssetActionMap[keyof AssetActionMap]; setAction(value: AssetActionMap[keyof AssetActionMap]): void; - getProject(): number; - setProject(value: number): void; + getProjectId(): Uint8Array | string; + getProjectId_asU8(): Uint8Array; + getProjectId_asB64(): string; + setProjectId(value: Uint8Array | string): void; + + getUse(): AssetUseMap[keyof AssetUseMap]; + setUse(value: AssetUseMap[keyof AssetUseMap]): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): AssetParameters.AsObject; @@ -759,7 +774,8 @@ export class AssetParameters extends jspb.Message { export namespace AssetParameters { export type AsObject = { action: AssetActionMap[keyof AssetActionMap], - project: number, + projectId: Uint8Array | string, + use: AssetUseMap[keyof AssetUseMap], } } @@ -1096,6 +1112,16 @@ export interface AssetActionMap { export const AssetAction: AssetActionMap; +export interface AssetUseMap { + ASSET_USE_UNDEFINED: 0; + ASSET_USE_INPUT: 1; + ASSET_USE_OUTPUT: 2; + ASSET_USE_INTERMEDIATE: 3; + ASSET_USE_PROJECT: 4; +} + +export const AssetUse: AssetUseMap; + export interface StageActionMap { STAGE_ACTION_PASS: 0; STAGE_ACTION_DISCARD: 1; diff --git a/gooseai/generation/generation_pb.js b/gooseai/generation/generation_pb.js index 762e73d..b7e9c83 100644 --- a/gooseai/generation/generation_pb.js +++ b/gooseai/generation/generation_pb.js @@ -13,13 +13,7 @@ var jspb = require('google-protobuf'); var goog = jspb; -var global = (function() { - if (this) { return this; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - if (typeof self !== 'undefined') { return self; } - return Function('return this')(); -}.call(null)); +var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.gooseai.Action', null, global); goog.exportSymbol('proto.gooseai.Answer', null, global); @@ -29,6 +23,7 @@ goog.exportSymbol('proto.gooseai.Artifact.DataCase', null, global); goog.exportSymbol('proto.gooseai.ArtifactType', null, global); goog.exportSymbol('proto.gooseai.AssetAction', null, global); goog.exportSymbol('proto.gooseai.AssetParameters', null, global); +goog.exportSymbol('proto.gooseai.AssetUse', null, global); goog.exportSymbol('proto.gooseai.ChainRequest', null, global); goog.exportSymbol('proto.gooseai.ClassifierCategory', null, global); goog.exportSymbol('proto.gooseai.ClassifierConcept', null, global); @@ -1063,7 +1058,9 @@ proto.gooseai.Artifact.toObject = function(includeInstance, msg) { classifier: (f = msg.getClassifier()) && proto.gooseai.ClassifierParameters.toObject(includeInstance, f), index: jspb.Message.getFieldWithDefault(msg, 8, 0), finishReason: jspb.Message.getFieldWithDefault(msg, 9, 0), - seed: jspb.Message.getFieldWithDefault(msg, 10, 0) + seed: jspb.Message.getFieldWithDefault(msg, 10, 0), + uuid: msg.getUuid_asB64(), + size: jspb.Message.getFieldWithDefault(msg, 13, 0) }; if (includeInstance) { @@ -1146,6 +1143,14 @@ proto.gooseai.Artifact.deserializeBinaryFromReader = function(msg, reader) { var value = /** @type {number} */ (reader.readUint32()); msg.setSeed(value); break; + case 12: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setUuid(value); + break; + case 13: + var value = /** @type {number} */ (reader.readUint64()); + msg.setSize(value); + break; default: reader.skipField(); break; @@ -1254,6 +1259,20 @@ proto.gooseai.Artifact.serializeBinaryToWriter = function(message, writer) { f ); } + f = message.getUuid_asU8(); + if (f.length > 0) { + writer.writeBytes( + 12, + f + ); + } + f = message.getSize(); + if (f !== 0) { + writer.writeUint64( + 13, + f + ); + } }; @@ -1571,6 +1590,66 @@ proto.gooseai.Artifact.prototype.setSeed = function(value) { }; +/** + * optional bytes uuid = 12; + * @return {!(string|Uint8Array)} + */ +proto.gooseai.Artifact.prototype.getUuid = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); +}; + + +/** + * optional bytes uuid = 12; + * This is a type-conversion wrapper around `getUuid()` + * @return {string} + */ +proto.gooseai.Artifact.prototype.getUuid_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getUuid())); +}; + + +/** + * optional bytes uuid = 12; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getUuid()` + * @return {!Uint8Array} + */ +proto.gooseai.Artifact.prototype.getUuid_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getUuid())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gooseai.Artifact} returns this + */ +proto.gooseai.Artifact.prototype.setUuid = function(value) { + return jspb.Message.setProto3BytesField(this, 12, value); +}; + + +/** + * optional uint64 size = 13; + * @return {number} + */ +proto.gooseai.Artifact.prototype.getSize = function() { + return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); +}; + + +/** + * @param {number} value + * @return {!proto.gooseai.Artifact} returns this + */ +proto.gooseai.Artifact.prototype.setSize = function(value) { + return jspb.Message.setProto3IntField(this, 13, value); +}; + + @@ -5988,7 +6067,8 @@ proto.gooseai.AssetParameters.prototype.toObject = function(opt_includeInstance) proto.gooseai.AssetParameters.toObject = function(includeInstance, msg) { var f, obj = { action: jspb.Message.getFieldWithDefault(msg, 1, 0), - project: jspb.Message.getFieldWithDefault(msg, 2, 0) + projectId: msg.getProjectId_asB64(), + use: jspb.Message.getFieldWithDefault(msg, 3, 0) }; if (includeInstance) { @@ -6030,8 +6110,12 @@ proto.gooseai.AssetParameters.deserializeBinaryFromReader = function(msg, reader msg.setAction(value); break; case 2: - var value = /** @type {number} */ (reader.readUint64()); - msg.setProject(value); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setProjectId(value); + break; + case 3: + var value = /** @type {!proto.gooseai.AssetUse} */ (reader.readEnum()); + msg.setUse(value); break; default: reader.skipField(); @@ -6069,13 +6153,20 @@ proto.gooseai.AssetParameters.serializeBinaryToWriter = function(message, writer f ); } - f = message.getProject(); - if (f !== 0) { - writer.writeUint64( + f = message.getProjectId_asU8(); + if (f.length > 0) { + writer.writeBytes( 2, f ); } + f = message.getUse(); + if (f !== 0.0) { + writer.writeEnum( + 3, + f + ); + } }; @@ -6098,20 +6189,62 @@ proto.gooseai.AssetParameters.prototype.setAction = function(value) { /** - * optional uint64 project = 2; - * @return {number} + * optional bytes project_id = 2; + * @return {!(string|Uint8Array)} */ -proto.gooseai.AssetParameters.prototype.getProject = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); +proto.gooseai.AssetParameters.prototype.getProjectId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {number} value + * optional bytes project_id = 2; + * This is a type-conversion wrapper around `getProjectId()` + * @return {string} + */ +proto.gooseai.AssetParameters.prototype.getProjectId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getProjectId())); +}; + + +/** + * optional bytes project_id = 2; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getProjectId()` + * @return {!Uint8Array} + */ +proto.gooseai.AssetParameters.prototype.getProjectId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getProjectId())); +}; + + +/** + * @param {!(string|Uint8Array)} value * @return {!proto.gooseai.AssetParameters} returns this */ -proto.gooseai.AssetParameters.prototype.setProject = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); +proto.gooseai.AssetParameters.prototype.setProjectId = function(value) { + return jspb.Message.setProto3BytesField(this, 2, value); +}; + + +/** + * optional AssetUse use = 3; + * @return {!proto.gooseai.AssetUse} + */ +proto.gooseai.AssetParameters.prototype.getUse = function() { + return /** @type {!proto.gooseai.AssetUse} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); +}; + + +/** + * @param {!proto.gooseai.AssetUse} value + * @return {!proto.gooseai.AssetParameters} returns this + */ +proto.gooseai.AssetParameters.prototype.setUse = function(value) { + return jspb.Message.setProto3EnumField(this, 3, value); }; @@ -8007,6 +8140,17 @@ proto.gooseai.AssetAction = { ASSET_DELETE: 2 }; +/** + * @enum {number} + */ +proto.gooseai.AssetUse = { + ASSET_USE_UNDEFINED: 0, + ASSET_USE_INPUT: 1, + ASSET_USE_OUTPUT: 2, + ASSET_USE_INTERMEDIATE: 3, + ASSET_USE_PROJECT: 4 +}; + /** * @enum {number} */ diff --git a/gooseai/generation/generation_pb2.py b/gooseai/generation/generation_pb2.py index b92e459..450f51b 100644 --- a/gooseai/generation/generation_pb2.py +++ b/gooseai/generation/generation_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10generation.proto\x12\x07gooseai\"/\n\x05Token\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\rB\x07\n\x05_text\"T\n\x06Tokens\x12\x1e\n\x06tokens\x18\x01 \x03(\x0b\x32\x0e.gooseai.Token\x12\x19\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xb4\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x0c\n\x04mime\x18\x03 \x01(\t\x12\x12\n\x05magic\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x06\x62inary\x18\x05 \x01(\x0cH\x00\x12\x0e\n\x04text\x18\x06 \x01(\tH\x00\x12!\n\x06tokens\x18\x07 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12\x33\n\nclassifier\x18\x0b \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12\r\n\x05index\x18\x08 \x01(\r\x12,\n\rfinish_reason\x18\t \x01(\x0e\x32\x15.gooseai.FinishReason\x12\x0c\n\x04seed\x18\n \x01(\rB\x06\n\x04\x64\x61taB\x08\n\x06_magic\"N\n\x10PromptParameters\x12\x11\n\x04init\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06weight\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xaf\x01\n\x06Prompt\x12\x32\n\nparameters\x18\x01 \x01(\x0b\x32\x19.gooseai.PromptParametersH\x01\x88\x01\x01\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12!\n\x06tokens\x18\x03 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12%\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x11.gooseai.ArtifactH\x00\x42\x08\n\x06promptB\r\n\x0b_parameters\"\xef\x01\n\x11SamplerParameters\x12\x10\n\x03\x65ta\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x1b\n\x0esampling_steps\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x1c\n\x0flatent_channels\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12 \n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tcfg_scale\x18\x05 \x01(\x02H\x04\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scale\"\x8b\x01\n\x15\x43onditionerParameters\x12 \n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32\x0e.gooseai.ModelH\x01\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"j\n\x12ScheduleParameters\x12\x12\n\x05start\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x10\n\x03\x65nd\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x12\n\x05value\x18\x03 \x01(\x02H\x02\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xe4\x01\n\rStepParameter\x12\x13\n\x0bscaled_step\x18\x01 \x01(\x02\x12\x30\n\x07sampler\x18\x02 \x01(\x0b\x32\x1a.gooseai.SamplerParametersH\x00\x88\x01\x01\x12\x32\n\x08schedule\x18\x03 \x01(\x0b\x32\x1b.gooseai.ScheduleParametersH\x01\x88\x01\x01\x12\x32\n\x08guidance\x18\x04 \x01(\x0b\x32\x1b.gooseai.GuidanceParametersH\x02\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\x97\x01\n\x05Model\x12\x30\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x1a.gooseai.ModelArchitecture\x12\x11\n\tpublisher\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x02\x12\x18\n\x10semantic_version\x18\x05 \x01(\t\x12\r\n\x05\x61lias\x18\x06 \x01(\t\"\xbc\x01\n\x10\x43utoutParameters\x12*\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x19.gooseai.CutoutParameters\x12\x12\n\x05\x63ount\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04gray\x18\x03 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x62lur\x18\x04 \x01(\x02H\x02\x88\x01\x01\x12\x17\n\nsize_power\x18\x05 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"=\n\x1aGuidanceScheduleParameters\x12\x10\n\x08\x64uration\x18\x01 \x01(\x02\x12\r\n\x05value\x18\x02 \x01(\x02\"\x97\x02\n\x1aGuidanceInstanceParameters\x12\x1e\n\x06models\x18\x02 \x03(\x0b\x32\x0e.gooseai.Model\x12\x1e\n\x11guidance_strength\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12\x35\n\x08schedule\x18\x04 \x03(\x0b\x32#.gooseai.GuidanceScheduleParameters\x12/\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x19.gooseai.CutoutParametersH\x01\x88\x01\x01\x12$\n\x06prompt\x18\x06 \x01(\x0b\x32\x0f.gooseai.PromptH\x02\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"~\n\x12GuidanceParameters\x12\x30\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x17.gooseai.GuidancePreset\x12\x36\n\tinstances\x18\x02 \x03(\x0b\x32#.gooseai.GuidanceInstanceParameters\"n\n\rTransformType\x12.\n\tdiffusion\x18\x01 \x01(\x0e\x32\x19.gooseai.DiffusionSamplerH\x00\x12%\n\x08upscaler\x18\x02 \x01(\x0e\x32\x11.gooseai.UpscalerH\x00\x42\x06\n\x04type\"\x87\x02\n\x0fImageParameters\x12\x13\n\x06height\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x12\n\x05width\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x0c\n\x04seed\x18\x03 \x03(\r\x12\x14\n\x07samples\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05steps\x18\x05 \x01(\x04H\x03\x88\x01\x01\x12.\n\ttransform\x18\x06 \x01(\x0b\x32\x16.gooseai.TransformTypeH\x04\x88\x01\x01\x12*\n\nparameters\x18\x07 \x03(\x0b\x32\x16.gooseai.StepParameterB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transform\"J\n\x11\x43lassifierConcept\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\t\x12\x16\n\tthreshold\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x0c\n\n_threshold\"\xf4\x01\n\x12\x43lassifierCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x1a.gooseai.ClassifierConcept\x12\x17\n\nadjustment\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x0f.gooseai.ActionH\x01\x88\x01\x01\x12\x35\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x17.gooseai.ClassifierModeH\x02\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xb8\x01\n\x14\x43lassifierParameters\x12/\n\ncategories\x18\x01 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12,\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12-\n\x0frealized_action\x18\x03 \x01(\x0e\x32\x0f.gooseai.ActionH\x00\x88\x01\x01\x42\x12\n\x10_realized_action\"H\n\x0f\x41ssetParameters\x12$\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x14.gooseai.AssetAction\x12\x0f\n\x07project\x18\x02 \x01(\x04\"\x94\x01\n\nAnswerMeta\x12\x13\n\x06gpu_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x63pu_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07node_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tengine_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa9\x01\n\x06\x41nswer\x12\x11\n\tanswer_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x10\n\x08received\x18\x03 \x01(\x04\x12\x0f\n\x07\x63reated\x18\x04 \x01(\x04\x12&\n\x04meta\x18\x06 \x01(\x0b\x32\x13.gooseai.AnswerMetaH\x00\x88\x01\x01\x12$\n\tartifacts\x18\x07 \x03(\x0b\x32\x11.gooseai.ArtifactB\x07\n\x05_meta\"\xdf\x02\n\x07Request\x12\x11\n\tengine_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12-\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x1f\n\x06prompt\x18\x04 \x03(\x0b\x32\x0f.gooseai.Prompt\x12)\n\x05image\x18\x05 \x01(\x0b\x32\x18.gooseai.ImageParametersH\x00\x12\x33\n\nclassifier\x18\x07 \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12)\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x18.gooseai.AssetParametersH\x00\x12\x38\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32\x1e.gooseai.ConditionerParametersH\x01\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditioner\"w\n\x08OnStatus\x12%\n\x06reason\x18\x01 \x03(\x0e\x32\x15.gooseai.FinishReason\x12\x13\n\x06target\x18\x02 \x01(\tH\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x14.gooseai.StageActionB\t\n\x07_target\"\\\n\x05Stage\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07request\x18\x02 \x01(\x0b\x32\x10.gooseai.Request\x12$\n\ton_status\x18\x03 \x03(\x0b\x32\x11.gooseai.OnStatus\"A\n\x0c\x43hainRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1d\n\x05stage\x18\x02 \x03(\x0b\x32\x0e.gooseai.Stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xba\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07*\xc5\x01\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\x83\x01\n\x11GenerationService\x12\x31\n\x08Generate\x12\x10.gooseai.Request\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x12;\n\rChainGenerate\x12\x15.gooseai.ChainRequest\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x42\x0fZ\r./;generationb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10generation.proto\x12\x07gooseai\"/\n\x05Token\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\rB\x07\n\x05_text\"T\n\x06Tokens\x12\x1e\n\x06tokens\x18\x01 \x03(\x0b\x32\x0e.gooseai.Token\x12\x19\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd0\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x0c\n\x04mime\x18\x03 \x01(\t\x12\x12\n\x05magic\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x06\x62inary\x18\x05 \x01(\x0cH\x00\x12\x0e\n\x04text\x18\x06 \x01(\tH\x00\x12!\n\x06tokens\x18\x07 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12\x33\n\nclassifier\x18\x0b \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12\r\n\x05index\x18\x08 \x01(\r\x12,\n\rfinish_reason\x18\t \x01(\x0e\x32\x15.gooseai.FinishReason\x12\x0c\n\x04seed\x18\n \x01(\r\x12\x0c\n\x04uuid\x18\x0c \x01(\x0c\x12\x0c\n\x04size\x18\r \x01(\x04\x42\x06\n\x04\x64\x61taB\x08\n\x06_magic\"N\n\x10PromptParameters\x12\x11\n\x04init\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06weight\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xaf\x01\n\x06Prompt\x12\x32\n\nparameters\x18\x01 \x01(\x0b\x32\x19.gooseai.PromptParametersH\x01\x88\x01\x01\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12!\n\x06tokens\x18\x03 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12%\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x11.gooseai.ArtifactH\x00\x42\x08\n\x06promptB\r\n\x0b_parameters\"\xef\x01\n\x11SamplerParameters\x12\x10\n\x03\x65ta\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x1b\n\x0esampling_steps\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x1c\n\x0flatent_channels\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12 \n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tcfg_scale\x18\x05 \x01(\x02H\x04\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scale\"\x8b\x01\n\x15\x43onditionerParameters\x12 \n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32\x0e.gooseai.ModelH\x01\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"j\n\x12ScheduleParameters\x12\x12\n\x05start\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x10\n\x03\x65nd\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x12\n\x05value\x18\x03 \x01(\x02H\x02\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xe4\x01\n\rStepParameter\x12\x13\n\x0bscaled_step\x18\x01 \x01(\x02\x12\x30\n\x07sampler\x18\x02 \x01(\x0b\x32\x1a.gooseai.SamplerParametersH\x00\x88\x01\x01\x12\x32\n\x08schedule\x18\x03 \x01(\x0b\x32\x1b.gooseai.ScheduleParametersH\x01\x88\x01\x01\x12\x32\n\x08guidance\x18\x04 \x01(\x0b\x32\x1b.gooseai.GuidanceParametersH\x02\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\x97\x01\n\x05Model\x12\x30\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x1a.gooseai.ModelArchitecture\x12\x11\n\tpublisher\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x02\x12\x18\n\x10semantic_version\x18\x05 \x01(\t\x12\r\n\x05\x61lias\x18\x06 \x01(\t\"\xbc\x01\n\x10\x43utoutParameters\x12*\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x19.gooseai.CutoutParameters\x12\x12\n\x05\x63ount\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04gray\x18\x03 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x62lur\x18\x04 \x01(\x02H\x02\x88\x01\x01\x12\x17\n\nsize_power\x18\x05 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"=\n\x1aGuidanceScheduleParameters\x12\x10\n\x08\x64uration\x18\x01 \x01(\x02\x12\r\n\x05value\x18\x02 \x01(\x02\"\x97\x02\n\x1aGuidanceInstanceParameters\x12\x1e\n\x06models\x18\x02 \x03(\x0b\x32\x0e.gooseai.Model\x12\x1e\n\x11guidance_strength\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12\x35\n\x08schedule\x18\x04 \x03(\x0b\x32#.gooseai.GuidanceScheduleParameters\x12/\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x19.gooseai.CutoutParametersH\x01\x88\x01\x01\x12$\n\x06prompt\x18\x06 \x01(\x0b\x32\x0f.gooseai.PromptH\x02\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"~\n\x12GuidanceParameters\x12\x30\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x17.gooseai.GuidancePreset\x12\x36\n\tinstances\x18\x02 \x03(\x0b\x32#.gooseai.GuidanceInstanceParameters\"n\n\rTransformType\x12.\n\tdiffusion\x18\x01 \x01(\x0e\x32\x19.gooseai.DiffusionSamplerH\x00\x12%\n\x08upscaler\x18\x02 \x01(\x0e\x32\x11.gooseai.UpscalerH\x00\x42\x06\n\x04type\"\x87\x02\n\x0fImageParameters\x12\x13\n\x06height\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x12\n\x05width\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x0c\n\x04seed\x18\x03 \x03(\r\x12\x14\n\x07samples\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05steps\x18\x05 \x01(\x04H\x03\x88\x01\x01\x12.\n\ttransform\x18\x06 \x01(\x0b\x32\x16.gooseai.TransformTypeH\x04\x88\x01\x01\x12*\n\nparameters\x18\x07 \x03(\x0b\x32\x16.gooseai.StepParameterB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transform\"J\n\x11\x43lassifierConcept\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\t\x12\x16\n\tthreshold\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x0c\n\n_threshold\"\xf4\x01\n\x12\x43lassifierCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x1a.gooseai.ClassifierConcept\x12\x17\n\nadjustment\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x0f.gooseai.ActionH\x01\x88\x01\x01\x12\x35\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x17.gooseai.ClassifierModeH\x02\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xb8\x01\n\x14\x43lassifierParameters\x12/\n\ncategories\x18\x01 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12,\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12-\n\x0frealized_action\x18\x03 \x01(\x0e\x32\x0f.gooseai.ActionH\x00\x88\x01\x01\x42\x12\n\x10_realized_action\"k\n\x0f\x41ssetParameters\x12$\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x14.gooseai.AssetAction\x12\x12\n\nproject_id\x18\x02 \x01(\x0c\x12\x1e\n\x03use\x18\x03 \x01(\x0e\x32\x11.gooseai.AssetUse\"\x94\x01\n\nAnswerMeta\x12\x13\n\x06gpu_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x63pu_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07node_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tengine_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa9\x01\n\x06\x41nswer\x12\x11\n\tanswer_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x10\n\x08received\x18\x03 \x01(\x04\x12\x0f\n\x07\x63reated\x18\x04 \x01(\x04\x12&\n\x04meta\x18\x06 \x01(\x0b\x32\x13.gooseai.AnswerMetaH\x00\x88\x01\x01\x12$\n\tartifacts\x18\x07 \x03(\x0b\x32\x11.gooseai.ArtifactB\x07\n\x05_meta\"\xdf\x02\n\x07Request\x12\x11\n\tengine_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12-\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x1f\n\x06prompt\x18\x04 \x03(\x0b\x32\x0f.gooseai.Prompt\x12)\n\x05image\x18\x05 \x01(\x0b\x32\x18.gooseai.ImageParametersH\x00\x12\x33\n\nclassifier\x18\x07 \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12)\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x18.gooseai.AssetParametersH\x00\x12\x38\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32\x1e.gooseai.ConditionerParametersH\x01\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditioner\"w\n\x08OnStatus\x12%\n\x06reason\x18\x01 \x03(\x0e\x32\x15.gooseai.FinishReason\x12\x13\n\x06target\x18\x02 \x01(\tH\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x14.gooseai.StageActionB\t\n\x07_target\"\\\n\x05Stage\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07request\x18\x02 \x01(\x0b\x32\x10.gooseai.Request\x12$\n\ton_status\x18\x03 \x03(\x0b\x32\x11.gooseai.OnStatus\"A\n\x0c\x43hainRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1d\n\x05stage\x18\x02 \x03(\x0b\x32\x0e.gooseai.Stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xba\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07*\xc5\x01\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\x83\x01\n\x11GenerationService\x12\x31\n\x08Generate\x12\x10.gooseai.Request\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x12;\n\rChainGenerate\x12\x15.gooseai.ChainRequest\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x42\x0fZ\r./;generationb\x06proto3') _FINISHREASON = DESCRIPTOR.enum_types_by_name['FinishReason'] FinishReason = enum_type_wrapper.EnumTypeWrapper(_FINISHREASON) @@ -35,6 +35,8 @@ ClassifierMode = enum_type_wrapper.EnumTypeWrapper(_CLASSIFIERMODE) _ASSETACTION = DESCRIPTOR.enum_types_by_name['AssetAction'] AssetAction = enum_type_wrapper.EnumTypeWrapper(_ASSETACTION) +_ASSETUSE = DESCRIPTOR.enum_types_by_name['AssetUse'] +AssetUse = enum_type_wrapper.EnumTypeWrapper(_ASSETUSE) _STAGEACTION = DESCRIPTOR.enum_types_by_name['StageAction'] StageAction = enum_type_wrapper.EnumTypeWrapper(_STAGEACTION) NULL = 0 @@ -83,6 +85,11 @@ ASSET_PUT = 0 ASSET_GET = 1 ASSET_DELETE = 2 +ASSET_USE_UNDEFINED = 0 +ASSET_USE_INPUT = 1 +ASSET_USE_OUTPUT = 2 +ASSET_USE_INTERMEDIATE = 3 +ASSET_USE_PROJECT = 4 STAGE_ACTION_PASS = 0 STAGE_ACTION_DISCARD = 1 STAGE_ACTION_RETURN = 2 @@ -301,78 +308,80 @@ DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'Z\r./;generation' - _FINISHREASON._serialized_start=4195 - _FINISHREASON._serialized_end=4264 - _ARTIFACTTYPE._serialized_start=4267 - _ARTIFACTTYPE._serialized_end=4453 - _DIFFUSIONSAMPLER._serialized_start=4456 - _DIFFUSIONSAMPLER._serialized_end=4653 - _UPSCALER._serialized_start=4655 - _UPSCALER._serialized_end=4725 - _GUIDANCEPRESET._serialized_start=4728 - _GUIDANCEPRESET._serialized_end=4944 - _MODELARCHITECTURE._serialized_start=4947 - _MODELARCHITECTURE._serialized_end=5092 - _ACTION._serialized_start=5095 - _ACTION._serialized_end=5257 - _CLASSIFIERMODE._serialized_start=5259 - _CLASSIFIERMODE._serialized_end=5327 - _ASSETACTION._serialized_start=5329 - _ASSETACTION._serialized_end=5390 - _STAGEACTION._serialized_start=5392 - _STAGEACTION._serialized_end=5479 + _FINISHREASON._serialized_start=4258 + _FINISHREASON._serialized_end=4327 + _ARTIFACTTYPE._serialized_start=4330 + _ARTIFACTTYPE._serialized_end=4516 + _DIFFUSIONSAMPLER._serialized_start=4519 + _DIFFUSIONSAMPLER._serialized_end=4716 + _UPSCALER._serialized_start=4718 + _UPSCALER._serialized_end=4788 + _GUIDANCEPRESET._serialized_start=4791 + _GUIDANCEPRESET._serialized_end=5007 + _MODELARCHITECTURE._serialized_start=5010 + _MODELARCHITECTURE._serialized_end=5155 + _ACTION._serialized_start=5158 + _ACTION._serialized_end=5320 + _CLASSIFIERMODE._serialized_start=5322 + _CLASSIFIERMODE._serialized_end=5390 + _ASSETACTION._serialized_start=5392 + _ASSETACTION._serialized_end=5453 + _ASSETUSE._serialized_start=5456 + _ASSETUSE._serialized_end=5585 + _STAGEACTION._serialized_start=5587 + _STAGEACTION._serialized_end=5674 _TOKEN._serialized_start=29 _TOKEN._serialized_end=76 _TOKENS._serialized_start=78 _TOKENS._serialized_end=162 _ARTIFACT._serialized_start=165 - _ARTIFACT._serialized_end=473 - _PROMPTPARAMETERS._serialized_start=475 - _PROMPTPARAMETERS._serialized_end=553 - _PROMPT._serialized_start=556 - _PROMPT._serialized_end=731 - _SAMPLERPARAMETERS._serialized_start=734 - _SAMPLERPARAMETERS._serialized_end=973 - _CONDITIONERPARAMETERS._serialized_start=976 - _CONDITIONERPARAMETERS._serialized_end=1115 - _SCHEDULEPARAMETERS._serialized_start=1117 - _SCHEDULEPARAMETERS._serialized_end=1223 - _STEPPARAMETER._serialized_start=1226 - _STEPPARAMETER._serialized_end=1454 - _MODEL._serialized_start=1457 - _MODEL._serialized_end=1608 - _CUTOUTPARAMETERS._serialized_start=1611 - _CUTOUTPARAMETERS._serialized_end=1799 - _GUIDANCESCHEDULEPARAMETERS._serialized_start=1801 - _GUIDANCESCHEDULEPARAMETERS._serialized_end=1862 - _GUIDANCEINSTANCEPARAMETERS._serialized_start=1865 - _GUIDANCEINSTANCEPARAMETERS._serialized_end=2144 - _GUIDANCEPARAMETERS._serialized_start=2146 - _GUIDANCEPARAMETERS._serialized_end=2272 - _TRANSFORMTYPE._serialized_start=2274 - _TRANSFORMTYPE._serialized_end=2384 - _IMAGEPARAMETERS._serialized_start=2387 - _IMAGEPARAMETERS._serialized_end=2650 - _CLASSIFIERCONCEPT._serialized_start=2652 - _CLASSIFIERCONCEPT._serialized_end=2726 - _CLASSIFIERCATEGORY._serialized_start=2729 - _CLASSIFIERCATEGORY._serialized_end=2973 - _CLASSIFIERPARAMETERS._serialized_start=2976 - _CLASSIFIERPARAMETERS._serialized_end=3160 - _ASSETPARAMETERS._serialized_start=3162 - _ASSETPARAMETERS._serialized_end=3234 - _ANSWERMETA._serialized_start=3237 - _ANSWERMETA._serialized_end=3385 - _ANSWER._serialized_start=3388 - _ANSWER._serialized_end=3557 - _REQUEST._serialized_start=3560 - _REQUEST._serialized_end=3911 - _ONSTATUS._serialized_start=3913 - _ONSTATUS._serialized_end=4032 - _STAGE._serialized_start=4034 - _STAGE._serialized_end=4126 - _CHAINREQUEST._serialized_start=4128 - _CHAINREQUEST._serialized_end=4193 - _GENERATIONSERVICE._serialized_start=5482 - _GENERATIONSERVICE._serialized_end=5613 + _ARTIFACT._serialized_end=501 + _PROMPTPARAMETERS._serialized_start=503 + _PROMPTPARAMETERS._serialized_end=581 + _PROMPT._serialized_start=584 + _PROMPT._serialized_end=759 + _SAMPLERPARAMETERS._serialized_start=762 + _SAMPLERPARAMETERS._serialized_end=1001 + _CONDITIONERPARAMETERS._serialized_start=1004 + _CONDITIONERPARAMETERS._serialized_end=1143 + _SCHEDULEPARAMETERS._serialized_start=1145 + _SCHEDULEPARAMETERS._serialized_end=1251 + _STEPPARAMETER._serialized_start=1254 + _STEPPARAMETER._serialized_end=1482 + _MODEL._serialized_start=1485 + _MODEL._serialized_end=1636 + _CUTOUTPARAMETERS._serialized_start=1639 + _CUTOUTPARAMETERS._serialized_end=1827 + _GUIDANCESCHEDULEPARAMETERS._serialized_start=1829 + _GUIDANCESCHEDULEPARAMETERS._serialized_end=1890 + _GUIDANCEINSTANCEPARAMETERS._serialized_start=1893 + _GUIDANCEINSTANCEPARAMETERS._serialized_end=2172 + _GUIDANCEPARAMETERS._serialized_start=2174 + _GUIDANCEPARAMETERS._serialized_end=2300 + _TRANSFORMTYPE._serialized_start=2302 + _TRANSFORMTYPE._serialized_end=2412 + _IMAGEPARAMETERS._serialized_start=2415 + _IMAGEPARAMETERS._serialized_end=2678 + _CLASSIFIERCONCEPT._serialized_start=2680 + _CLASSIFIERCONCEPT._serialized_end=2754 + _CLASSIFIERCATEGORY._serialized_start=2757 + _CLASSIFIERCATEGORY._serialized_end=3001 + _CLASSIFIERPARAMETERS._serialized_start=3004 + _CLASSIFIERPARAMETERS._serialized_end=3188 + _ASSETPARAMETERS._serialized_start=3190 + _ASSETPARAMETERS._serialized_end=3297 + _ANSWERMETA._serialized_start=3300 + _ANSWERMETA._serialized_end=3448 + _ANSWER._serialized_start=3451 + _ANSWER._serialized_end=3620 + _REQUEST._serialized_start=3623 + _REQUEST._serialized_end=3974 + _ONSTATUS._serialized_start=3976 + _ONSTATUS._serialized_end=4095 + _STAGE._serialized_start=4097 + _STAGE._serialized_end=4189 + _CHAINREQUEST._serialized_start=4191 + _CHAINREQUEST._serialized_end=4256 + _GENERATIONSERVICE._serialized_start=5677 + _GENERATIONSERVICE._serialized_end=5808 # @@protoc_insertion_point(module_scope) diff --git a/gooseai/project/project.pb.go b/gooseai/project/project.pb.go index 181ae91..3ede23e 100644 --- a/gooseai/project/project.pb.go +++ b/gooseai/project/project.pb.go @@ -71,6 +71,7 @@ type ProjectStatus int32 const ( ProjectStatus_PROJECT_STATUS_INACTIVE ProjectStatus = 0 // Inactive project ProjectStatus_PROJECT_STATUS_ACTIVE ProjectStatus = 1 // Active project + ProjectStatus_PROJECT_STATUS_DELETED ProjectStatus = 2 // Deleted project, only set by delete endpoint ) // Enum value maps for ProjectStatus. @@ -78,10 +79,12 @@ var ( ProjectStatus_name = map[int32]string{ 0: "PROJECT_STATUS_INACTIVE", 1: "PROJECT_STATUS_ACTIVE", + 2: "PROJECT_STATUS_DELETED", } ProjectStatus_value = map[string]int32{ "PROJECT_STATUS_INACTIVE": 0, "PROJECT_STATUS_ACTIVE": 1, + "PROJECT_STATUS_DELETED": 2, } ) @@ -115,25 +118,28 @@ func (ProjectStatus) EnumDescriptor() ([]byte, []int) { type ProjectAssetUse int32 const ( - ProjectAssetUse_PROJECT_ASSET_USE_INPUT ProjectAssetUse = 0 // Asset is used as an input for the project - ProjectAssetUse_PROJECT_ASSET_USE_OUTPUT ProjectAssetUse = 1 // Asset is an output from the project - ProjectAssetUse_PROJECT_ASSET_USE_INTERMEDIATE ProjectAssetUse = 2 // Asset is an output from an intermediate step of the project - ProjectAssetUse_PROJECT_ASSET_USE_PROJECT ProjectAssetUse = 3 // Asset is used as the project file for the project + ProjectAssetUse_PROJECT_ASSET_USE_UNDEFINED ProjectAssetUse = 0 // Asset does not have use defined + ProjectAssetUse_PROJECT_ASSET_USE_INPUT ProjectAssetUse = 1 // Asset is used as an input for the project + ProjectAssetUse_PROJECT_ASSET_USE_OUTPUT ProjectAssetUse = 2 // Asset is an output from the project + ProjectAssetUse_PROJECT_ASSET_USE_INTERMEDIATE ProjectAssetUse = 3 // Asset is an output from an intermediate step of the project + ProjectAssetUse_PROJECT_ASSET_USE_PROJECT ProjectAssetUse = 4 // Asset is used as the project file for the project ) // Enum value maps for ProjectAssetUse. var ( ProjectAssetUse_name = map[int32]string{ - 0: "PROJECT_ASSET_USE_INPUT", - 1: "PROJECT_ASSET_USE_OUTPUT", - 2: "PROJECT_ASSET_USE_INTERMEDIATE", - 3: "PROJECT_ASSET_USE_PROJECT", + 0: "PROJECT_ASSET_USE_UNDEFINED", + 1: "PROJECT_ASSET_USE_INPUT", + 2: "PROJECT_ASSET_USE_OUTPUT", + 3: "PROJECT_ASSET_USE_INTERMEDIATE", + 4: "PROJECT_ASSET_USE_PROJECT", } ProjectAssetUse_value = map[string]int32{ - "PROJECT_ASSET_USE_INPUT": 0, - "PROJECT_ASSET_USE_OUTPUT": 1, - "PROJECT_ASSET_USE_INTERMEDIATE": 2, - "PROJECT_ASSET_USE_PROJECT": 3, + "PROJECT_ASSET_USE_UNDEFINED": 0, + "PROJECT_ASSET_USE_INPUT": 1, + "PROJECT_ASSET_USE_OUTPUT": 2, + "PROJECT_ASSET_USE_INTERMEDIATE": 3, + "PROJECT_ASSET_USE_PROJECT": 4, } ) @@ -169,7 +175,7 @@ type ProjectAsset struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset, UUIDv4 URI string `protobuf:"bytes,2,opt,name=URI,proto3" json:"URI,omitempty"` // The URI to the asset Use ProjectAssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.ProjectAssetUse" json:"use,omitempty"` // The use of the asset with respect to the project } @@ -206,11 +212,11 @@ func (*ProjectAsset) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{0} } -func (x *ProjectAsset) GetId() uint64 { +func (x *ProjectAsset) GetId() []byte { if x != nil { return x.Id } - return 0 + return nil } func (x *ProjectAsset) GetURI() string { @@ -224,7 +230,7 @@ func (x *ProjectAsset) GetUse() ProjectAssetUse { if x != nil { return x.Use } - return ProjectAssetUse_PROJECT_ASSET_USE_INPUT + return ProjectAssetUse_PROJECT_ASSET_USE_UNDEFINED } type Project struct { @@ -232,9 +238,9 @@ type Project struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Title of the project - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` // The ID of the organization owning the project + OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project Access ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) Status ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gooseai.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) Size uint64 `protobuf:"varint,6,opt,name=size,proto3" json:"size,omitempty"` // The size of the project in bytes @@ -276,11 +282,11 @@ func (*Project) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{1} } -func (x *Project) GetId() uint64 { +func (x *Project) GetId() []byte { if x != nil { return x.Id } - return 0 + return nil } func (x *Project) GetTitle() string { @@ -290,9 +296,9 @@ func (x *Project) GetTitle() string { return "" } -func (x *Project) GetOwner() string { +func (x *Project) GetOwnerId() string { if x != nil { - return x.Owner + return x.OwnerId } return "" } @@ -351,11 +357,11 @@ type CreateProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // title of the project - Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user - Access ProjectAccess `protobuf:"varint,3,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) - Status ProjectStatus `protobuf:"varint,4,opt,name=status,proto3,enum=gooseai.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) - File *ProjectAsset `protobuf:"bytes,5,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project (if existing, else will create) + Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` // title of the project + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user + Access ProjectAccess `protobuf:"varint,3,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) + Status ProjectStatus `protobuf:"varint,4,opt,name=status,proto3,enum=gooseai.ProjectStatus" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,5,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project (if existing, else will create) } func (x *CreateProjectRequest) Reset() { @@ -397,9 +403,9 @@ func (x *CreateProjectRequest) GetTitle() string { return "" } -func (x *CreateProjectRequest) GetOwner() string { - if x != nil && x.Owner != nil { - return *x.Owner +func (x *CreateProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId } return "" } @@ -430,12 +436,12 @@ type UpdateProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project - Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user - Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // Title of the project - Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) - Status *ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gooseai.ProjectStatus,oneof" json:"status,omitempty"` // The status of the project (such as active vs inactive) - File *ProjectAsset `protobuf:"bytes,6,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user + Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // Title of the project + Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) + Status *ProjectStatus `protobuf:"varint,5,opt,name=status,proto3,enum=gooseai.ProjectStatus,oneof" json:"status,omitempty"` // The status of the project (such as active vs inactive) + File *ProjectAsset `protobuf:"bytes,6,opt,name=file,proto3,oneof" json:"file,omitempty"` // Project file for the project } func (x *UpdateProjectRequest) Reset() { @@ -470,16 +476,16 @@ func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{3} } -func (x *UpdateProjectRequest) GetId() uint64 { +func (x *UpdateProjectRequest) GetId() []byte { if x != nil { return x.Id } - return 0 + return nil } -func (x *UpdateProjectRequest) GetOwner() string { - if x != nil && x.Owner != nil { - return *x.Owner +func (x *UpdateProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId } return "" } @@ -517,7 +523,7 @@ type ListProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Owner *string `protobuf:"bytes,1,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user + OwnerId *string `protobuf:"bytes,1,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user } func (x *ListProjectRequest) Reset() { @@ -552,24 +558,24 @@ func (*ListProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{4} } -func (x *ListProjectRequest) GetOwner() string { - if x != nil && x.Owner != nil { - return *x.Owner +func (x *ListProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId } return "" } -type GetDeleteProjectRequest struct { +type GetProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request - Owner *string `protobuf:"bytes,2,opt,name=owner,proto3,oneof" json:"owner,omitempty"` // The ID of the organization owning the project, empty for default org for user + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user } -func (x *GetDeleteProjectRequest) Reset() { - *x = GetDeleteProjectRequest{} +func (x *GetProjectRequest) Reset() { + *x = GetProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_project_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -577,13 +583,13 @@ func (x *GetDeleteProjectRequest) Reset() { } } -func (x *GetDeleteProjectRequest) String() string { +func (x *GetProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*GetDeleteProjectRequest) ProtoMessage() {} +func (*GetProjectRequest) ProtoMessage() {} -func (x *GetDeleteProjectRequest) ProtoReflect() protoreflect.Message { +func (x *GetProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_project_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -595,34 +601,36 @@ func (x *GetDeleteProjectRequest) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use GetDeleteProjectRequest.ProtoReflect.Descriptor instead. -func (*GetDeleteProjectRequest) Descriptor() ([]byte, []int) { +// Deprecated: Use GetProjectRequest.ProtoReflect.Descriptor instead. +func (*GetProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{5} } -func (x *GetDeleteProjectRequest) GetId() uint64 { +func (x *GetProjectRequest) GetId() []byte { if x != nil { return x.Id } - return 0 + return nil } -func (x *GetDeleteProjectRequest) GetOwner() string { - if x != nil && x.Owner != nil { - return *x.Owner +func (x *GetProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId } return "" } -// Message for empty requests / response where no additional data is needed -type ProjectEmpty struct { +type DeleteProjectRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 + OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user } -func (x *ProjectEmpty) Reset() { - *x = ProjectEmpty{} +func (x *DeleteProjectRequest) Reset() { + *x = DeleteProjectRequest{} if protoimpl.UnsafeEnabled { mi := &file_project_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -630,13 +638,13 @@ func (x *ProjectEmpty) Reset() { } } -func (x *ProjectEmpty) String() string { +func (x *DeleteProjectRequest) String() string { return protoimpl.X.MessageStringOf(x) } -func (*ProjectEmpty) ProtoMessage() {} +func (*DeleteProjectRequest) ProtoMessage() {} -func (x *ProjectEmpty) ProtoReflect() protoreflect.Message { +func (x *DeleteProjectRequest) ProtoReflect() protoreflect.Message { mi := &file_project_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) @@ -648,127 +656,150 @@ func (x *ProjectEmpty) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use ProjectEmpty.ProtoReflect.Descriptor instead. -func (*ProjectEmpty) Descriptor() ([]byte, []int) { +// Deprecated: Use DeleteProjectRequest.ProtoReflect.Descriptor instead. +func (*DeleteProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{6} } +func (x *DeleteProjectRequest) GetId() []byte { + if x != nil { + return x.Id + } + return nil +} + +func (x *DeleteProjectRequest) GetOwnerId() string { + if x != nil && x.OwnerId != nil { + return *x.OwnerId + } + return "" +} + var File_project_proto protoreflect.FileDescriptor var file_project_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x22, 0x5c, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, + 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x52, 0x49, 0x12, 0x2a, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xd1, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, + 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xd6, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x2e, - 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, + 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x66, 0x69, + 0x6c, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, + 0x18, 0x08, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x04, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, + 0x12, 0x2d, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, + 0xf2, 0x01, 0x0a, 0x14, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, + 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x2e, + 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x2e, - 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, + 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x12, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x29, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, + 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, + 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, + 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x66, 0x69, 0x6c, 0x65, 0x22, 0xb1, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, + 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, + 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, + 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, + 0x74, 0x69, 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, + 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x48, 0x02, 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, + 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, + 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x1d, 0x0a, - 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x04, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x04, - 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x2d, 0x0a, 0x06, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0xea, 0x01, 0x0a, 0x14, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x52, 0x06, 0x61, 0x63, - 0x63, 0x65, 0x73, 0x73, 0x12, 0x2e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, - 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x01, 0x52, 0x04, 0x66, 0x69, 0x6c, - 0x65, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x07, - 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xa9, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, - 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, 0x74, 0x69, - 0x74, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, - 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x48, 0x02, - 0x52, 0x06, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x06, 0x73, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x48, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01, - 0x12, 0x2e, 0x0a, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, + 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, + 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, + 0x08, 0x0a, 0x06, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, + 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0x41, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1e, + 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, + 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x11, 0x47, + 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, + 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x53, 0x0a, + 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, + 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, + 0x69, 0x64, 0x2a, 0x46, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, + 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, + 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, + 0x53, 0x5f, 0x50, 0x55, 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x63, 0x0a, 0x0d, 0x50, 0x72, + 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, + 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, + 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, + 0x45, 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, + 0x45, 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x53, + 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x44, 0x45, 0x4c, 0x45, 0x54, 0x45, 0x44, 0x10, 0x02, 0x2a, + 0xb0, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, + 0x55, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x1b, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x55, 0x4e, 0x44, 0x45, 0x46, 0x49, 0x4e, + 0x45, 0x44, 0x10, 0x00, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, + 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, + 0x01, 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, + 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x02, 0x12, + 0x22, 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, + 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, + 0x45, 0x10, 0x03, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, + 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, + 0x10, 0x04, 0x32, 0xb9, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, + 0x1d, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, + 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x48, 0x04, 0x52, 0x04, 0x66, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, - 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x74, - 0x69, 0x74, 0x6c, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42, - 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, - 0x69, 0x6c, 0x65, 0x22, 0x39, 0x0a, 0x12, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x4e, - 0x0a, 0x17, 0x47, 0x65, 0x74, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x02, 0x69, 0x64, 0x12, 0x19, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x88, 0x01, 0x01, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x22, 0x0e, - 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x2a, 0x46, - 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, - 0x1a, 0x0a, 0x16, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, - 0x53, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41, 0x54, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, - 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x43, 0x43, 0x45, 0x53, 0x53, 0x5f, 0x50, 0x55, - 0x42, 0x4c, 0x49, 0x43, 0x10, 0x01, 0x2a, 0x47, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, - 0x43, 0x54, 0x5f, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x49, 0x4e, 0x41, 0x43, 0x54, 0x49, - 0x56, 0x45, 0x10, 0x00, 0x12, 0x19, 0x0a, 0x15, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, - 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x41, 0x43, 0x54, 0x49, 0x56, 0x45, 0x10, 0x01, 0x2a, - 0x8f, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x55, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, - 0x53, 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x50, 0x55, 0x54, 0x10, 0x00, - 0x12, 0x1c, 0x0a, 0x18, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, - 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x10, 0x01, 0x12, 0x22, - 0x0a, 0x1e, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, 0x53, 0x45, 0x54, 0x5f, - 0x55, 0x53, 0x45, 0x5f, 0x49, 0x4e, 0x54, 0x45, 0x52, 0x4d, 0x45, 0x44, 0x49, 0x41, 0x54, 0x45, - 0x10, 0x02, 0x12, 0x1d, 0x0a, 0x19, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x5f, 0x41, 0x53, - 0x53, 0x45, 0x54, 0x5f, 0x55, 0x53, 0x45, 0x5f, 0x50, 0x52, 0x4f, 0x4a, 0x45, 0x43, 0x54, 0x10, - 0x03, 0x32, 0xc7, 0x02, 0x0a, 0x0e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x1d, - 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, + 0x22, 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, + 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, + 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, + 0x39, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, + 0x69, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x35, 0x0a, 0x03, 0x47, 0x65, + 0x74, 0x12, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, - 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, - 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, + 0x00, 0x12, 0x3b, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1d, 0x2e, 0x67, 0x6f, + 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, - 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x39, - 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1b, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x30, 0x01, 0x12, 0x3b, 0x0a, 0x03, 0x47, 0x65, 0x74, - 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x10, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x12, 0x43, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x12, 0x20, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x00, 0x42, 0x0c, 0x5a, 0x0a, 0x2e, - 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x22, 0x00, 0x42, 0x0c, + 0x5a, 0x0a, 0x2e, 0x2f, 0x3b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -786,16 +817,16 @@ func file_project_proto_rawDescGZIP() []byte { var file_project_proto_enumTypes = make([]protoimpl.EnumInfo, 3) var file_project_proto_msgTypes = make([]protoimpl.MessageInfo, 7) var file_project_proto_goTypes = []interface{}{ - (ProjectAccess)(0), // 0: gooseai.ProjectAccess - (ProjectStatus)(0), // 1: gooseai.ProjectStatus - (ProjectAssetUse)(0), // 2: gooseai.ProjectAssetUse - (*ProjectAsset)(nil), // 3: gooseai.ProjectAsset - (*Project)(nil), // 4: gooseai.Project - (*CreateProjectRequest)(nil), // 5: gooseai.CreateProjectRequest - (*UpdateProjectRequest)(nil), // 6: gooseai.UpdateProjectRequest - (*ListProjectRequest)(nil), // 7: gooseai.ListProjectRequest - (*GetDeleteProjectRequest)(nil), // 8: gooseai.GetDeleteProjectRequest - (*ProjectEmpty)(nil), // 9: gooseai.ProjectEmpty + (ProjectAccess)(0), // 0: gooseai.ProjectAccess + (ProjectStatus)(0), // 1: gooseai.ProjectStatus + (ProjectAssetUse)(0), // 2: gooseai.ProjectAssetUse + (*ProjectAsset)(nil), // 3: gooseai.ProjectAsset + (*Project)(nil), // 4: gooseai.Project + (*CreateProjectRequest)(nil), // 5: gooseai.CreateProjectRequest + (*UpdateProjectRequest)(nil), // 6: gooseai.UpdateProjectRequest + (*ListProjectRequest)(nil), // 7: gooseai.ListProjectRequest + (*GetProjectRequest)(nil), // 8: gooseai.GetProjectRequest + (*DeleteProjectRequest)(nil), // 9: gooseai.DeleteProjectRequest } var file_project_proto_depIdxs = []int32{ 2, // 0: gooseai.ProjectAsset.use:type_name -> gooseai.ProjectAssetUse @@ -812,13 +843,13 @@ var file_project_proto_depIdxs = []int32{ 5, // 11: gooseai.ProjectService.Create:input_type -> gooseai.CreateProjectRequest 6, // 12: gooseai.ProjectService.Update:input_type -> gooseai.UpdateProjectRequest 7, // 13: gooseai.ProjectService.List:input_type -> gooseai.ListProjectRequest - 8, // 14: gooseai.ProjectService.Get:input_type -> gooseai.GetDeleteProjectRequest - 8, // 15: gooseai.ProjectService.Delete:input_type -> gooseai.GetDeleteProjectRequest + 8, // 14: gooseai.ProjectService.Get:input_type -> gooseai.GetProjectRequest + 9, // 15: gooseai.ProjectService.Delete:input_type -> gooseai.DeleteProjectRequest 4, // 16: gooseai.ProjectService.Create:output_type -> gooseai.Project 4, // 17: gooseai.ProjectService.Update:output_type -> gooseai.Project 4, // 18: gooseai.ProjectService.List:output_type -> gooseai.Project 4, // 19: gooseai.ProjectService.Get:output_type -> gooseai.Project - 9, // 20: gooseai.ProjectService.Delete:output_type -> gooseai.ProjectEmpty + 4, // 20: gooseai.ProjectService.Delete:output_type -> gooseai.Project 16, // [16:21] is the sub-list for method output_type 11, // [11:16] is the sub-list for method input_type 11, // [11:11] is the sub-list for extension type_name @@ -893,7 +924,7 @@ func file_project_proto_init() { } } file_project_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDeleteProjectRequest); i { + switch v := v.(*GetProjectRequest); i { case 0: return &v.state case 1: @@ -905,7 +936,7 @@ func file_project_proto_init() { } } file_project_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ProjectEmpty); i { + switch v := v.(*DeleteProjectRequest); i { case 0: return &v.state case 1: @@ -921,6 +952,7 @@ func file_project_proto_init() { file_project_proto_msgTypes[3].OneofWrappers = []interface{}{} file_project_proto_msgTypes[4].OneofWrappers = []interface{}{} file_project_proto_msgTypes[5].OneofWrappers = []interface{}{} + file_project_proto_msgTypes[6].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ diff --git a/gooseai/project/project_grpc.pb.go b/gooseai/project/project_grpc.pb.go index c6c4651..48791ca 100644 --- a/gooseai/project/project_grpc.pb.go +++ b/gooseai/project/project_grpc.pb.go @@ -25,9 +25,9 @@ type ProjectServiceClient interface { // List all the projects for an organization List(ctx context.Context, in *ListProjectRequest, opts ...grpc.CallOption) (ProjectService_ListClient, error) // Get a project - Get(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) + Get(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) // Delete a project - Delete(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*ProjectEmpty, error) + Delete(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) } type projectServiceClient struct { @@ -88,7 +88,7 @@ func (x *projectServiceListClient) Recv() (*Project, error) { return m, nil } -func (c *projectServiceClient) Get(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) { +func (c *projectServiceClient) Get(ctx context.Context, in *GetProjectRequest, opts ...grpc.CallOption) (*Project, error) { out := new(Project) err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Get", in, out, opts...) if err != nil { @@ -97,8 +97,8 @@ func (c *projectServiceClient) Get(ctx context.Context, in *GetDeleteProjectRequ return out, nil } -func (c *projectServiceClient) Delete(ctx context.Context, in *GetDeleteProjectRequest, opts ...grpc.CallOption) (*ProjectEmpty, error) { - out := new(ProjectEmpty) +func (c *projectServiceClient) Delete(ctx context.Context, in *DeleteProjectRequest, opts ...grpc.CallOption) (*Project, error) { + out := new(Project) err := c.cc.Invoke(ctx, "/gooseai.ProjectService/Delete", in, out, opts...) if err != nil { return nil, err @@ -117,9 +117,9 @@ type ProjectServiceServer interface { // List all the projects for an organization List(*ListProjectRequest, ProjectService_ListServer) error // Get a project - Get(context.Context, *GetDeleteProjectRequest) (*Project, error) + Get(context.Context, *GetProjectRequest) (*Project, error) // Delete a project - Delete(context.Context, *GetDeleteProjectRequest) (*ProjectEmpty, error) + Delete(context.Context, *DeleteProjectRequest) (*Project, error) mustEmbedUnimplementedProjectServiceServer() } @@ -136,10 +136,10 @@ func (UnimplementedProjectServiceServer) Update(context.Context, *UpdateProjectR func (UnimplementedProjectServiceServer) List(*ListProjectRequest, ProjectService_ListServer) error { return status.Errorf(codes.Unimplemented, "method List not implemented") } -func (UnimplementedProjectServiceServer) Get(context.Context, *GetDeleteProjectRequest) (*Project, error) { +func (UnimplementedProjectServiceServer) Get(context.Context, *GetProjectRequest) (*Project, error) { return nil, status.Errorf(codes.Unimplemented, "method Get not implemented") } -func (UnimplementedProjectServiceServer) Delete(context.Context, *GetDeleteProjectRequest) (*ProjectEmpty, error) { +func (UnimplementedProjectServiceServer) Delete(context.Context, *DeleteProjectRequest) (*Project, error) { return nil, status.Errorf(codes.Unimplemented, "method Delete not implemented") } func (UnimplementedProjectServiceServer) mustEmbedUnimplementedProjectServiceServer() {} @@ -213,7 +213,7 @@ func (x *projectServiceListServer) Send(m *Project) error { } func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDeleteProjectRequest) + in := new(GetProjectRequest) if err := dec(in); err != nil { return nil, err } @@ -225,13 +225,13 @@ func _ProjectService_Get_Handler(srv interface{}, ctx context.Context, dec func( FullMethod: "/gooseai.ProjectService/Get", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProjectServiceServer).Get(ctx, req.(*GetDeleteProjectRequest)) + return srv.(ProjectServiceServer).Get(ctx, req.(*GetProjectRequest)) } return interceptor(ctx, in, info, handler) } func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(GetDeleteProjectRequest) + in := new(DeleteProjectRequest) if err := dec(in); err != nil { return nil, err } @@ -243,7 +243,7 @@ func _ProjectService_Delete_Handler(srv interface{}, ctx context.Context, dec fu FullMethod: "/gooseai.ProjectService/Delete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ProjectServiceServer).Delete(ctx, req.(*GetDeleteProjectRequest)) + return srv.(ProjectServiceServer).Delete(ctx, req.(*DeleteProjectRequest)) } return interceptor(ctx, in, info, handler) } diff --git a/gooseai/project/project_grpc_pb.d.ts b/gooseai/project/project_grpc_pb.d.ts index 7ae90ad..35847b0 100644 --- a/gooseai/project/project_grpc_pb.d.ts +++ b/gooseai/project/project_grpc_pb.d.ts @@ -10,8 +10,8 @@ interface IProjectServiceService extends grpc.ServiceDefinition; update: grpc.MethodDefinition; list: grpc.MethodDefinition; - get: grpc.MethodDefinition; - delete: grpc.MethodDefinition; + get: grpc.MethodDefinition; + delete: grpc.MethodDefinition; } export const ProjectServiceService: IProjectServiceService; @@ -20,8 +20,8 @@ export interface IProjectServiceServer extends grpc.UntypedServiceImplementation create: grpc.handleUnaryCall; update: grpc.handleUnaryCall; list: grpc.handleServerStreamingCall; - get: grpc.handleUnaryCall; - delete: grpc.handleUnaryCall; + get: grpc.handleUnaryCall; + delete: grpc.handleUnaryCall; } export class ProjectServiceClient extends grpc.Client { @@ -34,10 +34,10 @@ export class ProjectServiceClient extends grpc.Client { update(argument: project_pb.UpdateProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; list(argument: project_pb.ListProjectRequest, metadataOrOptions?: grpc.Metadata | grpc.CallOptions | null): grpc.ClientReadableStream; list(argument: project_pb.ListProjectRequest, metadata?: grpc.Metadata | null, options?: grpc.CallOptions | null): grpc.ClientReadableStream; - get(argument: project_pb.GetDeleteProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: project_pb.GetDeleteProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - get(argument: project_pb.GetDeleteProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: project_pb.GetDeleteProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: project_pb.GetDeleteProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; - delete(argument: project_pb.GetDeleteProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + get(argument: project_pb.GetProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + get(argument: project_pb.GetProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + get(argument: project_pb.GetProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.DeleteProjectRequest, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.DeleteProjectRequest, metadataOrOptions: grpc.Metadata | grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; + delete(argument: project_pb.DeleteProjectRequest, metadata: grpc.Metadata | null, options: grpc.CallOptions | null, callback: grpc.requestCallback): grpc.ClientUnaryCall; } diff --git a/gooseai/project/project_grpc_pb.js b/gooseai/project/project_grpc_pb.js index a77bee4..2091167 100644 --- a/gooseai/project/project_grpc_pb.js +++ b/gooseai/project/project_grpc_pb.js @@ -15,15 +15,26 @@ function deserialize_gooseai_CreateProjectRequest(buffer_arg) { return project_pb.CreateProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_gooseai_GetDeleteProjectRequest(arg) { - if (!(arg instanceof project_pb.GetDeleteProjectRequest)) { - throw new Error('Expected argument of type gooseai.GetDeleteProjectRequest'); +function serialize_gooseai_DeleteProjectRequest(arg) { + if (!(arg instanceof project_pb.DeleteProjectRequest)) { + throw new Error('Expected argument of type gooseai.DeleteProjectRequest'); } return Buffer.from(arg.serializeBinary()); } -function deserialize_gooseai_GetDeleteProjectRequest(buffer_arg) { - return project_pb.GetDeleteProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +function deserialize_gooseai_DeleteProjectRequest(buffer_arg) { + return project_pb.DeleteProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); +} + +function serialize_gooseai_GetProjectRequest(arg) { + if (!(arg instanceof project_pb.GetProjectRequest)) { + throw new Error('Expected argument of type gooseai.GetProjectRequest'); + } + return Buffer.from(arg.serializeBinary()); +} + +function deserialize_gooseai_GetProjectRequest(buffer_arg) { + return project_pb.GetProjectRequest.deserializeBinary(new Uint8Array(buffer_arg)); } function serialize_gooseai_ListProjectRequest(arg) { @@ -48,17 +59,6 @@ function deserialize_gooseai_Project(buffer_arg) { return project_pb.Project.deserializeBinary(new Uint8Array(buffer_arg)); } -function serialize_gooseai_ProjectEmpty(arg) { - if (!(arg instanceof project_pb.ProjectEmpty)) { - throw new Error('Expected argument of type gooseai.ProjectEmpty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_gooseai_ProjectEmpty(buffer_arg) { - return project_pb.ProjectEmpty.deserializeBinary(new Uint8Array(buffer_arg)); -} - function serialize_gooseai_UpdateProjectRequest(arg) { if (!(arg instanceof project_pb.UpdateProjectRequest)) { throw new Error('Expected argument of type gooseai.UpdateProjectRequest'); @@ -116,10 +116,10 @@ get: { path: '/gooseai.ProjectService/Get', requestStream: false, responseStream: false, - requestType: project_pb.GetDeleteProjectRequest, + requestType: project_pb.GetProjectRequest, responseType: project_pb.Project, - requestSerialize: serialize_gooseai_GetDeleteProjectRequest, - requestDeserialize: deserialize_gooseai_GetDeleteProjectRequest, + requestSerialize: serialize_gooseai_GetProjectRequest, + requestDeserialize: deserialize_gooseai_GetProjectRequest, responseSerialize: serialize_gooseai_Project, responseDeserialize: deserialize_gooseai_Project, }, @@ -128,12 +128,12 @@ delete: { path: '/gooseai.ProjectService/Delete', requestStream: false, responseStream: false, - requestType: project_pb.GetDeleteProjectRequest, - responseType: project_pb.ProjectEmpty, - requestSerialize: serialize_gooseai_GetDeleteProjectRequest, - requestDeserialize: deserialize_gooseai_GetDeleteProjectRequest, - responseSerialize: serialize_gooseai_ProjectEmpty, - responseDeserialize: deserialize_gooseai_ProjectEmpty, + requestType: project_pb.DeleteProjectRequest, + responseType: project_pb.Project, + requestSerialize: serialize_gooseai_DeleteProjectRequest, + requestDeserialize: deserialize_gooseai_DeleteProjectRequest, + responseSerialize: serialize_gooseai_Project, + responseDeserialize: deserialize_gooseai_Project, }, }; diff --git a/gooseai/project/project_pb.d.ts b/gooseai/project/project_pb.d.ts index 5038aa3..db0efe0 100644 --- a/gooseai/project/project_pb.d.ts +++ b/gooseai/project/project_pb.d.ts @@ -4,8 +4,10 @@ import * as jspb from "google-protobuf"; export class ProjectAsset extends jspb.Message { - getId(): number; - setId(value: number): void; + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): void; getUri(): string; setUri(value: string): void; @@ -25,21 +27,23 @@ export class ProjectAsset extends jspb.Message { export namespace ProjectAsset { export type AsObject = { - id: number, + id: Uint8Array | string, uri: string, use: ProjectAssetUseMap[keyof ProjectAssetUseMap], } } export class Project extends jspb.Message { - getId(): number; - setId(value: number): void; + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): void; getTitle(): string; setTitle(value: string): void; - getOwner(): string; - setOwner(value: string): void; + getOwnerId(): string; + setOwnerId(value: string): void; getAccess(): ProjectAccessMap[keyof ProjectAccessMap]; setAccess(value: ProjectAccessMap[keyof ProjectAccessMap]): void; @@ -78,9 +82,9 @@ export class Project extends jspb.Message { export namespace Project { export type AsObject = { - id: number, + id: Uint8Array | string, title: string, - owner: string, + ownerId: string, access: ProjectAccessMap[keyof ProjectAccessMap], status: ProjectStatusMap[keyof ProjectStatusMap], size: number, @@ -95,10 +99,10 @@ export class CreateProjectRequest extends jspb.Message { getTitle(): string; setTitle(value: string): void; - hasOwner(): boolean; - clearOwner(): void; - getOwner(): string; - setOwner(value: string): void; + hasOwnerId(): boolean; + clearOwnerId(): void; + getOwnerId(): string; + setOwnerId(value: string): void; getAccess(): ProjectAccessMap[keyof ProjectAccessMap]; setAccess(value: ProjectAccessMap[keyof ProjectAccessMap]): void; @@ -124,7 +128,7 @@ export class CreateProjectRequest extends jspb.Message { export namespace CreateProjectRequest { export type AsObject = { title: string, - owner: string, + ownerId: string, access: ProjectAccessMap[keyof ProjectAccessMap], status: ProjectStatusMap[keyof ProjectStatusMap], file?: ProjectAsset.AsObject, @@ -132,13 +136,15 @@ export namespace CreateProjectRequest { } export class UpdateProjectRequest extends jspb.Message { - getId(): number; - setId(value: number): void; + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): void; - hasOwner(): boolean; - clearOwner(): void; - getOwner(): string; - setOwner(value: string): void; + hasOwnerId(): boolean; + clearOwnerId(): void; + getOwnerId(): string; + setOwnerId(value: string): void; hasTitle(): boolean; clearTitle(): void; @@ -172,8 +178,8 @@ export class UpdateProjectRequest extends jspb.Message { export namespace UpdateProjectRequest { export type AsObject = { - id: number, - owner: string, + id: Uint8Array | string, + ownerId: string, title: string, access: ProjectAccessMap[keyof ProjectAccessMap], status: ProjectStatusMap[keyof ProjectStatusMap], @@ -182,10 +188,10 @@ export namespace UpdateProjectRequest { } export class ListProjectRequest extends jspb.Message { - hasOwner(): boolean; - clearOwner(): void; - getOwner(): string; - setOwner(value: string): void; + hasOwnerId(): boolean; + clearOwnerId(): void; + getOwnerId(): string; + setOwnerId(value: string): void; serializeBinary(): Uint8Array; toObject(includeInstance?: boolean): ListProjectRequest.AsObject; @@ -199,49 +205,63 @@ export class ListProjectRequest extends jspb.Message { export namespace ListProjectRequest { export type AsObject = { - owner: string, + ownerId: string, } } -export class GetDeleteProjectRequest extends jspb.Message { - getId(): number; - setId(value: number): void; +export class GetProjectRequest extends jspb.Message { + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): void; - hasOwner(): boolean; - clearOwner(): void; - getOwner(): string; - setOwner(value: string): void; + hasOwnerId(): boolean; + clearOwnerId(): void; + getOwnerId(): string; + setOwnerId(value: string): void; serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): GetDeleteProjectRequest.AsObject; - static toObject(includeInstance: boolean, msg: GetDeleteProjectRequest): GetDeleteProjectRequest.AsObject; + toObject(includeInstance?: boolean): GetProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: GetProjectRequest): GetProjectRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: GetDeleteProjectRequest, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): GetDeleteProjectRequest; - static deserializeBinaryFromReader(message: GetDeleteProjectRequest, reader: jspb.BinaryReader): GetDeleteProjectRequest; + static serializeBinaryToWriter(message: GetProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): GetProjectRequest; + static deserializeBinaryFromReader(message: GetProjectRequest, reader: jspb.BinaryReader): GetProjectRequest; } -export namespace GetDeleteProjectRequest { +export namespace GetProjectRequest { export type AsObject = { - id: number, - owner: string, + id: Uint8Array | string, + ownerId: string, } } -export class ProjectEmpty extends jspb.Message { +export class DeleteProjectRequest extends jspb.Message { + getId(): Uint8Array | string; + getId_asU8(): Uint8Array; + getId_asB64(): string; + setId(value: Uint8Array | string): void; + + hasOwnerId(): boolean; + clearOwnerId(): void; + getOwnerId(): string; + setOwnerId(value: string): void; + serializeBinary(): Uint8Array; - toObject(includeInstance?: boolean): ProjectEmpty.AsObject; - static toObject(includeInstance: boolean, msg: ProjectEmpty): ProjectEmpty.AsObject; + toObject(includeInstance?: boolean): DeleteProjectRequest.AsObject; + static toObject(includeInstance: boolean, msg: DeleteProjectRequest): DeleteProjectRequest.AsObject; static extensions: {[key: number]: jspb.ExtensionFieldInfo}; static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo}; - static serializeBinaryToWriter(message: ProjectEmpty, writer: jspb.BinaryWriter): void; - static deserializeBinary(bytes: Uint8Array): ProjectEmpty; - static deserializeBinaryFromReader(message: ProjectEmpty, reader: jspb.BinaryReader): ProjectEmpty; + static serializeBinaryToWriter(message: DeleteProjectRequest, writer: jspb.BinaryWriter): void; + static deserializeBinary(bytes: Uint8Array): DeleteProjectRequest; + static deserializeBinaryFromReader(message: DeleteProjectRequest, reader: jspb.BinaryReader): DeleteProjectRequest; } -export namespace ProjectEmpty { +export namespace DeleteProjectRequest { export type AsObject = { + id: Uint8Array | string, + ownerId: string, } } @@ -255,15 +275,17 @@ export const ProjectAccess: ProjectAccessMap; export interface ProjectStatusMap { PROJECT_STATUS_INACTIVE: 0; PROJECT_STATUS_ACTIVE: 1; + PROJECT_STATUS_DELETED: 2; } export const ProjectStatus: ProjectStatusMap; export interface ProjectAssetUseMap { - PROJECT_ASSET_USE_INPUT: 0; - PROJECT_ASSET_USE_OUTPUT: 1; - PROJECT_ASSET_USE_INTERMEDIATE: 2; - PROJECT_ASSET_USE_PROJECT: 3; + PROJECT_ASSET_USE_UNDEFINED: 0; + PROJECT_ASSET_USE_INPUT: 1; + PROJECT_ASSET_USE_OUTPUT: 2; + PROJECT_ASSET_USE_INTERMEDIATE: 3; + PROJECT_ASSET_USE_PROJECT: 4; } export const ProjectAssetUse: ProjectAssetUseMap; diff --git a/gooseai/project/project_pb.js b/gooseai/project/project_pb.js index 711bd99..731ebaf 100644 --- a/gooseai/project/project_pb.js +++ b/gooseai/project/project_pb.js @@ -16,13 +16,13 @@ var goog = jspb; var global = (function() { return this || window || global || self || Function('return this')(); }).call(null); goog.exportSymbol('proto.gooseai.CreateProjectRequest', null, global); -goog.exportSymbol('proto.gooseai.GetDeleteProjectRequest', null, global); +goog.exportSymbol('proto.gooseai.DeleteProjectRequest', null, global); +goog.exportSymbol('proto.gooseai.GetProjectRequest', null, global); goog.exportSymbol('proto.gooseai.ListProjectRequest', null, global); goog.exportSymbol('proto.gooseai.Project', null, global); goog.exportSymbol('proto.gooseai.ProjectAccess', null, global); goog.exportSymbol('proto.gooseai.ProjectAsset', null, global); goog.exportSymbol('proto.gooseai.ProjectAssetUse', null, global); -goog.exportSymbol('proto.gooseai.ProjectEmpty', null, global); goog.exportSymbol('proto.gooseai.ProjectStatus', null, global); goog.exportSymbol('proto.gooseai.UpdateProjectRequest', null, global); /** @@ -140,16 +140,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.gooseai.GetDeleteProjectRequest = function(opt_data) { +proto.gooseai.GetProjectRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.gooseai.GetDeleteProjectRequest, jspb.Message); +goog.inherits(proto.gooseai.GetProjectRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.gooseai.GetDeleteProjectRequest.displayName = 'proto.gooseai.GetDeleteProjectRequest'; + proto.gooseai.GetProjectRequest.displayName = 'proto.gooseai.GetProjectRequest'; } /** * Generated by JsPbCodeGenerator. @@ -161,16 +161,16 @@ if (goog.DEBUG && !COMPILED) { * @extends {jspb.Message} * @constructor */ -proto.gooseai.ProjectEmpty = function(opt_data) { +proto.gooseai.DeleteProjectRequest = function(opt_data) { jspb.Message.initialize(this, opt_data, 0, -1, null, null); }; -goog.inherits(proto.gooseai.ProjectEmpty, jspb.Message); +goog.inherits(proto.gooseai.DeleteProjectRequest, jspb.Message); if (goog.DEBUG && !COMPILED) { /** * @public * @override */ - proto.gooseai.ProjectEmpty.displayName = 'proto.gooseai.ProjectEmpty'; + proto.gooseai.DeleteProjectRequest.displayName = 'proto.gooseai.DeleteProjectRequest'; } @@ -204,7 +204,7 @@ proto.gooseai.ProjectAsset.prototype.toObject = function(opt_includeInstance) { */ proto.gooseai.ProjectAsset.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), + id: msg.getId_asB64(), uri: jspb.Message.getFieldWithDefault(msg, 2, ""), use: jspb.Message.getFieldWithDefault(msg, 3, 0) }; @@ -244,7 +244,7 @@ proto.gooseai.ProjectAsset.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setId(value); break; case 2: @@ -284,9 +284,9 @@ proto.gooseai.ProjectAsset.prototype.serializeBinary = function() { */ proto.gooseai.ProjectAsset.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -309,20 +309,44 @@ proto.gooseai.ProjectAsset.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 id = 1; - * @return {number} + * optional bytes id = 1; + * @return {!(string|Uint8Array)} */ proto.gooseai.ProjectAsset.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.gooseai.ProjectAsset.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.gooseai.ProjectAsset.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value * @return {!proto.gooseai.ProjectAsset} returns this */ proto.gooseai.ProjectAsset.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -401,9 +425,9 @@ proto.gooseai.Project.prototype.toObject = function(opt_includeInstance) { */ proto.gooseai.Project.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), + id: msg.getId_asB64(), title: jspb.Message.getFieldWithDefault(msg, 2, ""), - owner: jspb.Message.getFieldWithDefault(msg, 3, ""), + ownerId: jspb.Message.getFieldWithDefault(msg, 3, ""), access: jspb.Message.getFieldWithDefault(msg, 4, 0), status: jspb.Message.getFieldWithDefault(msg, 5, 0), size: jspb.Message.getFieldWithDefault(msg, 6, 0), @@ -449,7 +473,7 @@ proto.gooseai.Project.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setId(value); break; case 2: @@ -458,7 +482,7 @@ proto.gooseai.Project.deserializeBinaryFromReader = function(msg, reader) { break; case 3: var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + msg.setOwnerId(value); break; case 4: var value = /** @type {!proto.gooseai.ProjectAccess} */ (reader.readEnum()); @@ -519,9 +543,9 @@ proto.gooseai.Project.prototype.serializeBinary = function() { */ proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -533,7 +557,7 @@ proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getOwner(); + f = message.getOwnerId(); if (f.length > 0) { writer.writeString( 3, @@ -595,20 +619,44 @@ proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { /** - * optional uint64 id = 1; - * @return {number} + * optional bytes id = 1; + * @return {!(string|Uint8Array)} */ proto.gooseai.Project.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.gooseai.Project.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.gooseai.Project.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value * @return {!proto.gooseai.Project} returns this */ proto.gooseai.Project.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; @@ -631,10 +679,10 @@ proto.gooseai.Project.prototype.setTitle = function(value) { /** - * optional string owner = 3; + * optional string owner_id = 3; * @return {string} */ -proto.gooseai.Project.prototype.getOwner = function() { +proto.gooseai.Project.prototype.getOwnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); }; @@ -643,7 +691,7 @@ proto.gooseai.Project.prototype.getOwner = function() { * @param {string} value * @return {!proto.gooseai.Project} returns this */ -proto.gooseai.Project.prototype.setOwner = function(value) { +proto.gooseai.Project.prototype.setOwnerId = function(value) { return jspb.Message.setProto3StringField(this, 3, value); }; @@ -846,7 +894,7 @@ proto.gooseai.CreateProjectRequest.prototype.toObject = function(opt_includeInst proto.gooseai.CreateProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { title: jspb.Message.getFieldWithDefault(msg, 1, ""), - owner: jspb.Message.getFieldWithDefault(msg, 2, ""), + ownerId: jspb.Message.getFieldWithDefault(msg, 2, ""), access: jspb.Message.getFieldWithDefault(msg, 3, 0), status: jspb.Message.getFieldWithDefault(msg, 4, 0), file: (f = msg.getFile()) && proto.gooseai.ProjectAsset.toObject(includeInstance, f) @@ -892,7 +940,7 @@ proto.gooseai.CreateProjectRequest.deserializeBinaryFromReader = function(msg, r break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + msg.setOwnerId(value); break; case 3: var value = /** @type {!proto.gooseai.ProjectAccess} */ (reader.readEnum()); @@ -994,10 +1042,10 @@ proto.gooseai.CreateProjectRequest.prototype.setTitle = function(value) { /** - * optional string owner = 2; + * optional string owner_id = 2; * @return {string} */ -proto.gooseai.CreateProjectRequest.prototype.getOwner = function() { +proto.gooseai.CreateProjectRequest.prototype.getOwnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -1006,7 +1054,7 @@ proto.gooseai.CreateProjectRequest.prototype.getOwner = function() { * @param {string} value * @return {!proto.gooseai.CreateProjectRequest} returns this */ -proto.gooseai.CreateProjectRequest.prototype.setOwner = function(value) { +proto.gooseai.CreateProjectRequest.prototype.setOwnerId = function(value) { return jspb.Message.setField(this, 2, value); }; @@ -1015,7 +1063,7 @@ proto.gooseai.CreateProjectRequest.prototype.setOwner = function(value) { * Clears the field making it undefined. * @return {!proto.gooseai.CreateProjectRequest} returns this */ -proto.gooseai.CreateProjectRequest.prototype.clearOwner = function() { +proto.gooseai.CreateProjectRequest.prototype.clearOwnerId = function() { return jspb.Message.setField(this, 2, undefined); }; @@ -1024,7 +1072,7 @@ proto.gooseai.CreateProjectRequest.prototype.clearOwner = function() { * Returns whether this field is set. * @return {boolean} */ -proto.gooseai.CreateProjectRequest.prototype.hasOwner = function() { +proto.gooseai.CreateProjectRequest.prototype.hasOwnerId = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1134,8 +1182,8 @@ proto.gooseai.UpdateProjectRequest.prototype.toObject = function(opt_includeInst */ proto.gooseai.UpdateProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - owner: jspb.Message.getFieldWithDefault(msg, 2, ""), + id: msg.getId_asB64(), + ownerId: jspb.Message.getFieldWithDefault(msg, 2, ""), title: jspb.Message.getFieldWithDefault(msg, 3, ""), access: jspb.Message.getFieldWithDefault(msg, 4, 0), status: jspb.Message.getFieldWithDefault(msg, 5, 0), @@ -1177,12 +1225,12 @@ proto.gooseai.UpdateProjectRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + msg.setOwnerId(value); break; case 3: var value = /** @type {string} */ (reader.readString()); @@ -1230,9 +1278,9 @@ proto.gooseai.UpdateProjectRequest.prototype.serializeBinary = function() { */ proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -1277,28 +1325,52 @@ proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter = function(message, w /** - * optional uint64 id = 1; - * @return {number} + * optional bytes id = 1; + * @return {!(string|Uint8Array)} */ proto.gooseai.UpdateProjectRequest.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.gooseai.UpdateProjectRequest.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.gooseai.UpdateProjectRequest.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value * @return {!proto.gooseai.UpdateProjectRequest} returns this */ proto.gooseai.UpdateProjectRequest.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * optional string owner = 2; + * optional string owner_id = 2; * @return {string} */ -proto.gooseai.UpdateProjectRequest.prototype.getOwner = function() { +proto.gooseai.UpdateProjectRequest.prototype.getOwnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; @@ -1307,7 +1379,7 @@ proto.gooseai.UpdateProjectRequest.prototype.getOwner = function() { * @param {string} value * @return {!proto.gooseai.UpdateProjectRequest} returns this */ -proto.gooseai.UpdateProjectRequest.prototype.setOwner = function(value) { +proto.gooseai.UpdateProjectRequest.prototype.setOwnerId = function(value) { return jspb.Message.setField(this, 2, value); }; @@ -1316,7 +1388,7 @@ proto.gooseai.UpdateProjectRequest.prototype.setOwner = function(value) { * Clears the field making it undefined. * @return {!proto.gooseai.UpdateProjectRequest} returns this */ -proto.gooseai.UpdateProjectRequest.prototype.clearOwner = function() { +proto.gooseai.UpdateProjectRequest.prototype.clearOwnerId = function() { return jspb.Message.setField(this, 2, undefined); }; @@ -1325,7 +1397,7 @@ proto.gooseai.UpdateProjectRequest.prototype.clearOwner = function() { * Returns whether this field is set. * @return {boolean} */ -proto.gooseai.UpdateProjectRequest.prototype.hasOwner = function() { +proto.gooseai.UpdateProjectRequest.prototype.hasOwnerId = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1507,7 +1579,7 @@ proto.gooseai.ListProjectRequest.prototype.toObject = function(opt_includeInstan */ proto.gooseai.ListProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - owner: jspb.Message.getFieldWithDefault(msg, 1, "") + ownerId: jspb.Message.getFieldWithDefault(msg, 1, "") }; if (includeInstance) { @@ -1546,7 +1618,7 @@ proto.gooseai.ListProjectRequest.deserializeBinaryFromReader = function(msg, rea switch (field) { case 1: var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + msg.setOwnerId(value); break; default: reader.skipField(); @@ -1588,10 +1660,10 @@ proto.gooseai.ListProjectRequest.serializeBinaryToWriter = function(message, wri /** - * optional string owner = 1; + * optional string owner_id = 1; * @return {string} */ -proto.gooseai.ListProjectRequest.prototype.getOwner = function() { +proto.gooseai.ListProjectRequest.prototype.getOwnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; @@ -1600,7 +1672,7 @@ proto.gooseai.ListProjectRequest.prototype.getOwner = function() { * @param {string} value * @return {!proto.gooseai.ListProjectRequest} returns this */ -proto.gooseai.ListProjectRequest.prototype.setOwner = function(value) { +proto.gooseai.ListProjectRequest.prototype.setOwnerId = function(value) { return jspb.Message.setField(this, 1, value); }; @@ -1609,7 +1681,7 @@ proto.gooseai.ListProjectRequest.prototype.setOwner = function(value) { * Clears the field making it undefined. * @return {!proto.gooseai.ListProjectRequest} returns this */ -proto.gooseai.ListProjectRequest.prototype.clearOwner = function() { +proto.gooseai.ListProjectRequest.prototype.clearOwnerId = function() { return jspb.Message.setField(this, 1, undefined); }; @@ -1618,7 +1690,7 @@ proto.gooseai.ListProjectRequest.prototype.clearOwner = function() { * Returns whether this field is set. * @return {boolean} */ -proto.gooseai.ListProjectRequest.prototype.hasOwner = function() { +proto.gooseai.ListProjectRequest.prototype.hasOwnerId = function() { return jspb.Message.getField(this, 1) != null; }; @@ -1639,8 +1711,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.gooseai.GetDeleteProjectRequest.prototype.toObject = function(opt_includeInstance) { - return proto.gooseai.GetDeleteProjectRequest.toObject(opt_includeInstance, this); +proto.gooseai.GetProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.GetProjectRequest.toObject(opt_includeInstance, this); }; @@ -1649,14 +1721,14 @@ proto.gooseai.GetDeleteProjectRequest.prototype.toObject = function(opt_includeI * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.gooseai.GetDeleteProjectRequest} msg The msg instance to transform. + * @param {!proto.gooseai.GetProjectRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.gooseai.GetDeleteProjectRequest.toObject = function(includeInstance, msg) { +proto.gooseai.GetProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - owner: jspb.Message.getFieldWithDefault(msg, 2, "") + id: msg.getId_asB64(), + ownerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -1670,23 +1742,23 @@ proto.gooseai.GetDeleteProjectRequest.toObject = function(includeInstance, msg) /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gooseai.GetDeleteProjectRequest} + * @return {!proto.gooseai.GetProjectRequest} */ -proto.gooseai.GetDeleteProjectRequest.deserializeBinary = function(bytes) { +proto.gooseai.GetProjectRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gooseai.GetDeleteProjectRequest; - return proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader(msg, reader); + var msg = new proto.gooseai.GetProjectRequest; + return proto.gooseai.GetProjectRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.gooseai.GetDeleteProjectRequest} msg The message object to deserialize into. + * @param {!proto.gooseai.GetProjectRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gooseai.GetDeleteProjectRequest} + * @return {!proto.gooseai.GetProjectRequest} */ -proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader = function(msg, reader) { +proto.gooseai.GetProjectRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; @@ -1694,12 +1766,12 @@ proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader = function(msg var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {number} */ (reader.readUint64()); + var value = /** @type {!Uint8Array} */ (reader.readBytes()); msg.setId(value); break; case 2: var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); + msg.setOwnerId(value); break; default: reader.skipField(); @@ -1714,9 +1786,9 @@ proto.gooseai.GetDeleteProjectRequest.deserializeBinaryFromReader = function(msg * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.gooseai.GetDeleteProjectRequest.prototype.serializeBinary = function() { +proto.gooseai.GetProjectRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.gooseai.GetDeleteProjectRequest.serializeBinaryToWriter(this, writer); + proto.gooseai.GetProjectRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1724,15 +1796,15 @@ proto.gooseai.GetDeleteProjectRequest.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.gooseai.GetDeleteProjectRequest} message + * @param {!proto.gooseai.GetProjectRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.gooseai.GetDeleteProjectRequest.serializeBinaryToWriter = function(message, writer) { +proto.gooseai.GetProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint64( + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( 1, f ); @@ -1748,46 +1820,70 @@ proto.gooseai.GetDeleteProjectRequest.serializeBinaryToWriter = function(message /** - * optional uint64 id = 1; - * @return {number} + * optional bytes id = 1; + * @return {!(string|Uint8Array)} */ -proto.gooseai.GetDeleteProjectRequest.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); +proto.gooseai.GetProjectRequest.prototype.getId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {number} value - * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.gooseai.GetProjectRequest.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.gooseai.GetProjectRequest.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gooseai.GetProjectRequest} returns this */ -proto.gooseai.GetDeleteProjectRequest.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); +proto.gooseai.GetProjectRequest.prototype.setId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); }; /** - * optional string owner = 2; + * optional string owner_id = 2; * @return {string} */ -proto.gooseai.GetDeleteProjectRequest.prototype.getOwner = function() { +proto.gooseai.GetProjectRequest.prototype.getOwnerId = function() { return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** * @param {string} value - * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + * @return {!proto.gooseai.GetProjectRequest} returns this */ -proto.gooseai.GetDeleteProjectRequest.prototype.setOwner = function(value) { +proto.gooseai.GetProjectRequest.prototype.setOwnerId = function(value) { return jspb.Message.setField(this, 2, value); }; /** * Clears the field making it undefined. - * @return {!proto.gooseai.GetDeleteProjectRequest} returns this + * @return {!proto.gooseai.GetProjectRequest} returns this */ -proto.gooseai.GetDeleteProjectRequest.prototype.clearOwner = function() { +proto.gooseai.GetProjectRequest.prototype.clearOwnerId = function() { return jspb.Message.setField(this, 2, undefined); }; @@ -1796,7 +1892,7 @@ proto.gooseai.GetDeleteProjectRequest.prototype.clearOwner = function() { * Returns whether this field is set. * @return {boolean} */ -proto.gooseai.GetDeleteProjectRequest.prototype.hasOwner = function() { +proto.gooseai.GetProjectRequest.prototype.hasOwnerId = function() { return jspb.Message.getField(this, 2) != null; }; @@ -1817,8 +1913,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) { * http://goto/soy-param-migration * @return {!Object} */ -proto.gooseai.ProjectEmpty.prototype.toObject = function(opt_includeInstance) { - return proto.gooseai.ProjectEmpty.toObject(opt_includeInstance, this); +proto.gooseai.DeleteProjectRequest.prototype.toObject = function(opt_includeInstance) { + return proto.gooseai.DeleteProjectRequest.toObject(opt_includeInstance, this); }; @@ -1827,13 +1923,14 @@ proto.gooseai.ProjectEmpty.prototype.toObject = function(opt_includeInstance) { * @param {boolean|undefined} includeInstance Deprecated. Whether to include * the JSPB instance for transitional soy proto support: * http://goto/soy-param-migration - * @param {!proto.gooseai.ProjectEmpty} msg The msg instance to transform. + * @param {!proto.gooseai.DeleteProjectRequest} msg The msg instance to transform. * @return {!Object} * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.gooseai.ProjectEmpty.toObject = function(includeInstance, msg) { +proto.gooseai.DeleteProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - + id: msg.getId_asB64(), + ownerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; if (includeInstance) { @@ -1847,29 +1944,37 @@ proto.gooseai.ProjectEmpty.toObject = function(includeInstance, msg) { /** * Deserializes binary data (in protobuf wire format). * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.gooseai.ProjectEmpty} + * @return {!proto.gooseai.DeleteProjectRequest} */ -proto.gooseai.ProjectEmpty.deserializeBinary = function(bytes) { +proto.gooseai.DeleteProjectRequest.deserializeBinary = function(bytes) { var reader = new jspb.BinaryReader(bytes); - var msg = new proto.gooseai.ProjectEmpty; - return proto.gooseai.ProjectEmpty.deserializeBinaryFromReader(msg, reader); + var msg = new proto.gooseai.DeleteProjectRequest; + return proto.gooseai.DeleteProjectRequest.deserializeBinaryFromReader(msg, reader); }; /** * Deserializes binary data (in protobuf wire format) from the * given reader into the given message object. - * @param {!proto.gooseai.ProjectEmpty} msg The message object to deserialize into. + * @param {!proto.gooseai.DeleteProjectRequest} msg The message object to deserialize into. * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.gooseai.ProjectEmpty} + * @return {!proto.gooseai.DeleteProjectRequest} */ -proto.gooseai.ProjectEmpty.deserializeBinaryFromReader = function(msg, reader) { +proto.gooseai.DeleteProjectRequest.deserializeBinaryFromReader = function(msg, reader) { while (reader.nextField()) { if (reader.isEndGroup()) { break; } var field = reader.getFieldNumber(); switch (field) { + case 1: + var value = /** @type {!Uint8Array} */ (reader.readBytes()); + msg.setId(value); + break; + case 2: + var value = /** @type {string} */ (reader.readString()); + msg.setOwnerId(value); + break; default: reader.skipField(); break; @@ -1883,9 +1988,9 @@ proto.gooseai.ProjectEmpty.deserializeBinaryFromReader = function(msg, reader) { * Serializes the message to binary data (in protobuf wire format). * @return {!Uint8Array} */ -proto.gooseai.ProjectEmpty.prototype.serializeBinary = function() { +proto.gooseai.DeleteProjectRequest.prototype.serializeBinary = function() { var writer = new jspb.BinaryWriter(); - proto.gooseai.ProjectEmpty.serializeBinaryToWriter(this, writer); + proto.gooseai.DeleteProjectRequest.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); }; @@ -1893,12 +1998,104 @@ proto.gooseai.ProjectEmpty.prototype.serializeBinary = function() { /** * Serializes the given message to binary data (in protobuf wire * format), writing to the given BinaryWriter. - * @param {!proto.gooseai.ProjectEmpty} message + * @param {!proto.gooseai.DeleteProjectRequest} message * @param {!jspb.BinaryWriter} writer * @suppress {unusedLocalVariables} f is only used for nested messages */ -proto.gooseai.ProjectEmpty.serializeBinaryToWriter = function(message, writer) { +proto.gooseai.DeleteProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; + f = message.getId_asU8(); + if (f.length > 0) { + writer.writeBytes( + 1, + f + ); + } + f = /** @type {string} */ (jspb.Message.getField(message, 2)); + if (f != null) { + writer.writeString( + 2, + f + ); + } +}; + + +/** + * optional bytes id = 1; + * @return {!(string|Uint8Array)} + */ +proto.gooseai.DeleteProjectRequest.prototype.getId = function() { + return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); +}; + + +/** + * optional bytes id = 1; + * This is a type-conversion wrapper around `getId()` + * @return {string} + */ +proto.gooseai.DeleteProjectRequest.prototype.getId_asB64 = function() { + return /** @type {string} */ (jspb.Message.bytesAsB64( + this.getId())); +}; + + +/** + * optional bytes id = 1; + * Note that Uint8Array is not supported on all browsers. + * @see http://caniuse.com/Uint8Array + * This is a type-conversion wrapper around `getId()` + * @return {!Uint8Array} + */ +proto.gooseai.DeleteProjectRequest.prototype.getId_asU8 = function() { + return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( + this.getId())); +}; + + +/** + * @param {!(string|Uint8Array)} value + * @return {!proto.gooseai.DeleteProjectRequest} returns this + */ +proto.gooseai.DeleteProjectRequest.prototype.setId = function(value) { + return jspb.Message.setProto3BytesField(this, 1, value); +}; + + +/** + * optional string owner_id = 2; + * @return {string} + */ +proto.gooseai.DeleteProjectRequest.prototype.getOwnerId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); +}; + + +/** + * @param {string} value + * @return {!proto.gooseai.DeleteProjectRequest} returns this + */ +proto.gooseai.DeleteProjectRequest.prototype.setOwnerId = function(value) { + return jspb.Message.setField(this, 2, value); +}; + + +/** + * Clears the field making it undefined. + * @return {!proto.gooseai.DeleteProjectRequest} returns this + */ +proto.gooseai.DeleteProjectRequest.prototype.clearOwnerId = function() { + return jspb.Message.setField(this, 2, undefined); +}; + + +/** + * Returns whether this field is set. + * @return {boolean} + */ +proto.gooseai.DeleteProjectRequest.prototype.hasOwnerId = function() { + return jspb.Message.getField(this, 2) != null; }; @@ -1915,17 +2112,19 @@ proto.gooseai.ProjectAccess = { */ proto.gooseai.ProjectStatus = { PROJECT_STATUS_INACTIVE: 0, - PROJECT_STATUS_ACTIVE: 1 + PROJECT_STATUS_ACTIVE: 1, + PROJECT_STATUS_DELETED: 2 }; /** * @enum {number} */ proto.gooseai.ProjectAssetUse = { - PROJECT_ASSET_USE_INPUT: 0, - PROJECT_ASSET_USE_OUTPUT: 1, - PROJECT_ASSET_USE_INTERMEDIATE: 2, - PROJECT_ASSET_USE_PROJECT: 3 + PROJECT_ASSET_USE_UNDEFINED: 0, + PROJECT_ASSET_USE_INPUT: 1, + PROJECT_ASSET_USE_OUTPUT: 2, + PROJECT_ASSET_USE_INTERMEDIATE: 3, + PROJECT_ASSET_USE_PROJECT: 4 }; goog.object.extend(exports, proto.gooseai); diff --git a/gooseai/project/project_pb2.py b/gooseai/project/project_pb2.py index 56acda0..3fa342e 100644 --- a/gooseai/project/project_pb2.py +++ b/gooseai/project/project_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x85\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\x04\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05owner\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xc6\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x08\n\x06_ownerB\x07\n\x05_file\"\x81\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x08\n\x06_ownerB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"2\n\x12ListProjectRequest\x12\x12\n\x05owner\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_owner\"C\n\x17GetDeleteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x04\x12\x12\n\x05owner\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_owner\"\x0e\n\x0cProjectEmpty*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*G\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01*\x8f\x01\n\x0fProjectAssetUse\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x00\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x01\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x02\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x03\x32\xc7\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12;\n\x03Get\x12 .gooseai.GetDeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x43\n\x06\x44\x65lete\x12 .gooseai.GetDeleteProjectRequest\x1a\x15.gooseai.ProjectEmpty\"\x00\x42\x0cZ\n./;projectb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x88\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xcc\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x87\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"8\n\x12ListProjectRequest\x12\x15\n\x08owner_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"C\n\x11GetProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"F\n\x14\x44\x65leteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04\x32\xb9\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12\x35\n\x03Get\x12\x1a.gooseai.GetProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06\x44\x65lete\x12\x1d.gooseai.DeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x42\x0cZ\n./;projectb\x06proto3') _PROJECTACCESS = DESCRIPTOR.enum_types_by_name['ProjectAccess'] ProjectAccess = enum_type_wrapper.EnumTypeWrapper(_PROJECTACCESS) @@ -27,10 +27,12 @@ PROJECT_ACCESS_PUBLIC = 1 PROJECT_STATUS_INACTIVE = 0 PROJECT_STATUS_ACTIVE = 1 -PROJECT_ASSET_USE_INPUT = 0 -PROJECT_ASSET_USE_OUTPUT = 1 -PROJECT_ASSET_USE_INTERMEDIATE = 2 -PROJECT_ASSET_USE_PROJECT = 3 +PROJECT_STATUS_DELETED = 2 +PROJECT_ASSET_USE_UNDEFINED = 0 +PROJECT_ASSET_USE_INPUT = 1 +PROJECT_ASSET_USE_OUTPUT = 2 +PROJECT_ASSET_USE_INTERMEDIATE = 3 +PROJECT_ASSET_USE_PROJECT = 4 _PROJECTASSET = DESCRIPTOR.message_types_by_name['ProjectAsset'] @@ -38,8 +40,8 @@ _CREATEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['CreateProjectRequest'] _UPDATEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['UpdateProjectRequest'] _LISTPROJECTREQUEST = DESCRIPTOR.message_types_by_name['ListProjectRequest'] -_GETDELETEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['GetDeleteProjectRequest'] -_PROJECTEMPTY = DESCRIPTOR.message_types_by_name['ProjectEmpty'] +_GETPROJECTREQUEST = DESCRIPTOR.message_types_by_name['GetProjectRequest'] +_DELETEPROJECTREQUEST = DESCRIPTOR.message_types_by_name['DeleteProjectRequest'] ProjectAsset = _reflection.GeneratedProtocolMessageType('ProjectAsset', (_message.Message,), { 'DESCRIPTOR' : _PROJECTASSET, '__module__' : 'project_pb2' @@ -75,45 +77,45 @@ }) _sym_db.RegisterMessage(ListProjectRequest) -GetDeleteProjectRequest = _reflection.GeneratedProtocolMessageType('GetDeleteProjectRequest', (_message.Message,), { - 'DESCRIPTOR' : _GETDELETEPROJECTREQUEST, +GetProjectRequest = _reflection.GeneratedProtocolMessageType('GetProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _GETPROJECTREQUEST, '__module__' : 'project_pb2' - # @@protoc_insertion_point(class_scope:gooseai.GetDeleteProjectRequest) + # @@protoc_insertion_point(class_scope:gooseai.GetProjectRequest) }) -_sym_db.RegisterMessage(GetDeleteProjectRequest) +_sym_db.RegisterMessage(GetProjectRequest) -ProjectEmpty = _reflection.GeneratedProtocolMessageType('ProjectEmpty', (_message.Message,), { - 'DESCRIPTOR' : _PROJECTEMPTY, +DeleteProjectRequest = _reflection.GeneratedProtocolMessageType('DeleteProjectRequest', (_message.Message,), { + 'DESCRIPTOR' : _DELETEPROJECTREQUEST, '__module__' : 'project_pb2' - # @@protoc_insertion_point(class_scope:gooseai.ProjectEmpty) + # @@protoc_insertion_point(class_scope:gooseai.DeleteProjectRequest) }) -_sym_db.RegisterMessage(ProjectEmpty) +_sym_db.RegisterMessage(DeleteProjectRequest) _PROJECTSERVICE = DESCRIPTOR.services_by_name['ProjectService'] if _descriptor._USE_C_DESCRIPTORS == False: DESCRIPTOR._options = None DESCRIPTOR._serialized_options = b'Z\n./;project' - _PROJECTACCESS._serialized_start=968 - _PROJECTACCESS._serialized_end=1038 - _PROJECTSTATUS._serialized_start=1040 - _PROJECTSTATUS._serialized_end=1111 - _PROJECTASSETUSE._serialized_start=1114 - _PROJECTASSETUSE._serialized_end=1257 + _PROJECTACCESS._serialized_start=1045 + _PROJECTACCESS._serialized_end=1115 + _PROJECTSTATUS._serialized_start=1117 + _PROJECTSTATUS._serialized_end=1216 + _PROJECTASSETUSE._serialized_start=1219 + _PROJECTASSETUSE._serialized_end=1395 _PROJECTASSET._serialized_start=26 _PROJECTASSET._serialized_end=104 _PROJECT._serialized_start=107 - _PROJECT._serialized_end=368 - _CREATEPROJECTREQUEST._serialized_start=371 - _CREATEPROJECTREQUEST._serialized_end=569 - _UPDATEPROJECTREQUEST._serialized_start=572 - _UPDATEPROJECTREQUEST._serialized_end=829 - _LISTPROJECTREQUEST._serialized_start=831 - _LISTPROJECTREQUEST._serialized_end=881 - _GETDELETEPROJECTREQUEST._serialized_start=883 - _GETDELETEPROJECTREQUEST._serialized_end=950 - _PROJECTEMPTY._serialized_start=952 - _PROJECTEMPTY._serialized_end=966 - _PROJECTSERVICE._serialized_start=1260 - _PROJECTSERVICE._serialized_end=1587 + _PROJECT._serialized_end=371 + _CREATEPROJECTREQUEST._serialized_start=374 + _CREATEPROJECTREQUEST._serialized_end=578 + _UPDATEPROJECTREQUEST._serialized_start=581 + _UPDATEPROJECTREQUEST._serialized_end=844 + _LISTPROJECTREQUEST._serialized_start=846 + _LISTPROJECTREQUEST._serialized_end=902 + _GETPROJECTREQUEST._serialized_start=904 + _GETPROJECTREQUEST._serialized_end=971 + _DELETEPROJECTREQUEST._serialized_start=973 + _DELETEPROJECTREQUEST._serialized_end=1043 + _PROJECTSERVICE._serialized_start=1398 + _PROJECTSERVICE._serialized_end=1711 # @@protoc_insertion_point(module_scope) diff --git a/gooseai/project/project_pb2_grpc.py b/gooseai/project/project_pb2_grpc.py index 87db3f7..5b93339 100644 --- a/gooseai/project/project_pb2_grpc.py +++ b/gooseai/project/project_pb2_grpc.py @@ -34,13 +34,13 @@ def __init__(self, channel): ) self.Get = channel.unary_unary( '/gooseai.ProjectService/Get', - request_serializer=project__pb2.GetDeleteProjectRequest.SerializeToString, + request_serializer=project__pb2.GetProjectRequest.SerializeToString, response_deserializer=project__pb2.Project.FromString, ) self.Delete = channel.unary_unary( '/gooseai.ProjectService/Delete', - request_serializer=project__pb2.GetDeleteProjectRequest.SerializeToString, - response_deserializer=project__pb2.ProjectEmpty.FromString, + request_serializer=project__pb2.DeleteProjectRequest.SerializeToString, + response_deserializer=project__pb2.Project.FromString, ) @@ -105,13 +105,13 @@ def add_ProjectServiceServicer_to_server(servicer, server): ), 'Get': grpc.unary_unary_rpc_method_handler( servicer.Get, - request_deserializer=project__pb2.GetDeleteProjectRequest.FromString, + request_deserializer=project__pb2.GetProjectRequest.FromString, response_serializer=project__pb2.Project.SerializeToString, ), 'Delete': grpc.unary_unary_rpc_method_handler( servicer.Delete, - request_deserializer=project__pb2.GetDeleteProjectRequest.FromString, - response_serializer=project__pb2.ProjectEmpty.SerializeToString, + request_deserializer=project__pb2.DeleteProjectRequest.FromString, + response_serializer=project__pb2.Project.SerializeToString, ), } generic_handler = grpc.method_handlers_generic_handler( @@ -189,7 +189,7 @@ def Get(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Get', - project__pb2.GetDeleteProjectRequest.SerializeToString, + project__pb2.GetProjectRequest.SerializeToString, project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) @@ -206,7 +206,7 @@ def Delete(request, timeout=None, metadata=None): return grpc.experimental.unary_unary(request, target, '/gooseai.ProjectService/Delete', - project__pb2.GetDeleteProjectRequest.SerializeToString, - project__pb2.ProjectEmpty.FromString, + project__pb2.DeleteProjectRequest.SerializeToString, + project__pb2.Project.FromString, options, channel_credentials, insecure, call_credentials, compression, wait_for_ready, timeout, metadata) diff --git a/gooseai/project/project_pb_service.d.ts b/gooseai/project/project_pb_service.d.ts index bc085b0..1ab89a3 100644 --- a/gooseai/project/project_pb_service.d.ts +++ b/gooseai/project/project_pb_service.d.ts @@ -36,7 +36,7 @@ type ProjectServiceGet = { readonly service: typeof ProjectService; readonly requestStream: false; readonly responseStream: false; - readonly requestType: typeof project_pb.GetDeleteProjectRequest; + readonly requestType: typeof project_pb.GetProjectRequest; readonly responseType: typeof project_pb.Project; }; @@ -45,8 +45,8 @@ type ProjectServiceDelete = { readonly service: typeof ProjectService; readonly requestStream: false; readonly responseStream: false; - readonly requestType: typeof project_pb.GetDeleteProjectRequest; - readonly responseType: typeof project_pb.ProjectEmpty; + readonly requestType: typeof project_pb.DeleteProjectRequest; + readonly responseType: typeof project_pb.Project; }; export class ProjectService { @@ -110,22 +110,22 @@ export class ProjectServiceClient { ): UnaryResponse; list(requestMessage: project_pb.ListProjectRequest, metadata?: grpc.Metadata): ResponseStream; get( - requestMessage: project_pb.GetDeleteProjectRequest, + requestMessage: project_pb.GetProjectRequest, metadata: grpc.Metadata, callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void ): UnaryResponse; get( - requestMessage: project_pb.GetDeleteProjectRequest, + requestMessage: project_pb.GetProjectRequest, callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void ): UnaryResponse; delete( - requestMessage: project_pb.GetDeleteProjectRequest, + requestMessage: project_pb.DeleteProjectRequest, metadata: grpc.Metadata, - callback: (error: ServiceError|null, responseMessage: project_pb.ProjectEmpty|null) => void + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void ): UnaryResponse; delete( - requestMessage: project_pb.GetDeleteProjectRequest, - callback: (error: ServiceError|null, responseMessage: project_pb.ProjectEmpty|null) => void + requestMessage: project_pb.DeleteProjectRequest, + callback: (error: ServiceError|null, responseMessage: project_pb.Project|null) => void ): UnaryResponse; } diff --git a/gooseai/project/project_pb_service.js b/gooseai/project/project_pb_service.js index eec6e49..19452c4 100644 --- a/gooseai/project/project_pb_service.js +++ b/gooseai/project/project_pb_service.js @@ -42,7 +42,7 @@ ProjectService.Get = { service: ProjectService, requestStream: false, responseStream: false, - requestType: project_pb.GetDeleteProjectRequest, + requestType: project_pb.GetProjectRequest, responseType: project_pb.Project }; @@ -51,8 +51,8 @@ ProjectService.Delete = { service: ProjectService, requestStream: false, responseStream: false, - requestType: project_pb.GetDeleteProjectRequest, - responseType: project_pb.ProjectEmpty + requestType: project_pb.DeleteProjectRequest, + responseType: project_pb.Project }; exports.ProjectService = ProjectService; diff --git a/src/proto/generation.proto b/src/proto/generation.proto index 6bb00a6..d4601b0 100644 --- a/src/proto/generation.proto +++ b/src/proto/generation.proto @@ -49,6 +49,8 @@ message Artifact { uint32 index = 8; // Index of this artifact in input/output list FinishReason finish_reason = 9; // Reason for finishing, if applicable uint32 seed = 10; // Seed used to generate this artifact + bytes uuid = 12; // UUIDv4 of the artifact, used for asset lookup + uint64 size = 13; // Size of the artifact in bytes } // A set of parameters for each individual Prompt. @@ -250,9 +252,20 @@ enum AssetAction { ASSET_DELETE = 2; } +// AssetUse defines how the asset is used within a project. This enum matches +// the values the project proto. +enum AssetUse { + ASSET_USE_UNDEFINED = 0; // Asset does not have use defined + ASSET_USE_INPUT = 1; // Asset is used as an input for the project + ASSET_USE_OUTPUT = 2; // Asset is an output from the project + ASSET_USE_INTERMEDIATE = 3; // Asset is an output from an intermediate step of the project + ASSET_USE_PROJECT = 4; // Asset is used as the project file for the project +} + message AssetParameters { AssetAction action = 1; - uint64 project = 2; + bytes project_id = 2; + AssetUse use = 3; } // AnswerMeta is a set of metadata about an answer, usually the operating diff --git a/src/proto/project.proto b/src/proto/project.proto index 0fe5d14..f8d0bae 100644 --- a/src/proto/project.proto +++ b/src/proto/project.proto @@ -10,25 +10,27 @@ enum ProjectAccess { enum ProjectStatus { PROJECT_STATUS_INACTIVE = 0; // Inactive project PROJECT_STATUS_ACTIVE = 1; // Active project + PROJECT_STATUS_DELETED = 2; // Deleted project, only set by delete endpoint } enum ProjectAssetUse { - PROJECT_ASSET_USE_INPUT = 0; // Asset is used as an input for the project - PROJECT_ASSET_USE_OUTPUT = 1; // Asset is an output from the project - PROJECT_ASSET_USE_INTERMEDIATE = 2; // Asset is an output from an intermediate step of the project - PROJECT_ASSET_USE_PROJECT = 3; // Asset is used as the project file for the project + PROJECT_ASSET_USE_UNDEFINED = 0; // Asset does not have use defined + PROJECT_ASSET_USE_INPUT = 1; // Asset is used as an input for the project + PROJECT_ASSET_USE_OUTPUT = 2; // Asset is an output from the project + PROJECT_ASSET_USE_INTERMEDIATE = 3; // Asset is an output from an intermediate step of the project + PROJECT_ASSET_USE_PROJECT = 4; // Asset is used as the project file for the project } message ProjectAsset { - uint64 id = 1; // ID of the asset + bytes id = 1; // ID of the asset, UUIDv4 string URI = 2; // The URI to the asset ProjectAssetUse use = 3; // The use of the asset with respect to the project } message Project { - uint64 id = 1; // ID of the project + bytes id = 1; // ID of the project, UUIDv4 string title = 2; // Title of the project - string owner = 3; // The ID of the organization owning the project + string owner_id = 3; // The ID of the organization owning the project ProjectAccess access = 4; // The access of the project (such as public vs private) ProjectStatus status = 5; // The status of the project (such as active vs inactive) uint64 size = 6; // The size of the project in bytes @@ -40,15 +42,15 @@ message Project { message CreateProjectRequest { string title = 1; // title of the project - optional string owner = 2; // The ID of the organization owning the project, empty for default org for user + optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user ProjectAccess access = 3; // The access of the project (such as public vs private) ProjectStatus status = 4; // The status of the project (such as active vs inactive) optional ProjectAsset file = 5; // Project file for the project (if existing, else will create) } message UpdateProjectRequest { - uint64 id = 1; // ID of the project - optional string owner = 2; // The ID of the organization owning the project, empty for default org for user + bytes id = 1; // ID of the project, UUIDv4 + optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user optional string title = 3; // Title of the project optional ProjectAccess access = 4; // The access of the project (such as public vs private) optional ProjectStatus status = 5; // The status of the project (such as active vs inactive) @@ -56,16 +58,17 @@ message UpdateProjectRequest { } message ListProjectRequest { - optional string owner = 1; // The ID of the organization owning the project, empty for default org for user + optional string owner_id = 1; // The ID of the organization owning the project, empty for default org for user } -message GetDeleteProjectRequest { - uint64 id = 1; // ID of the project to request - optional string owner = 2; // The ID of the organization owning the project, empty for default org for user +message GetProjectRequest { + bytes id = 1; // ID of the project to request, UUIDv4 + optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user } -// Message for empty requests / response where no additional data is needed -message ProjectEmpty { +message DeleteProjectRequest { + bytes id = 1; // ID of the project to request, UUIDv4 + optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user } // @@ -79,7 +82,7 @@ service ProjectService { // List all the projects for an organization rpc List (ListProjectRequest) returns (stream Project) {}; // Get a project - rpc Get (GetDeleteProjectRequest) returns (Project) {}; + rpc Get (GetProjectRequest) returns (Project) {}; // Delete a project - rpc Delete (GetDeleteProjectRequest) returns (ProjectEmpty) {}; + rpc Delete (DeleteProjectRequest) returns (Project) {}; } From 38d63399817c46fd53b58e8c4d5c866f69373928 Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Thu, 20 Oct 2022 17:06:55 +0000 Subject: [PATCH 3/4] feat: Update project & asset ids to string --- gooseai/generation/generation.pb.go | 16 +- gooseai/generation/generation_pb.d.ts | 16 +- gooseai/generation/generation_pb.js | 84 +++-------- gooseai/generation/generation_pb2.py | 2 +- gooseai/project/project.pb.go | 40 ++--- gooseai/project/project_pb.d.ts | 40 ++--- gooseai/project/project_pb.js | 210 ++++++-------------------- gooseai/project/project_pb2.py | 2 +- src/proto/generation.proto | 4 +- src/proto/project.proto | 10 +- 10 files changed, 121 insertions(+), 303 deletions(-) diff --git a/gooseai/generation/generation.pb.go b/gooseai/generation/generation.pb.go index b802136..25cb123 100644 --- a/gooseai/generation/generation.pb.go +++ b/gooseai/generation/generation.pb.go @@ -760,7 +760,7 @@ type Artifact struct { Index uint32 `protobuf:"varint,8,opt,name=index,proto3" json:"index,omitempty"` // Index of this artifact in input/output list FinishReason FinishReason `protobuf:"varint,9,opt,name=finish_reason,json=finishReason,proto3,enum=gooseai.FinishReason" json:"finish_reason,omitempty"` // Reason for finishing, if applicable Seed uint32 `protobuf:"varint,10,opt,name=seed,proto3" json:"seed,omitempty"` // Seed used to generate this artifact - Uuid []byte `protobuf:"bytes,12,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUIDv4 of the artifact, used for asset lookup + Uuid string `protobuf:"bytes,12,opt,name=uuid,proto3" json:"uuid,omitempty"` // UUIDv4 of the artifact, used for asset lookup Size uint64 `protobuf:"varint,13,opt,name=size,proto3" json:"size,omitempty"` // Size of the artifact in bytes } @@ -880,11 +880,11 @@ func (x *Artifact) GetSeed() uint32 { return 0 } -func (x *Artifact) GetUuid() []byte { +func (x *Artifact) GetUuid() string { if x != nil { return x.Uuid } - return nil + return "" } func (x *Artifact) GetSize() uint64 { @@ -2101,7 +2101,7 @@ type AssetParameters struct { unknownFields protoimpl.UnknownFields Action AssetAction `protobuf:"varint,1,opt,name=action,proto3,enum=gooseai.AssetAction" json:"action,omitempty"` - ProjectId []byte `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` + ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"` Use AssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.AssetUse" json:"use,omitempty"` } @@ -2144,11 +2144,11 @@ func (x *AssetParameters) GetAction() AssetAction { return AssetAction_ASSET_PUT } -func (x *AssetParameters) GetProjectId() []byte { +func (x *AssetParameters) GetProjectId() string { if x != nil { return x.ProjectId } - return nil + return "" } func (x *AssetParameters) GetUse() AssetUse { @@ -2677,7 +2677,7 @@ var file_generation_proto_rawDesc = []byte{ 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x52, 0x0c, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x65, 0x65, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x73, 0x65, 0x65, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, - 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, + 0x69, 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x04, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x42, 0x06, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x6d, 0x61, 0x67, 0x69, 0x63, 0x22, 0x5c, 0x0a, 0x10, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x61, @@ -2891,7 +2891,7 @@ var file_generation_proto_rawDesc = []byte{ 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x49, 0x64, 0x12, 0x23, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xb4, 0x01, 0x0a, 0x0a, 0x41, 0x6e, 0x73, 0x77, 0x65, 0x72, 0x4d, diff --git a/gooseai/generation/generation_pb.d.ts b/gooseai/generation/generation_pb.d.ts index a0977d3..2374c51 100644 --- a/gooseai/generation/generation_pb.d.ts +++ b/gooseai/generation/generation_pb.d.ts @@ -103,10 +103,8 @@ export class Artifact extends jspb.Message { getSeed(): number; setSeed(value: number): void; - getUuid(): Uint8Array | string; - getUuid_asU8(): Uint8Array; - getUuid_asB64(): string; - setUuid(value: Uint8Array | string): void; + getUuid(): string; + setUuid(value: string): void; getSize(): number; setSize(value: number): void; @@ -135,7 +133,7 @@ export namespace Artifact { index: number, finishReason: FinishReasonMap[keyof FinishReasonMap], seed: number, - uuid: Uint8Array | string, + uuid: string, size: number, } @@ -753,10 +751,8 @@ export class AssetParameters extends jspb.Message { getAction(): AssetActionMap[keyof AssetActionMap]; setAction(value: AssetActionMap[keyof AssetActionMap]): void; - getProjectId(): Uint8Array | string; - getProjectId_asU8(): Uint8Array; - getProjectId_asB64(): string; - setProjectId(value: Uint8Array | string): void; + getProjectId(): string; + setProjectId(value: string): void; getUse(): AssetUseMap[keyof AssetUseMap]; setUse(value: AssetUseMap[keyof AssetUseMap]): void; @@ -774,7 +770,7 @@ export class AssetParameters extends jspb.Message { export namespace AssetParameters { export type AsObject = { action: AssetActionMap[keyof AssetActionMap], - projectId: Uint8Array | string, + projectId: string, use: AssetUseMap[keyof AssetUseMap], } } diff --git a/gooseai/generation/generation_pb.js b/gooseai/generation/generation_pb.js index b7e9c83..76711c5 100644 --- a/gooseai/generation/generation_pb.js +++ b/gooseai/generation/generation_pb.js @@ -1059,7 +1059,7 @@ proto.gooseai.Artifact.toObject = function(includeInstance, msg) { index: jspb.Message.getFieldWithDefault(msg, 8, 0), finishReason: jspb.Message.getFieldWithDefault(msg, 9, 0), seed: jspb.Message.getFieldWithDefault(msg, 10, 0), - uuid: msg.getUuid_asB64(), + uuid: jspb.Message.getFieldWithDefault(msg, 12, ""), size: jspb.Message.getFieldWithDefault(msg, 13, 0) }; @@ -1144,7 +1144,7 @@ proto.gooseai.Artifact.deserializeBinaryFromReader = function(msg, reader) { msg.setSeed(value); break; case 12: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setUuid(value); break; case 13: @@ -1259,9 +1259,9 @@ proto.gooseai.Artifact.serializeBinaryToWriter = function(message, writer) { f ); } - f = message.getUuid_asU8(); + f = message.getUuid(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 12, f ); @@ -1591,44 +1591,20 @@ proto.gooseai.Artifact.prototype.setSeed = function(value) { /** - * optional bytes uuid = 12; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.Artifact.prototype.getUuid = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * optional bytes uuid = 12; - * This is a type-conversion wrapper around `getUuid()` + * optional string uuid = 12; * @return {string} */ -proto.gooseai.Artifact.prototype.getUuid_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getUuid())); -}; - - -/** - * optional bytes uuid = 12; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getUuid()` - * @return {!Uint8Array} - */ -proto.gooseai.Artifact.prototype.getUuid_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getUuid())); +proto.gooseai.Artifact.prototype.getUuid = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.Artifact} returns this */ proto.gooseai.Artifact.prototype.setUuid = function(value) { - return jspb.Message.setProto3BytesField(this, 12, value); + return jspb.Message.setProto3StringField(this, 12, value); }; @@ -6067,7 +6043,7 @@ proto.gooseai.AssetParameters.prototype.toObject = function(opt_includeInstance) proto.gooseai.AssetParameters.toObject = function(includeInstance, msg) { var f, obj = { action: jspb.Message.getFieldWithDefault(msg, 1, 0), - projectId: msg.getProjectId_asB64(), + projectId: jspb.Message.getFieldWithDefault(msg, 2, ""), use: jspb.Message.getFieldWithDefault(msg, 3, 0) }; @@ -6110,7 +6086,7 @@ proto.gooseai.AssetParameters.deserializeBinaryFromReader = function(msg, reader msg.setAction(value); break; case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setProjectId(value); break; case 3: @@ -6153,9 +6129,9 @@ proto.gooseai.AssetParameters.serializeBinaryToWriter = function(message, writer f ); } - f = message.getProjectId_asU8(); + f = message.getProjectId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 2, f ); @@ -6189,44 +6165,20 @@ proto.gooseai.AssetParameters.prototype.setAction = function(value) { /** - * optional bytes project_id = 2; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.AssetParameters.prototype.getProjectId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes project_id = 2; - * This is a type-conversion wrapper around `getProjectId()` + * optional string project_id = 2; * @return {string} */ -proto.gooseai.AssetParameters.prototype.getProjectId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getProjectId())); -}; - - -/** - * optional bytes project_id = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getProjectId()` - * @return {!Uint8Array} - */ -proto.gooseai.AssetParameters.prototype.getProjectId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getProjectId())); +proto.gooseai.AssetParameters.prototype.getProjectId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.AssetParameters} returns this */ proto.gooseai.AssetParameters.prototype.setProjectId = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); + return jspb.Message.setProto3StringField(this, 2, value); }; diff --git a/gooseai/generation/generation_pb2.py b/gooseai/generation/generation_pb2.py index 450f51b..f0994eb 100644 --- a/gooseai/generation/generation_pb2.py +++ b/gooseai/generation/generation_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10generation.proto\x12\x07gooseai\"/\n\x05Token\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\rB\x07\n\x05_text\"T\n\x06Tokens\x12\x1e\n\x06tokens\x18\x01 \x03(\x0b\x32\x0e.gooseai.Token\x12\x19\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd0\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x0c\n\x04mime\x18\x03 \x01(\t\x12\x12\n\x05magic\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x06\x62inary\x18\x05 \x01(\x0cH\x00\x12\x0e\n\x04text\x18\x06 \x01(\tH\x00\x12!\n\x06tokens\x18\x07 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12\x33\n\nclassifier\x18\x0b \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12\r\n\x05index\x18\x08 \x01(\r\x12,\n\rfinish_reason\x18\t \x01(\x0e\x32\x15.gooseai.FinishReason\x12\x0c\n\x04seed\x18\n \x01(\r\x12\x0c\n\x04uuid\x18\x0c \x01(\x0c\x12\x0c\n\x04size\x18\r \x01(\x04\x42\x06\n\x04\x64\x61taB\x08\n\x06_magic\"N\n\x10PromptParameters\x12\x11\n\x04init\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06weight\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xaf\x01\n\x06Prompt\x12\x32\n\nparameters\x18\x01 \x01(\x0b\x32\x19.gooseai.PromptParametersH\x01\x88\x01\x01\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12!\n\x06tokens\x18\x03 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12%\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x11.gooseai.ArtifactH\x00\x42\x08\n\x06promptB\r\n\x0b_parameters\"\xef\x01\n\x11SamplerParameters\x12\x10\n\x03\x65ta\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x1b\n\x0esampling_steps\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x1c\n\x0flatent_channels\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12 \n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tcfg_scale\x18\x05 \x01(\x02H\x04\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scale\"\x8b\x01\n\x15\x43onditionerParameters\x12 \n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32\x0e.gooseai.ModelH\x01\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"j\n\x12ScheduleParameters\x12\x12\n\x05start\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x10\n\x03\x65nd\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x12\n\x05value\x18\x03 \x01(\x02H\x02\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xe4\x01\n\rStepParameter\x12\x13\n\x0bscaled_step\x18\x01 \x01(\x02\x12\x30\n\x07sampler\x18\x02 \x01(\x0b\x32\x1a.gooseai.SamplerParametersH\x00\x88\x01\x01\x12\x32\n\x08schedule\x18\x03 \x01(\x0b\x32\x1b.gooseai.ScheduleParametersH\x01\x88\x01\x01\x12\x32\n\x08guidance\x18\x04 \x01(\x0b\x32\x1b.gooseai.GuidanceParametersH\x02\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\x97\x01\n\x05Model\x12\x30\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x1a.gooseai.ModelArchitecture\x12\x11\n\tpublisher\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x02\x12\x18\n\x10semantic_version\x18\x05 \x01(\t\x12\r\n\x05\x61lias\x18\x06 \x01(\t\"\xbc\x01\n\x10\x43utoutParameters\x12*\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x19.gooseai.CutoutParameters\x12\x12\n\x05\x63ount\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04gray\x18\x03 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x62lur\x18\x04 \x01(\x02H\x02\x88\x01\x01\x12\x17\n\nsize_power\x18\x05 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"=\n\x1aGuidanceScheduleParameters\x12\x10\n\x08\x64uration\x18\x01 \x01(\x02\x12\r\n\x05value\x18\x02 \x01(\x02\"\x97\x02\n\x1aGuidanceInstanceParameters\x12\x1e\n\x06models\x18\x02 \x03(\x0b\x32\x0e.gooseai.Model\x12\x1e\n\x11guidance_strength\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12\x35\n\x08schedule\x18\x04 \x03(\x0b\x32#.gooseai.GuidanceScheduleParameters\x12/\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x19.gooseai.CutoutParametersH\x01\x88\x01\x01\x12$\n\x06prompt\x18\x06 \x01(\x0b\x32\x0f.gooseai.PromptH\x02\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"~\n\x12GuidanceParameters\x12\x30\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x17.gooseai.GuidancePreset\x12\x36\n\tinstances\x18\x02 \x03(\x0b\x32#.gooseai.GuidanceInstanceParameters\"n\n\rTransformType\x12.\n\tdiffusion\x18\x01 \x01(\x0e\x32\x19.gooseai.DiffusionSamplerH\x00\x12%\n\x08upscaler\x18\x02 \x01(\x0e\x32\x11.gooseai.UpscalerH\x00\x42\x06\n\x04type\"\x87\x02\n\x0fImageParameters\x12\x13\n\x06height\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x12\n\x05width\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x0c\n\x04seed\x18\x03 \x03(\r\x12\x14\n\x07samples\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05steps\x18\x05 \x01(\x04H\x03\x88\x01\x01\x12.\n\ttransform\x18\x06 \x01(\x0b\x32\x16.gooseai.TransformTypeH\x04\x88\x01\x01\x12*\n\nparameters\x18\x07 \x03(\x0b\x32\x16.gooseai.StepParameterB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transform\"J\n\x11\x43lassifierConcept\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\t\x12\x16\n\tthreshold\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x0c\n\n_threshold\"\xf4\x01\n\x12\x43lassifierCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x1a.gooseai.ClassifierConcept\x12\x17\n\nadjustment\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x0f.gooseai.ActionH\x01\x88\x01\x01\x12\x35\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x17.gooseai.ClassifierModeH\x02\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xb8\x01\n\x14\x43lassifierParameters\x12/\n\ncategories\x18\x01 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12,\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12-\n\x0frealized_action\x18\x03 \x01(\x0e\x32\x0f.gooseai.ActionH\x00\x88\x01\x01\x42\x12\n\x10_realized_action\"k\n\x0f\x41ssetParameters\x12$\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x14.gooseai.AssetAction\x12\x12\n\nproject_id\x18\x02 \x01(\x0c\x12\x1e\n\x03use\x18\x03 \x01(\x0e\x32\x11.gooseai.AssetUse\"\x94\x01\n\nAnswerMeta\x12\x13\n\x06gpu_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x63pu_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07node_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tengine_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa9\x01\n\x06\x41nswer\x12\x11\n\tanswer_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x10\n\x08received\x18\x03 \x01(\x04\x12\x0f\n\x07\x63reated\x18\x04 \x01(\x04\x12&\n\x04meta\x18\x06 \x01(\x0b\x32\x13.gooseai.AnswerMetaH\x00\x88\x01\x01\x12$\n\tartifacts\x18\x07 \x03(\x0b\x32\x11.gooseai.ArtifactB\x07\n\x05_meta\"\xdf\x02\n\x07Request\x12\x11\n\tengine_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12-\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x1f\n\x06prompt\x18\x04 \x03(\x0b\x32\x0f.gooseai.Prompt\x12)\n\x05image\x18\x05 \x01(\x0b\x32\x18.gooseai.ImageParametersH\x00\x12\x33\n\nclassifier\x18\x07 \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12)\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x18.gooseai.AssetParametersH\x00\x12\x38\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32\x1e.gooseai.ConditionerParametersH\x01\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditioner\"w\n\x08OnStatus\x12%\n\x06reason\x18\x01 \x03(\x0e\x32\x15.gooseai.FinishReason\x12\x13\n\x06target\x18\x02 \x01(\tH\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x14.gooseai.StageActionB\t\n\x07_target\"\\\n\x05Stage\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07request\x18\x02 \x01(\x0b\x32\x10.gooseai.Request\x12$\n\ton_status\x18\x03 \x03(\x0b\x32\x11.gooseai.OnStatus\"A\n\x0c\x43hainRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1d\n\x05stage\x18\x02 \x03(\x0b\x32\x0e.gooseai.Stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xba\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07*\xc5\x01\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\x83\x01\n\x11GenerationService\x12\x31\n\x08Generate\x12\x10.gooseai.Request\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x12;\n\rChainGenerate\x12\x15.gooseai.ChainRequest\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x42\x0fZ\r./;generationb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x10generation.proto\x12\x07gooseai\"/\n\x05Token\x12\x11\n\x04text\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\n\n\x02id\x18\x02 \x01(\rB\x07\n\x05_text\"T\n\x06Tokens\x12\x1e\n\x06tokens\x18\x01 \x03(\x0b\x32\x0e.gooseai.Token\x12\x19\n\x0ctokenizer_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_tokenizer_id\"\xd0\x02\n\x08\x41rtifact\x12\n\n\x02id\x18\x01 \x01(\x04\x12#\n\x04type\x18\x02 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x0c\n\x04mime\x18\x03 \x01(\t\x12\x12\n\x05magic\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x06\x62inary\x18\x05 \x01(\x0cH\x00\x12\x0e\n\x04text\x18\x06 \x01(\tH\x00\x12!\n\x06tokens\x18\x07 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12\x33\n\nclassifier\x18\x0b \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12\r\n\x05index\x18\x08 \x01(\r\x12,\n\rfinish_reason\x18\t \x01(\x0e\x32\x15.gooseai.FinishReason\x12\x0c\n\x04seed\x18\n \x01(\r\x12\x0c\n\x04uuid\x18\x0c \x01(\t\x12\x0c\n\x04size\x18\r \x01(\x04\x42\x06\n\x04\x64\x61taB\x08\n\x06_magic\"N\n\x10PromptParameters\x12\x11\n\x04init\x18\x01 \x01(\x08H\x00\x88\x01\x01\x12\x13\n\x06weight\x18\x02 \x01(\x02H\x01\x88\x01\x01\x42\x07\n\x05_initB\t\n\x07_weight\"\xaf\x01\n\x06Prompt\x12\x32\n\nparameters\x18\x01 \x01(\x0b\x32\x19.gooseai.PromptParametersH\x01\x88\x01\x01\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x12!\n\x06tokens\x18\x03 \x01(\x0b\x32\x0f.gooseai.TokensH\x00\x12%\n\x08\x61rtifact\x18\x04 \x01(\x0b\x32\x11.gooseai.ArtifactH\x00\x42\x08\n\x06promptB\r\n\x0b_parameters\"\xef\x01\n\x11SamplerParameters\x12\x10\n\x03\x65ta\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x1b\n\x0esampling_steps\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x1c\n\x0flatent_channels\x18\x03 \x01(\x04H\x02\x88\x01\x01\x12 \n\x13\x64ownsampling_factor\x18\x04 \x01(\x04H\x03\x88\x01\x01\x12\x16\n\tcfg_scale\x18\x05 \x01(\x02H\x04\x88\x01\x01\x42\x06\n\x04_etaB\x11\n\x0f_sampling_stepsB\x12\n\x10_latent_channelsB\x16\n\x14_downsampling_factorB\x0c\n\n_cfg_scale\"\x8b\x01\n\x15\x43onditionerParameters\x12 \n\x13vector_adjust_prior\x18\x01 \x01(\tH\x00\x88\x01\x01\x12(\n\x0b\x63onditioner\x18\x02 \x01(\x0b\x32\x0e.gooseai.ModelH\x01\x88\x01\x01\x42\x16\n\x14_vector_adjust_priorB\x0e\n\x0c_conditioner\"j\n\x12ScheduleParameters\x12\x12\n\x05start\x18\x01 \x01(\x02H\x00\x88\x01\x01\x12\x10\n\x03\x65nd\x18\x02 \x01(\x02H\x01\x88\x01\x01\x12\x12\n\x05value\x18\x03 \x01(\x02H\x02\x88\x01\x01\x42\x08\n\x06_startB\x06\n\x04_endB\x08\n\x06_value\"\xe4\x01\n\rStepParameter\x12\x13\n\x0bscaled_step\x18\x01 \x01(\x02\x12\x30\n\x07sampler\x18\x02 \x01(\x0b\x32\x1a.gooseai.SamplerParametersH\x00\x88\x01\x01\x12\x32\n\x08schedule\x18\x03 \x01(\x0b\x32\x1b.gooseai.ScheduleParametersH\x01\x88\x01\x01\x12\x32\n\x08guidance\x18\x04 \x01(\x0b\x32\x1b.gooseai.GuidanceParametersH\x02\x88\x01\x01\x42\n\n\x08_samplerB\x0b\n\t_scheduleB\x0b\n\t_guidance\"\x97\x01\n\x05Model\x12\x30\n\x0c\x61rchitecture\x18\x01 \x01(\x0e\x32\x1a.gooseai.ModelArchitecture\x12\x11\n\tpublisher\x18\x02 \x01(\t\x12\x0f\n\x07\x64\x61taset\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\x02\x12\x18\n\x10semantic_version\x18\x05 \x01(\t\x12\r\n\x05\x61lias\x18\x06 \x01(\t\"\xbc\x01\n\x10\x43utoutParameters\x12*\n\x07\x63utouts\x18\x01 \x03(\x0b\x32\x19.gooseai.CutoutParameters\x12\x12\n\x05\x63ount\x18\x02 \x01(\rH\x00\x88\x01\x01\x12\x11\n\x04gray\x18\x03 \x01(\x02H\x01\x88\x01\x01\x12\x11\n\x04\x62lur\x18\x04 \x01(\x02H\x02\x88\x01\x01\x12\x17\n\nsize_power\x18\x05 \x01(\x02H\x03\x88\x01\x01\x42\x08\n\x06_countB\x07\n\x05_grayB\x07\n\x05_blurB\r\n\x0b_size_power\"=\n\x1aGuidanceScheduleParameters\x12\x10\n\x08\x64uration\x18\x01 \x01(\x02\x12\r\n\x05value\x18\x02 \x01(\x02\"\x97\x02\n\x1aGuidanceInstanceParameters\x12\x1e\n\x06models\x18\x02 \x03(\x0b\x32\x0e.gooseai.Model\x12\x1e\n\x11guidance_strength\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12\x35\n\x08schedule\x18\x04 \x03(\x0b\x32#.gooseai.GuidanceScheduleParameters\x12/\n\x07\x63utouts\x18\x05 \x01(\x0b\x32\x19.gooseai.CutoutParametersH\x01\x88\x01\x01\x12$\n\x06prompt\x18\x06 \x01(\x0b\x32\x0f.gooseai.PromptH\x02\x88\x01\x01\x42\x14\n\x12_guidance_strengthB\n\n\x08_cutoutsB\t\n\x07_prompt\"~\n\x12GuidanceParameters\x12\x30\n\x0fguidance_preset\x18\x01 \x01(\x0e\x32\x17.gooseai.GuidancePreset\x12\x36\n\tinstances\x18\x02 \x03(\x0b\x32#.gooseai.GuidanceInstanceParameters\"n\n\rTransformType\x12.\n\tdiffusion\x18\x01 \x01(\x0e\x32\x19.gooseai.DiffusionSamplerH\x00\x12%\n\x08upscaler\x18\x02 \x01(\x0e\x32\x11.gooseai.UpscalerH\x00\x42\x06\n\x04type\"\x87\x02\n\x0fImageParameters\x12\x13\n\x06height\x18\x01 \x01(\x04H\x00\x88\x01\x01\x12\x12\n\x05width\x18\x02 \x01(\x04H\x01\x88\x01\x01\x12\x0c\n\x04seed\x18\x03 \x03(\r\x12\x14\n\x07samples\x18\x04 \x01(\x04H\x02\x88\x01\x01\x12\x12\n\x05steps\x18\x05 \x01(\x04H\x03\x88\x01\x01\x12.\n\ttransform\x18\x06 \x01(\x0b\x32\x16.gooseai.TransformTypeH\x04\x88\x01\x01\x12*\n\nparameters\x18\x07 \x03(\x0b\x32\x16.gooseai.StepParameterB\t\n\x07_heightB\x08\n\x06_widthB\n\n\x08_samplesB\x08\n\x06_stepsB\x0c\n\n_transform\"J\n\x11\x43lassifierConcept\x12\x0f\n\x07\x63oncept\x18\x01 \x01(\t\x12\x16\n\tthreshold\x18\x02 \x01(\x02H\x00\x88\x01\x01\x42\x0c\n\n_threshold\"\xf4\x01\n\x12\x43lassifierCategory\x12\x0c\n\x04name\x18\x01 \x01(\t\x12,\n\x08\x63oncepts\x18\x02 \x03(\x0b\x32\x1a.gooseai.ClassifierConcept\x12\x17\n\nadjustment\x18\x03 \x01(\x02H\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x04 \x01(\x0e\x32\x0f.gooseai.ActionH\x01\x88\x01\x01\x12\x35\n\x0f\x63lassifier_mode\x18\x05 \x01(\x0e\x32\x17.gooseai.ClassifierModeH\x02\x88\x01\x01\x42\r\n\x0b_adjustmentB\t\n\x07_actionB\x12\n\x10_classifier_mode\"\xb8\x01\n\x14\x43lassifierParameters\x12/\n\ncategories\x18\x01 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12,\n\x07\x65xceeds\x18\x02 \x03(\x0b\x32\x1b.gooseai.ClassifierCategory\x12-\n\x0frealized_action\x18\x03 \x01(\x0e\x32\x0f.gooseai.ActionH\x00\x88\x01\x01\x42\x12\n\x10_realized_action\"k\n\x0f\x41ssetParameters\x12$\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x14.gooseai.AssetAction\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x1e\n\x03use\x18\x03 \x01(\x0e\x32\x11.gooseai.AssetUse\"\x94\x01\n\nAnswerMeta\x12\x13\n\x06gpu_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x06\x63pu_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x14\n\x07node_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x16\n\tengine_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\t\n\x07_gpu_idB\t\n\x07_cpu_idB\n\n\x08_node_idB\x0c\n\n_engine_id\"\xa9\x01\n\x06\x41nswer\x12\x11\n\tanswer_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12\x10\n\x08received\x18\x03 \x01(\x04\x12\x0f\n\x07\x63reated\x18\x04 \x01(\x04\x12&\n\x04meta\x18\x06 \x01(\x0b\x32\x13.gooseai.AnswerMetaH\x00\x88\x01\x01\x12$\n\tartifacts\x18\x07 \x03(\x0b\x32\x11.gooseai.ArtifactB\x07\n\x05_meta\"\xdf\x02\n\x07Request\x12\x11\n\tengine_id\x18\x01 \x01(\t\x12\x12\n\nrequest_id\x18\x02 \x01(\t\x12-\n\x0erequested_type\x18\x03 \x01(\x0e\x32\x15.gooseai.ArtifactType\x12\x1f\n\x06prompt\x18\x04 \x03(\x0b\x32\x0f.gooseai.Prompt\x12)\n\x05image\x18\x05 \x01(\x0b\x32\x18.gooseai.ImageParametersH\x00\x12\x33\n\nclassifier\x18\x07 \x01(\x0b\x32\x1d.gooseai.ClassifierParametersH\x00\x12)\n\x05\x61sset\x18\x08 \x01(\x0b\x32\x18.gooseai.AssetParametersH\x00\x12\x38\n\x0b\x63onditioner\x18\x06 \x01(\x0b\x32\x1e.gooseai.ConditionerParametersH\x01\x88\x01\x01\x42\x08\n\x06paramsB\x0e\n\x0c_conditioner\"w\n\x08OnStatus\x12%\n\x06reason\x18\x01 \x03(\x0e\x32\x15.gooseai.FinishReason\x12\x13\n\x06target\x18\x02 \x01(\tH\x00\x88\x01\x01\x12$\n\x06\x61\x63tion\x18\x03 \x03(\x0e\x32\x14.gooseai.StageActionB\t\n\x07_target\"\\\n\x05Stage\x12\n\n\x02id\x18\x01 \x01(\t\x12!\n\x07request\x18\x02 \x01(\x0b\x32\x10.gooseai.Request\x12$\n\ton_status\x18\x03 \x03(\x0b\x32\x11.gooseai.OnStatus\"A\n\x0c\x43hainRequest\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x1d\n\x05stage\x18\x02 \x03(\x0b\x32\x0e.gooseai.Stage*E\n\x0c\x46inishReason\x12\x08\n\x04NULL\x10\x00\x12\n\n\x06LENGTH\x10\x01\x12\x08\n\x04STOP\x10\x02\x12\t\n\x05\x45RROR\x10\x03\x12\n\n\x06\x46ILTER\x10\x04*\xba\x01\n\x0c\x41rtifactType\x12\x11\n\rARTIFACT_NONE\x10\x00\x12\x12\n\x0e\x41RTIFACT_IMAGE\x10\x01\x12\x12\n\x0e\x41RTIFACT_VIDEO\x10\x02\x12\x11\n\rARTIFACT_TEXT\x10\x03\x12\x13\n\x0f\x41RTIFACT_TOKENS\x10\x04\x12\x16\n\x12\x41RTIFACT_EMBEDDING\x10\x05\x12\x1c\n\x18\x41RTIFACT_CLASSIFICATIONS\x10\x06\x12\x11\n\rARTIFACT_MASK\x10\x07*\xc5\x01\n\x10\x44iffusionSampler\x12\x10\n\x0cSAMPLER_DDIM\x10\x00\x12\x10\n\x0cSAMPLER_DDPM\x10\x01\x12\x13\n\x0fSAMPLER_K_EULER\x10\x02\x12\x1d\n\x19SAMPLER_K_EULER_ANCESTRAL\x10\x03\x12\x12\n\x0eSAMPLER_K_HEUN\x10\x04\x12\x13\n\x0fSAMPLER_K_DPM_2\x10\x05\x12\x1d\n\x19SAMPLER_K_DPM_2_ANCESTRAL\x10\x06\x12\x11\n\rSAMPLER_K_LMS\x10\x07*F\n\x08Upscaler\x12\x10\n\x0cUPSCALER_RGB\x10\x00\x12\x13\n\x0fUPSCALER_GFPGAN\x10\x01\x12\x13\n\x0fUPSCALER_ESRGAN\x10\x02*\xd8\x01\n\x0eGuidancePreset\x12\x18\n\x14GUIDANCE_PRESET_NONE\x10\x00\x12\x1a\n\x16GUIDANCE_PRESET_SIMPLE\x10\x01\x12\x1d\n\x19GUIDANCE_PRESET_FAST_BLUE\x10\x02\x12\x1e\n\x1aGUIDANCE_PRESET_FAST_GREEN\x10\x03\x12\x18\n\x14GUIDANCE_PRESET_SLOW\x10\x04\x12\x1a\n\x16GUIDANCE_PRESET_SLOWER\x10\x05\x12\x1b\n\x17GUIDANCE_PRESET_SLOWEST\x10\x06*\x91\x01\n\x11ModelArchitecture\x12\x1b\n\x17MODEL_ARCHITECTURE_NONE\x10\x00\x12\x1f\n\x1bMODEL_ARCHITECTURE_CLIP_VIT\x10\x01\x12\"\n\x1eMODEL_ARCHITECTURE_CLIP_RESNET\x10\x02\x12\x1a\n\x16MODEL_ARCHITECTURE_LDM\x10\x03*\xa2\x01\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_PASSTHROUGH\x10\x00\x12\x1f\n\x1b\x41\x43TION_REGENERATE_DUPLICATE\x10\x01\x12\x15\n\x11\x41\x43TION_REGENERATE\x10\x02\x12\x1e\n\x1a\x41\x43TION_OBFUSCATE_DUPLICATE\x10\x03\x12\x14\n\x10\x41\x43TION_OBFUSCATE\x10\x04\x12\x12\n\x0e\x41\x43TION_DISCARD\x10\x05*D\n\x0e\x43lassifierMode\x12\x17\n\x13\x43LSFR_MODE_ZEROSHOT\x10\x00\x12\x19\n\x15\x43LSFR_MODE_MULTICLASS\x10\x01*=\n\x0b\x41ssetAction\x12\r\n\tASSET_PUT\x10\x00\x12\r\n\tASSET_GET\x10\x01\x12\x10\n\x0c\x41SSET_DELETE\x10\x02*\x81\x01\n\x08\x41ssetUse\x12\x17\n\x13\x41SSET_USE_UNDEFINED\x10\x00\x12\x13\n\x0f\x41SSET_USE_INPUT\x10\x01\x12\x14\n\x10\x41SSET_USE_OUTPUT\x10\x02\x12\x1a\n\x16\x41SSET_USE_INTERMEDIATE\x10\x03\x12\x15\n\x11\x41SSET_USE_PROJECT\x10\x04*W\n\x0bStageAction\x12\x15\n\x11STAGE_ACTION_PASS\x10\x00\x12\x18\n\x14STAGE_ACTION_DISCARD\x10\x01\x12\x17\n\x13STAGE_ACTION_RETURN\x10\x02\x32\x83\x01\n\x11GenerationService\x12\x31\n\x08Generate\x12\x10.gooseai.Request\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x12;\n\rChainGenerate\x12\x15.gooseai.ChainRequest\x1a\x0f.gooseai.Answer\"\x00\x30\x01\x42\x0fZ\r./;generationb\x06proto3') _FINISHREASON = DESCRIPTOR.enum_types_by_name['FinishReason'] FinishReason = enum_type_wrapper.EnumTypeWrapper(_FINISHREASON) diff --git a/gooseai/project/project.pb.go b/gooseai/project/project.pb.go index 3ede23e..047b5eb 100644 --- a/gooseai/project/project.pb.go +++ b/gooseai/project/project.pb.go @@ -175,7 +175,7 @@ type ProjectAsset struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset, UUIDv4 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset, UUIDv4 URI string `protobuf:"bytes,2,opt,name=URI,proto3" json:"URI,omitempty"` // The URI to the asset Use ProjectAssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.ProjectAssetUse" json:"use,omitempty"` // The use of the asset with respect to the project } @@ -212,11 +212,11 @@ func (*ProjectAsset) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{0} } -func (x *ProjectAsset) GetId() []byte { +func (x *ProjectAsset) GetId() string { if x != nil { return x.Id } - return nil + return "" } func (x *ProjectAsset) GetURI() string { @@ -238,7 +238,7 @@ type Project struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` // Title of the project OwnerId string `protobuf:"bytes,3,opt,name=owner_id,json=ownerId,proto3" json:"owner_id,omitempty"` // The ID of the organization owning the project Access ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess" json:"access,omitempty"` // The access of the project (such as public vs private) @@ -282,11 +282,11 @@ func (*Project) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{1} } -func (x *Project) GetId() []byte { +func (x *Project) GetId() string { if x != nil { return x.Id } - return nil + return "" } func (x *Project) GetTitle() string { @@ -436,7 +436,7 @@ type UpdateProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project, UUIDv4 OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user Title *string `protobuf:"bytes,3,opt,name=title,proto3,oneof" json:"title,omitempty"` // Title of the project Access *ProjectAccess `protobuf:"varint,4,opt,name=access,proto3,enum=gooseai.ProjectAccess,oneof" json:"access,omitempty"` // The access of the project (such as public vs private) @@ -476,11 +476,11 @@ func (*UpdateProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{3} } -func (x *UpdateProjectRequest) GetId() []byte { +func (x *UpdateProjectRequest) GetId() string { if x != nil { return x.Id } - return nil + return "" } func (x *UpdateProjectRequest) GetOwnerId() string { @@ -570,7 +570,7 @@ type GetProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user } @@ -606,11 +606,11 @@ func (*GetProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{5} } -func (x *GetProjectRequest) GetId() []byte { +func (x *GetProjectRequest) GetId() string { if x != nil { return x.Id } - return nil + return "" } func (x *GetProjectRequest) GetOwnerId() string { @@ -625,7 +625,7 @@ type DeleteProjectRequest struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the project to request, UUIDv4 OwnerId *string `protobuf:"bytes,2,opt,name=owner_id,json=ownerId,proto3,oneof" json:"owner_id,omitempty"` // The ID of the organization owning the project, empty for default org for user } @@ -661,11 +661,11 @@ func (*DeleteProjectRequest) Descriptor() ([]byte, []int) { return file_project_proto_rawDescGZIP(), []int{6} } -func (x *DeleteProjectRequest) GetId() []byte { +func (x *DeleteProjectRequest) GetId() string { if x != nil { return x.Id } - return nil + return "" } func (x *DeleteProjectRequest) GetOwnerId() string { @@ -681,12 +681,12 @@ var file_project_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x22, 0x5c, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x52, 0x49, 0x12, 0x2a, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xd6, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, - 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, + 0x63, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, @@ -724,7 +724,7 @@ var file_project_proto_rawDesc = []byte{ 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x22, 0xb1, 0x02, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, + 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x05, @@ -747,13 +747,13 @@ var file_project_proto_rawDesc = []byte{ 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x50, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x02, 0x69, 0x64, + 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x22, 0x53, 0x0a, 0x14, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0c, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, + 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x07, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x2a, 0x46, 0x0a, 0x0d, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x63, 0x63, diff --git a/gooseai/project/project_pb.d.ts b/gooseai/project/project_pb.d.ts index db0efe0..b6982ce 100644 --- a/gooseai/project/project_pb.d.ts +++ b/gooseai/project/project_pb.d.ts @@ -4,10 +4,8 @@ import * as jspb from "google-protobuf"; export class ProjectAsset extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): void; + getId(): string; + setId(value: string): void; getUri(): string; setUri(value: string): void; @@ -27,17 +25,15 @@ export class ProjectAsset extends jspb.Message { export namespace ProjectAsset { export type AsObject = { - id: Uint8Array | string, + id: string, uri: string, use: ProjectAssetUseMap[keyof ProjectAssetUseMap], } } export class Project extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): void; + getId(): string; + setId(value: string): void; getTitle(): string; setTitle(value: string): void; @@ -82,7 +78,7 @@ export class Project extends jspb.Message { export namespace Project { export type AsObject = { - id: Uint8Array | string, + id: string, title: string, ownerId: string, access: ProjectAccessMap[keyof ProjectAccessMap], @@ -136,10 +132,8 @@ export namespace CreateProjectRequest { } export class UpdateProjectRequest extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): void; + getId(): string; + setId(value: string): void; hasOwnerId(): boolean; clearOwnerId(): void; @@ -178,7 +172,7 @@ export class UpdateProjectRequest extends jspb.Message { export namespace UpdateProjectRequest { export type AsObject = { - id: Uint8Array | string, + id: string, ownerId: string, title: string, access: ProjectAccessMap[keyof ProjectAccessMap], @@ -210,10 +204,8 @@ export namespace ListProjectRequest { } export class GetProjectRequest extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): void; + getId(): string; + setId(value: string): void; hasOwnerId(): boolean; clearOwnerId(): void; @@ -232,16 +224,14 @@ export class GetProjectRequest extends jspb.Message { export namespace GetProjectRequest { export type AsObject = { - id: Uint8Array | string, + id: string, ownerId: string, } } export class DeleteProjectRequest extends jspb.Message { - getId(): Uint8Array | string; - getId_asU8(): Uint8Array; - getId_asB64(): string; - setId(value: Uint8Array | string): void; + getId(): string; + setId(value: string): void; hasOwnerId(): boolean; clearOwnerId(): void; @@ -260,7 +250,7 @@ export class DeleteProjectRequest extends jspb.Message { export namespace DeleteProjectRequest { export type AsObject = { - id: Uint8Array | string, + id: string, ownerId: string, } } diff --git a/gooseai/project/project_pb.js b/gooseai/project/project_pb.js index 731ebaf..88ecd1d 100644 --- a/gooseai/project/project_pb.js +++ b/gooseai/project/project_pb.js @@ -204,7 +204,7 @@ proto.gooseai.ProjectAsset.prototype.toObject = function(opt_includeInstance) { */ proto.gooseai.ProjectAsset.toObject = function(includeInstance, msg) { var f, obj = { - id: msg.getId_asB64(), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), uri: jspb.Message.getFieldWithDefault(msg, 2, ""), use: jspb.Message.getFieldWithDefault(msg, 3, 0) }; @@ -244,7 +244,7 @@ proto.gooseai.ProjectAsset.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: @@ -284,9 +284,9 @@ proto.gooseai.ProjectAsset.prototype.serializeBinary = function() { */ proto.gooseai.ProjectAsset.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId_asU8(); + f = message.getId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); @@ -309,44 +309,20 @@ proto.gooseai.ProjectAsset.serializeBinaryToWriter = function(message, writer) { /** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.ProjectAsset.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` + * optional string id = 1; * @return {string} */ -proto.gooseai.ProjectAsset.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.gooseai.ProjectAsset.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); +proto.gooseai.ProjectAsset.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.ProjectAsset} returns this */ proto.gooseai.ProjectAsset.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -425,7 +401,7 @@ proto.gooseai.Project.prototype.toObject = function(opt_includeInstance) { */ proto.gooseai.Project.toObject = function(includeInstance, msg) { var f, obj = { - id: msg.getId_asB64(), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), title: jspb.Message.getFieldWithDefault(msg, 2, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 3, ""), access: jspb.Message.getFieldWithDefault(msg, 4, 0), @@ -473,7 +449,7 @@ proto.gooseai.Project.deserializeBinaryFromReader = function(msg, reader) { var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: @@ -543,9 +519,9 @@ proto.gooseai.Project.prototype.serializeBinary = function() { */ proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId_asU8(); + f = message.getId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); @@ -619,44 +595,20 @@ proto.gooseai.Project.serializeBinaryToWriter = function(message, writer) { /** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.Project.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` + * optional string id = 1; * @return {string} */ -proto.gooseai.Project.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.gooseai.Project.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); +proto.gooseai.Project.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.Project} returns this */ proto.gooseai.Project.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1182,7 +1134,7 @@ proto.gooseai.UpdateProjectRequest.prototype.toObject = function(opt_includeInst */ proto.gooseai.UpdateProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: msg.getId_asB64(), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 2, ""), title: jspb.Message.getFieldWithDefault(msg, 3, ""), access: jspb.Message.getFieldWithDefault(msg, 4, 0), @@ -1225,7 +1177,7 @@ proto.gooseai.UpdateProjectRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: @@ -1278,9 +1230,9 @@ proto.gooseai.UpdateProjectRequest.prototype.serializeBinary = function() { */ proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId_asU8(); + f = message.getId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); @@ -1325,44 +1277,20 @@ proto.gooseai.UpdateProjectRequest.serializeBinaryToWriter = function(message, w /** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.UpdateProjectRequest.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` + * optional string id = 1; * @return {string} */ -proto.gooseai.UpdateProjectRequest.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.gooseai.UpdateProjectRequest.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); +proto.gooseai.UpdateProjectRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.UpdateProjectRequest} returns this */ proto.gooseai.UpdateProjectRequest.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1727,7 +1655,7 @@ proto.gooseai.GetProjectRequest.prototype.toObject = function(opt_includeInstanc */ proto.gooseai.GetProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: msg.getId_asB64(), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -1766,7 +1694,7 @@ proto.gooseai.GetProjectRequest.deserializeBinaryFromReader = function(msg, read var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: @@ -1802,9 +1730,9 @@ proto.gooseai.GetProjectRequest.prototype.serializeBinary = function() { */ proto.gooseai.GetProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId_asU8(); + f = message.getId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); @@ -1820,44 +1748,20 @@ proto.gooseai.GetProjectRequest.serializeBinaryToWriter = function(message, writ /** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.GetProjectRequest.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` + * optional string id = 1; * @return {string} */ -proto.gooseai.GetProjectRequest.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.gooseai.GetProjectRequest.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); +proto.gooseai.GetProjectRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.GetProjectRequest} returns this */ proto.gooseai.GetProjectRequest.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; @@ -1929,7 +1833,7 @@ proto.gooseai.DeleteProjectRequest.prototype.toObject = function(opt_includeInst */ proto.gooseai.DeleteProjectRequest.toObject = function(includeInstance, msg) { var f, obj = { - id: msg.getId_asB64(), + id: jspb.Message.getFieldWithDefault(msg, 1, ""), ownerId: jspb.Message.getFieldWithDefault(msg, 2, "") }; @@ -1968,7 +1872,7 @@ proto.gooseai.DeleteProjectRequest.deserializeBinaryFromReader = function(msg, r var field = reader.getFieldNumber(); switch (field) { case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); + var value = /** @type {string} */ (reader.readString()); msg.setId(value); break; case 2: @@ -2004,9 +1908,9 @@ proto.gooseai.DeleteProjectRequest.prototype.serializeBinary = function() { */ proto.gooseai.DeleteProjectRequest.serializeBinaryToWriter = function(message, writer) { var f = undefined; - f = message.getId_asU8(); + f = message.getId(); if (f.length > 0) { - writer.writeBytes( + writer.writeString( 1, f ); @@ -2022,44 +1926,20 @@ proto.gooseai.DeleteProjectRequest.serializeBinaryToWriter = function(message, w /** - * optional bytes id = 1; - * @return {!(string|Uint8Array)} - */ -proto.gooseai.DeleteProjectRequest.prototype.getId = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes id = 1; - * This is a type-conversion wrapper around `getId()` + * optional string id = 1; * @return {string} */ -proto.gooseai.DeleteProjectRequest.prototype.getId_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getId())); -}; - - -/** - * optional bytes id = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getId()` - * @return {!Uint8Array} - */ -proto.gooseai.DeleteProjectRequest.prototype.getId_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getId())); +proto.gooseai.DeleteProjectRequest.prototype.getId = function() { + return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); }; /** - * @param {!(string|Uint8Array)} value + * @param {string} value * @return {!proto.gooseai.DeleteProjectRequest} returns this */ proto.gooseai.DeleteProjectRequest.prototype.setId = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); + return jspb.Message.setProto3StringField(this, 1, value); }; diff --git a/gooseai/project/project_pb2.py b/gooseai/project/project_pb2.py index 3fa342e..879e2bb 100644 --- a/gooseai/project/project_pb2.py +++ b/gooseai/project/project_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x88\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xcc\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x87\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"8\n\x12ListProjectRequest\x12\x15\n\x08owner_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"C\n\x11GetProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"F\n\x14\x44\x65leteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\x0c\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04\x32\xb9\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12\x35\n\x03Get\x12\x1a.gooseai.GetProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06\x44\x65lete\x12\x1d.gooseai.DeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x42\x0cZ\n./;projectb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x88\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xcc\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x87\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"8\n\x12ListProjectRequest\x12\x15\n\x08owner_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"C\n\x11GetProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"F\n\x14\x44\x65leteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04\x32\xb9\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12\x35\n\x03Get\x12\x1a.gooseai.GetProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06\x44\x65lete\x12\x1d.gooseai.DeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x42\x0cZ\n./;projectb\x06proto3') _PROJECTACCESS = DESCRIPTOR.enum_types_by_name['ProjectAccess'] ProjectAccess = enum_type_wrapper.EnumTypeWrapper(_PROJECTACCESS) diff --git a/src/proto/generation.proto b/src/proto/generation.proto index d4601b0..d2ad64c 100644 --- a/src/proto/generation.proto +++ b/src/proto/generation.proto @@ -49,7 +49,7 @@ message Artifact { uint32 index = 8; // Index of this artifact in input/output list FinishReason finish_reason = 9; // Reason for finishing, if applicable uint32 seed = 10; // Seed used to generate this artifact - bytes uuid = 12; // UUIDv4 of the artifact, used for asset lookup + string uuid = 12; // UUIDv4 of the artifact, used for asset lookup uint64 size = 13; // Size of the artifact in bytes } @@ -264,7 +264,7 @@ enum AssetUse { message AssetParameters { AssetAction action = 1; - bytes project_id = 2; + string project_id = 2; AssetUse use = 3; } diff --git a/src/proto/project.proto b/src/proto/project.proto index f8d0bae..97836e9 100644 --- a/src/proto/project.proto +++ b/src/proto/project.proto @@ -22,13 +22,13 @@ enum ProjectAssetUse { } message ProjectAsset { - bytes id = 1; // ID of the asset, UUIDv4 + string id = 1; // ID of the asset, UUIDv4 string URI = 2; // The URI to the asset ProjectAssetUse use = 3; // The use of the asset with respect to the project } message Project { - bytes id = 1; // ID of the project, UUIDv4 + string id = 1; // ID of the project, UUIDv4 string title = 2; // Title of the project string owner_id = 3; // The ID of the organization owning the project ProjectAccess access = 4; // The access of the project (such as public vs private) @@ -49,7 +49,7 @@ message CreateProjectRequest { } message UpdateProjectRequest { - bytes id = 1; // ID of the project, UUIDv4 + string id = 1; // ID of the project, UUIDv4 optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user optional string title = 3; // Title of the project optional ProjectAccess access = 4; // The access of the project (such as public vs private) @@ -62,12 +62,12 @@ message ListProjectRequest { } message GetProjectRequest { - bytes id = 1; // ID of the project to request, UUIDv4 + string id = 1; // ID of the project to request, UUIDv4 optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user } message DeleteProjectRequest { - bytes id = 1; // ID of the project to request, UUIDv4 + string id = 1; // ID of the project to request, UUIDv4 optional string owner_id = 2; // The ID of the organization owning the project, empty for default org for user } From 2dd99ce1d7ccb485f45e5be01258200088290a2a Mon Sep 17 00:00:00 2001 From: Andrew Senetar Date: Thu, 20 Oct 2022 17:12:04 +0000 Subject: [PATCH 4/4] fix: Correct field name casing --- gooseai/project/project.pb.go | 10 +++++----- gooseai/project/project_pb.js | 2 +- gooseai/project/project_pb2.py | 2 +- src/proto/project.proto | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gooseai/project/project.pb.go b/gooseai/project/project.pb.go index 047b5eb..a651b82 100644 --- a/gooseai/project/project.pb.go +++ b/gooseai/project/project.pb.go @@ -176,7 +176,7 @@ type ProjectAsset struct { unknownFields protoimpl.UnknownFields Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // ID of the asset, UUIDv4 - URI string `protobuf:"bytes,2,opt,name=URI,proto3" json:"URI,omitempty"` // The URI to the asset + Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` // The URI to the asset Use ProjectAssetUse `protobuf:"varint,3,opt,name=use,proto3,enum=gooseai.ProjectAssetUse" json:"use,omitempty"` // The use of the asset with respect to the project } @@ -219,9 +219,9 @@ func (x *ProjectAsset) GetId() string { return "" } -func (x *ProjectAsset) GetURI() string { +func (x *ProjectAsset) GetUri() string { if x != nil { - return x.URI + return x.Uri } return "" } @@ -681,8 +681,8 @@ var file_project_proto_rawDesc = []byte{ 0x0a, 0x0d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x07, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x22, 0x5c, 0x0a, 0x0c, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x55, 0x52, 0x49, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x55, 0x52, 0x49, 0x12, 0x2a, 0x0a, 0x03, 0x75, 0x73, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x2a, 0x0a, 0x03, 0x75, 0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x67, 0x6f, 0x6f, 0x73, 0x65, 0x61, 0x69, 0x2e, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x55, 0x73, 0x65, 0x52, 0x03, 0x75, 0x73, 0x65, 0x22, 0xd6, 0x02, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, diff --git a/gooseai/project/project_pb.js b/gooseai/project/project_pb.js index 88ecd1d..8ed8b67 100644 --- a/gooseai/project/project_pb.js +++ b/gooseai/project/project_pb.js @@ -327,7 +327,7 @@ proto.gooseai.ProjectAsset.prototype.setId = function(value) { /** - * optional string URI = 2; + * optional string uri = 2; * @return {string} */ proto.gooseai.ProjectAsset.prototype.getUri = function() { diff --git a/gooseai/project/project_pb2.py b/gooseai/project/project_pb2.py index 879e2bb..79168d1 100644 --- a/gooseai/project/project_pb2.py +++ b/gooseai/project/project_pb2.py @@ -15,7 +15,7 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03URI\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x88\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xcc\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x87\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"8\n\x12ListProjectRequest\x12\x15\n\x08owner_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"C\n\x11GetProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"F\n\x14\x44\x65leteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04\x32\xb9\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12\x35\n\x03Get\x12\x1a.gooseai.GetProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06\x44\x65lete\x12\x1d.gooseai.DeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x42\x0cZ\n./;projectb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\rproject.proto\x12\x07gooseai\"N\n\x0cProjectAsset\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12%\n\x03use\x18\x03 \x01(\x0e\x32\x18.gooseai.ProjectAssetUse\"\x88\x02\n\x07Project\x12\n\n\x02id\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x10\n\x08owner_id\x18\x03 \x01(\t\x12&\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12\x0c\n\x04size\x18\x06 \x01(\x04\x12#\n\x04\x66ile\x18\x07 \x01(\x0b\x32\x15.gooseai.ProjectAsset\x12\x12\n\ncreated_at\x18\x08 \x01(\x04\x12\x12\n\nupdated_at\x18\t \x01(\x04\x12%\n\x06\x61ssets\x18\n \x03(\x0b\x32\x15.gooseai.ProjectAsset\"\xcc\x01\n\x14\x43reateProjectRequest\x12\r\n\x05title\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x06\x61\x63\x63\x65ss\x18\x03 \x01(\x0e\x32\x16.gooseai.ProjectAccess\x12&\n\x06status\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectStatus\x12(\n\x04\x66ile\x18\x05 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x01\x88\x01\x01\x42\x0b\n\t_owner_idB\x07\n\x05_file\"\x87\x02\n\x14UpdateProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x12\n\x05title\x18\x03 \x01(\tH\x01\x88\x01\x01\x12+\n\x06\x61\x63\x63\x65ss\x18\x04 \x01(\x0e\x32\x16.gooseai.ProjectAccessH\x02\x88\x01\x01\x12+\n\x06status\x18\x05 \x01(\x0e\x32\x16.gooseai.ProjectStatusH\x03\x88\x01\x01\x12(\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x15.gooseai.ProjectAssetH\x04\x88\x01\x01\x42\x0b\n\t_owner_idB\x08\n\x06_titleB\t\n\x07_accessB\t\n\x07_statusB\x07\n\x05_file\"8\n\x12ListProjectRequest\x12\x15\n\x08owner_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"C\n\x11GetProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id\"F\n\x14\x44\x65leteProjectRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x15\n\x08owner_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_owner_id*F\n\rProjectAccess\x12\x1a\n\x16PROJECT_ACCESS_PRIVATE\x10\x00\x12\x19\n\x15PROJECT_ACCESS_PUBLIC\x10\x01*c\n\rProjectStatus\x12\x1b\n\x17PROJECT_STATUS_INACTIVE\x10\x00\x12\x19\n\x15PROJECT_STATUS_ACTIVE\x10\x01\x12\x1a\n\x16PROJECT_STATUS_DELETED\x10\x02*\xb0\x01\n\x0fProjectAssetUse\x12\x1f\n\x1bPROJECT_ASSET_USE_UNDEFINED\x10\x00\x12\x1b\n\x17PROJECT_ASSET_USE_INPUT\x10\x01\x12\x1c\n\x18PROJECT_ASSET_USE_OUTPUT\x10\x02\x12\"\n\x1ePROJECT_ASSET_USE_INTERMEDIATE\x10\x03\x12\x1d\n\x19PROJECT_ASSET_USE_PROJECT\x10\x04\x32\xb9\x02\n\x0eProjectService\x12;\n\x06\x43reate\x12\x1d.gooseai.CreateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06Update\x12\x1d.gooseai.UpdateProjectRequest\x1a\x10.gooseai.Project\"\x00\x12\x39\n\x04List\x12\x1b.gooseai.ListProjectRequest\x1a\x10.gooseai.Project\"\x00\x30\x01\x12\x35\n\x03Get\x12\x1a.gooseai.GetProjectRequest\x1a\x10.gooseai.Project\"\x00\x12;\n\x06\x44\x65lete\x12\x1d.gooseai.DeleteProjectRequest\x1a\x10.gooseai.Project\"\x00\x42\x0cZ\n./;projectb\x06proto3') _PROJECTACCESS = DESCRIPTOR.enum_types_by_name['ProjectAccess'] ProjectAccess = enum_type_wrapper.EnumTypeWrapper(_PROJECTACCESS) diff --git a/src/proto/project.proto b/src/proto/project.proto index 97836e9..dd6535c 100644 --- a/src/proto/project.proto +++ b/src/proto/project.proto @@ -23,7 +23,7 @@ enum ProjectAssetUse { message ProjectAsset { string id = 1; // ID of the asset, UUIDv4 - string URI = 2; // The URI to the asset + string uri = 2; // The URI to the asset ProjectAssetUse use = 3; // The use of the asset with respect to the project }