diff --git a/packages/orchestrator/orchestrator.proto b/packages/orchestrator/orchestrator.proto index e44c2135c1..a9db122d63 100644 --- a/packages/orchestrator/orchestrator.proto +++ b/packages/orchestrator/orchestrator.proto @@ -105,6 +105,7 @@ message SandboxCreateRequest { message SandboxCreateResponse { string client_id = 1; + SchedulingMetadata scheduling_metadata = 2; } message SandboxUpdateRequest { @@ -126,12 +127,29 @@ message SandboxPauseRequest { string build_id = 3; } +message SchedulingMetadata { + string base_build_id = 1; + uint64 generation = 2; + uint64 memfile_size = 3; + uint64 rootfs_size = 4; + repeated string chain_build_ids = 5; + repeated uint64 memfile_logical_bytes = 6; + repeated uint32 memfile_mapping_counts = 7; + repeated uint64 rootfs_logical_bytes = 8; + repeated uint32 rootfs_mapping_counts = 9; +} + +message SandboxPauseResponse { + SchedulingMetadata scheduling_metadata = 1; +} + message SandboxCheckpointRequest { string sandbox_id = 1; string build_id = 3; } message SandboxCheckpointResponse { + SchedulingMetadata scheduling_metadata = 1; } message RunningSandbox { @@ -149,6 +167,11 @@ message SandboxListResponse { message CachedBuildInfo { string build_id = 1; google.protobuf.Timestamp expiration_time = 2; + SchedulingMetadata scheduling_metadata = 3; + uint64 memfile_cached_bytes = 4; + uint64 memfile_total_bytes = 5; + uint64 rootfs_cached_bytes = 6; + uint64 rootfs_total_bytes = 7; } message SandboxListCachedBuildsResponse { @@ -160,7 +183,7 @@ service SandboxService { rpc Update(SandboxUpdateRequest) returns (google.protobuf.Empty); rpc List(google.protobuf.Empty) returns (SandboxListResponse); rpc Delete(SandboxDeleteRequest) returns (google.protobuf.Empty); - rpc Pause(SandboxPauseRequest) returns (google.protobuf.Empty); + rpc Pause(SandboxPauseRequest) returns (SandboxPauseResponse); rpc Checkpoint(SandboxCheckpointRequest) returns (SandboxCheckpointResponse); rpc ListCachedBuilds(google.protobuf.Empty) returns (SandboxListCachedBuildsResponse); diff --git a/packages/orchestrator/pkg/dummyserver/sandbox.go b/packages/orchestrator/pkg/dummyserver/sandbox.go index 9ba15bc858..441ecaa501 100644 --- a/packages/orchestrator/pkg/dummyserver/sandbox.go +++ b/packages/orchestrator/pkg/dummyserver/sandbox.go @@ -129,7 +129,7 @@ func (s *SandboxServer) Delete(_ context.Context, req *orchestrator.SandboxDelet return &emptypb.Empty{}, nil } -func (s *SandboxServer) Pause(_ context.Context, req *orchestrator.SandboxPauseRequest) (*emptypb.Empty, error) { +func (s *SandboxServer) Pause(_ context.Context, req *orchestrator.SandboxPauseRequest) (*orchestrator.SandboxPauseResponse, error) { if req.GetSandboxId() == "" { return nil, status.Error(codes.InvalidArgument, "sandbox_id is required") } @@ -139,7 +139,7 @@ func (s *SandboxServer) Pause(_ context.Context, req *orchestrator.SandboxPauseR delete(s.sandboxes, req.GetSandboxId()) s.mu.Unlock() - return &emptypb.Empty{}, nil + return &orchestrator.SandboxPauseResponse{}, nil } func (s *SandboxServer) Checkpoint(_ context.Context, _ *orchestrator.SandboxCheckpointRequest) (*orchestrator.SandboxCheckpointResponse, error) { diff --git a/packages/orchestrator/pkg/sandbox/build/cache.go b/packages/orchestrator/pkg/sandbox/build/cache.go index 7804d0b4c3..f181f7450d 100644 --- a/packages/orchestrator/pkg/sandbox/build/cache.go +++ b/packages/orchestrator/pkg/sandbox/build/cache.go @@ -6,6 +6,7 @@ import ( "context" "fmt" "os" + "strings" "sync" "time" @@ -101,6 +102,14 @@ func NewDiffStore( type DiffStoreKey string +type CachedBuildStats struct { + BuildID string + MemfileCachedBytes uint64 + MemfileTotalBytes uint64 + RootfsCachedBytes uint64 + RootfsTotalBytes uint64 +} + func GetDiffStoreKey(buildID string, diffType DiffType) DiffStoreKey { return DiffStoreKey(fmt.Sprintf("%s/%s", buildID, diffType)) } @@ -171,6 +180,41 @@ func (s *DiffStore) Lookup(key DiffStoreKey) (Diff, bool) { return item.Value(), true } +func (s *DiffStore) CachedBuildStats(ctx context.Context) []CachedBuildStats { + byBuildID := make(map[string]*CachedBuildStats) + for key, item := range s.cache.Items() { + buildID, diffType, ok := strings.Cut(string(key), "/") + if !ok || item == nil || item.Value() == nil { + continue + } + stats := byBuildID[buildID] + if stats == nil { + stats = &CachedBuildStats{BuildID: buildID} + byBuildID[buildID] = stats + } + + size, err := item.Value().FileSize(ctx) + if err != nil || size < 0 { + continue + } + switch DiffType(diffType) { + case Memfile: + stats.MemfileCachedBytes = uint64(size) + stats.MemfileTotalBytes = uint64(size) + case Rootfs: + stats.RootfsCachedBytes = uint64(size) + stats.RootfsTotalBytes = uint64(size) + } + } + + result := make([]CachedBuildStats, 0, len(byBuildID)) + for _, stats := range byBuildID { + result = append(result, *stats) + } + + return result +} + func (s *DiffStore) startDiskSpaceEviction( ctx context.Context, config cfg.Config, diff --git a/packages/orchestrator/pkg/sandbox/sandbox.go b/packages/orchestrator/pkg/sandbox/sandbox.go index f57fa26bd4..85a702e186 100644 --- a/packages/orchestrator/pkg/sandbox/sandbox.go +++ b/packages/orchestrator/pkg/sandbox/sandbox.go @@ -1185,6 +1185,8 @@ func (s *Sandbox) Pause( } cleanup.AddNoContext(ctx, rootfsDiff.Close) + schedulingMetadata := NewSnapshotSchedulingMetadata(originalMemfile.Header(), originalRootfs.Header()) + metadataFileLink := template.NewLocalFileLink(cachePaths.CacheMetadata()) cleanup.AddNoContext(ctx, metadataFileLink.Close) @@ -1194,14 +1196,15 @@ func (s *Sandbox) Pause( } return &Snapshot{ - Snapfile: snapfile, - Metafile: metadataFileLink, - MemfileDiff: memfileDiff, - MemfileDiffHeader: memfileDiffHeader, - RootfsDiff: rootfsDiff, - RootfsDiffHeader: NewResolvedDiffHeader(rootfsHeader), - MemfileBlockSize: originalMemfile.Header().Metadata.BlockSize, - RootfsBlockSize: originalRootfs.Header().Metadata.BlockSize, + Snapfile: snapfile, + Metafile: metadataFileLink, + MemfileDiff: memfileDiff, + MemfileDiffHeader: memfileDiffHeader, + RootfsDiff: rootfsDiff, + RootfsDiffHeader: NewResolvedDiffHeader(rootfsHeader), + SchedulingMetadata: schedulingMetadata, + MemfileBlockSize: originalMemfile.Header().Metadata.BlockSize, + RootfsBlockSize: originalRootfs.Header().Metadata.BlockSize, BuildID: buildID, diff --git a/packages/orchestrator/pkg/sandbox/snapshot.go b/packages/orchestrator/pkg/sandbox/snapshot.go index c597dc629c..a1d6553efa 100644 --- a/packages/orchestrator/pkg/sandbox/snapshot.go +++ b/packages/orchestrator/pkg/sandbox/snapshot.go @@ -10,6 +10,8 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/build" "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/template" + "github.com/e2b-dev/infra/packages/orchestrator/pkg/scheduling" + "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" "github.com/e2b-dev/infra/packages/shared/pkg/utils" ) @@ -26,13 +28,14 @@ func NewResolvedDiffHeader(h *header.Header) *DiffHeader { } type Snapshot struct { - MemfileDiff build.Diff - MemfileDiffHeader *DiffHeader - RootfsDiff build.Diff - RootfsDiffHeader *DiffHeader - Snapfile template.File - Metafile template.File - BuildID uuid.UUID + MemfileDiff build.Diff + MemfileDiffHeader *DiffHeader + RootfsDiff build.Diff + RootfsDiffHeader *DiffHeader + Snapfile template.File + Metafile template.File + BuildID uuid.UUID + SchedulingMetadata *orchestrator.SchedulingMetadata // Template block sizes captured sync at Pause time. They equal // MemfileDiffHeader.Metadata.BlockSize once that header resolves, but @@ -53,3 +56,7 @@ func (s *Snapshot) Close(ctx context.Context) error { return nil } + +func NewSnapshotSchedulingMetadata(memfileHeader, rootfsHeader *header.Header) *orchestrator.SchedulingMetadata { + return scheduling.FromHeaders(memfileHeader, rootfsHeader) +} diff --git a/packages/orchestrator/pkg/sandbox/template/cache.go b/packages/orchestrator/pkg/sandbox/template/cache.go index 2296542fb1..fde66b400b 100644 --- a/packages/orchestrator/pkg/sandbox/template/cache.go +++ b/packages/orchestrator/pkg/sandbox/template/cache.go @@ -130,6 +130,10 @@ func (c *Cache) Items() map[string]*ttlcache.Item[string, Template] { return c.cache.Items() } +func (c *Cache) CachedBuildStats(ctx context.Context) []build.CachedBuildStats { + return c.buildStore.CachedBuildStats(ctx) +} + // LookupDiff returns the locally-cached diff for the given build and file name. // Returns (nil, false) if the diff is not cached locally. func (c *Cache) LookupDiff(buildID string, diffType build.DiffType) (build.Diff, bool) { diff --git a/packages/orchestrator/pkg/sandbox/template/storage_template.go b/packages/orchestrator/pkg/sandbox/template/storage_template.go index 99f90249b9..fd9ee9ec34 100644 --- a/packages/orchestrator/pkg/sandbox/template/storage_template.go +++ b/packages/orchestrator/pkg/sandbox/template/storage_template.go @@ -16,7 +16,9 @@ import ( "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/block" blockmetrics "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/block/metrics" "github.com/e2b-dev/infra/packages/orchestrator/pkg/sandbox/build" + "github.com/e2b-dev/infra/packages/orchestrator/pkg/scheduling" "github.com/e2b-dev/infra/packages/orchestrator/pkg/template/metadata" + "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/storage" "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" @@ -270,6 +272,16 @@ func (t *storageTemplate) Files() storage.CachePaths { return t.paths } +func (t *storageTemplate) SchedulingMetadata() *orchestrator.SchedulingMetadata { + memfileHeader, memfileErr := t.memfileHeader.Result() + rootfsHeader, rootfsErr := t.rootfsHeader.Result() + if memfileErr != nil || rootfsErr != nil { + return nil + } + + return scheduling.FromHeaders(memfileHeader, rootfsHeader) +} + func (t *storageTemplate) Memfile(ctx context.Context) (block.ReadonlyDevice, error) { _, span := tracer.Start(ctx, "storage-template-memfile") defer span.End() diff --git a/packages/orchestrator/pkg/scheduling/metadata.go b/packages/orchestrator/pkg/scheduling/metadata.go new file mode 100644 index 0000000000..9df14e8e67 --- /dev/null +++ b/packages/orchestrator/pkg/scheduling/metadata.go @@ -0,0 +1,96 @@ +package scheduling + +import ( + "cmp" + "slices" + + "github.com/google/uuid" + + "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" + "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" +) + +const chainLimit = 32 + +type buildContribution struct { + buildID uuid.UUID + memfileBytes uint64 + memfileMappingCount uint32 + rootfsBytes uint64 + rootfsMappingCount uint32 +} + +func FromHeaders(memfileHeader, rootfsHeader *header.Header) *orchestrator.SchedulingMetadata { + if memfileHeader == nil || memfileHeader.Metadata == nil || rootfsHeader == nil || rootfsHeader.Metadata == nil { + return nil + } + + contributions := make(map[uuid.UUID]*buildContribution) + add := func(buildID uuid.UUID, length uint64, isMemfile bool) { + if buildID == uuid.Nil || length == 0 { + return + } + c, ok := contributions[buildID] + if !ok { + c = &buildContribution{buildID: buildID} + contributions[buildID] = c + } + if isMemfile { + c.memfileBytes += length + c.memfileMappingCount++ + } else { + c.rootfsBytes += length + c.rootfsMappingCount++ + } + } + + for _, m := range memfileHeader.Mapping.All() { + add(m.BuildId, m.Length, true) + } + for _, m := range rootfsHeader.Mapping.All() { + add(m.BuildId, m.Length, false) + } + + baseBuildID := memfileHeader.Metadata.BaseBuildId + if baseBuildID == uuid.Nil { + baseBuildID = rootfsHeader.Metadata.BaseBuildId + } + + chain := make([]buildContribution, 0, len(contributions)) + for _, c := range contributions { + chain = append(chain, *c) + } + slices.SortFunc(chain, func(a, b buildContribution) int { + aBytes := a.memfileBytes + a.rootfsBytes + bBytes := b.memfileBytes + b.rootfsBytes + if aBytes == bBytes { + return cmp.Compare(a.buildID.String(), b.buildID.String()) + } + + return cmp.Compare(bBytes, aBytes) + }) + if len(chain) > chainLimit { + chain = chain[:chainLimit] + } + + res := &orchestrator.SchedulingMetadata{ + BaseBuildId: baseBuildID.String(), + Generation: max(memfileHeader.Metadata.Generation, rootfsHeader.Metadata.Generation) + 1, + MemfileSize: memfileHeader.Metadata.Size, + RootfsSize: rootfsHeader.Metadata.Size, + ChainBuildIds: make([]string, 0, len(chain)), + MemfileLogicalBytes: make([]uint64, 0, len(chain)), + MemfileMappingCounts: make([]uint32, 0, len(chain)), + RootfsLogicalBytes: make([]uint64, 0, len(chain)), + RootfsMappingCounts: make([]uint32, 0, len(chain)), + } + for _, c := range chain { + res.ChainBuildIds = append(res.ChainBuildIds, c.buildID.String()) + res.MemfileLogicalBytes = append(res.MemfileLogicalBytes, c.memfileBytes) + res.MemfileMappingCounts = append(res.MemfileMappingCounts, c.memfileMappingCount) + res.RootfsLogicalBytes = append(res.RootfsLogicalBytes, c.rootfsBytes) + res.RootfsMappingCounts = append(res.RootfsMappingCounts, c.rootfsMappingCount) + } + + return res +} diff --git a/packages/orchestrator/pkg/server/sandboxes.go b/packages/orchestrator/pkg/server/sandboxes.go index cfd4a507f8..302b6a73df 100644 --- a/packages/orchestrator/pkg/server/sandboxes.go +++ b/packages/orchestrator/pkg/server/sandboxes.go @@ -140,6 +140,12 @@ func (s *Server) Create(ctx context.Context, req *orchestrator.SandboxCreateRequ if err != nil { return nil, fmt.Errorf("failed to get template snapshot data: %w", err) } + var schedulingMetadata *orchestrator.SchedulingMetadata + if provider, ok := template.(interface { + SchedulingMetadata() *orchestrator.SchedulingMetadata + }); ok { + schedulingMetadata = provider.SchedulingMetadata() + } // Clone the network config to avoid modifying the original request network := proto.CloneOf(req.GetSandbox().GetNetwork()) @@ -245,7 +251,8 @@ func (s *Server) Create(ctx context.Context, req *orchestrator.SandboxCreateRequ ) return &orchestrator.SandboxCreateResponse{ - ClientId: s.info.ClientId, + ClientId: s.info.ClientId, + SchedulingMetadata: schedulingMetadata, }, nil } @@ -512,7 +519,7 @@ func recordSandboxKill(ctx context.Context, counter metric.Int64Counter, killRea counter.Add(ctx, 1, metric.WithAttributes(attribute.String("kill_reason", killReason))) } -func (s *Server) Pause(ctx context.Context, in *orchestrator.SandboxPauseRequest) (*emptypb.Empty, error) { +func (s *Server) Pause(ctx context.Context, in *orchestrator.SandboxPauseRequest) (*orchestrator.SandboxPauseResponse, error) { ctx, childSpan := tracer.Start(ctx, "sandbox-pause") defer childSpan.End() @@ -590,7 +597,9 @@ func (s *Server) Pause(ctx context.Context, in *orchestrator.SandboxPauseRequest }, ) - return &emptypb.Empty{}, nil + return &orchestrator.SandboxPauseResponse{ + SchedulingMetadata: res.schedulingMetadata, + }, nil } func (s *Server) Checkpoint(ctx context.Context, in *orchestrator.SandboxCheckpointRequest) (*orchestrator.SandboxCheckpointResponse, error) { @@ -741,7 +750,9 @@ func (s *Server) Checkpoint(ctx context.Context, in *orchestrator.SandboxCheckpo telemetry.ReportEvent(ctx, "Checkpoint completed") - return &orchestrator.SandboxCheckpointResponse{}, nil + return &orchestrator.SandboxCheckpointResponse{ + SchedulingMetadata: res.schedulingMetadata, + }, nil } // Extracts common data needed for sandbox events @@ -778,9 +789,10 @@ func (s *Server) getSandboxExecutionData(sbx *sandbox.Sandbox) map[string]any { // snapshotResult holds the data produced by snapshotAndCacheSandbox that // callers need to start the background remote storage upload. type snapshotResult struct { - meta metadata.Template - upload *sandbox.Upload - completeUpload func(ctx context.Context, uploadErr error) + meta metadata.Template + schedulingMetadata *orchestrator.SchedulingMetadata + upload *sandbox.Upload + completeUpload func(ctx context.Context, uploadErr error) } // snapshotAndCacheSandbox creates a snapshot of a sandbox and adds it to the @@ -859,9 +871,10 @@ func (s *Server) snapshotAndCacheSandbox( } return &snapshotResult{ - meta: meta, - upload: upload, - completeUpload: completeUpload, + meta: meta, + schedulingMetadata: snapshot.SchedulingMetadata, + upload: upload, + completeUpload: completeUpload, }, nil } diff --git a/packages/orchestrator/pkg/server/template_cache.go b/packages/orchestrator/pkg/server/template_cache.go index 8be9aa7da7..0f90fddc7a 100644 --- a/packages/orchestrator/pkg/server/template_cache.go +++ b/packages/orchestrator/pkg/server/template_cache.go @@ -6,7 +6,6 @@ import ( "context" "google.golang.org/protobuf/types/known/emptypb" - "google.golang.org/protobuf/types/known/timestamppb" "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" ) @@ -17,10 +16,13 @@ func (s *Server) ListCachedBuilds(ctx context.Context, _ *emptypb.Empty) (*orche var builds []*orchestrator.CachedBuildInfo - for key, item := range s.templateCache.Items() { + for _, stats := range s.templateCache.CachedBuildStats(ctx) { builds = append(builds, &orchestrator.CachedBuildInfo{ - BuildId: key, - ExpirationTime: timestamppb.New(item.ExpiresAt()), + BuildId: stats.BuildID, + MemfileCachedBytes: stats.MemfileCachedBytes, + MemfileTotalBytes: stats.MemfileTotalBytes, + RootfsCachedBytes: stats.RootfsCachedBytes, + RootfsTotalBytes: stats.RootfsTotalBytes, }) } diff --git a/packages/orchestrator/pkg/template/build/builder.go b/packages/orchestrator/pkg/template/build/builder.go index 5d9900d472..caa98be444 100644 --- a/packages/orchestrator/pkg/template/build/builder.go +++ b/packages/orchestrator/pkg/template/build/builder.go @@ -37,6 +37,8 @@ import ( artifactsregistry "github.com/e2b-dev/infra/packages/shared/pkg/artifacts-registry" "github.com/e2b-dev/infra/packages/shared/pkg/dockerhub" "github.com/e2b-dev/infra/packages/shared/pkg/featureflags" + orchestratorgrpc "github.com/e2b-dev/infra/packages/shared/pkg/grpc/orchestrator" + templatemanager "github.com/e2b-dev/infra/packages/shared/pkg/grpc/template-manager" "github.com/e2b-dev/infra/packages/shared/pkg/logger" "github.com/e2b-dev/infra/packages/shared/pkg/storage" "github.com/e2b-dev/infra/packages/shared/pkg/storage/header" @@ -103,6 +105,7 @@ type Result struct { KernelVersion string FirecrackerVersion string RootfsSizeMB int64 + SchedulingMetadata *templatemanager.TemplateSchedulingMetadata } // Build builds the template, uploads it to storage and returns the result metadata. @@ -387,9 +390,43 @@ func runBuild( KernelVersion: bc.Config.KernelVersion, FirecrackerVersion: bc.Config.FirecrackerVersion, RootfsSizeMB: units.BytesToMB(int64(rootfsSize)), + SchedulingMetadata: templateSchedulingMetadata(builder.templateCache, lastLayerResult.Metadata.Template.BuildID), }, nil } +func templateSchedulingMetadata(cache *sbxtemplate.Cache, buildID string) *templatemanager.TemplateSchedulingMetadata { + t, ok := cache.GetCachedTemplate(buildID) + if !ok { + return nil + } + provider, ok := t.(interface { + SchedulingMetadata() *orchestratorgrpc.SchedulingMetadata + }) + if !ok { + return nil + } + + return toTemplateSchedulingMetadata(provider.SchedulingMetadata()) +} + +func toTemplateSchedulingMetadata(m *orchestratorgrpc.SchedulingMetadata) *templatemanager.TemplateSchedulingMetadata { + if m == nil { + return nil + } + + return &templatemanager.TemplateSchedulingMetadata{ + BaseBuildID: m.GetBaseBuildId(), + Generation: m.GetGeneration(), + MemfileSize: m.GetMemfileSize(), + RootfsSize: m.GetRootfsSize(), + ChainBuildIDs: m.GetChainBuildIds(), + MemfileLogicalBytes: m.GetMemfileLogicalBytes(), + MemfileMappingCounts: m.GetMemfileMappingCounts(), + RootfsLogicalBytes: m.GetRootfsLogicalBytes(), + RootfsMappingCounts: m.GetRootfsMappingCounts(), + } +} + // forceSteps sets force for all steps after the first encounter. func forceSteps(template config.TemplateConfig) config.TemplateConfig { shouldRebuild := template.Force != nil && *template.Force diff --git a/packages/orchestrator/pkg/template/server/create_template.go b/packages/orchestrator/pkg/template/server/create_template.go index cf0547a580..7aeb1aeb90 100644 --- a/packages/orchestrator/pkg/template/server/create_template.go +++ b/packages/orchestrator/pkg/template/server/create_template.go @@ -181,6 +181,7 @@ func (s *ServerStore) TemplateCreate(ctx context.Context, templateRequest *templ EnvdVersionKey: res.EnvdVersion, KernelVersion: res.KernelVersion, FirecrackerVersion: res.FirecrackerVersion, + SchedulingMetadata: res.SchedulingMetadata, }) telemetry.ReportEvent(ctx, "Environment built") } diff --git a/packages/orchestrator/template-manager.proto b/packages/orchestrator/template-manager.proto index 1e70950637..9952229325 100644 --- a/packages/orchestrator/template-manager.proto +++ b/packages/orchestrator/template-manager.proto @@ -132,6 +132,19 @@ message TemplateBuildMetadata { // The API persists these into the env_builds row once the build finishes. string kernelVersion = 3; string firecrackerVersion = 4; + TemplateSchedulingMetadata schedulingMetadata = 5; +} + +message TemplateSchedulingMetadata { + string baseBuildID = 1; + uint64 generation = 2; + uint64 memfileSize = 3; + uint64 rootfsSize = 4; + repeated string chainBuildIDs = 5; + repeated uint64 memfileLogicalBytes = 6; + repeated uint32 memfileMappingCounts = 7; + repeated uint64 rootfsLogicalBytes = 8; + repeated uint32 rootfsMappingCounts = 9; } enum TemplateBuildState { diff --git a/packages/shared/pkg/grpc/orchestrator/orchestrator.pb.go b/packages/shared/pkg/grpc/orchestrator/orchestrator.pb.go index ea9a9a5a19..029aa4623d 100644 --- a/packages/shared/pkg/grpc/orchestrator/orchestrator.pb.go +++ b/packages/shared/pkg/grpc/orchestrator/orchestrator.pb.go @@ -778,7 +778,8 @@ type SandboxCreateResponse struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + SchedulingMetadata *SchedulingMetadata `protobuf:"bytes,2,opt,name=scheduling_metadata,json=schedulingMetadata,proto3" json:"scheduling_metadata,omitempty"` } func (x *SandboxCreateResponse) Reset() { @@ -820,6 +821,13 @@ func (x *SandboxCreateResponse) GetClientId() string { return "" } +func (x *SandboxCreateResponse) GetSchedulingMetadata() *SchedulingMetadata { + if x != nil { + return x.SchedulingMetadata + } + return nil +} + type SandboxUpdateRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1002,6 +1010,164 @@ func (x *SandboxPauseRequest) GetBuildId() string { return "" } +type SchedulingMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BaseBuildId string `protobuf:"bytes,1,opt,name=base_build_id,json=baseBuildId,proto3" json:"base_build_id,omitempty"` + Generation uint64 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"` + MemfileSize uint64 `protobuf:"varint,3,opt,name=memfile_size,json=memfileSize,proto3" json:"memfile_size,omitempty"` + RootfsSize uint64 `protobuf:"varint,4,opt,name=rootfs_size,json=rootfsSize,proto3" json:"rootfs_size,omitempty"` + ChainBuildIds []string `protobuf:"bytes,5,rep,name=chain_build_ids,json=chainBuildIds,proto3" json:"chain_build_ids,omitempty"` + MemfileLogicalBytes []uint64 `protobuf:"varint,6,rep,packed,name=memfile_logical_bytes,json=memfileLogicalBytes,proto3" json:"memfile_logical_bytes,omitempty"` + MemfileMappingCounts []uint32 `protobuf:"varint,7,rep,packed,name=memfile_mapping_counts,json=memfileMappingCounts,proto3" json:"memfile_mapping_counts,omitempty"` + RootfsLogicalBytes []uint64 `protobuf:"varint,8,rep,packed,name=rootfs_logical_bytes,json=rootfsLogicalBytes,proto3" json:"rootfs_logical_bytes,omitempty"` + RootfsMappingCounts []uint32 `protobuf:"varint,9,rep,packed,name=rootfs_mapping_counts,json=rootfsMappingCounts,proto3" json:"rootfs_mapping_counts,omitempty"` +} + +func (x *SchedulingMetadata) Reset() { + *x = SchedulingMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_orchestrator_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SchedulingMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SchedulingMetadata) ProtoMessage() {} + +func (x *SchedulingMetadata) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_proto_msgTypes[14] + 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 SchedulingMetadata.ProtoReflect.Descriptor instead. +func (*SchedulingMetadata) Descriptor() ([]byte, []int) { + return file_orchestrator_proto_rawDescGZIP(), []int{14} +} + +func (x *SchedulingMetadata) GetBaseBuildId() string { + if x != nil { + return x.BaseBuildId + } + return "" +} + +func (x *SchedulingMetadata) GetGeneration() uint64 { + if x != nil { + return x.Generation + } + return 0 +} + +func (x *SchedulingMetadata) GetMemfileSize() uint64 { + if x != nil { + return x.MemfileSize + } + return 0 +} + +func (x *SchedulingMetadata) GetRootfsSize() uint64 { + if x != nil { + return x.RootfsSize + } + return 0 +} + +func (x *SchedulingMetadata) GetChainBuildIds() []string { + if x != nil { + return x.ChainBuildIds + } + return nil +} + +func (x *SchedulingMetadata) GetMemfileLogicalBytes() []uint64 { + if x != nil { + return x.MemfileLogicalBytes + } + return nil +} + +func (x *SchedulingMetadata) GetMemfileMappingCounts() []uint32 { + if x != nil { + return x.MemfileMappingCounts + } + return nil +} + +func (x *SchedulingMetadata) GetRootfsLogicalBytes() []uint64 { + if x != nil { + return x.RootfsLogicalBytes + } + return nil +} + +func (x *SchedulingMetadata) GetRootfsMappingCounts() []uint32 { + if x != nil { + return x.RootfsMappingCounts + } + return nil +} + +type SandboxPauseResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + SchedulingMetadata *SchedulingMetadata `protobuf:"bytes,1,opt,name=scheduling_metadata,json=schedulingMetadata,proto3" json:"scheduling_metadata,omitempty"` +} + +func (x *SandboxPauseResponse) Reset() { + *x = SandboxPauseResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_orchestrator_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SandboxPauseResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SandboxPauseResponse) ProtoMessage() {} + +func (x *SandboxPauseResponse) ProtoReflect() protoreflect.Message { + mi := &file_orchestrator_proto_msgTypes[15] + 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 SandboxPauseResponse.ProtoReflect.Descriptor instead. +func (*SandboxPauseResponse) Descriptor() ([]byte, []int) { + return file_orchestrator_proto_rawDescGZIP(), []int{15} +} + +func (x *SandboxPauseResponse) GetSchedulingMetadata() *SchedulingMetadata { + if x != nil { + return x.SchedulingMetadata + } + return nil +} + type SandboxCheckpointRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1014,7 +1180,7 @@ type SandboxCheckpointRequest struct { func (x *SandboxCheckpointRequest) Reset() { *x = SandboxCheckpointRequest{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[14] + mi := &file_orchestrator_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1027,7 +1193,7 @@ func (x *SandboxCheckpointRequest) String() string { func (*SandboxCheckpointRequest) ProtoMessage() {} func (x *SandboxCheckpointRequest) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[14] + mi := &file_orchestrator_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1040,7 +1206,7 @@ func (x *SandboxCheckpointRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SandboxCheckpointRequest.ProtoReflect.Descriptor instead. func (*SandboxCheckpointRequest) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{14} + return file_orchestrator_proto_rawDescGZIP(), []int{16} } func (x *SandboxCheckpointRequest) GetSandboxId() string { @@ -1061,12 +1227,14 @@ type SandboxCheckpointResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields + + SchedulingMetadata *SchedulingMetadata `protobuf:"bytes,1,opt,name=scheduling_metadata,json=schedulingMetadata,proto3" json:"scheduling_metadata,omitempty"` } func (x *SandboxCheckpointResponse) Reset() { *x = SandboxCheckpointResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[15] + mi := &file_orchestrator_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1079,7 +1247,7 @@ func (x *SandboxCheckpointResponse) String() string { func (*SandboxCheckpointResponse) ProtoMessage() {} func (x *SandboxCheckpointResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[15] + mi := &file_orchestrator_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1092,7 +1260,14 @@ func (x *SandboxCheckpointResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SandboxCheckpointResponse.ProtoReflect.Descriptor instead. func (*SandboxCheckpointResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{15} + return file_orchestrator_proto_rawDescGZIP(), []int{17} +} + +func (x *SandboxCheckpointResponse) GetSchedulingMetadata() *SchedulingMetadata { + if x != nil { + return x.SchedulingMetadata + } + return nil } type RunningSandbox struct { @@ -1109,7 +1284,7 @@ type RunningSandbox struct { func (x *RunningSandbox) Reset() { *x = RunningSandbox{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[16] + mi := &file_orchestrator_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1122,7 +1297,7 @@ func (x *RunningSandbox) String() string { func (*RunningSandbox) ProtoMessage() {} func (x *RunningSandbox) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[16] + mi := &file_orchestrator_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1135,7 +1310,7 @@ func (x *RunningSandbox) ProtoReflect() protoreflect.Message { // Deprecated: Use RunningSandbox.ProtoReflect.Descriptor instead. func (*RunningSandbox) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{16} + return file_orchestrator_proto_rawDescGZIP(), []int{18} } func (x *RunningSandbox) GetConfig() *SandboxConfig { @@ -1177,7 +1352,7 @@ type SandboxListResponse struct { func (x *SandboxListResponse) Reset() { *x = SandboxListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[17] + mi := &file_orchestrator_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1190,7 +1365,7 @@ func (x *SandboxListResponse) String() string { func (*SandboxListResponse) ProtoMessage() {} func (x *SandboxListResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[17] + mi := &file_orchestrator_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1203,7 +1378,7 @@ func (x *SandboxListResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SandboxListResponse.ProtoReflect.Descriptor instead. func (*SandboxListResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{17} + return file_orchestrator_proto_rawDescGZIP(), []int{19} } func (x *SandboxListResponse) GetSandboxes() []*RunningSandbox { @@ -1218,14 +1393,19 @@ type CachedBuildInfo struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` - ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"` + ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` + SchedulingMetadata *SchedulingMetadata `protobuf:"bytes,3,opt,name=scheduling_metadata,json=schedulingMetadata,proto3" json:"scheduling_metadata,omitempty"` + MemfileCachedBytes uint64 `protobuf:"varint,4,opt,name=memfile_cached_bytes,json=memfileCachedBytes,proto3" json:"memfile_cached_bytes,omitempty"` + MemfileTotalBytes uint64 `protobuf:"varint,5,opt,name=memfile_total_bytes,json=memfileTotalBytes,proto3" json:"memfile_total_bytes,omitempty"` + RootfsCachedBytes uint64 `protobuf:"varint,6,opt,name=rootfs_cached_bytes,json=rootfsCachedBytes,proto3" json:"rootfs_cached_bytes,omitempty"` + RootfsTotalBytes uint64 `protobuf:"varint,7,opt,name=rootfs_total_bytes,json=rootfsTotalBytes,proto3" json:"rootfs_total_bytes,omitempty"` } func (x *CachedBuildInfo) Reset() { *x = CachedBuildInfo{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[18] + mi := &file_orchestrator_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1238,7 +1418,7 @@ func (x *CachedBuildInfo) String() string { func (*CachedBuildInfo) ProtoMessage() {} func (x *CachedBuildInfo) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[18] + mi := &file_orchestrator_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1251,7 +1431,7 @@ func (x *CachedBuildInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use CachedBuildInfo.ProtoReflect.Descriptor instead. func (*CachedBuildInfo) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{18} + return file_orchestrator_proto_rawDescGZIP(), []int{20} } func (x *CachedBuildInfo) GetBuildId() string { @@ -1268,6 +1448,41 @@ func (x *CachedBuildInfo) GetExpirationTime() *timestamppb.Timestamp { return nil } +func (x *CachedBuildInfo) GetSchedulingMetadata() *SchedulingMetadata { + if x != nil { + return x.SchedulingMetadata + } + return nil +} + +func (x *CachedBuildInfo) GetMemfileCachedBytes() uint64 { + if x != nil { + return x.MemfileCachedBytes + } + return 0 +} + +func (x *CachedBuildInfo) GetMemfileTotalBytes() uint64 { + if x != nil { + return x.MemfileTotalBytes + } + return 0 +} + +func (x *CachedBuildInfo) GetRootfsCachedBytes() uint64 { + if x != nil { + return x.RootfsCachedBytes + } + return 0 +} + +func (x *CachedBuildInfo) GetRootfsTotalBytes() uint64 { + if x != nil { + return x.RootfsTotalBytes + } + return 0 +} + type SandboxListCachedBuildsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1279,7 +1494,7 @@ type SandboxListCachedBuildsResponse struct { func (x *SandboxListCachedBuildsResponse) Reset() { *x = SandboxListCachedBuildsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_orchestrator_proto_msgTypes[19] + mi := &file_orchestrator_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1292,7 +1507,7 @@ func (x *SandboxListCachedBuildsResponse) String() string { func (*SandboxListCachedBuildsResponse) ProtoMessage() {} func (x *SandboxListCachedBuildsResponse) ProtoReflect() protoreflect.Message { - mi := &file_orchestrator_proto_msgTypes[19] + mi := &file_orchestrator_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1305,7 +1520,7 @@ func (x *SandboxListCachedBuildsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SandboxListCachedBuildsResponse.ProtoReflect.Descriptor instead. func (*SandboxListCachedBuildsResponse) Descriptor() ([]byte, []int) { - return file_orchestrator_proto_rawDescGZIP(), []int{19} + return file_orchestrator_proto_rawDescGZIP(), []int{21} } func (x *SandboxListCachedBuildsResponse) GetBuilds() []*CachedBuildInfo { @@ -1480,105 +1695,161 @@ var file_orchestrator_proto_rawDesc = []byte{ 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x34, 0x0a, 0x15, + 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x7a, 0x0a, 0x15, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x49, 0x64, 0x22, 0xc3, 0x01, 0x0a, 0x14, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, - 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, - 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, - 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, - 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, 0x06, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x48, 0x01, 0x52, 0x06, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, - 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x09, 0x0a, - 0x07, 0x5f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6b, 0x0a, 0x14, 0x53, 0x61, 0x6e, 0x64, - 0x62, 0x6f, 0x78, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, - 0x24, 0x0a, 0x0b, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x6b, 0x69, 0x6c, 0x6c, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x13, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, - 0x50, 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, - 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, - 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x22, 0x54, 0x0a, 0x18, 0x53, 0x61, 0x6e, 0x64, 0x62, - 0x6f, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, + 0x49, 0x64, 0x12, 0x44, 0x0a, 0x13, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x13, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc3, 0x01, 0x0a, 0x14, 0x53, 0x61, 0x6e, + 0x64, 0x62, 0x6f, 0x78, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, 0x64, + 0x12, 0x3a, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x00, + 0x52, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x38, 0x0a, 0x06, + 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x53, + 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x45, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x48, 0x01, 0x52, 0x06, 0x65, 0x67, 0x72, + 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x65, 0x6e, 0x64, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22, 0x6b, + 0x0a, 0x14, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, + 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, + 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0b, 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, + 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0a, 0x6b, 0x69, + 0x6c, 0x6c, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x0e, 0x0a, 0x0c, 0x5f, + 0x6b, 0x69, 0x6c, 0x6c, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x22, 0x70, 0x0a, 0x13, 0x53, + 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x50, 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, + 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x69, 0x64, + 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x22, 0x1b, 0x0a, - 0x19, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xc7, 0x01, 0x0a, 0x0e, 0x52, - 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x12, 0x26, 0x0a, - 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, - 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, - 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, - 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, - 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, 0x64, - 0x54, 0x69, 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x13, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x09, 0x73, - 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, - 0x2e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x52, - 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x22, 0x71, 0x0a, 0x0f, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x19, 0x0a, - 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, 0x70, 0x69, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0e, 0x65, - 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x4b, 0x0a, - 0x1f, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x28, 0x0a, 0x06, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x10, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x06, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x32, 0xbb, 0x03, 0x0a, 0x0e, 0x53, - 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, - 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, - 0x78, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x12, 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x34, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, - 0x14, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, - 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x35, - 0x0a, 0x05, 0x50, 0x61, 0x75, 0x73, 0x65, 0x12, 0x14, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, - 0x78, 0x50, 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x43, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, - 0x69, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, - 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, - 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x4c, 0x69, - 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x12, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x22, 0x94, 0x03, + 0x0a, 0x12, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x12, 0x22, 0x0a, 0x0d, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x62, 0x75, 0x69, + 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x61, 0x73, + 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, + 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x67, 0x65, + 0x6e, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x6d, 0x65, 0x6d, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, + 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, + 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, + 0x52, 0x0a, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x26, 0x0a, 0x0f, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x5f, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x73, 0x18, + 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x75, 0x69, 0x6c, + 0x64, 0x49, 0x64, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x5f, + 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, + 0x03, 0x28, 0x04, 0x52, 0x13, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x69, + 0x63, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x16, 0x6d, 0x65, 0x6d, 0x66, + 0x69, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, + 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x14, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, + 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x30, + 0x0a, 0x14, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x5f, 0x6c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, + 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, 0x12, 0x72, 0x6f, + 0x6f, 0x74, 0x66, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, + 0x12, 0x32, 0x0a, 0x15, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x5f, 0x6d, 0x61, 0x70, 0x70, 0x69, + 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, 0x52, + 0x13, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, + 0x75, 0x6e, 0x74, 0x73, 0x22, 0x5c, 0x0a, 0x14, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x13, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x53, 0x63, 0x68, 0x65, + 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, + 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0x22, 0x54, 0x0a, 0x18, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, + 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, + 0x0a, 0x0a, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x49, 0x64, 0x12, 0x19, 0x0a, + 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x22, 0x61, 0x0a, 0x19, 0x53, 0x61, 0x6e, 0x64, + 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x13, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, + 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc7, 0x01, 0x0a, 0x0e, + 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x12, 0x26, + 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, + 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x06, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, + 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, + 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, + 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, + 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, 0x6e, + 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x44, 0x0a, 0x13, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, + 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x09, + 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x0f, 0x2e, 0x52, 0x75, 0x6e, 0x6e, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, + 0x52, 0x09, 0x73, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x65, 0x73, 0x22, 0xf7, 0x02, 0x0a, 0x0f, + 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, + 0x19, 0x0a, 0x08, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x0f, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, + 0x0e, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x44, 0x0a, 0x13, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x53, + 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x30, 0x0a, 0x14, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, + 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x12, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x6d, 0x65, 0x6d, 0x66, 0x69, + 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x54, 0x6f, 0x74, + 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x6f, 0x6f, 0x74, 0x66, + 0x73, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x04, 0x52, 0x11, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x43, 0x61, 0x63, 0x68, + 0x65, 0x64, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, 0x2c, 0x0a, 0x12, 0x72, 0x6f, 0x6f, 0x74, 0x66, + 0x73, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x5f, 0x62, 0x79, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x04, 0x52, 0x10, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x54, 0x6f, 0x74, 0x61, 0x6c, + 0x42, 0x79, 0x74, 0x65, 0x73, 0x22, 0x4b, 0x0a, 0x1f, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2f, 0x5a, 0x2d, 0x68, 0x74, 0x74, 0x70, - 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, - 0x32, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x6f, 0x72, 0x63, - 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x28, 0x0a, 0x06, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, + 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x62, 0x75, 0x69, 0x6c, + 0x64, 0x73, 0x32, 0xba, 0x03, 0x0a, 0x0e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x37, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, + 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, + 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, + 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, + 0x6f, 0x78, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x04, 0x4c, 0x69, 0x73, 0x74, 0x12, + 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x14, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, + 0x78, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, + 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, + 0x78, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x50, 0x61, 0x75, 0x73, 0x65, 0x12, + 0x14, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x50, 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x50, + 0x61, 0x75, 0x73, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, + 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x19, 0x2e, 0x53, 0x61, 0x6e, + 0x64, 0x62, 0x6f, 0x78, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x43, + 0x68, 0x65, 0x63, 0x6b, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4c, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, 0x64, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x20, 0x2e, + 0x53, 0x61, 0x6e, 0x64, 0x62, 0x6f, 0x78, 0x4c, 0x69, 0x73, 0x74, 0x43, 0x61, 0x63, 0x68, 0x65, + 0x64, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x2f, 0x5a, 0x2d, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x32, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x6e, + 0x66, 0x72, 0x61, 0x2f, 0x6f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x6f, 0x72, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1593,7 +1864,7 @@ func file_orchestrator_proto_rawDescGZIP() []byte { return file_orchestrator_proto_rawDescData } -var file_orchestrator_proto_msgTypes = make([]protoimpl.MessageInfo, 24) +var file_orchestrator_proto_msgTypes = make([]protoimpl.MessageInfo, 26) var file_orchestrator_proto_goTypes = []interface{}{ (*SandboxConfig)(nil), // 0: SandboxConfig (*SandboxAutoResumeConfig)(nil), // 1: SandboxAutoResumeConfig @@ -1609,62 +1880,68 @@ var file_orchestrator_proto_goTypes = []interface{}{ (*SandboxUpdateRequest)(nil), // 11: SandboxUpdateRequest (*SandboxDeleteRequest)(nil), // 12: SandboxDeleteRequest (*SandboxPauseRequest)(nil), // 13: SandboxPauseRequest - (*SandboxCheckpointRequest)(nil), // 14: SandboxCheckpointRequest - (*SandboxCheckpointResponse)(nil), // 15: SandboxCheckpointResponse - (*RunningSandbox)(nil), // 16: RunningSandbox - (*SandboxListResponse)(nil), // 17: SandboxListResponse - (*CachedBuildInfo)(nil), // 18: CachedBuildInfo - (*SandboxListCachedBuildsResponse)(nil), // 19: SandboxListCachedBuildsResponse - nil, // 20: SandboxConfig.EnvVarsEntry - nil, // 21: SandboxConfig.MetadataEntry - nil, // 22: SandboxNetworkTransform.HeadersEntry - nil, // 23: SandboxNetworkEgressConfig.RulesEntry - (*timestamppb.Timestamp)(nil), // 24: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 25: google.protobuf.Empty + (*SchedulingMetadata)(nil), // 14: SchedulingMetadata + (*SandboxPauseResponse)(nil), // 15: SandboxPauseResponse + (*SandboxCheckpointRequest)(nil), // 16: SandboxCheckpointRequest + (*SandboxCheckpointResponse)(nil), // 17: SandboxCheckpointResponse + (*RunningSandbox)(nil), // 18: RunningSandbox + (*SandboxListResponse)(nil), // 19: SandboxListResponse + (*CachedBuildInfo)(nil), // 20: CachedBuildInfo + (*SandboxListCachedBuildsResponse)(nil), // 21: SandboxListCachedBuildsResponse + nil, // 22: SandboxConfig.EnvVarsEntry + nil, // 23: SandboxConfig.MetadataEntry + nil, // 24: SandboxNetworkTransform.HeadersEntry + nil, // 25: SandboxNetworkEgressConfig.RulesEntry + (*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 27: google.protobuf.Empty } var file_orchestrator_proto_depIdxs = []int32{ - 20, // 0: SandboxConfig.env_vars:type_name -> SandboxConfig.EnvVarsEntry - 21, // 1: SandboxConfig.metadata:type_name -> SandboxConfig.MetadataEntry + 22, // 0: SandboxConfig.env_vars:type_name -> SandboxConfig.EnvVarsEntry + 23, // 1: SandboxConfig.metadata:type_name -> SandboxConfig.MetadataEntry 3, // 2: SandboxConfig.network:type_name -> SandboxNetworkConfig 2, // 3: SandboxConfig.volumeMounts:type_name -> SandboxVolumeMount 1, // 4: SandboxConfig.auto_resume:type_name -> SandboxAutoResumeConfig 7, // 5: SandboxNetworkConfig.egress:type_name -> SandboxNetworkEgressConfig 8, // 6: SandboxNetworkConfig.ingress:type_name -> SandboxNetworkIngressConfig - 22, // 7: SandboxNetworkTransform.headers:type_name -> SandboxNetworkTransform.HeadersEntry + 24, // 7: SandboxNetworkTransform.headers:type_name -> SandboxNetworkTransform.HeadersEntry 4, // 8: SandboxNetworkRule.transform:type_name -> SandboxNetworkTransform 5, // 9: SandboxNetworkDomainRules.rules:type_name -> SandboxNetworkRule - 23, // 10: SandboxNetworkEgressConfig.rules:type_name -> SandboxNetworkEgressConfig.RulesEntry + 25, // 10: SandboxNetworkEgressConfig.rules:type_name -> SandboxNetworkEgressConfig.RulesEntry 0, // 11: SandboxCreateRequest.sandbox:type_name -> SandboxConfig - 24, // 12: SandboxCreateRequest.start_time:type_name -> google.protobuf.Timestamp - 24, // 13: SandboxCreateRequest.end_time:type_name -> google.protobuf.Timestamp - 24, // 14: SandboxUpdateRequest.end_time:type_name -> google.protobuf.Timestamp - 7, // 15: SandboxUpdateRequest.egress:type_name -> SandboxNetworkEgressConfig - 0, // 16: RunningSandbox.config:type_name -> SandboxConfig - 24, // 17: RunningSandbox.start_time:type_name -> google.protobuf.Timestamp - 24, // 18: RunningSandbox.end_time:type_name -> google.protobuf.Timestamp - 16, // 19: SandboxListResponse.sandboxes:type_name -> RunningSandbox - 24, // 20: CachedBuildInfo.expiration_time:type_name -> google.protobuf.Timestamp - 18, // 21: SandboxListCachedBuildsResponse.builds:type_name -> CachedBuildInfo - 6, // 22: SandboxNetworkEgressConfig.RulesEntry.value:type_name -> SandboxNetworkDomainRules - 9, // 23: SandboxService.Create:input_type -> SandboxCreateRequest - 11, // 24: SandboxService.Update:input_type -> SandboxUpdateRequest - 25, // 25: SandboxService.List:input_type -> google.protobuf.Empty - 12, // 26: SandboxService.Delete:input_type -> SandboxDeleteRequest - 13, // 27: SandboxService.Pause:input_type -> SandboxPauseRequest - 14, // 28: SandboxService.Checkpoint:input_type -> SandboxCheckpointRequest - 25, // 29: SandboxService.ListCachedBuilds:input_type -> google.protobuf.Empty - 10, // 30: SandboxService.Create:output_type -> SandboxCreateResponse - 25, // 31: SandboxService.Update:output_type -> google.protobuf.Empty - 17, // 32: SandboxService.List:output_type -> SandboxListResponse - 25, // 33: SandboxService.Delete:output_type -> google.protobuf.Empty - 25, // 34: SandboxService.Pause:output_type -> google.protobuf.Empty - 15, // 35: SandboxService.Checkpoint:output_type -> SandboxCheckpointResponse - 19, // 36: SandboxService.ListCachedBuilds:output_type -> SandboxListCachedBuildsResponse - 30, // [30:37] is the sub-list for method output_type - 23, // [23:30] is the sub-list for method input_type - 23, // [23:23] is the sub-list for extension type_name - 23, // [23:23] is the sub-list for extension extendee - 0, // [0:23] is the sub-list for field type_name + 26, // 12: SandboxCreateRequest.start_time:type_name -> google.protobuf.Timestamp + 26, // 13: SandboxCreateRequest.end_time:type_name -> google.protobuf.Timestamp + 14, // 14: SandboxCreateResponse.scheduling_metadata:type_name -> SchedulingMetadata + 26, // 15: SandboxUpdateRequest.end_time:type_name -> google.protobuf.Timestamp + 7, // 16: SandboxUpdateRequest.egress:type_name -> SandboxNetworkEgressConfig + 14, // 17: SandboxPauseResponse.scheduling_metadata:type_name -> SchedulingMetadata + 14, // 18: SandboxCheckpointResponse.scheduling_metadata:type_name -> SchedulingMetadata + 0, // 19: RunningSandbox.config:type_name -> SandboxConfig + 26, // 20: RunningSandbox.start_time:type_name -> google.protobuf.Timestamp + 26, // 21: RunningSandbox.end_time:type_name -> google.protobuf.Timestamp + 18, // 22: SandboxListResponse.sandboxes:type_name -> RunningSandbox + 26, // 23: CachedBuildInfo.expiration_time:type_name -> google.protobuf.Timestamp + 14, // 24: CachedBuildInfo.scheduling_metadata:type_name -> SchedulingMetadata + 20, // 25: SandboxListCachedBuildsResponse.builds:type_name -> CachedBuildInfo + 6, // 26: SandboxNetworkEgressConfig.RulesEntry.value:type_name -> SandboxNetworkDomainRules + 9, // 27: SandboxService.Create:input_type -> SandboxCreateRequest + 11, // 28: SandboxService.Update:input_type -> SandboxUpdateRequest + 27, // 29: SandboxService.List:input_type -> google.protobuf.Empty + 12, // 30: SandboxService.Delete:input_type -> SandboxDeleteRequest + 13, // 31: SandboxService.Pause:input_type -> SandboxPauseRequest + 16, // 32: SandboxService.Checkpoint:input_type -> SandboxCheckpointRequest + 27, // 33: SandboxService.ListCachedBuilds:input_type -> google.protobuf.Empty + 10, // 34: SandboxService.Create:output_type -> SandboxCreateResponse + 27, // 35: SandboxService.Update:output_type -> google.protobuf.Empty + 19, // 36: SandboxService.List:output_type -> SandboxListResponse + 27, // 37: SandboxService.Delete:output_type -> google.protobuf.Empty + 15, // 38: SandboxService.Pause:output_type -> SandboxPauseResponse + 17, // 39: SandboxService.Checkpoint:output_type -> SandboxCheckpointResponse + 21, // 40: SandboxService.ListCachedBuilds:output_type -> SandboxListCachedBuildsResponse + 34, // [34:41] is the sub-list for method output_type + 27, // [27:34] is the sub-list for method input_type + 27, // [27:27] is the sub-list for extension type_name + 27, // [27:27] is the sub-list for extension extendee + 0, // [0:27] is the sub-list for field type_name } func init() { file_orchestrator_proto_init() } @@ -1842,7 +2119,7 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SandboxCheckpointRequest); i { + switch v := v.(*SchedulingMetadata); i { case 0: return &v.state case 1: @@ -1854,7 +2131,7 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SandboxCheckpointResponse); i { + switch v := v.(*SandboxPauseResponse); i { case 0: return &v.state case 1: @@ -1866,7 +2143,7 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunningSandbox); i { + switch v := v.(*SandboxCheckpointRequest); i { case 0: return &v.state case 1: @@ -1878,7 +2155,7 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SandboxListResponse); i { + switch v := v.(*SandboxCheckpointResponse); i { case 0: return &v.state case 1: @@ -1890,7 +2167,7 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CachedBuildInfo); i { + switch v := v.(*RunningSandbox); i { case 0: return &v.state case 1: @@ -1902,6 +2179,30 @@ func file_orchestrator_proto_init() { } } file_orchestrator_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SandboxListResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_orchestrator_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CachedBuildInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_orchestrator_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*SandboxListCachedBuildsResponse); i { case 0: return &v.state @@ -1926,7 +2227,7 @@ func file_orchestrator_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_orchestrator_proto_rawDesc, NumEnums: 0, - NumMessages: 24, + NumMessages: 26, NumExtensions: 0, NumServices: 1, }, diff --git a/packages/shared/pkg/grpc/orchestrator/orchestrator_grpc.pb.go b/packages/shared/pkg/grpc/orchestrator/orchestrator_grpc.pb.go index 123f5ae38d..61d933d3d1 100644 --- a/packages/shared/pkg/grpc/orchestrator/orchestrator_grpc.pb.go +++ b/packages/shared/pkg/grpc/orchestrator/orchestrator_grpc.pb.go @@ -37,7 +37,7 @@ type SandboxServiceClient interface { Update(ctx context.Context, in *SandboxUpdateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) List(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SandboxListResponse, error) Delete(ctx context.Context, in *SandboxDeleteRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - Pause(ctx context.Context, in *SandboxPauseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + Pause(ctx context.Context, in *SandboxPauseRequest, opts ...grpc.CallOption) (*SandboxPauseResponse, error) Checkpoint(ctx context.Context, in *SandboxCheckpointRequest, opts ...grpc.CallOption) (*SandboxCheckpointResponse, error) ListCachedBuilds(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SandboxListCachedBuildsResponse, error) } @@ -90,9 +90,9 @@ func (c *sandboxServiceClient) Delete(ctx context.Context, in *SandboxDeleteRequ return out, nil } -func (c *sandboxServiceClient) Pause(ctx context.Context, in *SandboxPauseRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { +func (c *sandboxServiceClient) Pause(ctx context.Context, in *SandboxPauseRequest, opts ...grpc.CallOption) (*SandboxPauseResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) + out := new(SandboxPauseResponse) err := c.cc.Invoke(ctx, SandboxService_Pause_FullMethodName, in, out, cOpts...) if err != nil { return nil, err @@ -128,7 +128,7 @@ type SandboxServiceServer interface { Update(context.Context, *SandboxUpdateRequest) (*emptypb.Empty, error) List(context.Context, *emptypb.Empty) (*SandboxListResponse, error) Delete(context.Context, *SandboxDeleteRequest) (*emptypb.Empty, error) - Pause(context.Context, *SandboxPauseRequest) (*emptypb.Empty, error) + Pause(context.Context, *SandboxPauseRequest) (*SandboxPauseResponse, error) Checkpoint(context.Context, *SandboxCheckpointRequest) (*SandboxCheckpointResponse, error) ListCachedBuilds(context.Context, *emptypb.Empty) (*SandboxListCachedBuildsResponse, error) mustEmbedUnimplementedSandboxServiceServer() @@ -153,7 +153,7 @@ func (UnimplementedSandboxServiceServer) List(context.Context, *emptypb.Empty) ( func (UnimplementedSandboxServiceServer) Delete(context.Context, *SandboxDeleteRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method Delete not implemented") } -func (UnimplementedSandboxServiceServer) Pause(context.Context, *SandboxPauseRequest) (*emptypb.Empty, error) { +func (UnimplementedSandboxServiceServer) Pause(context.Context, *SandboxPauseRequest) (*SandboxPauseResponse, error) { return nil, status.Error(codes.Unimplemented, "method Pause not implemented") } func (UnimplementedSandboxServiceServer) Checkpoint(context.Context, *SandboxCheckpointRequest) (*SandboxCheckpointResponse, error) { diff --git a/packages/shared/pkg/grpc/template-manager/template-manager.pb.go b/packages/shared/pkg/grpc/template-manager/template-manager.pb.go index 131823fd24..ecc713e6fc 100644 --- a/packages/shared/pkg/grpc/template-manager/template-manager.pb.go +++ b/packages/shared/pkg/grpc/template-manager/template-manager.pb.go @@ -1109,8 +1109,9 @@ type TemplateBuildMetadata struct { EnvdVersionKey string `protobuf:"bytes,2,opt,name=envdVersionKey,proto3" json:"envdVersionKey,omitempty"` // Versions actually used by the template-manager to build the template. // The API persists these into the env_builds row once the build finishes. - KernelVersion string `protobuf:"bytes,3,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` - FirecrackerVersion string `protobuf:"bytes,4,opt,name=firecrackerVersion,proto3" json:"firecrackerVersion,omitempty"` + KernelVersion string `protobuf:"bytes,3,opt,name=kernelVersion,proto3" json:"kernelVersion,omitempty"` + FirecrackerVersion string `protobuf:"bytes,4,opt,name=firecrackerVersion,proto3" json:"firecrackerVersion,omitempty"` + SchedulingMetadata *TemplateSchedulingMetadata `protobuf:"bytes,5,opt,name=schedulingMetadata,proto3" json:"schedulingMetadata,omitempty"` } func (x *TemplateBuildMetadata) Reset() { @@ -1173,6 +1174,124 @@ func (x *TemplateBuildMetadata) GetFirecrackerVersion() string { return "" } +func (x *TemplateBuildMetadata) GetSchedulingMetadata() *TemplateSchedulingMetadata { + if x != nil { + return x.SchedulingMetadata + } + return nil +} + +type TemplateSchedulingMetadata struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + BaseBuildID string `protobuf:"bytes,1,opt,name=baseBuildID,proto3" json:"baseBuildID,omitempty"` + Generation uint64 `protobuf:"varint,2,opt,name=generation,proto3" json:"generation,omitempty"` + MemfileSize uint64 `protobuf:"varint,3,opt,name=memfileSize,proto3" json:"memfileSize,omitempty"` + RootfsSize uint64 `protobuf:"varint,4,opt,name=rootfsSize,proto3" json:"rootfsSize,omitempty"` + ChainBuildIDs []string `protobuf:"bytes,5,rep,name=chainBuildIDs,proto3" json:"chainBuildIDs,omitempty"` + MemfileLogicalBytes []uint64 `protobuf:"varint,6,rep,packed,name=memfileLogicalBytes,proto3" json:"memfileLogicalBytes,omitempty"` + MemfileMappingCounts []uint32 `protobuf:"varint,7,rep,packed,name=memfileMappingCounts,proto3" json:"memfileMappingCounts,omitempty"` + RootfsLogicalBytes []uint64 `protobuf:"varint,8,rep,packed,name=rootfsLogicalBytes,proto3" json:"rootfsLogicalBytes,omitempty"` + RootfsMappingCounts []uint32 `protobuf:"varint,9,rep,packed,name=rootfsMappingCounts,proto3" json:"rootfsMappingCounts,omitempty"` +} + +func (x *TemplateSchedulingMetadata) Reset() { + *x = TemplateSchedulingMetadata{} + if protoimpl.UnsafeEnabled { + mi := &file_template_manager_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *TemplateSchedulingMetadata) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TemplateSchedulingMetadata) ProtoMessage() {} + +func (x *TemplateSchedulingMetadata) ProtoReflect() protoreflect.Message { + mi := &file_template_manager_proto_msgTypes[13] + 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 TemplateSchedulingMetadata.ProtoReflect.Descriptor instead. +func (*TemplateSchedulingMetadata) Descriptor() ([]byte, []int) { + return file_template_manager_proto_rawDescGZIP(), []int{13} +} + +func (x *TemplateSchedulingMetadata) GetBaseBuildID() string { + if x != nil { + return x.BaseBuildID + } + return "" +} + +func (x *TemplateSchedulingMetadata) GetGeneration() uint64 { + if x != nil { + return x.Generation + } + return 0 +} + +func (x *TemplateSchedulingMetadata) GetMemfileSize() uint64 { + if x != nil { + return x.MemfileSize + } + return 0 +} + +func (x *TemplateSchedulingMetadata) GetRootfsSize() uint64 { + if x != nil { + return x.RootfsSize + } + return 0 +} + +func (x *TemplateSchedulingMetadata) GetChainBuildIDs() []string { + if x != nil { + return x.ChainBuildIDs + } + return nil +} + +func (x *TemplateSchedulingMetadata) GetMemfileLogicalBytes() []uint64 { + if x != nil { + return x.MemfileLogicalBytes + } + return nil +} + +func (x *TemplateSchedulingMetadata) GetMemfileMappingCounts() []uint32 { + if x != nil { + return x.MemfileMappingCounts + } + return nil +} + +func (x *TemplateSchedulingMetadata) GetRootfsLogicalBytes() []uint64 { + if x != nil { + return x.RootfsLogicalBytes + } + return nil +} + +func (x *TemplateSchedulingMetadata) GetRootfsMappingCounts() []uint32 { + if x != nil { + return x.RootfsMappingCounts + } + return nil +} + type TemplateBuildLogEntry struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1187,7 +1306,7 @@ type TemplateBuildLogEntry struct { func (x *TemplateBuildLogEntry) Reset() { *x = TemplateBuildLogEntry{} if protoimpl.UnsafeEnabled { - mi := &file_template_manager_proto_msgTypes[13] + mi := &file_template_manager_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1200,7 +1319,7 @@ func (x *TemplateBuildLogEntry) String() string { func (*TemplateBuildLogEntry) ProtoMessage() {} func (x *TemplateBuildLogEntry) ProtoReflect() protoreflect.Message { - mi := &file_template_manager_proto_msgTypes[13] + mi := &file_template_manager_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1213,7 +1332,7 @@ func (x *TemplateBuildLogEntry) ProtoReflect() protoreflect.Message { // Deprecated: Use TemplateBuildLogEntry.ProtoReflect.Descriptor instead. func (*TemplateBuildLogEntry) Descriptor() ([]byte, []int) { - return file_template_manager_proto_rawDescGZIP(), []int{13} + return file_template_manager_proto_rawDescGZIP(), []int{14} } func (x *TemplateBuildLogEntry) GetTimestamp() *timestamppb.Timestamp { @@ -1256,7 +1375,7 @@ type TemplateBuildStatusReason struct { func (x *TemplateBuildStatusReason) Reset() { *x = TemplateBuildStatusReason{} if protoimpl.UnsafeEnabled { - mi := &file_template_manager_proto_msgTypes[14] + mi := &file_template_manager_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1269,7 +1388,7 @@ func (x *TemplateBuildStatusReason) String() string { func (*TemplateBuildStatusReason) ProtoMessage() {} func (x *TemplateBuildStatusReason) ProtoReflect() protoreflect.Message { - mi := &file_template_manager_proto_msgTypes[14] + mi := &file_template_manager_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1282,7 +1401,7 @@ func (x *TemplateBuildStatusReason) ProtoReflect() protoreflect.Message { // Deprecated: Use TemplateBuildStatusReason.ProtoReflect.Descriptor instead. func (*TemplateBuildStatusReason) Descriptor() ([]byte, []int) { - return file_template_manager_proto_rawDescGZIP(), []int{14} + return file_template_manager_proto_rawDescGZIP(), []int{15} } func (x *TemplateBuildStatusReason) GetMessage() string { @@ -1314,7 +1433,7 @@ type TemplateBuildStatusResponse struct { func (x *TemplateBuildStatusResponse) Reset() { *x = TemplateBuildStatusResponse{} if protoimpl.UnsafeEnabled { - mi := &file_template_manager_proto_msgTypes[15] + mi := &file_template_manager_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1327,7 +1446,7 @@ func (x *TemplateBuildStatusResponse) String() string { func (*TemplateBuildStatusResponse) ProtoMessage() {} func (x *TemplateBuildStatusResponse) ProtoReflect() protoreflect.Message { - mi := &file_template_manager_proto_msgTypes[15] + mi := &file_template_manager_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1340,7 +1459,7 @@ func (x *TemplateBuildStatusResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use TemplateBuildStatusResponse.ProtoReflect.Descriptor instead. func (*TemplateBuildStatusResponse) Descriptor() ([]byte, []int) { - return file_template_manager_proto_rawDescGZIP(), []int{15} + return file_template_manager_proto_rawDescGZIP(), []int{16} } func (x *TemplateBuildStatusResponse) GetStatus() TemplateBuildState { @@ -1514,7 +1633,7 @@ var file_template_manager_proto_rawDesc = []byte{ 0x18, 0x0a, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x62, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x74, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x22, 0xbb, 0x01, 0x0a, 0x15, 0x54, 0x65, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x49, 0x44, 0x22, 0x88, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x24, 0x0a, 0x0d, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x4b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0d, 0x72, 0x6f, 0x6f, 0x74, @@ -1526,79 +1645,109 @@ var file_template_manager_proto_rawDesc = []byte{ 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x66, 0x69, 0x72, 0x65, 0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x66, 0x69, 0x72, 0x65, 0x63, 0x72, 0x61, 0x63, 0x6b, 0x65, 0x72, - 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x83, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x6d, 0x70, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, + 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x63, + 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0x52, 0x12, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x22, 0x8e, 0x03, 0x0a, 0x1a, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x53, 0x63, 0x68, 0x65, 0x64, 0x75, 0x6c, 0x69, 0x6e, 0x67, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, + 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x62, 0x61, 0x73, 0x65, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x49, 0x44, 0x12, 0x1e, 0x0a, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x67, 0x65, 0x6e, 0x65, 0x72, + 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x20, 0x0a, 0x0b, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, + 0x53, 0x69, 0x7a, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0b, 0x6d, 0x65, 0x6d, 0x66, + 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x72, 0x6f, 0x6f, 0x74, 0x66, + 0x73, 0x53, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x6f, 0x6f, + 0x74, 0x66, 0x73, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x24, 0x0a, 0x0d, 0x63, 0x68, 0x61, 0x69, 0x6e, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x44, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, + 0x63, 0x68, 0x61, 0x69, 0x6e, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x49, 0x44, 0x73, 0x12, 0x30, 0x0a, + 0x13, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, + 0x79, 0x74, 0x65, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x04, 0x52, 0x13, 0x6d, 0x65, 0x6d, 0x66, + 0x69, 0x6c, 0x65, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x12, + 0x32, 0x0a, 0x14, 0x6d, 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, + 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0d, 0x52, 0x14, 0x6d, + 0x65, 0x6d, 0x66, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, + 0x6e, 0x74, 0x73, 0x12, 0x2e, 0x0a, 0x12, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x4c, 0x6f, 0x67, + 0x69, 0x63, 0x61, 0x6c, 0x42, 0x79, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x04, 0x52, + 0x12, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x4c, 0x6f, 0x67, 0x69, 0x63, 0x61, 0x6c, 0x42, 0x79, + 0x74, 0x65, 0x73, 0x12, 0x30, 0x0a, 0x13, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x4d, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0d, + 0x52, 0x13, 0x72, 0x6f, 0x6f, 0x74, 0x66, 0x73, 0x4d, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x22, 0x83, 0x02, 0x0a, 0x15, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, + 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, + 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, 0x05, 0x6c, + 0x65, 0x76, 0x65, 0x6c, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x46, 0x69, 0x65, + 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, + 0x1a, 0x39, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, + 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, + 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, 0x19, 0x54, + 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x48, 0x00, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, 0x05, 0x5f, + 0x73, 0x74, 0x65, 0x70, 0x22, 0x86, 0x02, 0x0a, 0x1b, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, + 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, + 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x12, 0x32, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, 0x65, 0x74, + 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x6d, - 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x09, 0x2e, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x52, - 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x3a, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x2e, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x73, 0x1a, 0x39, 0x0a, 0x0b, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, - 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, - 0x19, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, - 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, - 0x73, 0x61, 0x67, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x73, 0x74, 0x65, 0x70, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x73, 0x74, 0x65, 0x70, 0x88, 0x01, 0x01, 0x42, 0x07, 0x0a, - 0x05, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x22, 0x86, 0x02, 0x0a, 0x1b, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x32, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x6f, 0x67, 0x45, 0x6e, - 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x4c, 0x6f, 0x67, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, - 0x37, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1a, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x72, - 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x72, 0x65, 0x61, - 0x73, 0x6f, 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x2a, - 0x34, 0x0a, 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x44, - 0x65, 0x62, 0x75, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x01, - 0x12, 0x08, 0x0a, 0x04, 0x57, 0x61, 0x72, 0x6e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x72, - 0x72, 0x6f, 0x72, 0x10, 0x03, 0x2a, 0x2a, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x73, 0x44, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, - 0x64, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x61, 0x63, 0x6b, 0x77, 0x61, 0x72, 0x64, 0x10, - 0x01, 0x2a, 0x3d, 0x0a, 0x12, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, - 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x75, 0x69, 0x6c, 0x64, - 0x69, 0x6e, 0x67, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, - 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x10, 0x02, - 0x32, 0xbe, 0x02, 0x0a, 0x0f, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4b, 0x0a, 0x13, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, - 0x75, 0x69, 0x6c, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x54, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, - 0x50, 0x0a, 0x13, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, - 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, - 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x46, - 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x42, 0x33, 0x5a, 0x31, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x32, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x2f, - 0x69, 0x6e, 0x66, 0x72, 0x61, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2d, 0x6d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x79, 0x52, 0x0a, 0x6c, 0x6f, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x37, 0x0a, + 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, + 0x74, 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x48, 0x00, 0x52, 0x06, 0x72, 0x65, 0x61, + 0x73, 0x6f, 0x6e, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x4a, 0x04, 0x08, 0x03, 0x10, 0x04, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x2a, 0x34, 0x0a, + 0x08, 0x4c, 0x6f, 0x67, 0x4c, 0x65, 0x76, 0x65, 0x6c, 0x12, 0x09, 0x0a, 0x05, 0x44, 0x65, 0x62, + 0x75, 0x67, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x49, 0x6e, 0x66, 0x6f, 0x10, 0x01, 0x12, 0x08, + 0x0a, 0x04, 0x57, 0x61, 0x72, 0x6e, 0x10, 0x02, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, + 0x72, 0x10, 0x03, 0x2a, 0x2a, 0x0a, 0x0d, 0x4c, 0x6f, 0x67, 0x73, 0x44, 0x69, 0x72, 0x65, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0b, 0x0a, 0x07, 0x46, 0x6f, 0x72, 0x77, 0x61, 0x72, 0x64, 0x10, + 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x61, 0x63, 0x6b, 0x77, 0x61, 0x72, 0x64, 0x10, 0x01, 0x2a, + 0x3d, 0x0a, 0x12, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, + 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0c, 0x0a, 0x08, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x69, 0x6e, + 0x67, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x46, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x10, 0x01, 0x12, + 0x0d, 0x0a, 0x09, 0x43, 0x6f, 0x6d, 0x70, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x10, 0x02, 0x32, 0xbe, + 0x02, 0x0a, 0x0f, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x12, 0x40, 0x0a, 0x0e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x43, 0x72, + 0x65, 0x61, 0x74, 0x65, 0x12, 0x16, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x43, + 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x4b, 0x0a, 0x13, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, + 0x42, 0x75, 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x2e, 0x54, 0x65, + 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, + 0x69, 0x6c, 0x64, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4a, 0x0a, 0x13, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, + 0x6c, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1b, 0x2e, 0x54, 0x65, 0x6d, 0x70, 0x6c, + 0x61, 0x74, 0x65, 0x42, 0x75, 0x69, 0x6c, 0x64, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x50, 0x0a, + 0x13, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, + 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1b, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, + 0x46, 0x69, 0x6c, 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1c, 0x2e, 0x49, 0x6e, 0x69, 0x74, 0x4c, 0x61, 0x79, 0x65, 0x72, 0x46, 0x69, 0x6c, + 0x65, 0x55, 0x70, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, + 0x33, 0x5a, 0x31, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x65, 0x32, 0x62, 0x2d, 0x64, 0x65, 0x76, 0x2f, 0x69, 0x6e, + 0x66, 0x72, 0x61, 0x2f, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x2d, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x72, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -1614,7 +1763,7 @@ func file_template_manager_proto_rawDescGZIP() []byte { } var file_template_manager_proto_enumTypes = make([]protoimpl.EnumInfo, 3) -var file_template_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 17) +var file_template_manager_proto_msgTypes = make([]protoimpl.MessageInfo, 18) var file_template_manager_proto_goTypes = []interface{}{ (LogLevel)(0), // 0: LogLevel (LogsDirection)(0), // 1: LogsDirection @@ -1632,12 +1781,13 @@ var file_template_manager_proto_goTypes = []interface{}{ (*TemplateStatusRequest)(nil), // 13: TemplateStatusRequest (*TemplateBuildDeleteRequest)(nil), // 14: TemplateBuildDeleteRequest (*TemplateBuildMetadata)(nil), // 15: TemplateBuildMetadata - (*TemplateBuildLogEntry)(nil), // 16: TemplateBuildLogEntry - (*TemplateBuildStatusReason)(nil), // 17: TemplateBuildStatusReason - (*TemplateBuildStatusResponse)(nil), // 18: TemplateBuildStatusResponse - nil, // 19: TemplateBuildLogEntry.FieldsEntry - (*timestamppb.Timestamp)(nil), // 20: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 21: google.protobuf.Empty + (*TemplateSchedulingMetadata)(nil), // 16: TemplateSchedulingMetadata + (*TemplateBuildLogEntry)(nil), // 17: TemplateBuildLogEntry + (*TemplateBuildStatusReason)(nil), // 18: TemplateBuildStatusReason + (*TemplateBuildStatusResponse)(nil), // 19: TemplateBuildStatusResponse + nil, // 20: TemplateBuildLogEntry.FieldsEntry + (*timestamppb.Timestamp)(nil), // 21: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 22: google.protobuf.Empty } var file_template_manager_proto_depIdxs = []int32{ 7, // 0: FromImageRegistry.aws:type_name -> AWSRegistry @@ -1648,29 +1798,30 @@ var file_template_manager_proto_depIdxs = []int32{ 10, // 5: TemplateConfig.fromImageRegistry:type_name -> FromImageRegistry 11, // 6: TemplateCreateRequest.template:type_name -> TemplateConfig 0, // 7: TemplateStatusRequest.level:type_name -> LogLevel - 20, // 8: TemplateStatusRequest.start:type_name -> google.protobuf.Timestamp - 20, // 9: TemplateStatusRequest.end:type_name -> google.protobuf.Timestamp + 21, // 8: TemplateStatusRequest.start:type_name -> google.protobuf.Timestamp + 21, // 9: TemplateStatusRequest.end:type_name -> google.protobuf.Timestamp 1, // 10: TemplateStatusRequest.direction:type_name -> LogsDirection - 20, // 11: TemplateBuildLogEntry.timestamp:type_name -> google.protobuf.Timestamp - 0, // 12: TemplateBuildLogEntry.level:type_name -> LogLevel - 19, // 13: TemplateBuildLogEntry.fields:type_name -> TemplateBuildLogEntry.FieldsEntry - 2, // 14: TemplateBuildStatusResponse.status:type_name -> TemplateBuildState - 15, // 15: TemplateBuildStatusResponse.metadata:type_name -> TemplateBuildMetadata - 16, // 16: TemplateBuildStatusResponse.logEntries:type_name -> TemplateBuildLogEntry - 17, // 17: TemplateBuildStatusResponse.reason:type_name -> TemplateBuildStatusReason - 12, // 18: TemplateService.TemplateCreate:input_type -> TemplateCreateRequest - 13, // 19: TemplateService.TemplateBuildStatus:input_type -> TemplateStatusRequest - 14, // 20: TemplateService.TemplateBuildDelete:input_type -> TemplateBuildDeleteRequest - 3, // 21: TemplateService.InitLayerFileUpload:input_type -> InitLayerFileUploadRequest - 21, // 22: TemplateService.TemplateCreate:output_type -> google.protobuf.Empty - 18, // 23: TemplateService.TemplateBuildStatus:output_type -> TemplateBuildStatusResponse - 21, // 24: TemplateService.TemplateBuildDelete:output_type -> google.protobuf.Empty - 4, // 25: TemplateService.InitLayerFileUpload:output_type -> InitLayerFileUploadResponse - 22, // [22:26] is the sub-list for method output_type - 18, // [18:22] is the sub-list for method input_type - 18, // [18:18] is the sub-list for extension type_name - 18, // [18:18] is the sub-list for extension extendee - 0, // [0:18] is the sub-list for field type_name + 16, // 11: TemplateBuildMetadata.schedulingMetadata:type_name -> TemplateSchedulingMetadata + 21, // 12: TemplateBuildLogEntry.timestamp:type_name -> google.protobuf.Timestamp + 0, // 13: TemplateBuildLogEntry.level:type_name -> LogLevel + 20, // 14: TemplateBuildLogEntry.fields:type_name -> TemplateBuildLogEntry.FieldsEntry + 2, // 15: TemplateBuildStatusResponse.status:type_name -> TemplateBuildState + 15, // 16: TemplateBuildStatusResponse.metadata:type_name -> TemplateBuildMetadata + 17, // 17: TemplateBuildStatusResponse.logEntries:type_name -> TemplateBuildLogEntry + 18, // 18: TemplateBuildStatusResponse.reason:type_name -> TemplateBuildStatusReason + 12, // 19: TemplateService.TemplateCreate:input_type -> TemplateCreateRequest + 13, // 20: TemplateService.TemplateBuildStatus:input_type -> TemplateStatusRequest + 14, // 21: TemplateService.TemplateBuildDelete:input_type -> TemplateBuildDeleteRequest + 3, // 22: TemplateService.InitLayerFileUpload:input_type -> InitLayerFileUploadRequest + 22, // 23: TemplateService.TemplateCreate:output_type -> google.protobuf.Empty + 19, // 24: TemplateService.TemplateBuildStatus:output_type -> TemplateBuildStatusResponse + 22, // 25: TemplateService.TemplateBuildDelete:output_type -> google.protobuf.Empty + 4, // 26: TemplateService.InitLayerFileUpload:output_type -> InitLayerFileUploadResponse + 23, // [23:27] is the sub-list for method output_type + 19, // [19:23] is the sub-list for method input_type + 19, // [19:19] is the sub-list for extension type_name + 19, // [19:19] is the sub-list for extension extendee + 0, // [0:19] is the sub-list for field type_name } func init() { file_template_manager_proto_init() } @@ -1836,7 +1987,7 @@ func file_template_manager_proto_init() { } } file_template_manager_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TemplateBuildLogEntry); i { + switch v := v.(*TemplateSchedulingMetadata); i { case 0: return &v.state case 1: @@ -1848,7 +1999,7 @@ func file_template_manager_proto_init() { } } file_template_manager_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TemplateBuildStatusReason); i { + switch v := v.(*TemplateBuildLogEntry); i { case 0: return &v.state case 1: @@ -1860,6 +2011,18 @@ func file_template_manager_proto_init() { } } file_template_manager_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*TemplateBuildStatusReason); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_template_manager_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*TemplateBuildStatusResponse); i { case 0: return &v.state @@ -1886,15 +2049,15 @@ func file_template_manager_proto_init() { } file_template_manager_proto_msgTypes[9].OneofWrappers = []interface{}{} file_template_manager_proto_msgTypes[10].OneofWrappers = []interface{}{} - file_template_manager_proto_msgTypes[14].OneofWrappers = []interface{}{} file_template_manager_proto_msgTypes[15].OneofWrappers = []interface{}{} + file_template_manager_proto_msgTypes[16].OneofWrappers = []interface{}{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_template_manager_proto_rawDesc, NumEnums: 3, - NumMessages: 17, + NumMessages: 18, NumExtensions: 0, NumServices: 1, },