diff --git a/experimental/runme.yaml b/experimental/runme.yaml index a6da3b1d..c7f7259a 100644 --- a/experimental/runme.yaml +++ b/experimental/runme.yaml @@ -64,5 +64,5 @@ server: log: enabled: true - path: "/var/log/runme.log" + path: "/tmp/runme.log" verbose: true diff --git a/internal/cmd/beta/run_cmd.go b/internal/cmd/beta/run_cmd.go index 4d111644..fca43db2 100644 --- a/internal/cmd/beta/run_cmd.go +++ b/internal/cmd/beta/run_cmd.go @@ -9,6 +9,7 @@ import ( "github.com/stateful/runme/v3/internal/command" "github.com/stateful/runme/v3/internal/config/autoconfig" + runnerv2alpha1 "github.com/stateful/runme/v3/pkg/api/gen/proto/go/runme/runner/v2alpha1" "github.com/stateful/runme/v3/pkg/document" "github.com/stateful/runme/v3/pkg/project" ) @@ -115,6 +116,9 @@ func runCodeBlock( if err != nil { return err } + + cfg.Mode = runnerv2alpha1.CommandMode_COMMAND_MODE_CLI + cmd, err := factory.Build(cfg, options) if err != nil { return err diff --git a/internal/command/command_inline_shell.go b/internal/command/command_inline_shell.go index c95d1d77..539bb6ef 100644 --- a/internal/command/command_inline_shell.go +++ b/internal/command/command_inline_shell.go @@ -49,11 +49,11 @@ func (c *inlineShellCommand) Wait() error { err := c.internalCommand.Wait() if c.envCollector != nil { - if cErr := c.collectEnv(); cErr != nil { - c.logger.Info("failed to collect the environment", zap.Error(cErr)) - if err == nil { - err = cErr - } + c.logger.Info("collecting the environment after the script execution") + cErr := c.collectEnv() + c.logger.Info("collected the environment after the script execution", zap.Error(cErr)) + if cErr != nil && err == nil { + err = cErr } } diff --git a/internal/command/command_native.go b/internal/command/command_native.go index ea5b3f54..5e1b9818 100644 --- a/internal/command/command_native.go +++ b/internal/command/command_native.go @@ -9,13 +9,11 @@ import ( "go.uber.org/zap" ) -// SignalToProcessGroup is used in tests to disable sending signals to a process group. -var SignalToProcessGroup = true - type nativeCommand struct { *base - logger *zap.Logger + disableNewProcessID bool + logger *zap.Logger cmd *exec.Cmd } @@ -34,6 +32,7 @@ func (c *nativeCommand) Pid() int { func (c *nativeCommand) Start(ctx context.Context) (err error) { stdin := c.Stdin() + // TODO(adamb): include explanation why it is needed. if f, ok := stdin.(*os.File); ok && f != nil { // Duplicate /dev/stdin. newStdinFd, err := dup(f.Fd()) @@ -41,14 +40,6 @@ func (c *nativeCommand) Start(ctx context.Context) (err error) { return errors.Wrap(err, "failed to dup stdin") } closeOnExec(newStdinFd) - - // Setting stdin to the non-block mode fails on the simple "read" command. - // On the other hand, it allows to use SetReadDeadline(). - // It turned out it's not needed, but keeping the code here for now. - // if err := syscall.SetNonblock(newStdinFd, true); err != nil { - // return nil, errors.Wrap(err, "failed to set new stdin fd in non-blocking mode") - // } - stdin = os.NewFile(uintptr(newStdinFd), "") } @@ -69,38 +60,39 @@ func (c *nativeCommand) Start(ctx context.Context) (err error) { c.cmd.Stdout = c.Stdout() c.cmd.Stderr = c.Stderr() - // Set the process group ID of the program. - // It is helpful to stop the program and its - // children. - // Note that Setsid set in setSysProcAttrCtty() - // already starts a new process group. - // Warning: it does not work with interactive programs - // like "python", hence, it's commented out. - // setSysProcAttrPgid(c.cmd) + if !c.disableNewProcessID { + // Creating a new process group is required to properly replicate a behaviour + // similar to CTRL-C in the terminal, which sends a SIGINT to the whole group. + setSysProcAttrPgid(c.cmd) + } - c.logger.Info("starting a native command", zap.Any("config", redactConfig(c.ProgramConfig()))) + c.logger.Info("starting", zap.Any("config", redactConfig(c.ProgramConfig()))) if err := c.cmd.Start(); err != nil { return errors.WithStack(err) } - c.logger.Info("a native command started") + c.logger.Info("started") return nil } func (c *nativeCommand) Signal(sig os.Signal) error { - c.logger.Info("stopping the native command with a signal", zap.Stringer("signal", sig)) + c.logger.Info("stopping with signal", zap.Stringer("signal", sig)) - if SignalToProcessGroup { + if !c.disableNewProcessID { + c.logger.Info("signaling to the process group", zap.Stringer("signal", sig)) // Try to terminate the whole process group. If it fails, fall back to stdlib methods. err := signalPgid(c.cmd.Process.Pid, sig) if err == nil { return nil } - c.logger.Info("failed to terminate process group; trying Process.Signal()", zap.Error(err)) + c.logger.Info("failed to signal the process group; trying regular signaling", zap.Error(err)) } if err := c.cmd.Process.Signal(sig); err != nil { - c.logger.Info("failed to signal process; trying Process.Kill()", zap.Error(err)) + if sig == os.Kill { + return errors.WithStack(err) + } + c.logger.Info("failed to signal the process; trying kill signal", zap.Error(err)) return errors.WithStack(c.cmd.Process.Kill()) } @@ -108,7 +100,7 @@ func (c *nativeCommand) Signal(sig os.Signal) error { } func (c *nativeCommand) Wait() (err error) { - c.logger.Info("waiting for the native command to finish") + c.logger.Info("waiting for finish") var stderr []byte err = errors.WithStack(c.cmd.Wait()) @@ -119,7 +111,7 @@ func (c *nativeCommand) Wait() (err error) { } } - c.logger.Info("the native command finished", zap.Error(err), zap.ByteString("stderr", stderr)) + c.logger.Info("finished", zap.Error(err), zap.ByteString("stderr", stderr)) return } diff --git a/internal/command/command_unix.go b/internal/command/command_unix.go index 6a3f846a..13abcfdc 100644 --- a/internal/command/command_unix.go +++ b/internal/command/command_unix.go @@ -12,12 +12,20 @@ import ( "golang.org/x/sys/unix" ) -func setSysProcAttrCtty(cmd *exec.Cmd) { +func setSysProcAttrCtty(cmd *exec.Cmd, tty int) { if cmd.SysProcAttr == nil { cmd.SysProcAttr = &syscall.SysProcAttr{} } - cmd.SysProcAttr.Setsid = true + cmd.SysProcAttr.Ctty = tty cmd.SysProcAttr.Setctty = true + cmd.SysProcAttr.Setsid = true +} + +func setSysProcAttrPgid(cmd *exec.Cmd) { + if cmd.SysProcAttr == nil { + cmd.SysProcAttr = &syscall.SysProcAttr{} + } + cmd.SysProcAttr.Setpgid = true } func disableEcho(fd uintptr) error { diff --git a/internal/command/command_unix_test.go b/internal/command/command_unix_test.go index 650b412b..38a2eb5e 100644 --- a/internal/command/command_unix_test.go +++ b/internal/command/command_unix_test.go @@ -18,12 +18,6 @@ import ( "github.com/stateful/runme/v3/pkg/document/identity" ) -func init() { - // Set to false to disable sending signals to process groups in tests. - // This can be turned on if setSysProcAttrPgid() is called in Start(). - SignalToProcessGroup = false -} - func TestCommand(t *testing.T) { testCases := []struct { name string diff --git a/internal/command/command_virtual.go b/internal/command/command_virtual.go index 546b0d2a..e8892c05 100644 --- a/internal/command/command_virtual.go +++ b/internal/command/command_virtual.go @@ -60,6 +60,7 @@ func (c *virtualCommand) Start(ctx context.Context) (err error) { } if !c.isEchoEnabled { + c.logger.Info("disabling echo") if err := disableEcho(c.tty.Fd()); err != nil { return err } @@ -69,6 +70,7 @@ func (c *virtualCommand) Start(ctx context.Context) (err error) { if err != nil { return err } + c.logger.Info("detected program path and arguments", zap.String("program", program), zap.Strings("args", args)) c.cmd = exec.CommandContext( ctx, @@ -81,22 +83,28 @@ func (c *virtualCommand) Start(ctx context.Context) (err error) { c.cmd.Stdout = c.tty c.cmd.Stderr = c.tty - setSysProcAttrCtty(c.cmd) + // Create a new session and set the controlling terminal to tty. + // The new process group is created automatically so that sending + // a signal to the command will affect the whole group. + // 3 is because stdin, stdout, stderr + i-th element in ExtraFiles. + setSysProcAttrCtty(c.cmd, 3) + c.cmd.ExtraFiles = []*os.File{c.tty} - c.logger.Info("starting a virtual command", zap.Any("config", redactConfig(c.ProgramConfig()))) + c.logger.Info("starting", zap.Any("config", redactConfig(c.ProgramConfig()))) if err := c.cmd.Start(); err != nil { return errors.WithStack(err) } + c.logger.Info("started") if !isNil(c.stdin) { c.wg.Add(1) go func() { defer c.wg.Done() n, err := io.Copy(c.pty, c.stdin) - c.logger.Info("finished copying from stdin to pty", zap.Error(err), zap.Int64("count", n)) if err != nil { c.setErr(errors.WithStack(err)) } + c.logger.Info("copied from stdin to pty", zap.Error(err), zap.Int64("count", n)) }() } @@ -112,54 +120,59 @@ func (c *virtualCommand) Start(ctx context.Context) (err error) { // a master pseudo-terminal which no longer has an open slave. // See https://github.com/creack/pty/issues/21. if errors.Is(err, syscall.EIO) { - c.logger.Debug("failed to copy from pty to stdout; handled EIO") + c.logger.Info("failed to copy from pty to stdout; handled EIO") return } if errors.Is(err, os.ErrClosed) { - c.logger.Debug("failed to copy from pty to stdout; handled ErrClosed") + c.logger.Info("failed to copy from pty to stdout; handled ErrClosed") return } - - c.logger.Info("failed to copy from pty to stdout", zap.Error(err)) - c.setErr(errors.WithStack(err)) - } else { - c.logger.Debug("finished copying from pty to stdout", zap.Int64("count", n)) } + + c.logger.Info("copied from pty to stdout", zap.Int64("count", n)) }() } - c.logger.Info("a virtual command started") - return nil } func (c *virtualCommand) Signal(sig os.Signal) error { - c.logger.Info("stopping the virtual command with signal", zap.String("signal", sig.String())) + c.logger.Info("stopping with signal", zap.String("signal", sig.String())) // Try to terminate the whole process group. If it fails, fall back to stdlib methods. - if err := signalPgid(c.cmd.Process.Pid, sig); err != nil { - c.logger.Info("failed to terminate process group; trying Process.Signal()", zap.Error(err)) - if err := c.cmd.Process.Signal(sig); err != nil { - c.logger.Info("failed to signal process; trying Process.Kill()", zap.Error(err)) - return errors.WithStack(c.cmd.Process.Kill()) + err := signalPgid(c.cmd.Process.Pid, sig) + if err == nil { + return nil + } + + c.logger.Info("failed to signal the process group; trying regular signaling", zap.Error(err)) + + if err := c.cmd.Process.Signal(sig); err != nil { + if sig == os.Kill { + return errors.WithStack(err) } + c.logger.Info("failed to signal the process; trying kill signal", zap.Error(err)) + return errors.WithStack(c.cmd.Process.Kill()) } + return nil } func (c *virtualCommand) Wait() (err error) { - c.logger.Info("waiting for the virtual command to finish") + c.logger.Info("waiting for finish") err = errors.WithStack(c.cmd.Wait()) - c.logger.Info("the virtual command finished", zap.Error(err)) + c.logger.Info("finished", zap.Error(err)) errIO := c.closeIO() - c.logger.Info("closed IO of the virtual command", zap.Error(errIO)) + c.logger.Info("closed IO", zap.Error(errIO)) if err == nil && errIO != nil { err = errIO } + c.logger.Info("waiting IO goroutines") c.wg.Wait() + c.logger.Info("finished waiting for IO goroutines") c.mu.Lock() if err == nil && c.err != nil { @@ -192,10 +205,6 @@ func (c *virtualCommand) closeIO() (err error) { err = multierr.Append(err, errors.WithMessage(errClose, "failed to close tty")) } - // if err := c.pty.Close(); err != nil { - // return errors.WithMessage(err, "failed to close pty") - // } - return } diff --git a/internal/command/command_windows.go b/internal/command/command_windows.go index 3a1301f7..59b74899 100644 --- a/internal/command/command_windows.go +++ b/internal/command/command_windows.go @@ -9,7 +9,7 @@ import ( "github.com/pkg/errors" ) -func setSysProcAttrCtty(cmd *exec.Cmd) {} +func setSysProcAttrCtty(cmd *exec.Cmd, tty int) {} func setSysProcAttrPgid(cmd *exec.Cmd) {} diff --git a/internal/command/factory.go b/internal/command/factory.go index 2e3cf03b..f3d749cd 100644 --- a/internal/command/factory.go +++ b/internal/command/factory.go @@ -13,7 +13,7 @@ import ( var ( envCollectorEnableEncryption = true - envCollectorUseFifo = true + envCollectorUseFifo = false ) type CommandOptions struct { @@ -127,6 +127,35 @@ func (f *commandFactory) Build(cfg *ProgramConfig, opts CommandOptions) (Command internalCommand: f.buildInternal(cfg, opts), logger: f.getLogger("InlineCommand"), }, nil + + case runnerv2alpha1.CommandMode_COMMAND_MODE_CLI: + base := f.buildBase(cfg, opts) + + // In order to support interactive commands like runme-in-runme, + // a native command is needed and creation of a new process ID + // should be disabled. + internal := f.buildNative(base) + internal.disableNewProcessID = true + + if isShell(cfg) { + collector, err := f.getEnvCollector() + if err != nil { + return nil, err + } + + return &inlineShellCommand{ + debug: f.debug, + envCollector: collector, + internalCommand: internal, + logger: f.getLogger("InlineShellCommand"), + session: opts.Session, + }, nil + } + return &inlineCommand{ + internalCommand: internal, + logger: f.getLogger("InlineCommand"), + }, nil + case runnerv2alpha1.CommandMode_COMMAND_MODE_TERMINAL: collector, err := f.getEnvCollector() if err != nil { @@ -187,7 +216,7 @@ func (f *commandFactory) buildInternal(cfg *ProgramConfig, opts CommandOptions) } } -func (f *commandFactory) buildDocker(base *base) internalCommand { +func (f *commandFactory) buildDocker(base *base) *dockerCommand { return &dockerCommand{ base: base, docker: f.docker, @@ -195,14 +224,14 @@ func (f *commandFactory) buildDocker(base *base) internalCommand { } } -func (f *commandFactory) buildNative(base *base) internalCommand { +func (f *commandFactory) buildNative(base *base) *nativeCommand { return &nativeCommand{ base: base, logger: f.getLogger("NativeCommand"), } } -func (f *commandFactory) buildVirtual(base *base, opts CommandOptions) internalCommand { +func (f *commandFactory) buildVirtual(base *base, opts CommandOptions) *virtualCommand { var stdin io.ReadCloser if in := base.Stdin(); !isNil(in) { stdin = &readCloser{r: in, done: make(chan struct{})} diff --git a/internal/runnerv2service/execution.go b/internal/runnerv2service/execution.go index 65f1f4f9..b40b96fd 100644 --- a/internal/runnerv2service/execution.go +++ b/internal/runnerv2service/execution.go @@ -158,6 +158,8 @@ func (e *execution) Wait(ctx context.Context, sender sender) (int, error) { waitErr := e.Cmd.Wait() exitCode := exitCodeFromErr(waitErr) + e.logger.Info("command finished", zap.Int("exitCode", exitCode), zap.Error(waitErr)) + e.closeIO() // If waitErr is not nil, only log the errors but return waitErr. diff --git a/internal/runnerv2service/service_execute.go b/internal/runnerv2service/service_execute.go index eb872b4e..066a336d 100644 --- a/internal/runnerv2service/service_execute.go +++ b/internal/runnerv2service/service_execute.go @@ -122,7 +122,6 @@ func (r *runnerService) Execute(srv runnerv2alpha1.RunnerService_ExecuteServer) }(req) exitCode, waitErr := exec.Wait(ctx, srv) - logger.Info("command finished", zap.Int("exitCode", exitCode), zap.Error(waitErr)) var finalExitCode *wrapperspb.UInt32Value diff --git a/internal/runnerv2service/service_execute_test.go b/internal/runnerv2service/service_execute_test.go index 15ccf8f6..bed6628c 100644 --- a/internal/runnerv2service/service_execute_test.go +++ b/internal/runnerv2service/service_execute_test.go @@ -26,10 +26,6 @@ import ( ) func init() { - // Set to false to disable sending signals to process groups in tests. - // This can be turned on if setSysProcAttrPgid() is called in Start(). - command.SignalToProcessGroup = false - command.SetEnvDumpCommand("env -0") // Server uses autoconfig to get necessary dependencies. @@ -717,7 +713,6 @@ func TestRunnerServiceServerExecute_WithInput(t *testing.T) { err = stream.Send(&runnerv2alpha1.ExecuteRequest{InputData: []byte{0x03}}) assert.NoError(t, err) - // terminate shell time.Sleep(time.Millisecond * 500) err = stream.Send(&runnerv2alpha1.ExecuteRequest{InputData: []byte{0x04}}) assert.NoError(t, err) @@ -846,7 +841,6 @@ func TestRunnerServiceServerExecute_WithStop(t *testing.T) { }, Interactive: true, }, - InputData: []byte("a\n"), }) require.NoError(t, err) @@ -859,13 +853,32 @@ func TestRunnerServiceServerExecute_WithStop(t *testing.T) { }) errc <- err }() - require.NoError(t, <-errc) + assert.NoError(t, <-errc) result := <-execResult // TODO(adamb): There should be no error. assert.Contains(t, result.Err.Error(), "signal: interrupt") assert.Equal(t, 130, result.ExitCode) + + // Send one more request to make sure that the server + // is still running after sending SIGINT. + stream, err = client.Execute(context.Background()) + require.NoError(t, err) + + execResult = make(chan executeResult) + go getExecuteResult(stream, execResult) + + err = stream.Send(&runnerv2alpha1.ExecuteRequest{ + Config: &runnerv2alpha1.ProgramConfig{ + ProgramName: "echo", + Arguments: []string{"-n", "1"}, + Mode: runnerv2alpha1.CommandMode_COMMAND_MODE_INLINE, + }, + }) + require.NoError(t, err) + result = <-execResult + assert.Equal(t, "1", string(result.Stdout)) } func TestRunnerServiceServerExecute_Winsize(t *testing.T) { diff --git a/pkg/api/gen/proto/go/runme/runner/v2alpha1/config.pb.go b/pkg/api/gen/proto/go/runme/runner/v2alpha1/config.pb.go index 432ca5ff..1dd7f862 100644 --- a/pkg/api/gen/proto/go/runme/runner/v2alpha1/config.pb.go +++ b/pkg/api/gen/proto/go/runme/runner/v2alpha1/config.pb.go @@ -27,6 +27,7 @@ const ( CommandMode_COMMAND_MODE_INLINE CommandMode = 1 CommandMode_COMMAND_MODE_FILE CommandMode = 2 CommandMode_COMMAND_MODE_TERMINAL CommandMode = 3 + CommandMode_COMMAND_MODE_CLI CommandMode = 4 ) // Enum value maps for CommandMode. @@ -36,12 +37,14 @@ var ( 1: "COMMAND_MODE_INLINE", 2: "COMMAND_MODE_FILE", 3: "COMMAND_MODE_TERMINAL", + 4: "COMMAND_MODE_CLI", } CommandMode_value = map[string]int32{ "COMMAND_MODE_UNSPECIFIED": 0, "COMMAND_MODE_INLINE": 1, "COMMAND_MODE_FILE": 2, "COMMAND_MODE_TERMINAL": 3, + "COMMAND_MODE_CLI": 4, } ) @@ -357,20 +360,22 @@ var file_runme_runner_v2alpha1_config_proto_rawDesc = []byte{ 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0x23, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x73, 0x6f, 0x75, - 0x72, 0x63, 0x65, 0x2a, 0x76, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4d, 0x6f, - 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, - 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, - 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, - 0x5f, 0x49, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, 0x4d, - 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, 0x02, - 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, - 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x42, 0x58, 0x5a, 0x56, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x66, - 0x75, 0x6c, 0x2f, 0x72, 0x75, 0x6e, 0x6d, 0x65, 0x2f, 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, - 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, - 0x2f, 0x72, 0x75, 0x6e, 0x6d, 0x65, 0x2f, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x32, - 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x75, 0x6e, 0x6e, 0x65, 0x72, 0x76, 0x32, 0x61, - 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x63, 0x65, 0x2a, 0x8c, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6d, 0x6d, 0x61, 0x6e, 0x64, 0x4d, + 0x6f, 0x64, 0x65, 0x12, 0x1c, 0x0a, 0x18, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, + 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, + 0x00, 0x12, 0x17, 0x0a, 0x13, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, + 0x45, 0x5f, 0x49, 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x15, 0x0a, 0x11, 0x43, 0x4f, + 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x49, 0x4c, 0x45, 0x10, + 0x02, 0x12, 0x19, 0x0a, 0x15, 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, + 0x45, 0x5f, 0x54, 0x45, 0x52, 0x4d, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x03, 0x12, 0x14, 0x0a, 0x10, + 0x43, 0x4f, 0x4d, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x43, 0x4c, 0x49, + 0x10, 0x04, 0x42, 0x58, 0x5a, 0x56, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x66, 0x75, 0x6c, 0x2f, 0x72, 0x75, 0x6e, 0x6d, 0x65, 0x2f, + 0x76, 0x33, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x2f, 0x72, 0x75, 0x6e, 0x6d, 0x65, 0x2f, 0x72, 0x75, + 0x6e, 0x6e, 0x65, 0x72, 0x2f, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x3b, 0x72, 0x75, + 0x6e, 0x6e, 0x65, 0x72, 0x76, 0x32, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.d.ts b/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.d.ts index 04a52b4f..3bd7d6b1 100644 --- a/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.d.ts +++ b/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.d.ts @@ -127,19 +127,11 @@ export interface FileDescriptorProto { sourceCodeInfo?: SourceCodeInfo; /** * The syntax of the proto file. - * The supported values are "proto2", "proto3", and "editions". - * - * If `edition` is present, this value must be "editions". + * The supported values are "proto2" and "proto3". * * @generated from protobuf field: optional string syntax = 12; */ syntax?: string; - /** - * The edition of the proto file. - * - * @generated from protobuf field: optional google.protobuf.Edition edition = 14; - */ - edition?: Edition; } /** * Describes a message type. @@ -235,86 +227,6 @@ export interface ExtensionRangeOptions { * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ uninterpretedOption: UninterpretedOption[]; - /** - * For external users: DO NOT USE. We are in the process of open sourcing - * extension declaration and executing internal cleanups before it can be - * used externally. - * - * @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; - */ - declaration: ExtensionRangeOptions_Declaration[]; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; - /** - * The verification state of the range. - * TODO: flip the default to DECLARATION once all empty ranges - * are marked as UNVERIFIED. - * - * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; - */ - verification?: ExtensionRangeOptions_VerificationState; -} -/** - * @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -export interface ExtensionRangeOptions_Declaration { - /** - * The extension number declared within the extension range. - * - * @generated from protobuf field: optional int32 number = 1; - */ - number?: number; - /** - * The fully-qualified name of the extension field. There must be a leading - * dot in front of the full name. - * - * @generated from protobuf field: optional string full_name = 2; - */ - fullName?: string; - /** - * The fully-qualified type name of the extension field. Unlike - * Metadata.type, Declaration.type must have a leading dot for messages - * and enums. - * - * @generated from protobuf field: optional string type = 3; - */ - type?: string; - /** - * If true, indicates that the number is reserved in the extension range, - * and any extension field with the number will fail to compile. Set this - * when a declared extension field is deleted. - * - * @generated from protobuf field: optional bool reserved = 5; - */ - reserved?: boolean; - /** - * If true, indicates that the extension must be defined as repeated. - * Otherwise the extension must be defined as optional. - * - * @generated from protobuf field: optional bool repeated = 6; - */ - repeated?: boolean; -} -/** - * The verification state of the extension range. - * - * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export declare enum ExtensionRangeOptions_VerificationState { - /** - * All the extensions of the range must be declared. - * - * @generated from protobuf enum value: DECLARATION = 0; - */ - DECLARATION = 0, - /** - * @generated from protobuf enum value: UNVERIFIED = 1; - */ - UNVERIFIED = 1 } /** * Describes a field within a message. @@ -391,12 +303,12 @@ export interface FieldDescriptorProto { * If true, this is a proto3 "optional". When a proto3 field is optional, it * tracks presence regardless of field type. * - * When proto3_optional is true, this field must belong to a oneof to signal - * to old proto3 clients that presence is tracked for this field. This oneof - * is known as a "synthetic" oneof, and this field must be its sole member - * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs - * exist in the descriptor only, and do not generate any API. Synthetic oneofs - * must be ordered after all "real" oneofs. + * When proto3_optional is true, this field must be belong to a oneof to + * signal to old proto3 clients that presence is tracked for this field. This + * oneof is known as a "synthetic" oneof, and this field must be its sole + * member (each proto3 optional field gets its own synthetic oneof). Synthetic + * oneofs exist in the descriptor only, and do not generate any API. Synthetic + * oneofs must be ordered after all "real" oneofs. * * For message fields, proto3_optional doesn't create any semantic change, * since non-repeated message fields always track presence. However it still @@ -469,10 +381,9 @@ export declare enum FieldDescriptorProto_Type { STRING = 9, /** * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 + * Group type is deprecated and not supported in proto3. However, Proto3 * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. + * treat group fields as unknown fields. * * @generated from protobuf enum value: TYPE_GROUP = 10; */ @@ -533,17 +444,13 @@ export declare enum FieldDescriptorProto_Label { */ OPTIONAL = 1, /** - * @generated from protobuf enum value: LABEL_REPEATED = 3; + * @generated from protobuf enum value: LABEL_REQUIRED = 2; */ - REPEATED = 3, + REQUIRED = 2, /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * - * @generated from protobuf enum value: LABEL_REQUIRED = 2; + * @generated from protobuf enum value: LABEL_REPEATED = 3; */ - REQUIRED = 2 + REPEATED = 3 } /** * Describes a oneof. @@ -732,16 +639,12 @@ export interface FileOptions { */ javaGenerateEqualsAndHash?: boolean; /** - * A proto2 file can set this to true to opt in to UTF-8 checking for Java, - * which will throw an exception if invalid UTF-8 is parsed from the wire or - * assigned to a string field. - * - * TODO: clarify exactly what kinds of field types this option - * applies to, and update these docs accordingly. - * - * Proto3 files already perform these checks. Setting the option explicitly to - * false has no effect: it cannot be used to opt proto3 files out of UTF-8 - * checks. + * If set true, then the Java2 code generator will generate code that + * throws an exception whenever an attempt is made to assign a non-UTF-8 + * byte sequence to a string field. + * Message reflection will do the same. + * However, an extension field still accepts non-UTF-8 byte sequences. + * This option has no effect on when used with the lite runtime. * * @generated from protobuf field: optional bool java_string_check_utf8 = 27; */ @@ -783,6 +686,10 @@ export interface FileOptions { * @generated from protobuf field: optional bool py_generic_services = 18; */ pyGenericServices?: boolean; + /** + * @generated from protobuf field: optional bool php_generic_services = 42; + */ + phpGenericServices?: boolean; /** * Is this file deprecated? * Depending on the target platform, this can emit Deprecated annotations @@ -852,12 +759,6 @@ export interface FileOptions { * @generated from protobuf field: optional string ruby_package = 45; */ rubyPackage?: string; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50; - */ - features?: FeatureSet; /** * The parser stores options it doesn't recognize here. * See the documentation for the "Options" section above. @@ -967,28 +868,6 @@ export interface MessageOptions { * @generated from protobuf field: optional bool map_entry = 7; */ mapEntry?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * - * This should only be used as a temporary measure against broken builds due - * to the change in behavior for JSON field name conflicts. - * - * TODO This is legacy behavior we plan to remove once downstream - * teams have had time to migrate. - * - * @deprecated - * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12; - */ - features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * @@ -1003,10 +882,8 @@ export interface FieldOptions { /** * The ctype option instructs the C++ code generator to use a different * representation of the field than it normally would. See the specific - * options below. This option is only implemented to support use of - * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of - * type "bytes" in the open source release -- sorry, we'll try to include - * other types in a future version! + * options below. This option is not yet implemented in the open source + * release -- sorry, we'll try to include it in a future version! * * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1; */ @@ -1016,9 +893,7 @@ export interface FieldOptions { * a more efficient representation on the wire. Rather than repeatedly * writing the tag and type for each element, the entire array is encoded as * a single length-delimited blob. In proto3, only explicit setting it to - * false will avoid using packed encoding. This option is prohibited in - * Editions, but the `repeated_field_encoding` feature can be used to control - * the behavior. + * false will avoid using packed encoding. * * @generated from protobuf field: optional bool packed = 2; */ @@ -1057,11 +932,23 @@ export interface FieldOptions { * call from multiple threads concurrently, while non-const methods continue * to require exclusive access. * - * Note that lazy message fields are still eagerly verified to check - * ill-formed wireformat or missing required fields. Calling IsInitialized() - * on the outer message would fail if the inner message has missing required - * fields. Failed verification would result in parsing failure (except when - * uninitialized messages are acceptable). + * + * Note that implementations may choose not to check required fields within + * a lazy sub-message. That is, calling IsInitialized() on the outer message + * may return true even if the inner message has missing required fields. + * This is necessary because otherwise the inner message would have to be + * parsed in order to perform the check, defeating the purpose of lazy + * parsing. An implementation which chooses not to check required fields + * must be consistent about it. That is, for any particular sub-message, the + * implementation must either *always* check its required fields, or *never* + * check its required fields, regardless of whether or not the message has + * been parsed. + * + * As of 2021, lazy does no correctness checks on the byte stream during + * parsing. This may lead to crashes if and when an invalid byte stream is + * finally parsed upon access. + * + * TODO(b/211906113): Enable validation on lazy fields. * * @generated from protobuf field: optional bool lazy = 5; */ @@ -1089,35 +976,6 @@ export interface FieldOptions { * @generated from protobuf field: optional bool weak = 10; */ weak?: boolean; - /** - * Indicate that the field value should not be printed out when using debug - * formats, e.g. when the field contains sensitive credentials. - * - * @generated from protobuf field: optional bool debug_redact = 16; - */ - debugRedact?: boolean; - /** - * @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17; - */ - retention?: FieldOptions_OptionRetention; - /** - * @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; - */ - targets: FieldOptions_OptionTargetType[]; - /** - * @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; - */ - editionDefaults: FieldOptions_EditionDefault[]; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21; - */ - features?: FeatureSet; - /** - * @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; - */ - featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * @@ -1125,56 +983,6 @@ export interface FieldOptions { */ uninterpretedOption: UninterpretedOption[]; } -/** - * @generated from protobuf message google.protobuf.FieldOptions.EditionDefault - */ -export interface FieldOptions_EditionDefault { - /** - * @generated from protobuf field: optional google.protobuf.Edition edition = 3; - */ - edition?: Edition; - /** - * @generated from protobuf field: optional string value = 2; - */ - value?: string; -} -/** - * Information about the support window of a feature. - * - * @generated from protobuf message google.protobuf.FieldOptions.FeatureSupport - */ -export interface FieldOptions_FeatureSupport { - /** - * The edition that this feature was first available in. In editions - * earlier than this one, the default assigned to EDITION_LEGACY will be - * used, and proto files will not be able to override it. - * - * @generated from protobuf field: optional google.protobuf.Edition edition_introduced = 1; - */ - editionIntroduced?: Edition; - /** - * The edition this feature becomes deprecated in. Using this after this - * edition may trigger warnings. - * - * @generated from protobuf field: optional google.protobuf.Edition edition_deprecated = 2; - */ - editionDeprecated?: Edition; - /** - * The deprecation warning text if this feature is used after the edition it - * was marked deprecated in. - * - * @generated from protobuf field: optional string deprecation_warning = 3; - */ - deprecationWarning?: string; - /** - * The edition this feature is no longer available in. In editions after - * this one, the last default assigned will be used, and proto files will - * not be able to override it. - * - * @generated from protobuf field: optional google.protobuf.Edition edition_removed = 4; - */ - editionRemoved?: Edition; -} /** * @generated from protobuf enum google.protobuf.FieldOptions.CType */ @@ -1186,13 +994,6 @@ export declare enum FieldOptions_CType { */ STRING = 0, /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * * @generated from protobuf enum value: CORD = 1; */ CORD = 1, @@ -1224,87 +1025,10 @@ export declare enum FieldOptions_JSType { */ JS_NUMBER = 2 } -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention - */ -export declare enum FieldOptions_OptionRetention { - /** - * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; - */ - RETENTION_UNKNOWN = 0, - /** - * @generated from protobuf enum value: RETENTION_RUNTIME = 1; - */ - RETENTION_RUNTIME = 1, - /** - * @generated from protobuf enum value: RETENTION_SOURCE = 2; - */ - RETENTION_SOURCE = 2 -} -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType - */ -export declare enum FieldOptions_OptionTargetType { - /** - * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; - */ - TARGET_TYPE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; - */ - TARGET_TYPE_FILE = 1, - /** - * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - TARGET_TYPE_EXTENSION_RANGE = 2, - /** - * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; - */ - TARGET_TYPE_MESSAGE = 3, - /** - * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; - */ - TARGET_TYPE_FIELD = 4, - /** - * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; - */ - TARGET_TYPE_ONEOF = 5, - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; - */ - TARGET_TYPE_ENUM = 6, - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - TARGET_TYPE_ENUM_ENTRY = 7, - /** - * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; - */ - TARGET_TYPE_SERVICE = 8, - /** - * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; - */ - TARGET_TYPE_METHOD = 9 -} /** * @generated from protobuf message google.protobuf.OneofOptions */ export interface OneofOptions { - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1; - */ - features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * @@ -1332,24 +1056,6 @@ export interface EnumOptions { * @generated from protobuf field: optional bool deprecated = 3; */ deprecated?: boolean; - /** - * Enable the legacy handling of JSON field name conflicts. This lowercases - * and strips underscored from the fields before comparison in proto3 only. - * The new behavior takes `json_name` into account and applies to proto2 as - * well. - * TODO Remove this legacy behavior once downstream teams have - * had time to migrate. - * - * @deprecated - * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; - */ - deprecatedLegacyJsonFieldConflicts?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7; - */ - features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * @@ -1370,26 +1076,6 @@ export interface EnumValueOptions { * @generated from protobuf field: optional bool deprecated = 1; */ deprecated?: boolean; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2; - */ - features?: FeatureSet; - /** - * Indicate that fields annotated with this enum value should not be printed - * out when using debug formats, e.g. when the field contains sensitive - * credentials. - * - * @generated from protobuf field: optional bool debug_redact = 3; - */ - debugRedact?: boolean; - /** - * Information about the support window of a feature value. - * - * @generated from protobuf field: optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; - */ - featureSupport?: FieldOptions_FeatureSupport; /** * The parser stores options it doesn't recognize here. See above. * @@ -1401,12 +1087,6 @@ export interface EnumValueOptions { * @generated from protobuf message google.protobuf.ServiceOptions */ export interface ServiceOptions { - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34; - */ - features?: FeatureSet; /** * Is this service deprecated? * Depending on the target platform, this can emit Deprecated annotations @@ -1440,12 +1120,6 @@ export interface MethodOptions { * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ idempotencyLevel?: MethodOptions_IdempotencyLevel; - /** - * Any features defined in the specific edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35; - */ - features?: FeatureSet; /** * The parser stores options it doesn't recognize here. See above. * @@ -1540,202 +1214,6 @@ export interface UninterpretedOption_NamePart { */ isExtension: boolean; } -/** - * TODO Enums in C++ gencode (and potentially other languages) are - * not well scoped. This means that each of the feature enums below can clash - * with each other. The short names we've chosen maximize call-site - * readability, but leave us very open to this scenario. A future feature will - * be designed and implemented to handle this, hopefully before we ever hit a - * conflict here. - * - * @generated from protobuf message google.protobuf.FeatureSet - */ -export interface FeatureSet { - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; - */ - fieldPresence?: FeatureSet_FieldPresence; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2; - */ - enumType?: FeatureSet_EnumType; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; - */ - repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; - */ - utf8Validation?: FeatureSet_Utf8Validation; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; - */ - messageEncoding?: FeatureSet_MessageEncoding; - /** - * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6; - */ - jsonFormat?: FeatureSet_JsonFormat; -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence - */ -export declare enum FeatureSet_FieldPresence { - /** - * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FIELD_PRESENCE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: EXPLICIT = 1; - */ - EXPLICIT = 1, - /** - * @generated from protobuf enum value: IMPLICIT = 2; - */ - IMPLICIT = 2, - /** - * @generated from protobuf enum value: LEGACY_REQUIRED = 3; - */ - LEGACY_REQUIRED = 3 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.EnumType - */ -export declare enum FeatureSet_EnumType { - /** - * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; - */ - ENUM_TYPE_UNKNOWN = 0, - /** - * @generated from protobuf enum value: OPEN = 1; - */ - OPEN = 1, - /** - * @generated from protobuf enum value: CLOSED = 2; - */ - CLOSED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export declare enum FeatureSet_RepeatedFieldEncoding { - /** - * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - REPEATED_FIELD_ENCODING_UNKNOWN = 0, - /** - * @generated from protobuf enum value: PACKED = 1; - */ - PACKED = 1, - /** - * @generated from protobuf enum value: EXPANDED = 2; - */ - EXPANDED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation - */ -export declare enum FeatureSet_Utf8Validation { - /** - * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - UTF8_VALIDATION_UNKNOWN = 0, - /** - * @generated from protobuf enum value: VERIFY = 2; - */ - VERIFY = 2, - /** - * @generated from protobuf enum value: NONE = 3; - */ - NONE = 3 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding - */ -export declare enum FeatureSet_MessageEncoding { - /** - * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - MESSAGE_ENCODING_UNKNOWN = 0, - /** - * @generated from protobuf enum value: LENGTH_PREFIXED = 1; - */ - LENGTH_PREFIXED = 1, - /** - * @generated from protobuf enum value: DELIMITED = 2; - */ - DELIMITED = 2 -} -/** - * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat - */ -export declare enum FeatureSet_JsonFormat { - /** - * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; - */ - JSON_FORMAT_UNKNOWN = 0, - /** - * @generated from protobuf enum value: ALLOW = 1; - */ - ALLOW = 1, - /** - * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; - */ - LEGACY_BEST_EFFORT = 2 -} -/** - * A compiled specification for the defaults of a set of features. These - * messages are generated from FeatureSet extensions and can be used to seed - * feature resolution. The resolution with this object becomes a simple search - * for the closest matching edition, followed by proto merges. - * - * @generated from protobuf message google.protobuf.FeatureSetDefaults - */ -export interface FeatureSetDefaults { - /** - * @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; - */ - defaults: FeatureSetDefaults_FeatureSetEditionDefault[]; - /** - * The minimum supported edition (inclusive) when this was constructed. - * Editions before this will not have defaults. - * - * @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4; - */ - minimumEdition?: Edition; - /** - * The maximum known edition (inclusive) when this was constructed. Editions - * after this will not have reliable defaults. - * - * @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5; - */ - maximumEdition?: Edition; -} -/** - * A map from every known edition with a unique set of defaults to its - * defaults. Not all editions may be contained here. For a given edition, - * the defaults at the closest matching edition ordered at or before it should - * be used. This field must be in strict ascending order by edition. - * - * @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export interface FeatureSetDefaults_FeatureSetEditionDefault { - /** - * @generated from protobuf field: optional google.protobuf.Edition edition = 3; - */ - edition?: Edition; - /** - * Defaults of features that can be overridden in this edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet overridable_features = 4; - */ - overridableFeatures?: FeatureSet; - /** - * Defaults of features that can't be overridden in this edition. - * - * @generated from protobuf field: optional google.protobuf.FeatureSet fixed_features = 5; - */ - fixedFeatures?: FeatureSet; -} /** * Encapsulates information about the original source file from which a * FileDescriptorProto was generated. @@ -1801,7 +1279,7 @@ export interface SourceCodeInfo_Location { * location. * * Each element is a field number or an index. They form a path from - * the root FileDescriptorProto to the place where the definition appears. + * the root FileDescriptorProto to the place where the definition occurs. * For example, this path: * [ 4, 3, 2, 7, 1 ] * refers to: @@ -1937,118 +1415,12 @@ export interface GeneratedCodeInfo_Annotation { begin?: number; /** * Identifies the ending offset in bytes in the generated code that - * relates to the identified object. The end offset should be one past + * relates to the identified offset. The end offset should be one past * the last relevant byte (so the length of the text = end - begin). * * @generated from protobuf field: optional int32 end = 4; */ end?: number; - /** - * @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; - */ - semantic?: GeneratedCodeInfo_Annotation_Semantic; -} -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export declare enum GeneratedCodeInfo_Annotation_Semantic { - /** - * There is no effect or the effect is indescribable. - * - * @generated from protobuf enum value: NONE = 0; - */ - NONE = 0, - /** - * The element is set or otherwise mutated. - * - * @generated from protobuf enum value: SET = 1; - */ - SET = 1, - /** - * An alias to the element is returned. - * - * @generated from protobuf enum value: ALIAS = 2; - */ - ALIAS = 2 -} -/** - * The full set of known editions. - * - * @generated from protobuf enum google.protobuf.Edition - */ -export declare enum Edition { - /** - * A placeholder for an unknown edition value. - * - * @generated from protobuf enum value: EDITION_UNKNOWN = 0; - */ - EDITION_UNKNOWN = 0, - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from protobuf enum value: EDITION_LEGACY = 900; - */ - EDITION_LEGACY = 900, - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from protobuf enum value: EDITION_PROTO2 = 998; - */ - EDITION_PROTO2 = 998, - /** - * @generated from protobuf enum value: EDITION_PROTO3 = 999; - */ - EDITION_PROTO3 = 999, - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from protobuf enum value: EDITION_2023 = 1000; - */ - EDITION_2023 = 1000, - /** - * @generated from protobuf enum value: EDITION_2024 = 1001; - */ - EDITION_2024 = 1001, - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relyed on outside of tests. - * - * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; - */ - EDITION_1_TEST_ONLY = 1, - /** - * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; - */ - EDITION_2_TEST_ONLY = 2, - /** - * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; - */ - EDITION_99997_TEST_ONLY = 99997, - /** - * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; - */ - EDITION_99998_TEST_ONLY = 99998, - /** - * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; - */ - EDITION_99999_TEST_ONLY = 99999, - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from protobuf enum value: EDITION_MAX = 2147483647; - */ - EDITION_MAX = 2147483647 } declare class FileDescriptorSet$Type extends MessageType { constructor(); @@ -2110,16 +1482,6 @@ declare class ExtensionRangeOptions$Type extends MessageType { - constructor(); - create(value?: PartialMessage): ExtensionRangeOptions_Declaration; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration; - internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -export declare const ExtensionRangeOptions_Declaration: ExtensionRangeOptions_Declaration$Type; declare class FieldDescriptorProto$Type extends MessageType { constructor(); create(value?: PartialMessage): FieldDescriptorProto; @@ -2220,26 +1582,6 @@ declare class FieldOptions$Type extends MessageType { * @generated MessageType for protobuf message google.protobuf.FieldOptions */ export declare const FieldOptions: FieldOptions$Type; -declare class FieldOptions_EditionDefault$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldOptions_EditionDefault; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault; - internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault - */ -export declare const FieldOptions_EditionDefault: FieldOptions_EditionDefault$Type; -declare class FieldOptions_FeatureSupport$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FieldOptions_FeatureSupport; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_FeatureSupport): FieldOptions_FeatureSupport; - internalBinaryWrite(message: FieldOptions_FeatureSupport, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport - */ -export declare const FieldOptions_FeatureSupport: FieldOptions_FeatureSupport$Type; declare class OneofOptions$Type extends MessageType { constructor(); create(value?: PartialMessage): OneofOptions; @@ -2310,36 +1652,6 @@ declare class UninterpretedOption_NamePart$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSet; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet; - internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSet - */ -export declare const FeatureSet: FeatureSet$Type; -declare class FeatureSetDefaults$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSetDefaults; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults; - internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults - */ -export declare const FeatureSetDefaults: FeatureSetDefaults$Type; -declare class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType { - constructor(); - create(value?: PartialMessage): FeatureSetDefaults_FeatureSetEditionDefault; - internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault; - internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export declare const FeatureSetDefaults_FeatureSetEditionDefault: FeatureSetDefaults_FeatureSetEditionDefault$Type; declare class SourceCodeInfo$Type extends MessageType { constructor(); create(value?: PartialMessage): SourceCodeInfo; diff --git a/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.js b/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.js index 41c472ea..55bcaee1 100644 --- a/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.js +++ b/pkg/api/gen/proto/ts/google/protobuf/descriptor_pb.js @@ -47,24 +47,6 @@ import { WireType } from "@protobuf-ts/runtime"; import { UnknownFieldHandler } from "@protobuf-ts/runtime"; import { reflectionMergePartial } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; -/** - * The verification state of the extension range. - * - * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState - */ -export var ExtensionRangeOptions_VerificationState; -(function (ExtensionRangeOptions_VerificationState) { - /** - * All the extensions of the range must be declared. - * - * @generated from protobuf enum value: DECLARATION = 0; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION"; - /** - * @generated from protobuf enum value: UNVERIFIED = 1; - */ - ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED"; -})(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {})); /** * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type */ @@ -121,10 +103,9 @@ export var FieldDescriptorProto_Type; FieldDescriptorProto_Type[FieldDescriptorProto_Type["STRING"] = 9] = "STRING"; /** * Tag-delimited aggregate. - * Group type is deprecated and not supported after google.protobuf. However, Proto3 + * Group type is deprecated and not supported in proto3. However, Proto3 * implementations should still be able to parse the group wire format and - * treat group fields as unknown fields. In Editions, the group wire format - * can be enabled via the `message_encoding` feature. + * treat group fields as unknown fields. * * @generated from protobuf enum value: TYPE_GROUP = 10; */ @@ -186,17 +167,13 @@ export var FieldDescriptorProto_Label; */ FieldDescriptorProto_Label[FieldDescriptorProto_Label["OPTIONAL"] = 1] = "OPTIONAL"; /** - * @generated from protobuf enum value: LABEL_REPEATED = 3; - */ - FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED"; - /** - * The required label is only allowed in google.protobuf. In proto3 and Editions - * it's explicitly prohibited. In Editions, the `field_presence` feature - * can be used to get this behavior. - * * @generated from protobuf enum value: LABEL_REQUIRED = 2; */ FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED"; + /** + * @generated from protobuf enum value: LABEL_REPEATED = 3; + */ + FieldDescriptorProto_Label[FieldDescriptorProto_Label["REPEATED"] = 3] = "REPEATED"; })(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {})); /** * Generated classes can be optimized for speed or code size. @@ -242,13 +219,6 @@ export var FieldOptions_CType; */ FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING"; /** - * The option [ctype=CORD] may be applied to a non-repeated field of type - * "bytes". It indicates that in C++, the data should be stored in a Cord - * instead of a string. For very large strings, this may reduce memory - * fragmentation. It may also allow better performance when parsing from a - * Cord, or when parsing with aliasing enabled, as the parsed Cord may then - * alias the original buffer. - * * @generated from protobuf enum value: CORD = 1; */ FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD"; @@ -281,79 +251,6 @@ export var FieldOptions_JSType; */ FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER"; })(FieldOptions_JSType || (FieldOptions_JSType = {})); -/** - * If set to RETENTION_SOURCE, the option will be omitted from the binary. - * Note: as of January 2023, support for this is in progress and does not yet - * have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention - */ -export var FieldOptions_OptionRetention; -(function (FieldOptions_OptionRetention) { - /** - * @generated from protobuf enum value: RETENTION_UNKNOWN = 0; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN"; - /** - * @generated from protobuf enum value: RETENTION_RUNTIME = 1; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME"; - /** - * @generated from protobuf enum value: RETENTION_SOURCE = 2; - */ - FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE"; -})(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {})); -/** - * This indicates the types of entities that the field may apply to when used - * as an option. If it is unset, then the field may be freely used as an - * option on any kind of entity. Note: as of January 2023, support for this is - * in progress and does not yet have an effect (b/264593489). - * - * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType - */ -export var FieldOptions_OptionTargetType; -(function (FieldOptions_OptionTargetType) { - /** - * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN"; - /** - * @generated from protobuf enum value: TARGET_TYPE_FILE = 1; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM"; - /** - * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY"; - /** - * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE"; - /** - * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9; - */ - FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD"; -})(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {})); /** * Is this method side-effect-free (or safe in HTTP parlance), or idempotent, * or neither? HTTP based RPC implementation may choose GET verb for safe @@ -380,222 +277,6 @@ export var MethodOptions_IdempotencyLevel; */ MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT"; })(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence - */ -export var FeatureSet_FieldPresence; -(function (FeatureSet_FieldPresence) { - /** - * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN"; - /** - * @generated from protobuf enum value: EXPLICIT = 1; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT"; - /** - * @generated from protobuf enum value: IMPLICIT = 2; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT"; - /** - * @generated from protobuf enum value: LEGACY_REQUIRED = 3; - */ - FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED"; -})(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.EnumType - */ -export var FeatureSet_EnumType; -(function (FeatureSet_EnumType) { - /** - * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0; - */ - FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN"; - /** - * @generated from protobuf enum value: OPEN = 1; - */ - FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN"; - /** - * @generated from protobuf enum value: CLOSED = 2; - */ - FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED"; -})(FeatureSet_EnumType || (FeatureSet_EnumType = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding - */ -export var FeatureSet_RepeatedFieldEncoding; -(function (FeatureSet_RepeatedFieldEncoding) { - /** - * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN"; - /** - * @generated from protobuf enum value: PACKED = 1; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED"; - /** - * @generated from protobuf enum value: EXPANDED = 2; - */ - FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED"; -})(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation - */ -export var FeatureSet_Utf8Validation; -(function (FeatureSet_Utf8Validation) { - /** - * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN"; - /** - * @generated from protobuf enum value: VERIFY = 2; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY"; - /** - * @generated from protobuf enum value: NONE = 3; - */ - FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE"; -})(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding - */ -export var FeatureSet_MessageEncoding; -(function (FeatureSet_MessageEncoding) { - /** - * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN"; - /** - * @generated from protobuf enum value: LENGTH_PREFIXED = 1; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED"; - /** - * @generated from protobuf enum value: DELIMITED = 2; - */ - FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED"; -})(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {})); -/** - * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat - */ -export var FeatureSet_JsonFormat; -(function (FeatureSet_JsonFormat) { - /** - * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN"; - /** - * @generated from protobuf enum value: ALLOW = 1; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW"; - /** - * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2; - */ - FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT"; -})(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {})); -/** - * Represents the identified object's effect on the element in the original - * .proto file. - * - * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic - */ -export var GeneratedCodeInfo_Annotation_Semantic; -(function (GeneratedCodeInfo_Annotation_Semantic) { - /** - * There is no effect or the effect is indescribable. - * - * @generated from protobuf enum value: NONE = 0; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE"; - /** - * The element is set or otherwise mutated. - * - * @generated from protobuf enum value: SET = 1; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET"; - /** - * An alias to the element is returned. - * - * @generated from protobuf enum value: ALIAS = 2; - */ - GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS"; -})(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {})); -/** - * The full set of known editions. - * - * @generated from protobuf enum google.protobuf.Edition - */ -export var Edition; -(function (Edition) { - /** - * A placeholder for an unknown edition value. - * - * @generated from protobuf enum value: EDITION_UNKNOWN = 0; - */ - Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN"; - /** - * A placeholder edition for specifying default behaviors *before* a feature - * was first introduced. This is effectively an "infinite past". - * - * @generated from protobuf enum value: EDITION_LEGACY = 900; - */ - Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY"; - /** - * Legacy syntax "editions". These pre-date editions, but behave much like - * distinct editions. These can't be used to specify the edition of proto - * files, but feature definitions must supply proto2/proto3 defaults for - * backwards compatibility. - * - * @generated from protobuf enum value: EDITION_PROTO2 = 998; - */ - Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2"; - /** - * @generated from protobuf enum value: EDITION_PROTO3 = 999; - */ - Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3"; - /** - * Editions that have been released. The specific values are arbitrary and - * should not be depended on, but they will always be time-ordered for easy - * comparison. - * - * @generated from protobuf enum value: EDITION_2023 = 1000; - */ - Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023"; - /** - * @generated from protobuf enum value: EDITION_2024 = 1001; - */ - Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024"; - /** - * Placeholder editions for testing feature resolution. These should not be - * used or relyed on outside of tests. - * - * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1; - */ - Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2; - */ - Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997; - */ - Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998; - */ - Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY"; - /** - * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999; - */ - Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY"; - /** - * Placeholder for specifying unbounded edition support. This should only - * ever be used by plugins that can expect to never require any changes to - * support a new edition. - * - * @generated from protobuf enum value: EDITION_MAX = 2147483647; - */ - Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX"; -})(Edition || (Edition = {})); // @generated message type with reflection information, may provide speed optimized methods class FileDescriptorSet$Type extends MessageType { constructor() { @@ -658,8 +339,7 @@ class FileDescriptorProto$Type extends MessageType { { no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto }, { no: 8, name: "options", kind: "message", T: () => FileOptions }, { no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo }, - { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } + { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } ]); } create(value) { @@ -724,9 +404,6 @@ class FileDescriptorProto$Type extends MessageType { case /* optional string syntax */ 12: message.syntax = reader.string(); break; - case /* optional google.protobuf.Edition edition */ 14: - message.edition = reader.int32(); - break; default: let u = options.readUnknownField; if (u === "throw") @@ -775,9 +452,6 @@ class FileDescriptorProto$Type extends MessageType { /* optional string syntax = 12; */ if (message.syntax !== undefined) writer.tag(12, WireType.LengthDelimited).string(message.syntax); - /* optional google.protobuf.Edition edition = 14; */ - if (message.edition !== undefined) - writer.tag(14, WireType.Varint).int32(message.edition); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1022,16 +696,12 @@ export const DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$T class ExtensionRangeOptions$Type extends MessageType { constructor() { super("google.protobuf.ExtensionRangeOptions", [ - { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }, - { no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExtensionRangeOptions_Declaration }, - { no: 50, name: "features", kind: "message", T: () => FeatureSet }, - { no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] } + { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } create(value) { const message = globalThis.Object.create((this.messagePrototype)); message.uninterpretedOption = []; - message.declaration = []; if (value !== undefined) reflectionMergePartial(this, message, value); return message; @@ -1044,15 +714,6 @@ class ExtensionRangeOptions$Type extends MessageType { case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; - case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2: - message.declaration.push(ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.FeatureSet features */ 50: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification */ 3: - message.verification = reader.int32(); - break; default: let u = options.readUnknownField; if (u === "throw") @@ -1068,15 +729,6 @@ class ExtensionRangeOptions$Type extends MessageType { /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); - /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */ - for (let i = 0; i < message.declaration.length; i++) - ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FeatureSet features = 50; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; */ - if (message.verification !== undefined) - writer.tag(3, WireType.Varint).int32(message.verification); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); @@ -1088,80 +740,6 @@ class ExtensionRangeOptions$Type extends MessageType { */ export const ExtensionRangeOptions = new ExtensionRangeOptions$Type(); // @generated message type with reflection information, may provide speed optimized methods -class ExtensionRangeOptions_Declaration$Type extends MessageType { - constructor() { - super("google.protobuf.ExtensionRangeOptions.Declaration", [ - { no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 2, name: "full_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional int32 number */ 1: - message.number = reader.int32(); - break; - case /* optional string full_name */ 2: - message.fullName = reader.string(); - break; - case /* optional string type */ 3: - message.type = reader.string(); - break; - case /* optional bool reserved */ 5: - message.reserved = reader.bool(); - break; - case /* optional bool repeated */ 6: - message.repeated = reader.bool(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional int32 number = 1; */ - if (message.number !== undefined) - writer.tag(1, WireType.Varint).int32(message.number); - /* optional string full_name = 2; */ - if (message.fullName !== undefined) - writer.tag(2, WireType.LengthDelimited).string(message.fullName); - /* optional string type = 3; */ - if (message.type !== undefined) - writer.tag(3, WireType.LengthDelimited).string(message.type); - /* optional bool reserved = 5; */ - if (message.reserved !== undefined) - writer.tag(5, WireType.Varint).bool(message.reserved); - /* optional bool repeated = 6; */ - if (message.repeated !== undefined) - writer.tag(6, WireType.Varint).bool(message.repeated); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration - */ -export const ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type(); -// @generated message type with reflection information, may provide speed optimized methods class FieldDescriptorProto$Type extends MessageType { constructor() { super("google.protobuf.FieldDescriptorProto", [ @@ -1676,6 +1254,7 @@ class FileOptions$Type extends MessageType { { no: 16, name: "cc_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 17, name: "java_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 18, name: "py_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, + { no: 42, name: "php_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 31, name: "cc_enable_arenas", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 36, name: "objc_class_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, @@ -1685,7 +1264,6 @@ class FileOptions$Type extends MessageType { { no: 41, name: "php_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 44, name: "php_metadata_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 45, name: "ruby_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 50, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -1731,6 +1309,9 @@ class FileOptions$Type extends MessageType { case /* optional bool py_generic_services */ 18: message.pyGenericServices = reader.bool(); break; + case /* optional bool php_generic_services */ 42: + message.phpGenericServices = reader.bool(); + break; case /* optional bool deprecated */ 23: message.deprecated = reader.bool(); break; @@ -1758,9 +1339,6 @@ class FileOptions$Type extends MessageType { case /* optional string ruby_package */ 45: message.rubyPackage = reader.string(); break; - case /* optional google.protobuf.FeatureSet features */ 50: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -1806,6 +1384,9 @@ class FileOptions$Type extends MessageType { /* optional bool py_generic_services = 18; */ if (message.pyGenericServices !== undefined) writer.tag(18, WireType.Varint).bool(message.pyGenericServices); + /* optional bool php_generic_services = 42; */ + if (message.phpGenericServices !== undefined) + writer.tag(42, WireType.Varint).bool(message.phpGenericServices); /* optional bool deprecated = 23; */ if (message.deprecated !== undefined) writer.tag(23, WireType.Varint).bool(message.deprecated); @@ -1833,9 +1414,6 @@ class FileOptions$Type extends MessageType { /* optional string ruby_package = 45; */ if (message.rubyPackage !== undefined) writer.tag(45, WireType.LengthDelimited).string(message.rubyPackage); - /* optional google.protobuf.FeatureSet features = 50; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -1857,8 +1435,6 @@ class MessageOptions$Type extends MessageType { { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 7, name: "map_entry", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 12, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -1886,12 +1462,6 @@ class MessageOptions$Type extends MessageType { case /* optional bool map_entry */ 7: message.mapEntry = reader.bool(); break; - case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];*/ 11: - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - case /* optional google.protobuf.FeatureSet features */ 12: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -1919,12 +1489,6 @@ class MessageOptions$Type extends MessageType { /* optional bool map_entry = 7; */ if (message.mapEntry !== undefined) writer.tag(7, WireType.Varint).bool(message.mapEntry); - /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */ - if (message.deprecatedLegacyJsonFieldConflicts !== undefined) - writer.tag(11, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts); - /* optional google.protobuf.FeatureSet features = 12; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(12, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -1949,19 +1513,11 @@ class FieldOptions$Type extends MessageType { { no: 15, name: "unverified_lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 16, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] }, - { no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] }, - { no: 20, name: "edition_defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldOptions_EditionDefault }, - { no: 21, name: "features", kind: "message", T: () => FeatureSet }, - { no: 22, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } create(value) { const message = globalThis.Object.create((this.messagePrototype)); - message.targets = []; - message.editionDefaults = []; message.uninterpretedOption = []; if (value !== undefined) reflectionMergePartial(this, message, value); @@ -1993,28 +1549,6 @@ class FieldOptions$Type extends MessageType { case /* optional bool weak */ 10: message.weak = reader.bool(); break; - case /* optional bool debug_redact */ 16: - message.debugRedact = reader.bool(); - break; - case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17: - message.retention = reader.int32(); - break; - case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19: - if (wireType === WireType.LengthDelimited) - for (let e = reader.int32() + reader.pos; reader.pos < e;) - message.targets.push(reader.int32()); - else - message.targets.push(reader.int32()); - break; - case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20: - message.editionDefaults.push(FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.FeatureSet features */ 21: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 22: - message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2051,24 +1585,6 @@ class FieldOptions$Type extends MessageType { /* optional bool weak = 10; */ if (message.weak !== undefined) writer.tag(10, WireType.Varint).bool(message.weak); - /* optional bool debug_redact = 16; */ - if (message.debugRedact !== undefined) - writer.tag(16, WireType.Varint).bool(message.debugRedact); - /* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */ - if (message.retention !== undefined) - writer.tag(17, WireType.Varint).int32(message.retention); - /* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */ - for (let i = 0; i < message.targets.length; i++) - writer.tag(19, WireType.Varint).int32(message.targets[i]); - /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */ - for (let i = 0; i < message.editionDefaults.length; i++) - FieldOptions_EditionDefault.internalBinaryWrite(message.editionDefaults[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FeatureSet features = 21; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(21, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 22; */ - if (message.featureSupport) - FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(22, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2083,130 +1599,9 @@ class FieldOptions$Type extends MessageType { */ export const FieldOptions = new FieldOptions$Type(); // @generated message type with reflection information, may provide speed optimized methods -class FieldOptions_EditionDefault$Type extends MessageType { - constructor() { - super("google.protobuf.FieldOptions.EditionDefault", [ - { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Edition edition */ 3: - message.edition = reader.int32(); - break; - case /* optional string value */ 2: - message.value = reader.string(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Edition edition = 3; */ - if (message.edition !== undefined) - writer.tag(3, WireType.Varint).int32(message.edition); - /* optional string value = 2; */ - if (message.value !== undefined) - writer.tag(2, WireType.LengthDelimited).string(message.value); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault - */ -export const FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FieldOptions_FeatureSupport$Type extends MessageType { - constructor() { - super("google.protobuf.FieldOptions.FeatureSupport", [ - { no: 1, name: "edition_introduced", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 2, name: "edition_deprecated", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 3, name: "deprecation_warning", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, - { no: 4, name: "edition_removed", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Edition edition_introduced */ 1: - message.editionIntroduced = reader.int32(); - break; - case /* optional google.protobuf.Edition edition_deprecated */ 2: - message.editionDeprecated = reader.int32(); - break; - case /* optional string deprecation_warning */ 3: - message.deprecationWarning = reader.string(); - break; - case /* optional google.protobuf.Edition edition_removed */ 4: - message.editionRemoved = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Edition edition_introduced = 1; */ - if (message.editionIntroduced !== undefined) - writer.tag(1, WireType.Varint).int32(message.editionIntroduced); - /* optional google.protobuf.Edition edition_deprecated = 2; */ - if (message.editionDeprecated !== undefined) - writer.tag(2, WireType.Varint).int32(message.editionDeprecated); - /* optional string deprecation_warning = 3; */ - if (message.deprecationWarning !== undefined) - writer.tag(3, WireType.LengthDelimited).string(message.deprecationWarning); - /* optional google.protobuf.Edition edition_removed = 4; */ - if (message.editionRemoved !== undefined) - writer.tag(4, WireType.Varint).int32(message.editionRemoved); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FieldOptions.FeatureSupport - */ -export const FieldOptions_FeatureSupport = new FieldOptions_FeatureSupport$Type(); -// @generated message type with reflection information, may provide speed optimized methods class OneofOptions$Type extends MessageType { constructor() { super("google.protobuf.OneofOptions", [ - { no: 1, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2222,9 +1617,6 @@ class OneofOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional google.protobuf.FeatureSet features */ 1: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2240,9 +1632,6 @@ class OneofOptions$Type extends MessageType { return message; } internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet features = 1; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(1, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2262,8 +1651,6 @@ class EnumOptions$Type extends MessageType { super("google.protobuf.EnumOptions", [ { no: 2, name: "allow_alias", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 7, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2285,12 +1672,6 @@ class EnumOptions$Type extends MessageType { case /* optional bool deprecated */ 3: message.deprecated = reader.bool(); break; - case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];*/ 6: - message.deprecatedLegacyJsonFieldConflicts = reader.bool(); - break; - case /* optional google.protobuf.FeatureSet features */ 7: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2312,12 +1693,6 @@ class EnumOptions$Type extends MessageType { /* optional bool deprecated = 3; */ if (message.deprecated !== undefined) writer.tag(3, WireType.Varint).bool(message.deprecated); - /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */ - if (message.deprecatedLegacyJsonFieldConflicts !== undefined) - writer.tag(6, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts); - /* optional google.protobuf.FeatureSet features = 7; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(7, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2336,9 +1711,6 @@ class EnumValueOptions$Type extends MessageType { constructor() { super("google.protobuf.EnumValueOptions", [ { no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 2, name: "features", kind: "message", T: () => FeatureSet }, - { no: 3, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, - { no: 4, name: "feature_support", kind: "message", T: () => FieldOptions_FeatureSupport }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2357,15 +1729,6 @@ class EnumValueOptions$Type extends MessageType { case /* optional bool deprecated */ 1: message.deprecated = reader.bool(); break; - case /* optional google.protobuf.FeatureSet features */ 2: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; - case /* optional bool debug_redact */ 3: - message.debugRedact = reader.bool(); - break; - case /* optional google.protobuf.FieldOptions.FeatureSupport feature_support */ 4: - message.featureSupport = FieldOptions_FeatureSupport.internalBinaryRead(reader, reader.uint32(), options, message.featureSupport); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2384,15 +1747,6 @@ class EnumValueOptions$Type extends MessageType { /* optional bool deprecated = 1; */ if (message.deprecated !== undefined) writer.tag(1, WireType.Varint).bool(message.deprecated); - /* optional google.protobuf.FeatureSet features = 2; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(2, WireType.LengthDelimited).fork(), options).join(); - /* optional bool debug_redact = 3; */ - if (message.debugRedact !== undefined) - writer.tag(3, WireType.Varint).bool(message.debugRedact); - /* optional google.protobuf.FieldOptions.FeatureSupport feature_support = 4; */ - if (message.featureSupport) - FieldOptions_FeatureSupport.internalBinaryWrite(message.featureSupport, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2410,7 +1764,6 @@ export const EnumValueOptions = new EnumValueOptions$Type(); class ServiceOptions$Type extends MessageType { constructor() { super("google.protobuf.ServiceOptions", [ - { no: 34, name: "features", kind: "message", T: () => FeatureSet }, { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); @@ -2427,9 +1780,6 @@ class ServiceOptions$Type extends MessageType { while (reader.pos < end) { let [fieldNo, wireType] = reader.tag(); switch (fieldNo) { - case /* optional google.protobuf.FeatureSet features */ 34: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* optional bool deprecated */ 33: message.deprecated = reader.bool(); break; @@ -2448,9 +1798,6 @@ class ServiceOptions$Type extends MessageType { return message; } internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet features = 34; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(34, WireType.LengthDelimited).fork(), options).join(); /* optional bool deprecated = 33; */ if (message.deprecated !== undefined) writer.tag(33, WireType.Varint).bool(message.deprecated); @@ -2473,7 +1820,6 @@ class MethodOptions$Type extends MessageType { super("google.protobuf.MethodOptions", [ { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }, { no: 34, name: "idempotency_level", kind: "enum", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] }, - { no: 35, name: "features", kind: "message", T: () => FeatureSet }, { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption } ]); } @@ -2495,9 +1841,6 @@ class MethodOptions$Type extends MessageType { case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34: message.idempotencyLevel = reader.int32(); break; - case /* optional google.protobuf.FeatureSet features */ 35: - message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features); - break; case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999: message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options)); break; @@ -2519,9 +1862,6 @@ class MethodOptions$Type extends MessageType { /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */ if (message.idempotencyLevel !== undefined) writer.tag(34, WireType.Varint).int32(message.idempotencyLevel); - /* optional google.protobuf.FeatureSet features = 35; */ - if (message.features) - FeatureSet.internalBinaryWrite(message.features, writer.tag(35, WireType.LengthDelimited).fork(), options).join(); /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */ for (let i = 0; i < message.uninterpretedOption.length; i++) UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join(); @@ -2680,208 +2020,6 @@ class UninterpretedOption_NamePart$Type extends MessageType { */ export const UninterpretedOption_NamePart = new UninterpretedOption_NamePart$Type(); // @generated message type with reflection information, may provide speed optimized methods -class FeatureSet$Type extends MessageType { - constructor() { - super("google.protobuf.FeatureSet", [ - { no: 1, name: "field_presence", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] }, - { no: 2, name: "enum_type", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] }, - { no: 3, name: "repeated_field_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] }, - { no: 4, name: "utf8_validation", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] }, - { no: 5, name: "message_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] }, - { no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1: - message.fieldPresence = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2: - message.enumType = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3: - message.repeatedFieldEncoding = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4: - message.utf8Validation = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5: - message.messageEncoding = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6: - message.jsonFormat = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */ - if (message.fieldPresence !== undefined) - writer.tag(1, WireType.Varint).int32(message.fieldPresence); - /* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */ - if (message.enumType !== undefined) - writer.tag(2, WireType.Varint).int32(message.enumType); - /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */ - if (message.repeatedFieldEncoding !== undefined) - writer.tag(3, WireType.Varint).int32(message.repeatedFieldEncoding); - /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */ - if (message.utf8Validation !== undefined) - writer.tag(4, WireType.Varint).int32(message.utf8Validation); - /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */ - if (message.messageEncoding !== undefined) - writer.tag(5, WireType.Varint).int32(message.messageEncoding); - /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */ - if (message.jsonFormat !== undefined) - writer.tag(6, WireType.Varint).int32(message.jsonFormat); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSet - */ -export const FeatureSet = new FeatureSet$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FeatureSetDefaults$Type extends MessageType { - constructor() { - super("google.protobuf.FeatureSetDefaults", [ - { no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FeatureSetDefaults_FeatureSetEditionDefault }, - { no: 4, name: "minimum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 5, name: "maximum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - message.defaults = []; - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1: - message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options)); - break; - case /* optional google.protobuf.Edition minimum_edition */ 4: - message.minimumEdition = reader.int32(); - break; - case /* optional google.protobuf.Edition maximum_edition */ 5: - message.maximumEdition = reader.int32(); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */ - for (let i = 0; i < message.defaults.length; i++) - FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.Edition minimum_edition = 4; */ - if (message.minimumEdition !== undefined) - writer.tag(4, WireType.Varint).int32(message.minimumEdition); - /* optional google.protobuf.Edition maximum_edition = 5; */ - if (message.maximumEdition !== undefined) - writer.tag(5, WireType.Varint).int32(message.maximumEdition); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults - */ -export const FeatureSetDefaults = new FeatureSetDefaults$Type(); -// @generated message type with reflection information, may provide speed optimized methods -class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType { - constructor() { - super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [ - { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }, - { no: 4, name: "overridable_features", kind: "message", T: () => FeatureSet }, - { no: 5, name: "fixed_features", kind: "message", T: () => FeatureSet } - ]); - } - create(value) { - const message = globalThis.Object.create((this.messagePrototype)); - if (value !== undefined) - reflectionMergePartial(this, message, value); - return message; - } - internalBinaryRead(reader, length, options, target) { - let message = target ?? this.create(), end = reader.pos + length; - while (reader.pos < end) { - let [fieldNo, wireType] = reader.tag(); - switch (fieldNo) { - case /* optional google.protobuf.Edition edition */ 3: - message.edition = reader.int32(); - break; - case /* optional google.protobuf.FeatureSet overridable_features */ 4: - message.overridableFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.overridableFeatures); - break; - case /* optional google.protobuf.FeatureSet fixed_features */ 5: - message.fixedFeatures = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.fixedFeatures); - break; - default: - let u = options.readUnknownField; - if (u === "throw") - throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`); - let d = reader.skip(wireType); - if (u !== false) - (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d); - } - } - return message; - } - internalBinaryWrite(message, writer, options) { - /* optional google.protobuf.Edition edition = 3; */ - if (message.edition !== undefined) - writer.tag(3, WireType.Varint).int32(message.edition); - /* optional google.protobuf.FeatureSet overridable_features = 4; */ - if (message.overridableFeatures) - FeatureSet.internalBinaryWrite(message.overridableFeatures, writer.tag(4, WireType.LengthDelimited).fork(), options).join(); - /* optional google.protobuf.FeatureSet fixed_features = 5; */ - if (message.fixedFeatures) - FeatureSet.internalBinaryWrite(message.fixedFeatures, writer.tag(5, WireType.LengthDelimited).fork(), options).join(); - let u = options.writeUnknownFields; - if (u !== false) - (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); - return writer; - } -} -/** - * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault - */ -export const FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type(); -// @generated message type with reflection information, may provide speed optimized methods class SourceCodeInfo$Type extends MessageType { constructor() { super("google.protobuf.SourceCodeInfo", [ @@ -3075,8 +2213,7 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType { { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ }, { no: 2, name: "source_file", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }, { no: 3, name: "begin", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }, - { no: 5, name: "semantic", kind: "enum", opt: true, T: () => ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] } + { no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ } ]); } create(value) { @@ -3107,9 +2244,6 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType { case /* optional int32 end */ 4: message.end = reader.int32(); break; - case /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic */ 5: - message.semantic = reader.int32(); - break; default: let u = options.readUnknownField; if (u === "throw") @@ -3138,9 +2272,6 @@ class GeneratedCodeInfo_Annotation$Type extends MessageType { /* optional int32 end = 4; */ if (message.end !== undefined) writer.tag(4, WireType.Varint).int32(message.end); - /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */ - if (message.semantic !== undefined) - writer.tag(5, WireType.Varint).int32(message.semantic); let u = options.writeUnknownFields; if (u !== false) (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer); diff --git a/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.d.ts b/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.d.ts index 22f5b715..ee30ef4c 100644 --- a/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.d.ts +++ b/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.d.ts @@ -34,6 +34,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // +// // Wrappers for primitive (non-message) types. These types are useful // for embedding primitives in the `google.protobuf.Any` type and for places // where we need to distinguish between the absence of a primitive diff --git a/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.js b/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.js index 267e1f39..e4ffdd56 100644 --- a/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.js +++ b/pkg/api/gen/proto/ts/google/protobuf/wrappers_pb.js @@ -34,6 +34,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // +// // Wrappers for primitive (non-message) types. These types are useful // for embedding primitives in the `google.protobuf.Any` type and for places // where we need to distinguish between the absence of a primitive @@ -80,6 +81,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // +// // Wrappers for primitive (non-message) types. These types are useful // for embedding primitives in the `google.protobuf.Any` type and for places // where we need to distinguish between the absence of a primitive diff --git a/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.d.ts b/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.d.ts index a38ba6e7..df36202f 100644 --- a/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.d.ts +++ b/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.d.ts @@ -143,7 +143,11 @@ export declare enum CommandMode { /** * @generated from protobuf enum value: COMMAND_MODE_TERMINAL = 3; */ - TERMINAL = 3 + TERMINAL = 3, + /** + * @generated from protobuf enum value: COMMAND_MODE_CLI = 4; + */ + CLI = 4 } declare class ProgramConfig$Type extends MessageType { constructor(); diff --git a/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.js b/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.js index 2ef395a3..65a11cb6 100644 --- a/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.js +++ b/pkg/api/gen/proto/ts/runme/runner/v2alpha1/config_pb.js @@ -30,6 +30,10 @@ export var CommandMode; * @generated from protobuf enum value: COMMAND_MODE_TERMINAL = 3; */ CommandMode[CommandMode["TERMINAL"] = 3] = "TERMINAL"; + /** + * @generated from protobuf enum value: COMMAND_MODE_CLI = 4; + */ + CommandMode[CommandMode["CLI"] = 4] = "CLI"; })(CommandMode || (CommandMode = {})); // @generated message type with reflection information, may provide speed optimized methods class ProgramConfig$Type extends MessageType { diff --git a/pkg/api/proto/runme/runner/v2alpha1/config.proto b/pkg/api/proto/runme/runner/v2alpha1/config.proto index 6392698c..28d07fd4 100644 --- a/pkg/api/proto/runme/runner/v2alpha1/config.proto +++ b/pkg/api/proto/runme/runner/v2alpha1/config.proto @@ -9,6 +9,7 @@ enum CommandMode { COMMAND_MODE_INLINE = 1; COMMAND_MODE_FILE = 2; COMMAND_MODE_TERMINAL = 3; + COMMAND_MODE_CLI = 4; } // ProgramConfig is a configuration for a program to execute.