From 63619d2db7b41d9d87afa7b1fdf24f4a4cc6bad2 Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Sat, 28 Mar 2026 00:22:21 -0500 Subject: [PATCH 1/5] refactor: restructure backend code organization - Move handlers to handler/v1beta1/ (from internal/server/v1beta1/) - Move interceptors to internal/middleware/ (from pkg/server/interceptor/) - Move store to store/ (from internal/store/) - Move telemetry to internal/telemetry/ (from pkg/telemetry/) - Extract server config to internal/config/ package - Remove pkg/ directory entirely (metrics, statsd, telemetry) - Migrate proto generation from PGV to buf protovalidate - Switch buf.gen.yaml to source_relative with proto/gen/ output - Replace manual ValidateAll() calls with connectrpc/validate interceptor - Remove envoyproxy/protoc-gen-validate dependency --- buf.gen.yaml | 21 +- cli/assets.go | 7 +- cli/config.go | 14 +- cli/discussions.go | 7 +- cli/lineage.go | 2 +- cli/namespace.go | 2 +- cli/search.go | 2 +- cli/server.go | 63 +- config/config.yaml | 10 - docs/docs/configuration.md | 8 - docs/docs/guides/telemetry.md | 22 +- docs/docs/reference/configuration.md | 39 +- go.mod | 24 +- go.sum | 44 +- {internal/server => handler}/v1beta1/asset.go | 49 +- .../server => handler}/v1beta1/asset_test.go | 24 +- .../server => handler}/v1beta1/comment.go | 29 +- .../v1beta1/comment_test.go | 16 +- .../server => handler}/v1beta1/discussion.go | 24 +- .../v1beta1/discussion_test.go | 14 +- .../server => handler}/v1beta1/lineage.go | 9 +- .../v1beta1/lineage_test.go | 8 +- .../v1beta1/mocks/asset_service.go | 0 .../v1beta1/mocks/discussion_service.go | 0 .../v1beta1/mocks/namespace_service.go | 0 .../v1beta1/mocks/star_service.go | 0 .../v1beta1/mocks/tag_service.go | 0 .../v1beta1/mocks/tag_template_service.go | 0 .../v1beta1/mocks/user_service.go | 0 .../server => handler}/v1beta1/namespace.go | 6 +- .../v1beta1/namespace_test.go | 4 +- .../server => handler}/v1beta1/option.go | 0 .../server => handler}/v1beta1/search.go | 19 +- .../server => handler}/v1beta1/search_test.go | 10 +- .../server => handler}/v1beta1/server.go | 0 {internal/server => handler}/v1beta1/star.go | 0 {internal/server => handler}/v1beta1/tag.go | 29 +- .../v1beta1/tag_template.go | 29 +- .../v1beta1/tag_template_test.go | 16 +- .../server => handler}/v1beta1/tag_test.go | 16 +- {internal/server => handler}/v1beta1/type.go | 5 +- .../server => handler}/v1beta1/type_test.go | 8 +- {internal/server => handler}/v1beta1/user.go | 35 +- .../server => handler}/v1beta1/user_test.go | 18 +- internal/client/client.go | 2 +- internal/config/config.go | 35 + .../middleware}/error_response.go | 2 +- .../middleware}/interceptor.go | 2 +- .../middleware}/logger.go | 2 +- .../middleware}/namespace.go | 2 +- .../middleware}/recovery.go | 2 +- .../middleware}/user.go | 2 +- internal/server/server.go | 85 +- {pkg => internal}/telemetry/config.go | 0 {pkg => internal}/telemetry/telemetry.go | 0 pkg/metrics/newrelic.go | 7 - pkg/statsd/config.go | 11 - pkg/statsd/metric.go | 89 - pkg/statsd/statsd.go | 111 - proto/compassv1beta1/service.pb.go | 9670 ---------- proto/compassv1beta1/service.pb.validate.go | 14636 ---------------- proto/gen/buf/validate/validate.pb.go | 9070 ++++++++++ .../compassv1beta1connect/service.connect.go | 522 +- .../raystack/compass/v1beta1/service.pb.go | 7287 ++++++++ .../elasticsearch/discovery_repository.go | 0 .../discovery_repository_test.go | 2 +- .../discovery_search_repository.go | 0 .../discovery_search_repository_test.go | 2 +- {internal/store => store}/elasticsearch/es.go | 2 - .../store => store}/elasticsearch/es_test.go | 2 +- .../elasticsearch/init_test.go | 2 +- .../store => store}/elasticsearch/options.go | 0 .../store => store}/elasticsearch/schema.go | 0 .../testdata/search-test-fixture.json | 0 .../testdata/suggest-test-fixture.json | 0 .../elasticsearch/testutil/elastic_search.go | 0 .../store => store}/postgres/asset_model.go | 0 .../postgres/asset_model_test.go | 2 +- .../postgres/asset_repository.go | 0 .../postgres/asset_repository_test.go | 6 +- {internal/store => store}/postgres/config.go | 0 .../postgres/discussion_comment_repository.go | 0 .../discussion_comment_repository_test.go | 0 .../postgres/discussion_model.go | 0 .../postgres/discussion_repository.go | 0 .../postgres/discussion_repository_test.go | 6 +- {internal/store => store}/postgres/errors.go | 0 .../store => store}/postgres/lineage_model.go | 0 .../postgres/lineage_repository.go | 0 .../postgres/lineage_repository_test.go | 6 +- ...reate_tags_templates_fields_table.down.sql | 0 ..._create_tags_templates_fields_table.up.sql | 0 .../000002_create_users_table.down.sql | 0 .../000002_create_users_table.up.sql | 0 .../000003_create_assets_table.down.sql | 0 .../000003_create_assets_table.up.sql | 0 .../000004_create_stars_table.down.sql | 0 .../000004_create_stars_table.up.sql | 0 ...0005_create_assets_versions_table.down.sql | 0 ...000005_create_assets_versions_table.up.sql | 0 ...000006_create_lineage_graph_table.down.sql | 0 .../000006_create_lineage_graph_table.up.sql | 0 .../000007_create_discussions_table.down.sql | 0 .../000007_create_discussions_table.up.sql | 0 .../000008_create_comments_table.down.sql | 0 .../000008_create_comments_table.up.sql | 0 ...009_update_tags_templates_assetid.down.sql | 0 ...00009_update_tags_templates_assetid.up.sql | 0 ..._drop_assets_idx_urn_type_service.down.sql | 0 ...10_drop_assets_idx_urn_type_service.up.sql | 0 .../000011_create_idx_assets_urn.down.sql | 0 .../000011_create_idx_assets_urn.up.sql | 0 .../000012_create_asset_probes_table.down.sql | 0 .../000012_create_asset_probes_table.up.sql | 0 .../000013_alter_assets_table.down.sql | 0 .../000013_alter_assets_table.up.sql | 0 ...table_and_add_namespace_in_tables.down.sql | 0 ...e_table_and_add_namespace_in_tables.up.sql | 0 ...ble_row_level_security_all_tables.down.sql | 0 ...nable_row_level_security_all_tables.up.sql | 0 .../000016_update_assets_versions.down.sql | 0 .../000016_update_assets_versions.up.sql | 0 .../000017_add_soft_deletion.down.sql | 0 .../000017_add_soft_deletion.up.sql | 0 .../000018_index_asset_probes.down.sql | 0 .../000018_index_asset_probes.up.sql | 0 .../postgres/namespace_model.go | 0 .../postgres/namespace_repository.go | 0 .../postgres/namespace_repository_test.go | 2 +- .../store => store}/postgres/postgres.go | 4 +- .../store => store}/postgres/postgres_test.go | 2 +- .../postgres/star_repository.go | 0 .../postgres/star_repository_test.go | 6 +- .../store => store}/postgres/tag_model.go | 0 .../postgres/tag_model_test.go | 0 .../postgres/tag_repository.go | 0 .../postgres/tag_repository_test.go | 6 +- .../postgres/tag_template_repository.go | 0 .../postgres/tag_template_repository_test.go | 6 +- .../postgres/testdata/mock-asset-data.json | 0 .../postgres/testdata/mock-probes-data.json | 0 .../store => store}/postgres/user_model.go | 0 .../postgres/user_model_test.go | 0 .../postgres/user_repository.go | 0 .../postgres/user_repository_test.go | 6 +- 145 files changed, 16945 insertions(+), 25287 deletions(-) rename {internal/server => handler}/v1beta1/asset.go (91%) rename {internal/server => handler}/v1beta1/asset_test.go (98%) rename {internal/server => handler}/v1beta1/comment.go (88%) rename {internal/server => handler}/v1beta1/comment_test.go (98%) rename {internal/server => handler}/v1beta1/discussion.go (89%) rename {internal/server => handler}/v1beta1/discussion_test.go (98%) rename {internal/server => handler}/v1beta1/lineage.go (88%) rename {internal/server => handler}/v1beta1/lineage_test.go (93%) rename {internal/server => handler}/v1beta1/mocks/asset_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/discussion_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/namespace_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/star_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/tag_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/tag_template_service.go (100%) rename {internal/server => handler}/v1beta1/mocks/user_service.go (100%) rename {internal/server => handler}/v1beta1/namespace.go (96%) rename {internal/server => handler}/v1beta1/namespace_test.go (98%) rename {internal/server => handler}/v1beta1/option.go (100%) rename {internal/server => handler}/v1beta1/search.go (85%) rename {internal/server => handler}/v1beta1/search_test.go (97%) rename {internal/server => handler}/v1beta1/server.go (100%) rename {internal/server => handler}/v1beta1/star.go (100%) rename {internal/server => handler}/v1beta1/tag.go (90%) rename {internal/server => handler}/v1beta1/tag_template.go (89%) rename {internal/server => handler}/v1beta1/tag_template_test.go (98%) rename {internal/server => handler}/v1beta1/tag_test.go (98%) rename {internal/server => handler}/v1beta1/type.go (83%) rename {internal/server => handler}/v1beta1/type_test.go (94%) rename {internal/server => handler}/v1beta1/user.go (87%) rename {internal/server => handler}/v1beta1/user_test.go (98%) create mode 100644 internal/config/config.go rename {pkg/server/interceptor => internal/middleware}/error_response.go (98%) rename {pkg/server/interceptor => internal/middleware}/interceptor.go (96%) rename {pkg/server/interceptor => internal/middleware}/logger.go (98%) rename {pkg/server/interceptor => internal/middleware}/namespace.go (99%) rename {pkg/server/interceptor => internal/middleware}/recovery.go (97%) rename {pkg/server/interceptor => internal/middleware}/user.go (97%) rename {pkg => internal}/telemetry/config.go (100%) rename {pkg => internal}/telemetry/telemetry.go (100%) delete mode 100644 pkg/metrics/newrelic.go delete mode 100644 pkg/statsd/config.go delete mode 100644 pkg/statsd/metric.go delete mode 100644 pkg/statsd/statsd.go delete mode 100644 proto/compassv1beta1/service.pb.go delete mode 100644 proto/compassv1beta1/service.pb.validate.go create mode 100644 proto/gen/buf/validate/validate.pb.go rename proto/{compassv1beta1 => gen/raystack/compass/v1beta1}/compassv1beta1connect/service.connect.go (60%) create mode 100644 proto/gen/raystack/compass/v1beta1/service.pb.go rename {internal/store => store}/elasticsearch/discovery_repository.go (100%) rename {internal/store => store}/elasticsearch/discovery_repository_test.go (99%) rename {internal/store => store}/elasticsearch/discovery_search_repository.go (100%) rename {internal/store => store}/elasticsearch/discovery_search_repository_test.go (99%) rename {internal/store => store}/elasticsearch/es.go (98%) rename {internal/store => store}/elasticsearch/es_test.go (98%) rename {internal/store => store}/elasticsearch/init_test.go (88%) rename {internal/store => store}/elasticsearch/options.go (100%) rename {internal/store => store}/elasticsearch/schema.go (100%) rename {internal/store => store}/elasticsearch/testdata/search-test-fixture.json (100%) rename {internal/store => store}/elasticsearch/testdata/suggest-test-fixture.json (100%) rename {internal/store => store}/elasticsearch/testutil/elastic_search.go (100%) rename {internal/store => store}/postgres/asset_model.go (100%) rename {internal/store => store}/postgres/asset_model_test.go (90%) rename {internal/store => store}/postgres/asset_repository.go (100%) rename {internal/store => store}/postgres/asset_repository_test.go (99%) rename {internal/store => store}/postgres/config.go (100%) rename {internal/store => store}/postgres/discussion_comment_repository.go (100%) rename {internal/store => store}/postgres/discussion_comment_repository_test.go (100%) rename {internal/store => store}/postgres/discussion_model.go (100%) rename {internal/store => store}/postgres/discussion_repository.go (100%) rename {internal/store => store}/postgres/discussion_repository_test.go (98%) rename {internal/store => store}/postgres/errors.go (100%) rename {internal/store => store}/postgres/lineage_model.go (100%) rename {internal/store => store}/postgres/lineage_repository.go (100%) rename {internal/store => store}/postgres/lineage_repository_test.go (96%) rename {internal/store => store}/postgres/migrations/000001_create_tags_templates_fields_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000001_create_tags_templates_fields_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000002_create_users_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000002_create_users_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000003_create_assets_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000003_create_assets_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000004_create_stars_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000004_create_stars_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000005_create_assets_versions_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000005_create_assets_versions_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000006_create_lineage_graph_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000006_create_lineage_graph_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000007_create_discussions_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000007_create_discussions_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000008_create_comments_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000008_create_comments_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000009_update_tags_templates_assetid.down.sql (100%) rename {internal/store => store}/postgres/migrations/000009_update_tags_templates_assetid.up.sql (100%) rename {internal/store => store}/postgres/migrations/000010_drop_assets_idx_urn_type_service.down.sql (100%) rename {internal/store => store}/postgres/migrations/000010_drop_assets_idx_urn_type_service.up.sql (100%) rename {internal/store => store}/postgres/migrations/000011_create_idx_assets_urn.down.sql (100%) rename {internal/store => store}/postgres/migrations/000011_create_idx_assets_urn.up.sql (100%) rename {internal/store => store}/postgres/migrations/000012_create_asset_probes_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000012_create_asset_probes_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000013_alter_assets_table.down.sql (100%) rename {internal/store => store}/postgres/migrations/000013_alter_assets_table.up.sql (100%) rename {internal/store => store}/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.down.sql (100%) rename {internal/store => store}/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.up.sql (100%) rename {internal/store => store}/postgres/migrations/000015_enable_row_level_security_all_tables.down.sql (100%) rename {internal/store => store}/postgres/migrations/000015_enable_row_level_security_all_tables.up.sql (100%) rename {internal/store => store}/postgres/migrations/000016_update_assets_versions.down.sql (100%) rename {internal/store => store}/postgres/migrations/000016_update_assets_versions.up.sql (100%) rename {internal/store => store}/postgres/migrations/000017_add_soft_deletion.down.sql (100%) rename {internal/store => store}/postgres/migrations/000017_add_soft_deletion.up.sql (100%) rename {internal/store => store}/postgres/migrations/000018_index_asset_probes.down.sql (100%) rename {internal/store => store}/postgres/migrations/000018_index_asset_probes.up.sql (100%) rename {internal/store => store}/postgres/namespace_model.go (100%) rename {internal/store => store}/postgres/namespace_repository.go (100%) rename {internal/store => store}/postgres/namespace_repository_test.go (98%) rename {internal/store => store}/postgres/postgres.go (98%) rename {internal/store => store}/postgres/postgres_test.go (99%) rename {internal/store => store}/postgres/star_repository.go (100%) rename {internal/store => store}/postgres/star_repository_test.go (98%) rename {internal/store => store}/postgres/tag_model.go (100%) rename {internal/store => store}/postgres/tag_model_test.go (100%) rename {internal/store => store}/postgres/tag_repository.go (100%) rename {internal/store => store}/postgres/tag_repository_test.go (98%) rename {internal/store => store}/postgres/tag_template_repository.go (100%) rename {internal/store => store}/postgres/tag_template_repository_test.go (98%) rename {internal/store => store}/postgres/testdata/mock-asset-data.json (100%) rename {internal/store => store}/postgres/testdata/mock-probes-data.json (100%) rename {internal/store => store}/postgres/user_model.go (100%) rename {internal/store => store}/postgres/user_model_test.go (100%) rename {internal/store => store}/postgres/user_repository.go (100%) rename {internal/store => store}/postgres/user_repository_test.go (97%) diff --git a/buf.gen.yaml b/buf.gen.yaml index 2b1f5468..44fe00be 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,17 +1,22 @@ version: v2 +# Proto source lives in the proton repo (../proton). +# After running `buf generate`, remove unwanted generated files: +# find proto/gen/raystack -mindepth 1 -maxdepth 1 ! -name compass -exec rm -rf {} + +inputs: + - directory: ../proton + - module: buf.build/bufbuild/protovalidate managed: enabled: true override: - file_option: go_package path: raystack/compass/v1beta1/service.proto - value: github.com/raystack/compass/proto/compassv1beta1 + value: github.com/raystack/compass/proto/gen/raystack/compass/v1beta1;compassv1beta1 plugins: - remote: buf.build/protocolbuffers/go:v1.36.11 - out: proto - opt: module=github.com/raystack/compass/proto - - remote: buf.build/bufbuild/validate-go:v1.0.2 - out: proto - opt: module=github.com/raystack/compass/proto + out: proto/gen + opt: + - paths=source_relative - remote: buf.build/connectrpc/go:v1.18.1 - out: proto - opt: module=github.com/raystack/compass/proto + out: proto/gen + opt: + - paths=source_relative diff --git a/cli/assets.go b/cli/assets.go index fc512e01..b81cd463 100644 --- a/cli/assets.go +++ b/cli/assets.go @@ -7,7 +7,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) @@ -187,11 +187,6 @@ func editAssetCommand(cfg *Config) *cobra.Command { return err } - err := reqBody.ValidateAll() - if err != nil { - return err - } - clnt, err := client.Create(cmd.Context(), cfg.Client) if err != nil { return err diff --git a/cli/config.go b/cli/config.go index f8f51804..6a5a61a1 100644 --- a/cli/config.go +++ b/cli/config.go @@ -6,11 +6,10 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/internal/client" - "github.com/raystack/compass/internal/server" - esStore "github.com/raystack/compass/internal/store/elasticsearch" - "github.com/raystack/compass/internal/store/postgres" - "github.com/raystack/compass/pkg/metrics" - "github.com/raystack/compass/pkg/telemetry" + compassconfig "github.com/raystack/compass/internal/config" + esStore "github.com/raystack/compass/store/elasticsearch" + "github.com/raystack/compass/store/postgres" + "github.com/raystack/compass/internal/telemetry" "github.com/raystack/salt/config" "github.com/spf13/cobra" "gopkg.in/yaml.v2" @@ -77,9 +76,6 @@ type Config struct { // Log LogLevel string `yaml:"log_level" mapstructure:"log_level" default:"info"` - // NewRelic - NewRelic metrics.NewRelicConfig `mapstructure:"newrelic"` - // Telemetry Telemetry telemetry.Config `mapstructure:"telemetry"` @@ -90,7 +86,7 @@ type Config struct { DB postgres.Config `mapstructure:"db"` // Service - Service server.Config `mapstructure:"service"` + Service compassconfig.ServerConfig `mapstructure:"service"` // Client Client client.Config `mapstructure:"client"` diff --git a/cli/discussions.go b/cli/discussions.go index 3cd132a4..0241b93f 100644 --- a/cli/discussions.go +++ b/cli/discussions.go @@ -7,7 +7,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) @@ -143,11 +143,6 @@ func postDiscussionCommand(cfg *Config) *cobra.Command { if err := parseFile(filePath, &reqBody); err != nil { return err } - err := reqBody.ValidateAll() - if err != nil { - return err - } - clnt, err := client.Create(cmd.Context(), cfg.Client) if err != nil { return err diff --git a/cli/lineage.go b/cli/lineage.go index 655005c0..bf7356ea 100644 --- a/cli/lineage.go +++ b/cli/lineage.go @@ -6,7 +6,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/namespace.go b/cli/namespace.go index 82dd6e77..3d6393be 100644 --- a/cli/namespace.go +++ b/cli/namespace.go @@ -9,7 +9,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/search.go b/cli/search.go index 85a36826..e91baab7 100644 --- a/cli/search.go +++ b/cli/search.go @@ -6,7 +6,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/server.go b/cli/server.go index bae6c665..73981fde 100644 --- a/cli/server.go +++ b/cli/server.go @@ -10,16 +10,15 @@ import ( "syscall" "github.com/MakeNowJust/heredoc" - "github.com/newrelic/go-agent/v3/newrelic" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/core/user" compassserver "github.com/raystack/compass/internal/server" - esStore "github.com/raystack/compass/internal/store/elasticsearch" - "github.com/raystack/compass/internal/store/postgres" - "github.com/raystack/compass/pkg/telemetry" + esStore "github.com/raystack/compass/store/elasticsearch" + "github.com/raystack/compass/store/postgres" + "github.com/raystack/compass/internal/telemetry" log "github.com/raystack/salt/observability/logger" "github.com/spf13/cobra" ) @@ -81,7 +80,7 @@ func serverMigrateCommand(cfg *Config) *cobra.Command { ctx, cancel := signal.NotifyContext(cmd.Context(), syscall.SIGINT, syscall.SIGTERM) defer cancel() if down { - return migrateDown(cfg) + return migrateDown(ctx, cfg) } return runMigrations(ctx, cfg) }, @@ -97,11 +96,6 @@ func runServer(config *Config) error { logger := initLogger(config.LogLevel) logger.Info("compass starting", "version", Version) - nrApp, err := initNewRelicMonitor(config, logger) - if err != nil { - return err - } - otelCleanup, err := telemetry.Init(ctx, config.Telemetry, logger) if err != nil { return fmt.Errorf("failed to initialize telemetry: %w", err) @@ -117,6 +111,13 @@ func runServer(config *Config) error { if err != nil { return err } + defer func() { + logger.Warn("closing db...") + if err := pgClient.Close(); err != nil { + logger.Error("error when closing db", "err", err) + } + logger.Warn("db closed...") + }() // init tag tagRepository, err := postgres.NewTagRepository(pgClient) @@ -169,8 +170,6 @@ func runServer(config *Config) error { ctx, config.Service, logger, - pgClient, - nrApp, namespaceService, assetService, starService, @@ -212,41 +211,20 @@ func initPostgres(logger log.Logger, config *Config) (*postgres.Client, error) { return pgClient, nil } -func initNewRelicMonitor(config *Config, logger log.Logger) (*newrelic.Application, error) { - if !config.NewRelic.Enabled { - logger.Info("New Relic monitoring is disabled.") - return nil, nil - } - app, err := newrelic.NewApplication( - newrelic.ConfigAppName(config.NewRelic.AppName), - newrelic.ConfigLicense(config.NewRelic.LicenseKey), - ) - if err != nil { - return nil, fmt.Errorf("unable to create New Relic Application: %w", err) - } - logger.Info("New Relic monitoring is enabled for", "config", config.NewRelic.AppName) - - return app, nil -} - func runMigrations(ctx context.Context, config *Config) error { - fmt.Println("Preparing migration...") - logger := initLogger(config.LogLevel) logger.Info("compass is migrating", "version", Version) - logger.Info("Migrating Postgres & ElasticSearch...") esClient, err := initElasticsearch(logger, config.Elasticsearch) if err != nil { return err } - logger.Info("Initiating Postgres client...") - pgClient, err := postgres.NewClient(config.DB) + pgClient, err := initPostgres(logger, config) if err != nil { - logger.Error("failed to prepare migration", "error", err) return err } + defer pgClient.Close() ver, err := pgClient.Migrate(config.DB) if err != nil { @@ -265,27 +243,24 @@ func runMigrations(ctx context.Context, config *Config) error { } else if err != nil { return fmt.Errorf("problem with migration %w", err) } - logger.Info(fmt.Sprintf("Migration finished. Version: %d", ver)) + logger.Info("migration finished", "version", ver) return nil } -func migrateDown(config *Config) error { - fmt.Println("Preparing rolling back one step of migration...") - +func migrateDown(ctx context.Context, config *Config) error { logger := initLogger(config.LogLevel) - logger.Info("compass is migrating", "version", Version) + logger.Info("compass is rolling back migration", "version", Version) - logger.Info("Initiating Postgres client...") - pgClient, err := postgres.NewClient(config.DB) + pgClient, err := initPostgres(logger, config) if err != nil { - logger.Error("failed to prepare migration", "error", err) return err } + defer pgClient.Close() ver, err := pgClient.MigrateDown(config.DB) if err != nil { return fmt.Errorf("problem with migration %w", err) } - logger.Info(fmt.Sprintf("Migration finished. Version: %d", ver)) + logger.Info("migration finished", "version", ver) return nil } diff --git a/config/config.yaml b/config/config.yaml index 33e27146..aa31a780 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -1,15 +1,5 @@ log_level: info -statsd: - enabled: false - address: 127.0.0.1:8125 - prefix: compass - -newrelic: - enabled: false - appname: compass - licensekey: ____LICENSE_STRING_OF_40_CHARACTERS_____ - elasticsearch: brokers: http://localhost:9200 diff --git a/docs/docs/configuration.md b/docs/docs/configuration.md index f2a70b15..1d6d5f7d 100644 --- a/docs/docs/configuration.md +++ b/docs/docs/configuration.md @@ -237,17 +237,11 @@ app: config: COMPASS_SERVICE_PORT: 8080 # COMPASS_SERVICE_HOST: 0.0.0.0 - # COMPASS_STATSD_ENABLED: false - # COMPASS_STATSD_PREFIX: compass - # COMPASS_NEWRELIC_ENABLED: false - # COMPASS_NEWRELIC_APPNAME: compass # COMPASS_LOG_LEVEL: info secretConfig: {} # COMPASS_ELASTICSEARCH_BROKERS: ~ - # COMPASS_STATSD_ADDRESS: ~ - # COMPASS_NEWRELIC_LICENSEKEY: ~ # COMPASS_DB_HOST: ~ # COMPASS_DB_PORT: 5432 # COMPASS_DB_NAME: ~ @@ -284,8 +278,6 @@ If everything goes ok, you should see something like this: ```bash time="2022-04-27T09:18:08Z" level=info msg="compass starting" version=v0.2.0 time="2022-04-27T09:18:08Z" level=info msg="connected to elasticsearch cluster" config="\"docker-cluster\" (server version 7.6.1)" -time="2022-04-27T09:18:08Z" level=info msg="New Relic monitoring is disabled." -time="2022-04-27T09:18:08Z" level=info msg="statsd metrics monitoring is disabled." time="2022-04-27T09:18:08Z" level=info msg="connected to postgres server" host=postgres port=5432 time="2022-04-27T09:18:08Z" level=info msg="server started" ``` diff --git a/docs/docs/guides/telemetry.md b/docs/docs/guides/telemetry.md index 26e0410d..5f46ec27 100644 --- a/docs/docs/guides/telemetry.md +++ b/docs/docs/guides/telemetry.md @@ -1,23 +1,19 @@ # Telemetry -Compass collects basic HTTP metrics (response time, duration, etc) and sends it to [statsd](https://github.com/statsd/statsd) and [New Relic](https://newrelic.com/) when enabled. +Compass uses [OpenTelemetry](https://opentelemetry.io/) to collect traces and metrics and export them via OTLP gRPC to a collector. -## Statsd -By default statsd is not enabled. To enable statsd, we just need to set these configurations below +## OpenTelemetry + +By default OpenTelemetry is not enabled. To enable it, set these configurations: ``` -STATSD_ENABLED=true -STATSD_ADDRESS=127.0.0.1:8125 -STATSD_PREFIX=compass +TELEMETRY_OPENTELEMETRY_ENABLED=true +TELEMETRY_OPENTELEMETRY_COLLECTORADDR=localhost:4317 +TELEMETRY_SERVICENAME=compass ``` - -## New Relic -Similar with statsd, New Relic is not enabled by default. To enable New Relic, you can set these configurations +You can optionally configure trace sampling probability: ``` -NEW_RELIC_LICENSE_KEY=mf9d13c838u252252c43ji47q1u4ynzpDDDDTSPQ -NEW_RELIC_APP_NAME=compass +TELEMETRY_OPENTELEMETRY_TRACESAMPLEPROBABILITY=0.1 ``` - -Empty `NEW_RELIC_LICENSE_KEY` will disable New Relic integration. diff --git a/docs/docs/reference/configuration.md b/docs/docs/reference/configuration.md index 4544a6c9..c4f24dbc 100644 --- a/docs/docs/reference/configuration.md +++ b/docs/docs/reference/configuration.md @@ -72,39 +72,32 @@ Compass's required variables to start using it. ## Telemetry -Variables for metrics gathering. +Variables for metrics gathering. Compass uses OpenTelemetry for traces and metrics. -### `STATSD_ADDRESS` +### `TELEMETRY_SERVICENAME` -* Example value: `127.0.0.1:8125` -* Type: `optional` -* statsd client to send metrics to. - -### `STATSD_PREFIX` - -* Example value: `discovery` +* Example value: `compass` * Type: `optional` -* Default: `compassApi` -* Prefix for statsd metrics names. +* Default: `compass` +* Service name reported to the OpenTelemetry collector. -### `STATSD_ENABLED` +### `TELEMETRY_OPENTELEMETRY_ENABLED` * Example value: `true` -* Type: `required` +* Type: `optional` * Default: `false` -* Enable publishing application metrics to statsd. +* Enable OpenTelemetry traces and metrics. -### `NEW_RELIC_APP_NAME` +### `TELEMETRY_OPENTELEMETRY_COLLECTORADDR` -* Example value: `compass-integration` -* Type: `optional` -* Default: `compass` -* New Relic application name. +* Example value: `localhost:4317` +* Type: `required` (when enabled) +* gRPC address of the OpenTelemetry collector. -### `NEW_RELIC_LICENSE_KEY` +### `TELEMETRY_OPENTELEMETRY_TRACESAMPLEPROBABILITY` -* Example value: `mf9d13c838u252252c43ji47q1u4ynzpDDDDTSPQ` +* Example value: `0.1` * Type: `optional` -* Default: `""` -* New Relic license key. Empty value would disable newrelic monitoring. +* Default: `1.0` +* Trace sampling probability (0.0 to 1.0). diff --git a/go.mod b/go.mod index d513cdf7..79c78e8e 100644 --- a/go.mod +++ b/go.mod @@ -5,15 +5,16 @@ go 1.25.0 toolchain go1.26.1 require ( - connectrpc.com/connect v1.18.1 + buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.9-20250912141014-52f32327d4b0.1 + connectrpc.com/connect v1.19.0 + connectrpc.com/cors v0.1.0 connectrpc.com/grpcreflect v1.2.0 connectrpc.com/otelconnect v0.7.1 - github.com/DataDog/datadog-go/v5 v5.8.3 + connectrpc.com/validate v0.6.0 github.com/MakeNowJust/heredoc v1.0.0 github.com/Masterminds/semver/v3 v3.4.0 github.com/Masterminds/squirrel v1.5.4 github.com/elastic/go-elasticsearch/v8 v8.17.1 - github.com/envoyproxy/protoc-gen-validate v1.3.0 github.com/go-playground/locales v0.14.1 github.com/go-playground/universal-translator v0.18.1 github.com/go-playground/validator/v10 v10.30.1 @@ -21,18 +22,17 @@ require ( github.com/golang-module/carbon/v2 v2.6.9 github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 - github.com/gorilla/handlers v1.5.2 + github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 github.com/jackc/pgerrcode v0.0.0-20250907135507-afb5586c32a6 github.com/jackc/pgx/v5 v5.9.1 github.com/jmoiron/sqlx v1.4.0 github.com/lestrrat-go/jwx/v2 v2.1.6 github.com/lib/pq v1.12.0 - github.com/newrelic/go-agent/v3 v3.42.0 - github.com/newrelic/go-agent/v3/integrations/nrelasticsearch-v7 v1.0.3 github.com/ory/dockertest/v3 v3.12.0 github.com/peterbourgon/mergemap v0.0.1 github.com/r3labs/diff/v3 v3.0.2 github.com/raystack/salt v0.7.0 + github.com/rs/cors v1.11.1 github.com/spf13/cobra v1.10.2 github.com/stretchr/testify v1.11.1 go.opentelemetry.io/otel v1.42.0 @@ -41,6 +41,7 @@ require ( go.opentelemetry.io/otel/sdk v1.42.0 go.opentelemetry.io/otel/sdk/metric v1.42.0 golang.org/x/net v0.51.0 + google.golang.org/genproto/googleapis/api v0.0.0-20260209200024-4cfbd4190f57 google.golang.org/protobuf v1.36.11 gopkg.in/yaml.v2 v2.4.0 gotest.tools v2.2.0+incompatible @@ -121,21 +122,22 @@ require ( ) require ( + buf.build/go/protovalidate v1.0.0 // indirect + cel.dev/expr v0.25.1 // indirect dario.cat/mergo v1.0.0 // indirect + github.com/antlr4-go/antlr/v4 v4.13.1 // indirect github.com/benbjohnson/clock v1.3.0 // indirect github.com/cenkalti/backoff/v5 v5.0.3 // indirect github.com/cespare/xxhash/v2 v2.3.0 // indirect github.com/dromara/carbon/v2 v2.6.9 // indirect github.com/elastic/elastic-transport-go/v8 v8.6.1 // indirect - github.com/elastic/go-elasticsearch/v7 v7.17.10 // indirect - github.com/felixge/httpsnoop v1.0.4 // indirect github.com/fsnotify/fsnotify v1.7.0 // indirect github.com/gabriel-vasile/mimetype v1.4.12 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-logr/stdr v1.2.2 // indirect github.com/go-playground/validator v9.31.0+incompatible // indirect github.com/go-viper/mapstructure/v2 v2.1.0 // indirect - github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 // indirect + github.com/google/cel-go v0.26.1 // indirect github.com/jackc/pgservicefile v0.0.0-20240606120523-5a60cdf6a761 // indirect github.com/jackc/puddle/v2 v2.2.2 // indirect github.com/mitchellh/mapstructure v1.5.0 // indirect @@ -147,6 +149,7 @@ require ( github.com/sourcegraph/conc v0.3.0 // indirect github.com/spf13/cast v1.6.0 // indirect github.com/spf13/viper v1.19.0 // indirect + github.com/stoewer/go-strcase v1.3.1 // indirect github.com/subosito/gotenv v1.6.0 // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect @@ -160,9 +163,8 @@ require ( go.uber.org/zap v1.21.0 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect golang.org/x/crypto v0.48.0 // indirect - golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 // indirect + golang.org/x/exp v0.0.0-20250911091902-df9299821621 // indirect golang.org/x/sync v0.19.0 // indirect - google.golang.org/genproto/googleapis/api v0.0.0-20260209200024-4cfbd4190f57 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20260226221140-a57be14db171 // indirect google.golang.org/grpc v1.79.2 // indirect gopkg.in/ini.v1 v1.67.0 // indirect diff --git a/go.sum b/go.sum index cf3a9df4..4fff1346 100644 --- a/go.sum +++ b/go.sum @@ -1,24 +1,31 @@ -connectrpc.com/connect v1.18.1 h1:PAg7CjSAGvscaf6YZKUefjoih5Z/qYkyaTrBW8xvYPw= -connectrpc.com/connect v1.18.1/go.mod h1:0292hj1rnx8oFrStN7cB4jjVBeqs+Yx5yDIC2prWDO8= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.9-20250912141014-52f32327d4b0.1 h1:DQLS/rRxLHuugVzjJU5AvOwD57pdFl9he/0O7e5P294= +buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go v1.36.9-20250912141014-52f32327d4b0.1/go.mod h1:aY3zbkNan5F+cGm9lITDP6oxJIwu0dn9KjJuJjWaHkg= +buf.build/go/protovalidate v1.0.0 h1:IAG1etULddAy93fiBsFVhpj7es5zL53AfB/79CVGtyY= +buf.build/go/protovalidate v1.0.0/go.mod h1:KQmEUrcQuC99hAw+juzOEAmILScQiKBP1Oc36vvCLW8= +cel.dev/expr v0.25.1 h1:1KrZg61W6TWSxuNZ37Xy49ps13NUovb66QLprthtwi4= +cel.dev/expr v0.25.1/go.mod h1:hrXvqGP6G6gyx8UAHSHJ5RGk//1Oj5nXQ2NI02Nrsg4= +connectrpc.com/connect v1.19.0 h1:LuqUbq01PqbtL0o7vn0WMRXzR2nNsiINe5zfcJ24pJM= +connectrpc.com/connect v1.19.0/go.mod h1:tN20fjdGlewnSFeZxLKb0xwIZ6ozc3OQs2hTXy4du9w= +connectrpc.com/cors v0.1.0 h1:f3gTXJyDZPrDIZCQ567jxfD9PAIpopHiRDnJRt3QuOQ= +connectrpc.com/cors v0.1.0/go.mod h1:v8SJZCPfHtGH1zsm+Ttajpozd4cYIUryl4dFB6QEpfg= connectrpc.com/grpcreflect v1.2.0 h1:Q6og1S7HinmtbEuBvARLNwYmTbhEGRpHDhqrPNlmK+U= connectrpc.com/grpcreflect v1.2.0/go.mod h1:nwSOKmE8nU5u/CidgHtPYk1PFI3U9ignz7iDMxOYkSY= connectrpc.com/otelconnect v0.7.1 h1:scO5pOb0i4yUE66CnNrHeK1x51yq0bE0ehPg6WvzXJY= connectrpc.com/otelconnect v0.7.1/go.mod h1:dh3bFgHBTb2bkqGCeVVOtHJreSns7uu9wwL2Tbz17ms= +connectrpc.com/validate v0.6.0 h1:DcrgDKt2ZScrUs/d/mh9itD2yeEa0UbBBa+i0mwzx+4= +connectrpc.com/validate v0.6.0/go.mod h1:ihrpI+8gVbLH1fvVWJL1I3j0CfWnF8P/90LsmluRiZs= dario.cat/mergo v1.0.0 h1:AGCNq9Evsj31mOgNPcLyXc+4PNABt905YmuqPYYpBWk= dario.cat/mergo v1.0.0/go.mod h1:uNxQE+84aUszobStD9th8a29P2fMDhsBdgRYvZOxGmk= filippo.io/edwards25519 v1.1.0 h1:FNf4tywRC1HmFuKW5xopWpigGjJKiJSV0Cqo0cJWDaA= filippo.io/edwards25519 v1.1.0/go.mod h1:BxyFTGdWcka3PhytdK4V28tE5sGfRvvvRV7EaN4VDT4= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161 h1:L/gRVlceqvL25UVaW/CKtUDjefjrs0SPonmDGUVOYP0= github.com/Azure/go-ansiterm v0.0.0-20230124172434-306776ec8161/go.mod h1:xomTg63KZ2rFqZQzSB4Vz2SUXa1BpHTVz9L5PTmPC4E= -github.com/DataDog/datadog-go/v5 v5.8.3 h1:s58CUJ9s8lezjhTNJO/SxkPBv2qZjS3ktpRSqGF5n0s= -github.com/DataDog/datadog-go/v5 v5.8.3/go.mod h1:K9kcYBlxkcPP8tvvjZZKs/m1edNAUFzBbdpTUKfCsuw= github.com/MakeNowJust/heredoc v1.0.0 h1:cXCdzVdstXyiTqTvfqk9SDHpKNjxuom+DOlyEeQ4pzQ= github.com/MakeNowJust/heredoc v1.0.0/go.mod h1:mG5amYoWBHf8vpLOuehzbGGw0EHxpZZ6lCpQ4fNJ8LE= github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0= github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= github.com/Masterminds/squirrel v1.5.4 h1:uUcX/aBc8O7Fg9kaISIUsHXdKuqehiXAMQTYX8afzqM= github.com/Masterminds/squirrel v1.5.4/go.mod h1:NNaOrjSoIDfDA40n7sr2tPNZRfjzjA400rg+riTZj10= -github.com/Microsoft/go-winio v0.5.0/go.mod h1:JPGBdM1cNvN/6ISo+n8V5iA4v8pBzdOpzfwIujj1a84= github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERoyfY= github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/Nvveen/Gotty v0.0.0-20120604004816-cd527374f1e5 h1:TngWCqHvy9oXAN6lEVMRuU21PR1EtLVZJmdB18Gu3Rw= @@ -33,6 +40,8 @@ github.com/alecthomas/kong v0.2.4/go.mod h1:kQOmtJgV+Lb4aj+I2LEn40cbtawdWJ9Y8QLq github.com/alecthomas/repr v0.0.0-20180818092828-117648cd9897/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= github.com/alecthomas/repr v0.2.0/go.mod h1:Fr0507jx4eOXV7AlPV6AVZLYrLIuIeSOWtW57eE/O/4= +github.com/antlr4-go/antlr/v4 v4.13.1 h1:SqQKkuVZ+zWkMMNkjy5FZe5mr5WURWnlpmOuzYWrPrQ= +github.com/antlr4-go/antlr/v4 v4.13.1/go.mod h1:GKmUxMtwp6ZgGwZSva4eWPC5mS6vUAmOABFgjdkM7Nw= github.com/aymerick/douceur v0.2.0 h1:Mv+mAeH1Q+n9Fr+oyamOlAkUNPWPlA8PPGR0QAaYuPk= github.com/aymerick/douceur v0.2.0/go.mod h1:wlT5vV2O3h55X9m7iVYN0TBM0NH/MmbLnd30/FjWUq4= github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA= @@ -87,12 +96,8 @@ github.com/dromara/carbon/v2 v2.6.9 h1:kx4D7qqLmNkKRLYo/2n1owtu/A1hfPs4WTGYC2tUF github.com/dromara/carbon/v2 v2.6.9/go.mod h1:7GXqCUplwN1s1b4whGk2zX4+g4CMCoDIZzmjlyt0vLY= github.com/elastic/elastic-transport-go/v8 v8.6.1 h1:h2jQRqH6eLGiBSN4eZbQnJLtL4bC5b4lfVFRjw2R4e4= github.com/elastic/elastic-transport-go/v8 v8.6.1/go.mod h1:YLHer5cj0csTzNFXoNQ8qhtGY1GTvSqPnKWKaqQE3Hk= -github.com/elastic/go-elasticsearch/v7 v7.17.10 h1:TCQ8i4PmIJuBunvBS6bwT2ybzVFxxUhhltAs3Gyu1yo= -github.com/elastic/go-elasticsearch/v7 v7.17.10/go.mod h1:OJ4wdbtDNk5g503kvlHLyErCgQwwzmDtaFC4XyOxXA4= github.com/elastic/go-elasticsearch/v8 v8.17.1 h1:bOXChDoCMB4TIwwGqKd031U8OXssmWLT3UrAr9EGs3Q= github.com/elastic/go-elasticsearch/v8 v8.17.1/go.mod h1:MVJCtL+gJJ7x5jFeUmA20O7rvipX8GcQmo5iBcmaJn4= -github.com/envoyproxy/protoc-gen-validate v1.3.0 h1:TvGH1wof4H33rezVKWSpqKz5NXWg5VPuZ0uONDT6eb4= -github.com/envoyproxy/protoc-gen-validate v1.3.0/go.mod h1:HvYl7zwPa5mffgyeTUHA9zHIH36nmrm7oCbo4YKoSWA= github.com/fatih/color v1.7.0/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4= github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs= github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw= @@ -131,9 +136,10 @@ github.com/golang-migrate/migrate/v4 v4.19.1 h1:OCyb44lFuQfYXYLx1SCxPZQGU7mcaZ7g github.com/golang-migrate/migrate/v4 v4.19.1/go.mod h1:CTcgfjxhaUtsLipnLoQRWCrjYXycRz/g5+RWDuYgPrE= github.com/golang-module/carbon/v2 v2.6.9 h1:GtDPA0O5qaszAPs51whhpimtt3FEEeM90gRBuyWR1W4= github.com/golang-module/carbon/v2 v2.6.9/go.mod h1:2JsYhwO7UPnUr+1hfsELAP9qjgIWzNuEz89tA1v4sY0= -github.com/golang/mock v1.6.0/go.mod h1:p6yTPP+5HYm5mzsMV8JkE6ZKdX+/wYM6Hr+LicevLPs= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= +github.com/google/cel-go v0.26.1 h1:iPbVVEdkhTX++hpe3lzSk7D3G3QSYqLGoHOcEio+UXQ= +github.com/google/cel-go v0.26.1/go.mod h1:A9O8OU9rdvrK5MQyrqfIxo1a0u4g3sF8KB6PUIaryMM= github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510 h1:El6M4kTTCOh6aBiKaUGG7oYTSPP8MxqL4YI3kZKwcP4= @@ -142,8 +148,6 @@ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gorilla/css v1.0.0 h1:BQqNyPTi50JCFMTw/b67hByjMVXZRwGha6wxVGkeihY= github.com/gorilla/css v1.0.0/go.mod h1:Dn721qIggHpt4+EFCcTLTU/vk5ySda2ReITrtgBl60c= -github.com/gorilla/handlers v1.5.2 h1:cLTUSsNkgcwhgRqvCNmdbRWG0A3N4F+M2nWKdScwyEE= -github.com/gorilla/handlers v1.5.2/go.mod h1:dX+xVpaxdSw+q0Qek8SSsl3dfMk3jNddUkMzo0GtH0w= github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0 h1:HWRh5R2+9EifMyIHV7ZV+MIZqgz+PMpZ14Jynv3O2Zs= github.com/grpc-ecosystem/grpc-gateway/v2 v2.28.0/go.mod h1:JfhWUomR1baixubs02l85lZYYOm7LV6om4ceouMv45c= github.com/hashicorp/go-version v1.3.0 h1:McDWVJIU/y+u1BRV06dPaLfLCaT7fUTJLp5r04x7iNw= @@ -240,10 +244,6 @@ github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKt github.com/muesli/termenv v0.8.1/go.mod h1:kzt/D/4a88RoheZmwfqorY3A+tnsSMA9HJC/fQSFKo0= github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739 h1:QANkGiGr39l1EESqrE0gZw0/AJNYzIvoGLhIoVYtluI= github.com/muesli/termenv v0.11.1-0.20220212125758-44cd13922739/go.mod h1:Bd5NYQ7pd+SrtBSrSNoBBmXlcY8+Xj4BMJgh8qcZrvs= -github.com/newrelic/go-agent/v3 v3.42.0 h1:aA2Ea1RT5eD59LtOS1KGFXSmaDs6kM3Jeqo7PpuQoFQ= -github.com/newrelic/go-agent/v3 v3.42.0/go.mod h1:sCgxDCVydoKD/C4S8BFxDtmFHvdWHtaIz/a3kiyNB/k= -github.com/newrelic/go-agent/v3/integrations/nrelasticsearch-v7 v1.0.3 h1:LYB53RAGRJjWZx7MBl/pnrT6QVuUoSsqCi3k4bkQhY8= -github.com/newrelic/go-agent/v3/integrations/nrelasticsearch-v7 v1.0.3/go.mod h1:D+iyf5S3FN/gJHCOYqqCF4Gr5goNlv3R6FbC1oNmWX8= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/olekukonko/tablewriter v0.0.5 h1:P2Ga83D34wi1o9J6Wh1mRuqd4mF/x/lgBS7N7AbDhec= github.com/olekukonko/tablewriter v0.0.5/go.mod h1:hPp6KlRPjbx+hW8ykQs1w3UBbZlj6HuIJcUGPhkA7kY= @@ -274,6 +274,8 @@ github.com/rivo/uniseg v0.2.0 h1:S1pD9weZBuJdFmowNwbpi7BJ8TNftyUImj/0WQi72jY= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rogpeppe/go-internal v1.14.1 h1:UQB4HGPB6osV0SQTLymcB4TgvyWu6ZyliaW0tI/otEQ= github.com/rogpeppe/go-internal v1.14.1/go.mod h1:MaRKkUm5W0goXpeCfT7UZI6fk/L7L7so1lCWt35ZSgc= +github.com/rs/cors v1.11.1 h1:eU3gRzXLRK57F5rKMGMZURNdIG4EoAmX8k94r9wXWHA= +github.com/rs/cors v1.11.1/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU= github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/sagikazarmark/locafero v0.4.0 h1:HApY1R9zGo4DBgr7dqsTH/JJxLTTsOt7u6keLGt6kNQ= @@ -286,7 +288,6 @@ github.com/segmentio/asm v1.2.0 h1:9BQrFxC+YOHJlTlHGkTrFWf59nbL3XnCoFLTwDCI7ys= github.com/segmentio/asm v1.2.0/go.mod h1:BqMnlJP91P8d+4ibuonYZw9mfnzI9HfxselHZr5aAcs= github.com/sergi/go-diff v1.0.0 h1:Kpca3qRNrduNnOQeazBd0ysaKrUJiIuISHxogkT9RPQ= github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo= -github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0= github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ= github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ= github.com/sourcegraph/conc v0.3.0 h1:OQTbbt6P72L20UqAkXXuLOj79LfEanQ+YQFNpLA9ySo= @@ -301,6 +302,8 @@ github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY= github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= github.com/spf13/viper v1.19.0 h1:RWq5SEjt8o25SROyN3z2OrDB9l7RPd3lwTWU8EcEdcI= github.com/spf13/viper v1.19.0/go.mod h1:GQUN9bilAbhU/jgc1bKs99f/suXKeUMct8Adx5+Ntkg= +github.com/stoewer/go-strcase v1.3.1 h1:iS0MdW+kVTxgMoE1LAZyMiYJFKlOzLooE4MxjirtkAs= +github.com/stoewer/go-strcase v1.3.1/go.mod h1:fAH5hQ5pehh+j3nZfvwdk2RgEgQjAoM8wodgtPmh1xo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo= @@ -379,8 +382,8 @@ golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPh golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4= golang.org/x/crypto v0.48.0 h1:/VRzVqiRSggnhY7gNRxPauEQ5Drw9haKdM0jqfcCFts= golang.org/x/crypto v0.48.0/go.mod h1:r0kV5h3qnFPlQnBSrULhlsRfryS2pmewsg+XfMgkVos= -golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8 h1:aAcj0Da7eBAtrTp03QXWvm88pSyOt+UgdZw2BFZ+lEw= -golang.org/x/exp v0.0.0-20240325151524-a685a6edb6d8/go.mod h1:CQ1k9gNrJ50XIzaKCRR2hssIjF07kZFEiieALBM/ARQ= +golang.org/x/exp v0.0.0-20250911091902-df9299821621 h1:2id6c1/gto0kaHYyrixvknJ8tUK/Qs5IsmBtrc+FtgU= +golang.org/x/exp v0.0.0-20250911091902-df9299821621/go.mod h1:TwQYMMnGpvZyc+JpB/UAuTNIsVJifOlSkrZkhcvpVUk= golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= @@ -404,13 +407,11 @@ golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200413165638-669c56c373c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210510120138-977fb7262007/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -437,7 +438,6 @@ golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3 golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/tools v0.1.1/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= diff --git a/internal/server/v1beta1/asset.go b/handler/v1beta1/asset.go similarity index 91% rename from internal/server/v1beta1/asset.go rename to handler/v1beta1/asset.go index 0d873d0b..69156291 100644 --- a/internal/server/v1beta1/asset.go +++ b/handler/v1beta1/asset.go @@ -13,8 +13,8 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -40,11 +40,8 @@ type AssetService interface { } func (server *APIServer) GetAllAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -93,11 +90,8 @@ func (server *APIServer) GetAllAssets(ctx context.Context, req *connect.Request[ } func (server *APIServer) GetAssetByID(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -124,11 +118,8 @@ func (server *APIServer) GetAssetByID(ctx context.Context, req *connect.Request[ } func (server *APIServer) GetAssetStargazers(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -158,11 +149,8 @@ func (server *APIServer) GetAssetStargazers(ctx context.Context, req *connect.Re } func (server *APIServer) GetAssetVersionHistory(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -196,11 +184,8 @@ func (server *APIServer) GetAssetVersionHistory(ctx context.Context, req *connec } func (server *APIServer) GetAssetByVersion(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -231,11 +216,8 @@ func (server *APIServer) GetAssetByVersion(ctx context.Context, req *connect.Req } func (server *APIServer) UpsertAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -270,11 +252,8 @@ func (server *APIServer) UpsertAsset(ctx context.Context, req *connect.Request[c } func (server *APIServer) UpsertPatchAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -323,11 +302,8 @@ func (server *APIServer) UpsertPatchAsset(ctx context.Context, req *connect.Requ } func (server *APIServer) DeleteAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -346,14 +322,11 @@ func (server *APIServer) DeleteAsset(ctx context.Context, req *connect.Request[c } func (server *APIServer) CreateAssetProbe(ctx context.Context, req *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) { - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } if req.Msg.Probe.Status == "" { return nil, connect.NewError(connect.CodeInvalidArgument, errors.New("status is required")) diff --git a/internal/server/v1beta1/asset_test.go b/handler/v1beta1/asset_test.go similarity index 98% rename from internal/server/v1beta1/asset_test.go rename to handler/v1beta1/asset_test.go index a087ccc3..3511149f 100644 --- a/internal/server/v1beta1/asset_test.go +++ b/handler/v1beta1/asset_test.go @@ -16,9 +16,9 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" @@ -49,7 +49,7 @@ func TestGetAllAssets(t *testing.T) { Metadata: nil, } ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) defaultFilter, _ := asset.NewFilterBuilder().Build() var testCases = []testCase{ @@ -250,7 +250,7 @@ func TestGetAssetByID(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string @@ -403,7 +403,7 @@ func TestUpsertAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.UpsertAssetRequest @@ -632,7 +632,7 @@ func TestUpsertPatchAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.UpsertPatchAssetRequest @@ -919,7 +919,7 @@ func TestDeleteAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string AssetID string @@ -1014,7 +1014,7 @@ func TestGetAssetStargazers(t *testing.T) { userUUID = uuid.NewString() ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string Request *compassv1beta1.GetAssetStargazersRequest @@ -1114,7 +1114,7 @@ func TestGetAssetVersionHistory(t *testing.T) { userUUID = uuid.NewString() ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string Request *compassv1beta1.GetAssetVersionHistoryRequest @@ -1250,7 +1250,7 @@ func TestGetAssetByVersion(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string Request *compassv1beta1.GetAssetByVersionRequest @@ -1374,7 +1374,7 @@ func TestCreateAssetProbe(t *testing.T) { probeID = uuid.NewString() ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.CreateAssetProbeRequest diff --git a/internal/server/v1beta1/comment.go b/handler/v1beta1/comment.go similarity index 88% rename from internal/server/v1beta1/comment.go rename to handler/v1beta1/comment.go index 91ed1388..003008a7 100644 --- a/internal/server/v1beta1/comment.go +++ b/handler/v1beta1/comment.go @@ -9,22 +9,19 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) // CreateComment will create a new comment of a discussion // field body is mandatory func (server *APIServer) CreateComment(ctx context.Context, req *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) { - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err } - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } if err := server.validateIDInteger(req.Msg.DiscussionId); err != nil { return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(discussion.InvalidError{DiscussionID: req.Msg.DiscussionId}))) @@ -54,10 +51,7 @@ func (server *APIServer) CreateComment(ctx context.Context, req *connect.Request // GetAllComments returns all comments of a discussion func (server *APIServer) GetAllComments(ctx context.Context, req *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -85,10 +79,7 @@ func (server *APIServer) GetAllComments(ctx context.Context, req *connect.Reques // GetComment returns a comment discussion by id from path func (server *APIServer) GetComment(ctx context.Context, req *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -113,14 +104,11 @@ func (server *APIServer) GetComment(ctx context.Context, req *connect.Request[co // UpdateComment is an api to update a comment by discussion id func (server *APIServer) UpdateComment(ctx context.Context, req *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) { - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err } - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } if err := server.validateIDInteger(req.Msg.DiscussionId); err != nil { return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(discussion.InvalidError{DiscussionID: req.Msg.DiscussionId}))) @@ -154,10 +142,7 @@ func (server *APIServer) UpdateComment(ctx context.Context, req *connect.Request // DeleteComment is an api to delete a comment by discussion id func (server *APIServer) DeleteComment(ctx context.Context, req *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/comment_test.go b/handler/v1beta1/comment_test.go similarity index 98% rename from internal/server/v1beta1/comment_test.go rename to handler/v1beta1/comment_test.go index f12728b3..1e5950ce 100644 --- a/internal/server/v1beta1/comment_test.go +++ b/handler/v1beta1/comment_test.go @@ -14,9 +14,9 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" @@ -42,7 +42,7 @@ func TestCreateComment(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string Request *compassv1beta1.CreateCommentRequest @@ -157,7 +157,7 @@ func TestGetAllComments(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetAllCommentsRequest @@ -306,7 +306,7 @@ func TestGetComment(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetCommentRequest @@ -456,7 +456,7 @@ func TestUpdateComment(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) var validRequest = &compassv1beta1.UpdateCommentRequest{ Id: commentID, DiscussionId: discussionID, @@ -612,7 +612,7 @@ func TestDeleteComment(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) testCases := []struct { Description string Request *compassv1beta1.DeleteCommentRequest diff --git a/internal/server/v1beta1/discussion.go b/handler/v1beta1/discussion.go similarity index 89% rename from internal/server/v1beta1/discussion.go rename to handler/v1beta1/discussion.go index cb979988..6f9adf59 100644 --- a/internal/server/v1beta1/discussion.go +++ b/handler/v1beta1/discussion.go @@ -11,8 +11,8 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -33,10 +33,7 @@ type DiscussionService interface { // query params sort,direction to sort asc or desc // query params size,offset for pagination func (server *APIServer) GetAllDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -61,14 +58,11 @@ func (server *APIServer) GetAllDiscussions(ctx context.Context, req *connect.Req // CreateDiscussion will create a new discussion // field title, body, and type are mandatory func (server *APIServer) CreateDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) { - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err } - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } dsc := discussion.Discussion{ Title: req.Msg.Title, @@ -94,10 +88,7 @@ func (server *APIServer) CreateDiscussion(ctx context.Context, req *connect.Requ } func (server *APIServer) GetDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -120,10 +111,7 @@ func (server *APIServer) GetDiscussion(ctx context.Context, req *connect.Request // empty array in assets,labels,assignees will be considered // and clear all assets,labels,assignees from the discussion func (server *APIServer) PatchDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/discussion_test.go b/handler/v1beta1/discussion_test.go similarity index 98% rename from internal/server/v1beta1/discussion_test.go rename to handler/v1beta1/discussion_test.go index dd2a1e8b..662a2769 100644 --- a/internal/server/v1beta1/discussion_test.go +++ b/handler/v1beta1/discussion_test.go @@ -14,9 +14,9 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" @@ -38,7 +38,7 @@ func TestGetAllDiscussions(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetAllDiscussionsRequest @@ -172,7 +172,7 @@ func TestCreateDiscussion(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) var validRequest = &compassv1beta1.CreateDiscussionRequest{ Title: "Lorem Ipsum", Body: "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.", @@ -310,7 +310,7 @@ func TestGetDiscussion(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type TestCase struct { Description string Request *compassv1beta1.GetDiscussionRequest @@ -430,7 +430,7 @@ func TestPatchDiscussion(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) var validRequest = &compassv1beta1.PatchDiscussionRequest{Id: discussionID, Title: "lorem ipsum"} type TestCase struct { diff --git a/internal/server/v1beta1/lineage.go b/handler/v1beta1/lineage.go similarity index 88% rename from internal/server/v1beta1/lineage.go rename to handler/v1beta1/lineage.go index 51afc944..0d929149 100644 --- a/internal/server/v1beta1/lineage.go +++ b/handler/v1beta1/lineage.go @@ -7,16 +7,13 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" ) func (server *APIServer) GetGraph(ctx context.Context, req *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, errors.New(bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/lineage_test.go b/handler/v1beta1/lineage_test.go similarity index 93% rename from internal/server/v1beta1/lineage_test.go rename to handler/v1beta1/lineage_test.go index ccd44c55..973548de 100644 --- a/internal/server/v1beta1/lineage_test.go +++ b/handler/v1beta1/lineage_test.go @@ -11,9 +11,9 @@ import ( "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" @@ -34,7 +34,7 @@ func TestGetLineageGraph(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) t.Run("get Lineage", func(t *testing.T) { t.Run("should return a graph containing the requested resource, along with it's related resources", func(t *testing.T) { logger := log.NewNoop() diff --git a/internal/server/v1beta1/mocks/asset_service.go b/handler/v1beta1/mocks/asset_service.go similarity index 100% rename from internal/server/v1beta1/mocks/asset_service.go rename to handler/v1beta1/mocks/asset_service.go diff --git a/internal/server/v1beta1/mocks/discussion_service.go b/handler/v1beta1/mocks/discussion_service.go similarity index 100% rename from internal/server/v1beta1/mocks/discussion_service.go rename to handler/v1beta1/mocks/discussion_service.go diff --git a/internal/server/v1beta1/mocks/namespace_service.go b/handler/v1beta1/mocks/namespace_service.go similarity index 100% rename from internal/server/v1beta1/mocks/namespace_service.go rename to handler/v1beta1/mocks/namespace_service.go diff --git a/internal/server/v1beta1/mocks/star_service.go b/handler/v1beta1/mocks/star_service.go similarity index 100% rename from internal/server/v1beta1/mocks/star_service.go rename to handler/v1beta1/mocks/star_service.go diff --git a/internal/server/v1beta1/mocks/tag_service.go b/handler/v1beta1/mocks/tag_service.go similarity index 100% rename from internal/server/v1beta1/mocks/tag_service.go rename to handler/v1beta1/mocks/tag_service.go diff --git a/internal/server/v1beta1/mocks/tag_template_service.go b/handler/v1beta1/mocks/tag_template_service.go similarity index 100% rename from internal/server/v1beta1/mocks/tag_template_service.go rename to handler/v1beta1/mocks/tag_template_service.go diff --git a/internal/server/v1beta1/mocks/user_service.go b/handler/v1beta1/mocks/user_service.go similarity index 100% rename from internal/server/v1beta1/mocks/user_service.go rename to handler/v1beta1/mocks/user_service.go diff --git a/internal/server/v1beta1/namespace.go b/handler/v1beta1/namespace.go similarity index 96% rename from internal/server/v1beta1/namespace.go rename to handler/v1beta1/namespace.go index bb52ab9e..2c592dd3 100644 --- a/internal/server/v1beta1/namespace.go +++ b/handler/v1beta1/namespace.go @@ -9,7 +9,7 @@ import ( "connectrpc.com/connect" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" ) @@ -73,10 +73,6 @@ func (server *APIServer) GetNamespace(ctx context.Context, req *connect.Request[ } func (server *APIServer) CreateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) { - if err := req.Msg.Validate(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, err) - } - var metadata map[string]interface{} if req.Msg.GetMetadata() != nil { metadata = req.Msg.GetMetadata().AsMap() diff --git a/internal/server/v1beta1/namespace_test.go b/handler/v1beta1/namespace_test.go similarity index 98% rename from internal/server/v1beta1/namespace_test.go rename to handler/v1beta1/namespace_test.go index c02e87d8..92f9df77 100644 --- a/internal/server/v1beta1/namespace_test.go +++ b/handler/v1beta1/namespace_test.go @@ -9,8 +9,8 @@ import ( "github.com/google/uuid" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/internal/server/v1beta1/option.go b/handler/v1beta1/option.go similarity index 100% rename from internal/server/v1beta1/option.go rename to handler/v1beta1/option.go diff --git a/internal/server/v1beta1/search.go b/handler/v1beta1/search.go similarity index 85% rename from internal/server/v1beta1/search.go rename to handler/v1beta1/search.go index dfc09f64..b1db4845 100644 --- a/internal/server/v1beta1/search.go +++ b/handler/v1beta1/search.go @@ -7,15 +7,12 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" ) func (server *APIServer) SearchAssets(ctx context.Context, req *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -52,10 +49,7 @@ func (server *APIServer) SearchAssets(ctx context.Context, req *connect.Request[ } func (server *APIServer) SuggestAssets(ctx context.Context, req *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -80,10 +74,7 @@ func (server *APIServer) SuggestAssets(ctx context.Context, req *connect.Request } func (server *APIServer) GroupAssets(ctx context.Context, req *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/search_test.go b/handler/v1beta1/search_test.go similarity index 97% rename from internal/server/v1beta1/search_test.go rename to handler/v1beta1/search_test.go index d2e72ff5..ab60498d 100644 --- a/internal/server/v1beta1/search_test.go +++ b/handler/v1beta1/search_test.go @@ -4,7 +4,7 @@ import ( "context" "fmt" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "connectrpc.com/connect" @@ -12,8 +12,8 @@ import ( "github.com/google/uuid" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" @@ -33,7 +33,7 @@ func TestSearch(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.SearchAssetsRequest @@ -269,7 +269,7 @@ func TestSuggest(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.SuggestAssetsRequest diff --git a/internal/server/v1beta1/server.go b/handler/v1beta1/server.go similarity index 100% rename from internal/server/v1beta1/server.go rename to handler/v1beta1/server.go diff --git a/internal/server/v1beta1/star.go b/handler/v1beta1/star.go similarity index 100% rename from internal/server/v1beta1/star.go rename to handler/v1beta1/star.go diff --git a/internal/server/v1beta1/tag.go b/handler/v1beta1/tag.go similarity index 90% rename from internal/server/v1beta1/tag.go rename to handler/v1beta1/tag.go index 301db223..cf1a3d98 100644 --- a/internal/server/v1beta1/tag.go +++ b/handler/v1beta1/tag.go @@ -10,8 +10,8 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -33,10 +33,7 @@ type TagService interface { // GetTagByAssetAndTemplate handles get tag by asset requests func (server *APIServer) GetTagByAssetAndTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -72,10 +69,7 @@ func (server *APIServer) GetTagByAssetAndTemplate(ctx context.Context, req *conn // CreateTagAsset handles tag creation requests func (server *APIServer) CreateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -133,10 +127,7 @@ func (server *APIServer) CreateTagAsset(ctx context.Context, req *connect.Reques // UpdateTagAsset handles tag update requests func (server *APIServer) UpdateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -192,10 +183,7 @@ func (server *APIServer) UpdateTagAsset(ctx context.Context, req *connect.Reques // DeleteTagAsset handles delete tag by asset and template requests func (server *APIServer) DeleteTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -224,10 +212,7 @@ func (server *APIServer) DeleteTagAsset(ctx context.Context, req *connect.Reques // GetAllTagsByAsset handles get all tags by asset requests func (server *APIServer) GetAllTagsByAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/tag_template.go b/handler/v1beta1/tag_template.go similarity index 89% rename from internal/server/v1beta1/tag_template.go rename to handler/v1beta1/tag_template.go index 381cc675..1066e0e7 100644 --- a/internal/server/v1beta1/tag_template.go +++ b/handler/v1beta1/tag_template.go @@ -10,8 +10,8 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -26,10 +26,7 @@ type TagTemplateService interface { // GetAllTagTemplates handles template read requests func (server *APIServer) GetAllTagTemplates(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -51,10 +48,7 @@ func (server *APIServer) GetAllTagTemplates(ctx context.Context, req *connect.Re // CreateTagTemplate handles template creation requests func (server *APIServer) CreateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -98,10 +92,7 @@ func (server *APIServer) CreateTagTemplate(ctx context.Context, req *connect.Req // GetTagTemplate handles template read requests based on URN func (server *APIServer) GetTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -120,10 +111,7 @@ func (server *APIServer) GetTagTemplate(ctx context.Context, req *connect.Reques } func (server *APIServer) UpdateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -166,10 +154,7 @@ func (server *APIServer) UpdateTagTemplate(ctx context.Context, req *connect.Req // DeleteTagTemplate handles template delete request based on URN func (server *APIServer) DeleteTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } diff --git a/internal/server/v1beta1/tag_template_test.go b/handler/v1beta1/tag_template_test.go similarity index 98% rename from internal/server/v1beta1/tag_template_test.go rename to handler/v1beta1/tag_template_test.go index 046dca59..133eba91 100644 --- a/internal/server/v1beta1/tag_template_test.go +++ b/handler/v1beta1/tag_template_test.go @@ -14,9 +14,9 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" @@ -86,7 +86,7 @@ func TestGetAllTagTemplates(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetAllTagTemplatesRequest @@ -208,7 +208,7 @@ func TestCreateTagTemplate(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.CreateTagTemplateRequest @@ -309,7 +309,7 @@ func TestGetTagTemplate(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetTagTemplateRequest @@ -405,7 +405,7 @@ func TestUpdateTagTemplate(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.UpdateTagTemplateRequest @@ -518,7 +518,7 @@ func TestDeleteTagTemplate(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.DeleteTagTemplateRequest diff --git a/internal/server/v1beta1/tag_test.go b/handler/v1beta1/tag_test.go similarity index 98% rename from internal/server/v1beta1/tag_test.go rename to handler/v1beta1/tag_test.go index 164b8cf2..ec2121e3 100644 --- a/internal/server/v1beta1/tag_test.go +++ b/handler/v1beta1/tag_test.go @@ -14,9 +14,9 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" @@ -94,7 +94,7 @@ func TestGetTagByAssetAndTemplate(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetTagByAssetAndTemplateRequest @@ -255,7 +255,7 @@ func TestCreateTagAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.CreateTagAssetRequest @@ -403,7 +403,7 @@ func TestUpdateTagAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.UpdateTagAssetRequest @@ -528,7 +528,7 @@ func TestDeleteTagAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.DeleteTagAssetRequest @@ -638,7 +638,7 @@ func TestGetAllTagsByAsset(t *testing.T) { } ) ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) type testCase struct { Description string Request *compassv1beta1.GetAllTagsByAssetRequest diff --git a/internal/server/v1beta1/type.go b/handler/v1beta1/type.go similarity index 83% rename from internal/server/v1beta1/type.go rename to handler/v1beta1/type.go index 97ec775b..53ac5578 100644 --- a/internal/server/v1beta1/type.go +++ b/handler/v1beta1/type.go @@ -6,13 +6,10 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" ) func (server *APIServer) GetAllTypes(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } flt, err := asset.NewFilterBuilder(). Types(req.Msg.GetTypes()). diff --git a/internal/server/v1beta1/type_test.go b/handler/v1beta1/type_test.go similarity index 94% rename from internal/server/v1beta1/type_test.go rename to handler/v1beta1/type_test.go index 0651e74a..0713f0c1 100644 --- a/internal/server/v1beta1/type_test.go +++ b/handler/v1beta1/type_test.go @@ -12,9 +12,9 @@ import ( "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" @@ -119,7 +119,7 @@ func TestGetTypes(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) mockSvc := new(mocks.AssetService) logger := log.NewNoop() diff --git a/internal/server/v1beta1/user.go b/handler/v1beta1/user.go similarity index 87% rename from internal/server/v1beta1/user.go rename to handler/v1beta1/user.go index 77f5cc76..a0a3a6cd 100644 --- a/internal/server/v1beta1/user.go +++ b/handler/v1beta1/user.go @@ -4,7 +4,6 @@ package handlersv1beta1 import ( "context" "errors" - "fmt" "strings" "time" @@ -14,8 +13,8 @@ import ( "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" "github.com/raystack/compass/core/validator" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -24,10 +23,7 @@ type UserService interface { } func (server *APIServer) GetUserStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err } @@ -64,10 +60,7 @@ func (server *APIServer) GetUserStarredAssets(ctx context.Context, req *connect. } func (server *APIServer) GetMyStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -105,10 +98,7 @@ func (server *APIServer) GetMyStarredAssets(ctx context.Context, req *connect.Re } func (server *APIServer) GetMyStarredAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -136,10 +126,7 @@ func (server *APIServer) GetMyStarredAsset(ctx context.Context, req *connect.Req } func (server *APIServer) StarAsset(ctx context.Context, req *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -168,10 +155,7 @@ func (server *APIServer) StarAsset(ctx context.Context, req *connect.Request[com } func (server *APIServer) UnstarAsset(ctx context.Context, req *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err @@ -192,10 +176,7 @@ func (server *APIServer) UnstarAsset(ctx context.Context, req *connect.Request[c } func (server *APIServer) GetMyDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) { - if err := req.Msg.ValidateAll(); err != nil { - return nil, connect.NewError(connect.CodeInvalidArgument, fmt.Errorf("%s", bodyParserErrorMsg(err))) - } - ns := interceptor.FetchNamespaceFromContext(ctx) + ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { return nil, err diff --git a/internal/server/v1beta1/user_test.go b/handler/v1beta1/user_test.go similarity index 98% rename from internal/server/v1beta1/user_test.go rename to handler/v1beta1/user_test.go index d32d6aab..915cbe7c 100644 --- a/internal/server/v1beta1/user_test.go +++ b/handler/v1beta1/user_test.go @@ -16,9 +16,9 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/server/v1beta1/mocks" - "github.com/raystack/compass/pkg/server/interceptor" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/internal/middleware" + compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "google.golang.org/protobuf/testing/protocmp" "google.golang.org/protobuf/types/known/timestamppb" @@ -107,7 +107,7 @@ func TestGetUserStarredAssets(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() @@ -235,7 +235,7 @@ func TestGetMyStarredAssets(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() @@ -353,7 +353,7 @@ func TestGetMyStarredAsset(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() @@ -461,7 +461,7 @@ func TestStarAsset(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() @@ -549,7 +549,7 @@ func TestUnstarAsset(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() @@ -718,7 +718,7 @@ func TestGetMyDiscussions(t *testing.T) { for _, tc := range testCases { t.Run(tc.Description, func(t *testing.T) { ctx := user.NewContext(context.Background(), user.User{UUID: userUUID}) - ctx = interceptor.BuildContextWithNamespace(ctx, ns) + ctx = middleware.BuildContextWithNamespace(ctx, ns) logger := log.NewNoop() diff --git a/internal/client/client.go b/internal/client/client.go index b0e7cbcd..5bc0397b 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -6,7 +6,7 @@ import ( "time" "connectrpc.com/connect" - "github.com/raystack/compass/proto/compassv1beta1/compassv1beta1connect" + "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1/compassv1beta1connect" ) // NamespaceHeaderKey specify what namespace request is targeted for diff --git a/internal/config/config.go b/internal/config/config.go new file mode 100644 index 00000000..9d627345 --- /dev/null +++ b/internal/config/config.go @@ -0,0 +1,35 @@ +package config + +import "fmt" + +type ServerConfig struct { + Host string `mapstructure:"host" default:"0.0.0.0"` + Port int `mapstructure:"port" default:"8080"` + BaseUrl string `mapstructure:"baseurl" default:"localhost:8080"` + + // User Identity + Identity IdentityConfig `mapstructure:"identity"` + + // CORS + CORS CORSConfig `mapstructure:"cors"` + + // Message size limits (for compatibility) + MaxRecvMsgSize int `yaml:"max_recv_msg_size" mapstructure:"max_recv_msg_size" default:"33554432"` + MaxSendMsgSize int `yaml:"max_send_msg_size" mapstructure:"max_send_msg_size" default:"33554432"` +} + +type CORSConfig struct { + AllowedOrigins []string `yaml:"allowed_origins" mapstructure:"allowed_origins" default:"[*]"` +} + +func (cfg ServerConfig) Addr() string { return fmt.Sprintf("%s:%d", cfg.Host, cfg.Port) } + +type IdentityConfig struct { + // User Identity + HeaderKeyUserUUID string `yaml:"headerkey_uuid" mapstructure:"headerkey_uuid" default:"Compass-User-UUID"` + HeaderValueUserUUID string `yaml:"headervalue_uuid" mapstructure:"headervalue_uuid" default:"raystack@email.com"` + HeaderKeyUserEmail string `yaml:"headerkey_email" mapstructure:"headerkey_email" default:"Compass-User-Email"` + ProviderDefaultName string `yaml:"provider_default_name" mapstructure:"provider_default_name" default:""` + + NamespaceClaimKey string `yaml:"namespace_claim_key" mapstructure:"namespace_claim_key" default:"namespace_id"` +} diff --git a/pkg/server/interceptor/error_response.go b/internal/middleware/error_response.go similarity index 98% rename from pkg/server/interceptor/error_response.go rename to internal/middleware/error_response.go index e8acfb15..674ce2b4 100644 --- a/pkg/server/interceptor/error_response.go +++ b/internal/middleware/error_response.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "context" diff --git a/pkg/server/interceptor/interceptor.go b/internal/middleware/interceptor.go similarity index 96% rename from pkg/server/interceptor/interceptor.go rename to internal/middleware/interceptor.go index b54abd80..fa593aa5 100644 --- a/pkg/server/interceptor/interceptor.go +++ b/internal/middleware/interceptor.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "connectrpc.com/connect" diff --git a/pkg/server/interceptor/logger.go b/internal/middleware/logger.go similarity index 98% rename from pkg/server/interceptor/logger.go rename to internal/middleware/logger.go index 00740b3b..5650568b 100644 --- a/pkg/server/interceptor/logger.go +++ b/internal/middleware/logger.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "context" diff --git a/pkg/server/interceptor/namespace.go b/internal/middleware/namespace.go similarity index 99% rename from pkg/server/interceptor/namespace.go rename to internal/middleware/namespace.go index fb23b099..312a788d 100644 --- a/pkg/server/interceptor/namespace.go +++ b/internal/middleware/namespace.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "context" diff --git a/pkg/server/interceptor/recovery.go b/internal/middleware/recovery.go similarity index 97% rename from pkg/server/interceptor/recovery.go rename to internal/middleware/recovery.go index 2882e07c..a292028c 100644 --- a/pkg/server/interceptor/recovery.go +++ b/internal/middleware/recovery.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "context" diff --git a/pkg/server/interceptor/user.go b/internal/middleware/user.go similarity index 97% rename from pkg/server/interceptor/user.go rename to internal/middleware/user.go index 2bb71bf1..54a55a11 100644 --- a/pkg/server/interceptor/user.go +++ b/internal/middleware/user.go @@ -1,4 +1,4 @@ -package interceptor +package middleware import ( "context" diff --git a/internal/server/server.go b/internal/server/server.go index 24f5c009..e414e768 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -8,50 +8,24 @@ import ( "time" "connectrpc.com/connect" + connectcors "connectrpc.com/cors" "connectrpc.com/grpcreflect" "connectrpc.com/otelconnect" - "github.com/gorilla/handlers" - "github.com/newrelic/go-agent/v3/newrelic" - handlersv1beta1 "github.com/raystack/compass/internal/server/v1beta1" - "github.com/raystack/compass/internal/store/postgres" - "github.com/raystack/compass/pkg/server/interceptor" - "github.com/raystack/compass/proto/compassv1beta1/compassv1beta1connect" + "connectrpc.com/validate" + "github.com/raystack/compass/internal/config" + "github.com/rs/cors" + handlersv1beta1 "github.com/raystack/compass/handler/v1beta1" + "github.com/raystack/compass/internal/middleware" + "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1/compassv1beta1connect" log "github.com/raystack/salt/observability/logger" "golang.org/x/net/http2" "golang.org/x/net/http2/h2c" ) -type Config struct { - Host string `mapstructure:"host" default:"0.0.0.0"` - Port int `mapstructure:"port" default:"8080"` - BaseUrl string `mapstructure:"baseurl" default:"localhost:8080"` - - // User Identity - Identity IdentityConfig `mapstructure:"identity"` - - // Message size limits (for compatibility) - MaxRecvMsgSize int `yaml:"max_recv_msg_size" mapstructure:"max_recv_msg_size" default:"33554432"` - MaxSendMsgSize int `yaml:"max_send_msg_size" mapstructure:"max_send_msg_size" default:"33554432"` -} - -func (cfg Config) addr() string { return fmt.Sprintf("%s:%d", cfg.Host, cfg.Port) } - -type IdentityConfig struct { - // User Identity - HeaderKeyUserUUID string `yaml:"headerkey_uuid" mapstructure:"headerkey_uuid" default:"Compass-User-UUID"` - HeaderValueUserUUID string `yaml:"headervalue_uuid" mapstructure:"headervalue_uuid" default:"raystack@email.com"` - HeaderKeyUserEmail string `yaml:"headerkey_email" mapstructure:"headerkey_email" default:"Compass-User-Email"` - ProviderDefaultName string `yaml:"provider_default_name" mapstructure:"provider_default_name" default:""` - - NamespaceClaimKey string `yaml:"namespace_claim_key" mapstructure:"namespace_claim_key" default:"namespace_id"` -} - func Serve( ctx context.Context, - config Config, + cfg config.ServerConfig, logger *log.Logrus, - pgClient *postgres.Client, - nrApp *newrelic.Application, namespaceService handlersv1beta1.NamespaceService, assetService handlersv1beta1.AssetService, starService handlersv1beta1.StarService, @@ -77,13 +51,16 @@ func Serve( return fmt.Errorf("failed to create otel interceptor: %w", err) } + validateInterceptor := validate.NewInterceptor() + interceptors := connect.WithInterceptors( otelInterceptor, - interceptor.Recovery(), - interceptor.Logger(logger), - interceptor.ErrorResponse(logger), - interceptor.Namespace(namespaceService, config.Identity.NamespaceClaimKey, config.Identity.HeaderKeyUserUUID), - interceptor.UserHeaderCtx(config.Identity.HeaderKeyUserUUID, config.Identity.HeaderKeyUserEmail), + middleware.Recovery(), + middleware.Logger(logger), + validateInterceptor, + middleware.ErrorResponse(logger), + middleware.Namespace(namespaceService, cfg.Identity.NamespaceClaimKey, cfg.Identity.HeaderKeyUserUUID), + middleware.UserHeaderCtx(cfg.Identity.HeaderKeyUserUUID, cfg.Identity.HeaderKeyUserEmail), ) // Create HTTP mux @@ -93,8 +70,8 @@ func Serve( path, handler := compassv1beta1connect.NewCompassServiceHandler( v1beta1Handler, interceptors, - connect.WithReadMaxBytes(config.MaxRecvMsgSize), - connect.WithSendMaxBytes(config.MaxSendMsgSize), + connect.WithReadMaxBytes(cfg.MaxRecvMsgSize), + connect.WithSendMaxBytes(cfg.MaxSendMsgSize), ) mux.Handle(path, handler) @@ -111,30 +88,28 @@ func Serve( _, _ = w.Write([]byte("pong")) }) + // CORS middleware + corsHandler := cors.New(cors.Options{ + AllowedOrigins: cfg.CORS.AllowedOrigins, + AllowedMethods: connectcors.AllowedMethods(), + AllowedHeaders: connectcors.AllowedHeaders(), + ExposedHeaders: connectcors.ExposedHeaders(), + AllowCredentials: true, + }) + // Create HTTP server with h2c support for HTTP/2 without TLS server := &http.Server{ - Addr: config.addr(), - Handler: h2c.NewHandler(handlers.CompressHandler(mux), &http2.Server{}), + Addr: cfg.Addr(), + Handler: h2c.NewHandler(corsHandler.Handler(mux), &http2.Server{}), ReadTimeout: 60 * time.Second, WriteTimeout: 60 * time.Second, IdleTimeout: 120 * time.Second, } - // Cleanup on shutdown - defer func() { - if pgClient != nil { - logger.Warn("closing db...") - if err := pgClient.Close(); err != nil { - logger.Error("error when closing db", "err", err) - } - logger.Warn("db closed...") - } - }() - // Start server in goroutine errChan := make(chan error, 1) go func() { - logger.Info("Starting server", "addr", config.addr()) + logger.Info("Starting server", "addr", cfg.Addr()) if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { errChan <- err } diff --git a/pkg/telemetry/config.go b/internal/telemetry/config.go similarity index 100% rename from pkg/telemetry/config.go rename to internal/telemetry/config.go diff --git a/pkg/telemetry/telemetry.go b/internal/telemetry/telemetry.go similarity index 100% rename from pkg/telemetry/telemetry.go rename to internal/telemetry/telemetry.go diff --git a/pkg/metrics/newrelic.go b/pkg/metrics/newrelic.go deleted file mode 100644 index 39a53d56..00000000 --- a/pkg/metrics/newrelic.go +++ /dev/null @@ -1,7 +0,0 @@ -package metrics - -type NewRelicConfig struct { - Enabled bool `mapstructure:"enabled" default:"false"` - AppName string `mapstructure:"appname" default:"compass"` - LicenseKey string `mapstructure:"licensekey" default:""` -} diff --git a/pkg/statsd/config.go b/pkg/statsd/config.go deleted file mode 100644 index eded75f1..00000000 --- a/pkg/statsd/config.go +++ /dev/null @@ -1,11 +0,0 @@ -package statsd - -// Config represents configuration options for statsd reporter. -type Config struct { - Enabled bool `mapstructure:"enabled" default:"false"` - Address string `mapstructure:"address" default:"127.0.0.1:8125"` - Prefix string `mapstructure:"prefix" default:"compassApi"` - SamplingRate float64 `mapstructure:"sampling_rate" default:"1"` - Separator string `mapstructure:"separator" default:"."` - WithInfluxTagFormat bool `mapstructure:"with_influx_tag_format" default:"true"` -} diff --git a/pkg/statsd/metric.go b/pkg/statsd/metric.go deleted file mode 100644 index 5ceeec8a..00000000 --- a/pkg/statsd/metric.go +++ /dev/null @@ -1,89 +0,0 @@ -package statsd - -import ( - "fmt" - - log "github.com/raystack/salt/observability/logger" -) - -// Metric represents a statsd metric. -type Metric struct { - logger log.Logger - name string - rate float64 - tags map[string]string - withInfluxTag bool - publishFunc func(name string, tags []string, rate float64) error -} - -// Success tags the metric as successful. -func (m *Metric) Success() *Metric { - if m == nil { - return m - } - m.Tag("success", "true") - return m -} - -// Failure tags the metric as failure. -func (m *Metric) Failure(err error) *Metric { - if m == nil { - return m - } - m.Tag("success", "false") - return m -} - -// Tag adds a tag to the metric. -func (m *Metric) Tag(key string, val string) *Metric { - if m == nil { - return nil - } - - if m.tags == nil { - m.tags = map[string]string{} - } - - m.tags[key] = val - return m -} - -// Publish publishes the metric with collected tags. Intended to -// be used with defer. -func (m *Metric) Publish() { - if m == nil { - return - } - - if m.tags == nil { - m.tags = map[string]string{} - } - - var ddTags []string - if m.withInfluxTag { - m.name = m.processTagsInflux(m.name, m.tags) - } else { - ddTags = m.processTagsDatadog() - } - go func() { - if err := m.publishFunc(m.name, ddTags, m.rate); err != nil { - m.logger.Warn("failed to publish metric", "name", m.name, "err", err) - } - }() -} - -func (m *Metric) processTagsDatadog() []string { - tags := []string{} - for k, v := range m.tags { - tags = append(tags, fmt.Sprintf("%s:%s", k, v)) - } - return tags -} - -func (m *Metric) processTagsInflux(name string, tags map[string]string) string { - var finalName = name - for k, v := range m.tags { - finalName = fmt.Sprintf("%s,%s=%s", finalName, k, v) - } - return finalName -} diff --git a/pkg/statsd/statsd.go b/pkg/statsd/statsd.go deleted file mode 100644 index 8288ae3e..00000000 --- a/pkg/statsd/statsd.go +++ /dev/null @@ -1,111 +0,0 @@ -package statsd - -import ( - "time" - - std "github.com/DataDog/datadog-go/v5/statsd" - log "github.com/raystack/salt/observability/logger" -) - -// StatsD provides functions for reporting metrics. -type Reporter struct { - client *std.Client - logger log.Logger - config Config -} - -// New validates the config and initializes the statsD client. -func Init(logger log.Logger, cfg Config) (*Reporter, error) { - reporter := &Reporter{} - if !cfg.Enabled { - logger.Warn("statsd is disabled") - return reporter, nil - } - - client, err := std.New(cfg.Address, - std.WithNamespace(cfg.Prefix), - std.WithoutTelemetry()) - if err != nil { - return nil, err - } - - reporter.client = client - reporter.logger = logger - reporter.config = cfg - return reporter, nil -} - -// Close closes statsd connection -func (sd *Reporter) Close() { - if sd != nil && sd.client != nil { - sd.Close() - } -} - -// Incr returns a increment counter metric. -func (sd *Reporter) Incr(name string) *Metric { - return &Metric{ - rate: sd.config.SamplingRate, - logger: sd.logger, - name: name, - withInfluxTag: sd.config.WithInfluxTagFormat, - publishFunc: func(name string, tags []string, rate float64) error { - if sd == nil || sd.client == nil { - return nil - } - - return sd.client.Incr(name, tags, rate) - }, - } -} - -// Timing returns a timer metric. -func (sd *Reporter) Timing(name string, value time.Duration) *Metric { - return &Metric{ - rate: sd.config.SamplingRate, - logger: sd.logger, - name: name, - withInfluxTag: sd.config.WithInfluxTagFormat, - publishFunc: func(name string, tags []string, rate float64) error { - if sd == nil || sd.client == nil { - return nil - } - - return sd.client.Timing(name, value, tags, rate) - }, - } -} - -// Gauge creates and returns a new gauge metric. -func (sd *Reporter) Gauge(name string, value float64) *Metric { - return &Metric{ - rate: sd.config.SamplingRate, - logger: sd.logger, - name: name, - withInfluxTag: sd.config.WithInfluxTagFormat, - publishFunc: func(name string, tags []string, rate float64) error { - if sd == nil || sd.client == nil { - return nil - } - - return sd.client.Gauge(name, value, tags, rate) - }, - } -} - -// Histogram creates and returns a rate & gauge metric. -func (sd *Reporter) Histogram(name string, value float64) *Metric { - return &Metric{ - rate: sd.config.SamplingRate, - logger: sd.logger, - name: name, - withInfluxTag: sd.config.WithInfluxTagFormat, - publishFunc: func(name string, tags []string, rate float64) error { - if sd == nil || sd.client == nil { - return nil - } - - return sd.client.Histogram(name, value, tags, rate) - }, - } -} diff --git a/proto/compassv1beta1/service.pb.go b/proto/compassv1beta1/service.pb.go deleted file mode 100644 index cc308675..00000000 --- a/proto/compassv1beta1/service.pb.go +++ /dev/null @@ -1,9670 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.31.0 -// protoc (unknown) -// source: raystack/compass/v1beta1/service.proto - -package compassv1beta1 - -import ( - _ "github.com/envoyproxy/protoc-gen-validate/validate" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - structpb "google.golang.org/protobuf/types/known/structpb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GetAllDiscussionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` - Assignee string `protobuf:"bytes,4,opt,name=assignee,proto3" json:"assignee,omitempty"` - Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` - Labels string `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` - Sort string `protobuf:"bytes,7,opt,name=sort,proto3" json:"sort,omitempty"` - Direction string `protobuf:"bytes,8,opt,name=direction,proto3" json:"direction,omitempty"` - Size uint32 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetAllDiscussionsRequest) Reset() { - *x = GetAllDiscussionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllDiscussionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllDiscussionsRequest) ProtoMessage() {} - -func (x *GetAllDiscussionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllDiscussionsRequest.ProtoReflect.Descriptor instead. -func (*GetAllDiscussionsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{0} -} - -func (x *GetAllDiscussionsRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetAssignee() string { - if x != nil { - return x.Assignee - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetLabels() string { - if x != nil { - return x.Labels - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetDirection() string { - if x != nil { - return x.Direction - } - return "" -} - -func (x *GetAllDiscussionsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetAllDiscussionsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetAllDiscussionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Discussion `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAllDiscussionsResponse) Reset() { - *x = GetAllDiscussionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllDiscussionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllDiscussionsResponse) ProtoMessage() {} - -func (x *GetAllDiscussionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllDiscussionsResponse.ProtoReflect.Descriptor instead. -func (*GetAllDiscussionsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{1} -} - -func (x *GetAllDiscussionsResponse) GetData() []*Discussion { - if x != nil { - return x.Data - } - return nil -} - -type CreateDiscussionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` - Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` - Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` -} - -func (x *CreateDiscussionRequest) Reset() { - *x = CreateDiscussionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDiscussionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDiscussionRequest) ProtoMessage() {} - -func (x *CreateDiscussionRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDiscussionRequest.ProtoReflect.Descriptor instead. -func (*CreateDiscussionRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{2} -} - -func (x *CreateDiscussionRequest) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *CreateDiscussionRequest) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -func (x *CreateDiscussionRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *CreateDiscussionRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *CreateDiscussionRequest) GetLabels() []string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *CreateDiscussionRequest) GetAssets() []string { - if x != nil { - return x.Assets - } - return nil -} - -func (x *CreateDiscussionRequest) GetAssignees() []string { - if x != nil { - return x.Assignees - } - return nil -} - -type CreateDiscussionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *CreateDiscussionResponse) Reset() { - *x = CreateDiscussionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateDiscussionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateDiscussionResponse) ProtoMessage() {} - -func (x *CreateDiscussionResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateDiscussionResponse.ProtoReflect.Descriptor instead. -func (*CreateDiscussionResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{3} -} - -func (x *CreateDiscussionResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetDiscussionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *GetDiscussionRequest) Reset() { - *x = GetDiscussionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDiscussionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDiscussionRequest) ProtoMessage() {} - -func (x *GetDiscussionRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDiscussionRequest.ProtoReflect.Descriptor instead. -func (*GetDiscussionRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{4} -} - -func (x *GetDiscussionRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetDiscussionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Discussion `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetDiscussionResponse) Reset() { - *x = GetDiscussionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetDiscussionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetDiscussionResponse) ProtoMessage() {} - -func (x *GetDiscussionResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetDiscussionResponse.ProtoReflect.Descriptor instead. -func (*GetDiscussionResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{5} -} - -func (x *GetDiscussionResponse) GetData() *Discussion { - if x != nil { - return x.Data - } - return nil -} - -type PatchDiscussionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` - Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` - Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` -} - -func (x *PatchDiscussionRequest) Reset() { - *x = PatchDiscussionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PatchDiscussionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PatchDiscussionRequest) ProtoMessage() {} - -func (x *PatchDiscussionRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PatchDiscussionRequest.ProtoReflect.Descriptor instead. -func (*PatchDiscussionRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{6} -} - -func (x *PatchDiscussionRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *PatchDiscussionRequest) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *PatchDiscussionRequest) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -func (x *PatchDiscussionRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *PatchDiscussionRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *PatchDiscussionRequest) GetLabels() []string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *PatchDiscussionRequest) GetAssets() []string { - if x != nil { - return x.Assets - } - return nil -} - -func (x *PatchDiscussionRequest) GetAssignees() []string { - if x != nil { - return x.Assignees - } - return nil -} - -type CreateCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` -} - -func (x *CreateCommentRequest) Reset() { - *x = CreateCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateCommentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateCommentRequest) ProtoMessage() {} - -func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead. -func (*CreateCommentRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{7} -} - -func (x *CreateCommentRequest) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *CreateCommentRequest) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -type PatchDiscussionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *PatchDiscussionResponse) Reset() { - *x = PatchDiscussionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PatchDiscussionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PatchDiscussionResponse) ProtoMessage() {} - -func (x *PatchDiscussionResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PatchDiscussionResponse.ProtoReflect.Descriptor instead. -func (*PatchDiscussionResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{8} -} - -type CreateCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *CreateCommentResponse) Reset() { - *x = CreateCommentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateCommentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateCommentResponse) ProtoMessage() {} - -func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateCommentResponse.ProtoReflect.Descriptor instead. -func (*CreateCommentResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{9} -} - -func (x *CreateCommentResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetAllCommentsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Sort string `protobuf:"bytes,2,opt,name=sort,proto3" json:"sort,omitempty"` - Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` - Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetAllCommentsRequest) Reset() { - *x = GetAllCommentsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllCommentsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllCommentsRequest) ProtoMessage() {} - -func (x *GetAllCommentsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllCommentsRequest.ProtoReflect.Descriptor instead. -func (*GetAllCommentsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{10} -} - -func (x *GetAllCommentsRequest) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *GetAllCommentsRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *GetAllCommentsRequest) GetDirection() string { - if x != nil { - return x.Direction - } - return "" -} - -func (x *GetAllCommentsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetAllCommentsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetAllCommentsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Comment `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAllCommentsResponse) Reset() { - *x = GetAllCommentsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllCommentsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllCommentsResponse) ProtoMessage() {} - -func (x *GetAllCommentsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllCommentsResponse.ProtoReflect.Descriptor instead. -func (*GetAllCommentsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{11} -} - -func (x *GetAllCommentsResponse) GetData() []*Comment { - if x != nil { - return x.Data - } - return nil -} - -type GetCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *GetCommentRequest) Reset() { - *x = GetCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCommentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCommentRequest) ProtoMessage() {} - -func (x *GetCommentRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead. -func (*GetCommentRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{12} -} - -func (x *GetCommentRequest) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *GetCommentRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Comment `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetCommentResponse) Reset() { - *x = GetCommentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetCommentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetCommentResponse) ProtoMessage() {} - -func (x *GetCommentResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetCommentResponse.ProtoReflect.Descriptor instead. -func (*GetCommentResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{13} -} - -func (x *GetCommentResponse) GetData() *Comment { - if x != nil { - return x.Data - } - return nil -} - -type UpdateCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` -} - -func (x *UpdateCommentRequest) Reset() { - *x = UpdateCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateCommentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateCommentRequest) ProtoMessage() {} - -func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead. -func (*UpdateCommentRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{14} -} - -func (x *UpdateCommentRequest) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *UpdateCommentRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *UpdateCommentRequest) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -type UpdateCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UpdateCommentResponse) Reset() { - *x = UpdateCommentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateCommentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateCommentResponse) ProtoMessage() {} - -func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateCommentResponse.ProtoReflect.Descriptor instead. -func (*UpdateCommentResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{15} -} - -type DeleteCommentRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *DeleteCommentRequest) Reset() { - *x = DeleteCommentRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteCommentRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteCommentRequest) ProtoMessage() {} - -func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead. -func (*DeleteCommentRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{16} -} - -func (x *DeleteCommentRequest) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *DeleteCommentRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type DeleteCommentResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DeleteCommentResponse) Reset() { - *x = DeleteCommentResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteCommentResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteCommentResponse) ProtoMessage() {} - -func (x *DeleteCommentResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteCommentResponse.ProtoReflect.Descriptor instead. -func (*DeleteCommentResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{17} -} - -type SearchAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` - Rankby string `protobuf:"bytes,2,opt,name=rankby,proto3" json:"rankby,omitempty"` - Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` - Filter map[string]string `protobuf:"bytes,4,rep,name=filter,proto3" json:"filter,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Query map[string]string `protobuf:"bytes,5,rep,name=query,proto3" json:"query,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - IncludeFields []string `protobuf:"bytes,6,rep,name=include_fields,json=includeFields,proto3" json:"include_fields,omitempty"` - Offset uint32 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"` - Flags *SearchFlags `protobuf:"bytes,8,opt,name=flags,proto3" json:"flags,omitempty"` -} - -func (x *SearchAssetsRequest) Reset() { - *x = SearchAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchAssetsRequest) ProtoMessage() {} - -func (x *SearchAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchAssetsRequest.ProtoReflect.Descriptor instead. -func (*SearchAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{18} -} - -func (x *SearchAssetsRequest) GetText() string { - if x != nil { - return x.Text - } - return "" -} - -func (x *SearchAssetsRequest) GetRankby() string { - if x != nil { - return x.Rankby - } - return "" -} - -func (x *SearchAssetsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *SearchAssetsRequest) GetFilter() map[string]string { - if x != nil { - return x.Filter - } - return nil -} - -func (x *SearchAssetsRequest) GetQuery() map[string]string { - if x != nil { - return x.Query - } - return nil -} - -func (x *SearchAssetsRequest) GetIncludeFields() []string { - if x != nil { - return x.IncludeFields - } - return nil -} - -func (x *SearchAssetsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *SearchAssetsRequest) GetFlags() *SearchFlags { - if x != nil { - return x.Flags - } - return nil -} - -type SearchFlags struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - IsColumnSearch bool `protobuf:"varint,1,opt,name=is_column_search,json=isColumnSearch,proto3" json:"is_column_search,omitempty"` - DisableFuzzy bool `protobuf:"varint,2,opt,name=disable_fuzzy,json=disableFuzzy,proto3" json:"disable_fuzzy,omitempty"` - EnableHighlight bool `protobuf:"varint,3,opt,name=enable_highlight,json=enableHighlight,proto3" json:"enable_highlight,omitempty"` -} - -func (x *SearchFlags) Reset() { - *x = SearchFlags{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchFlags) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchFlags) ProtoMessage() {} - -func (x *SearchFlags) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchFlags.ProtoReflect.Descriptor instead. -func (*SearchFlags) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{19} -} - -func (x *SearchFlags) GetIsColumnSearch() bool { - if x != nil { - return x.IsColumnSearch - } - return false -} - -func (x *SearchFlags) GetDisableFuzzy() bool { - if x != nil { - return x.DisableFuzzy - } - return false -} - -func (x *SearchFlags) GetEnableHighlight() bool { - if x != nil { - return x.EnableHighlight - } - return false -} - -type SearchAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *SearchAssetsResponse) Reset() { - *x = SearchAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SearchAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SearchAssetsResponse) ProtoMessage() {} - -func (x *SearchAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SearchAssetsResponse.ProtoReflect.Descriptor instead. -func (*SearchAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{20} -} - -func (x *SearchAssetsResponse) GetData() []*Asset { - if x != nil { - return x.Data - } - return nil -} - -type SuggestAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` -} - -func (x *SuggestAssetsRequest) Reset() { - *x = SuggestAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SuggestAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SuggestAssetsRequest) ProtoMessage() {} - -func (x *SuggestAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SuggestAssetsRequest.ProtoReflect.Descriptor instead. -func (*SuggestAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{21} -} - -func (x *SuggestAssetsRequest) GetText() string { - if x != nil { - return x.Text - } - return "" -} - -type SuggestAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *SuggestAssetsResponse) Reset() { - *x = SuggestAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[22] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SuggestAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SuggestAssetsResponse) ProtoMessage() {} - -func (x *SuggestAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[22] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SuggestAssetsResponse.ProtoReflect.Descriptor instead. -func (*SuggestAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{22} -} - -func (x *SuggestAssetsResponse) GetData() []string { - if x != nil { - return x.Data - } - return nil -} - -type GroupAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Groupby []string `protobuf:"bytes,1,rep,name=groupby,proto3" json:"groupby,omitempty"` - Filter map[string]string `protobuf:"bytes,2,rep,name=filter,proto3" json:"filter,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - IncludeFields []string `protobuf:"bytes,3,rep,name=include_fields,json=includeFields,proto3" json:"include_fields,omitempty"` - Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` -} - -func (x *GroupAssetsRequest) Reset() { - *x = GroupAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[23] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupAssetsRequest) ProtoMessage() {} - -func (x *GroupAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[23] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupAssetsRequest.ProtoReflect.Descriptor instead. -func (*GroupAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{23} -} - -func (x *GroupAssetsRequest) GetGroupby() []string { - if x != nil { - return x.Groupby - } - return nil -} - -func (x *GroupAssetsRequest) GetFilter() map[string]string { - if x != nil { - return x.Filter - } - return nil -} - -func (x *GroupAssetsRequest) GetIncludeFields() []string { - if x != nil { - return x.IncludeFields - } - return nil -} - -func (x *GroupAssetsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -type GroupAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetGroups []*AssetGroup `protobuf:"bytes,1,rep,name=asset_groups,json=assetGroups,proto3" json:"asset_groups,omitempty"` -} - -func (x *GroupAssetsResponse) Reset() { - *x = GroupAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[24] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupAssetsResponse) ProtoMessage() {} - -func (x *GroupAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[24] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupAssetsResponse.ProtoReflect.Descriptor instead. -func (*GroupAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{24} -} - -func (x *GroupAssetsResponse) GetAssetGroups() []*AssetGroup { - if x != nil { - return x.AssetGroups - } - return nil -} - -type AssetGroup struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupFields []*GroupField `protobuf:"bytes,1,rep,name=group_fields,json=groupFields,proto3" json:"group_fields,omitempty"` - Assets []*Asset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` -} - -func (x *AssetGroup) Reset() { - *x = AssetGroup{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AssetGroup) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AssetGroup) ProtoMessage() {} - -func (x *AssetGroup) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AssetGroup.ProtoReflect.Descriptor instead. -func (*AssetGroup) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{25} -} - -func (x *AssetGroup) GetGroupFields() []*GroupField { - if x != nil { - return x.GroupFields - } - return nil -} - -func (x *AssetGroup) GetAssets() []*Asset { - if x != nil { - return x.Assets - } - return nil -} - -type GroupField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupKey string `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"` - GroupValue string `protobuf:"bytes,2,opt,name=group_value,json=groupValue,proto3" json:"group_value,omitempty"` -} - -func (x *GroupField) Reset() { - *x = GroupField{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[26] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GroupField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GroupField) ProtoMessage() {} - -func (x *GroupField) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[26] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GroupField.ProtoReflect.Descriptor instead. -func (*GroupField) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{26} -} - -func (x *GroupField) GetGroupKey() string { - if x != nil { - return x.GroupKey - } - return "" -} - -func (x *GroupField) GetGroupValue() string { - if x != nil { - return x.GroupValue - } - return "" -} - -type GetGraphRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` - Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` - WithAttributes *bool `protobuf:"varint,4,opt,name=with_attributes,json=withAttributes,proto3,oneof" json:"with_attributes,omitempty"` - IncludeDeleted bool `protobuf:"varint,5,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"` -} - -func (x *GetGraphRequest) Reset() { - *x = GetGraphRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[27] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGraphRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGraphRequest) ProtoMessage() {} - -func (x *GetGraphRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[27] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGraphRequest.ProtoReflect.Descriptor instead. -func (*GetGraphRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{27} -} - -func (x *GetGraphRequest) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *GetGraphRequest) GetLevel() uint32 { - if x != nil { - return x.Level - } - return 0 -} - -func (x *GetGraphRequest) GetDirection() string { - if x != nil { - return x.Direction - } - return "" -} - -func (x *GetGraphRequest) GetWithAttributes() bool { - if x != nil && x.WithAttributes != nil { - return *x.WithAttributes - } - return false -} - -func (x *GetGraphRequest) GetIncludeDeleted() bool { - if x != nil { - return x.IncludeDeleted - } - return false -} - -type GetGraphResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Edges in the graph. - Data []*LineageEdge `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - // Key is the asset URN. Node attributes, if present, will be returned for - // source and target nodes in the LineageEdge. - NodeAttrs map[string]*GetGraphResponse_NodeAttributes `protobuf:"bytes,2,rep,name=node_attrs,json=nodeAttrs,proto3" json:"node_attrs,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *GetGraphResponse) Reset() { - *x = GetGraphResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[28] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGraphResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGraphResponse) ProtoMessage() {} - -func (x *GetGraphResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[28] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGraphResponse.ProtoReflect.Descriptor instead. -func (*GetGraphResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28} -} - -func (x *GetGraphResponse) GetData() []*LineageEdge { - if x != nil { - return x.Data - } - return nil -} - -func (x *GetGraphResponse) GetNodeAttrs() map[string]*GetGraphResponse_NodeAttributes { - if x != nil { - return x.NodeAttrs - } - return nil -} - -type GetAllTypesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` - QFields string `protobuf:"bytes,2,opt,name=q_fields,json=qFields,proto3" json:"q_fields,omitempty"` - Types string `protobuf:"bytes,3,opt,name=types,proto3" json:"types,omitempty"` - Services string `protobuf:"bytes,4,opt,name=services,proto3" json:"services,omitempty"` - Data map[string]string `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *GetAllTypesRequest) Reset() { - *x = GetAllTypesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[29] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTypesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTypesRequest) ProtoMessage() {} - -func (x *GetAllTypesRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[29] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTypesRequest.ProtoReflect.Descriptor instead. -func (*GetAllTypesRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{29} -} - -func (x *GetAllTypesRequest) GetQ() string { - if x != nil { - return x.Q - } - return "" -} - -func (x *GetAllTypesRequest) GetQFields() string { - if x != nil { - return x.QFields - } - return "" -} - -func (x *GetAllTypesRequest) GetTypes() string { - if x != nil { - return x.Types - } - return "" -} - -func (x *GetAllTypesRequest) GetServices() string { - if x != nil { - return x.Services - } - return "" -} - -func (x *GetAllTypesRequest) GetData() map[string]string { - if x != nil { - return x.Data - } - return nil -} - -type GetAllTypesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Type `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAllTypesResponse) Reset() { - *x = GetAllTypesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[30] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTypesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTypesResponse) ProtoMessage() {} - -func (x *GetAllTypesResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[30] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTypesResponse.ProtoReflect.Descriptor instead. -func (*GetAllTypesResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{30} -} - -func (x *GetAllTypesResponse) GetData() []*Type { - if x != nil { - return x.Data - } - return nil -} - -type GetAllAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` - QFields string `protobuf:"bytes,2,opt,name=q_fields,json=qFields,proto3" json:"q_fields,omitempty"` - Types string `protobuf:"bytes,3,opt,name=types,proto3" json:"types,omitempty"` - Services string `protobuf:"bytes,4,opt,name=services,proto3" json:"services,omitempty"` - Sort string `protobuf:"bytes,5,opt,name=sort,proto3" json:"sort,omitempty"` - Direction string `protobuf:"bytes,6,opt,name=direction,proto3" json:"direction,omitempty"` - Data map[string]string `protobuf:"bytes,7,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"` - WithTotal bool `protobuf:"varint,10,opt,name=with_total,json=withTotal,proto3" json:"with_total,omitempty"` - IsDeleted bool `protobuf:"varint,11,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` -} - -func (x *GetAllAssetsRequest) Reset() { - *x = GetAllAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[31] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllAssetsRequest) ProtoMessage() {} - -func (x *GetAllAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[31] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllAssetsRequest.ProtoReflect.Descriptor instead. -func (*GetAllAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{31} -} - -func (x *GetAllAssetsRequest) GetQ() string { - if x != nil { - return x.Q - } - return "" -} - -func (x *GetAllAssetsRequest) GetQFields() string { - if x != nil { - return x.QFields - } - return "" -} - -func (x *GetAllAssetsRequest) GetTypes() string { - if x != nil { - return x.Types - } - return "" -} - -func (x *GetAllAssetsRequest) GetServices() string { - if x != nil { - return x.Services - } - return "" -} - -func (x *GetAllAssetsRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *GetAllAssetsRequest) GetDirection() string { - if x != nil { - return x.Direction - } - return "" -} - -func (x *GetAllAssetsRequest) GetData() map[string]string { - if x != nil { - return x.Data - } - return nil -} - -func (x *GetAllAssetsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetAllAssetsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -func (x *GetAllAssetsRequest) GetWithTotal() bool { - if x != nil { - return x.WithTotal - } - return false -} - -func (x *GetAllAssetsRequest) GetIsDeleted() bool { - if x != nil { - return x.IsDeleted - } - return false -} - -type GetAllAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` - Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` -} - -func (x *GetAllAssetsResponse) Reset() { - *x = GetAllAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[32] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllAssetsResponse) ProtoMessage() {} - -func (x *GetAllAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[32] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllAssetsResponse.ProtoReflect.Descriptor instead. -func (*GetAllAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{32} -} - -func (x *GetAllAssetsResponse) GetData() []*Asset { - if x != nil { - return x.Data - } - return nil -} - -func (x *GetAllAssetsResponse) GetTotal() uint32 { - if x != nil { - return x.Total - } - return 0 -} - -type GetAssetByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *GetAssetByIDRequest) Reset() { - *x = GetAssetByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[33] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetByIDRequest) ProtoMessage() {} - -func (x *GetAssetByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[33] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetByIDRequest.ProtoReflect.Descriptor instead. -func (*GetAssetByIDRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{33} -} - -func (x *GetAssetByIDRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetAssetByIDResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAssetByIDResponse) Reset() { - *x = GetAssetByIDResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[34] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetByIDResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetByIDResponse) ProtoMessage() {} - -func (x *GetAssetByIDResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[34] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetByIDResponse.ProtoReflect.Descriptor instead. -func (*GetAssetByIDResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{34} -} - -func (x *GetAssetByIDResponse) GetData() *Asset { - if x != nil { - return x.Data - } - return nil -} - -type UpsertAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Asset *UpsertAssetRequest_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` - Upstreams []*LineageNode `protobuf:"bytes,2,rep,name=upstreams,proto3" json:"upstreams,omitempty"` - Downstreams []*LineageNode `protobuf:"bytes,3,rep,name=downstreams,proto3" json:"downstreams,omitempty"` - UpdateOnly bool `protobuf:"varint,4,opt,name=update_only,json=updateOnly,proto3" json:"update_only,omitempty"` -} - -func (x *UpsertAssetRequest) Reset() { - *x = UpsertAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[35] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertAssetRequest) ProtoMessage() {} - -func (x *UpsertAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[35] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertAssetRequest.ProtoReflect.Descriptor instead. -func (*UpsertAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{35} -} - -func (x *UpsertAssetRequest) GetAsset() *UpsertAssetRequest_Asset { - if x != nil { - return x.Asset - } - return nil -} - -func (x *UpsertAssetRequest) GetUpstreams() []*LineageNode { - if x != nil { - return x.Upstreams - } - return nil -} - -func (x *UpsertAssetRequest) GetDownstreams() []*LineageNode { - if x != nil { - return x.Downstreams - } - return nil -} - -func (x *UpsertAssetRequest) GetUpdateOnly() bool { - if x != nil { - return x.UpdateOnly - } - return false -} - -type UpsertAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *UpsertAssetResponse) Reset() { - *x = UpsertAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[36] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertAssetResponse) ProtoMessage() {} - -func (x *UpsertAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[36] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertAssetResponse.ProtoReflect.Descriptor instead. -func (*UpsertAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{36} -} - -func (x *UpsertAssetResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type UpsertPatchAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Asset *UpsertPatchAssetRequest_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` - Upstreams []*LineageNode `protobuf:"bytes,2,rep,name=upstreams,proto3" json:"upstreams,omitempty"` - Downstreams []*LineageNode `protobuf:"bytes,3,rep,name=downstreams,proto3" json:"downstreams,omitempty"` - // overwrite_lineage determines whether the asset's lineage should be - // overwritten with the upstreams and downstreams specified in the request. - // Currently, it is only applicable when both upstreams and downstreams are - // empty/not specified. - OverwriteLineage bool `protobuf:"varint,4,opt,name=overwrite_lineage,json=overwriteLineage,proto3" json:"overwrite_lineage,omitempty"` - UpdateOnly bool `protobuf:"varint,5,opt,name=update_only,json=updateOnly,proto3" json:"update_only,omitempty"` -} - -func (x *UpsertPatchAssetRequest) Reset() { - *x = UpsertPatchAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[37] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertPatchAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertPatchAssetRequest) ProtoMessage() {} - -func (x *UpsertPatchAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[37] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertPatchAssetRequest.ProtoReflect.Descriptor instead. -func (*UpsertPatchAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{37} -} - -func (x *UpsertPatchAssetRequest) GetAsset() *UpsertPatchAssetRequest_Asset { - if x != nil { - return x.Asset - } - return nil -} - -func (x *UpsertPatchAssetRequest) GetUpstreams() []*LineageNode { - if x != nil { - return x.Upstreams - } - return nil -} - -func (x *UpsertPatchAssetRequest) GetDownstreams() []*LineageNode { - if x != nil { - return x.Downstreams - } - return nil -} - -func (x *UpsertPatchAssetRequest) GetOverwriteLineage() bool { - if x != nil { - return x.OverwriteLineage - } - return false -} - -func (x *UpsertPatchAssetRequest) GetUpdateOnly() bool { - if x != nil { - return x.UpdateOnly - } - return false -} - -type UpsertPatchAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *UpsertPatchAssetResponse) Reset() { - *x = UpsertPatchAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[38] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertPatchAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertPatchAssetResponse) ProtoMessage() {} - -func (x *UpsertPatchAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[38] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertPatchAssetResponse.ProtoReflect.Descriptor instead. -func (*UpsertPatchAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{38} -} - -func (x *UpsertPatchAssetResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type DeleteAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *DeleteAssetRequest) Reset() { - *x = DeleteAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[39] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteAssetRequest) ProtoMessage() {} - -func (x *DeleteAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[39] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteAssetRequest.ProtoReflect.Descriptor instead. -func (*DeleteAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{39} -} - -func (x *DeleteAssetRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type DeleteAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DeleteAssetResponse) Reset() { - *x = DeleteAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[40] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteAssetResponse) ProtoMessage() {} - -func (x *DeleteAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[40] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteAssetResponse.ProtoReflect.Descriptor instead. -func (*DeleteAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{40} -} - -type GetAssetStargazersRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetAssetStargazersRequest) Reset() { - *x = GetAssetStargazersRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[41] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetStargazersRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetStargazersRequest) ProtoMessage() {} - -func (x *GetAssetStargazersRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[41] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetStargazersRequest.ProtoReflect.Descriptor instead. -func (*GetAssetStargazersRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{41} -} - -func (x *GetAssetStargazersRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *GetAssetStargazersRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetAssetStargazersRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetAssetStargazersResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAssetStargazersResponse) Reset() { - *x = GetAssetStargazersResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[42] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetStargazersResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetStargazersResponse) ProtoMessage() {} - -func (x *GetAssetStargazersResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[42] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetStargazersResponse.ProtoReflect.Descriptor instead. -func (*GetAssetStargazersResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{42} -} - -func (x *GetAssetStargazersResponse) GetData() []*User { - if x != nil { - return x.Data - } - return nil -} - -type GetAssetVersionHistoryRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetAssetVersionHistoryRequest) Reset() { - *x = GetAssetVersionHistoryRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[43] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetVersionHistoryRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetVersionHistoryRequest) ProtoMessage() {} - -func (x *GetAssetVersionHistoryRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[43] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetVersionHistoryRequest.ProtoReflect.Descriptor instead. -func (*GetAssetVersionHistoryRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{43} -} - -func (x *GetAssetVersionHistoryRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *GetAssetVersionHistoryRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetAssetVersionHistoryRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetAssetVersionHistoryResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAssetVersionHistoryResponse) Reset() { - *x = GetAssetVersionHistoryResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[44] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetVersionHistoryResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetVersionHistoryResponse) ProtoMessage() {} - -func (x *GetAssetVersionHistoryResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[44] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetVersionHistoryResponse.ProtoReflect.Descriptor instead. -func (*GetAssetVersionHistoryResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{44} -} - -func (x *GetAssetVersionHistoryResponse) GetData() []*Asset { - if x != nil { - return x.Data - } - return nil -} - -type GetAssetByVersionRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` -} - -func (x *GetAssetByVersionRequest) Reset() { - *x = GetAssetByVersionRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[45] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetByVersionRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetByVersionRequest) ProtoMessage() {} - -func (x *GetAssetByVersionRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[45] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetByVersionRequest.ProtoReflect.Descriptor instead. -func (*GetAssetByVersionRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{45} -} - -func (x *GetAssetByVersionRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *GetAssetByVersionRequest) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -type GetAssetByVersionResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAssetByVersionResponse) Reset() { - *x = GetAssetByVersionResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[46] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAssetByVersionResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAssetByVersionResponse) ProtoMessage() {} - -func (x *GetAssetByVersionResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[46] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAssetByVersionResponse.ProtoReflect.Descriptor instead. -func (*GetAssetByVersionResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{46} -} - -func (x *GetAssetByVersionResponse) GetData() *Asset { - if x != nil { - return x.Data - } - return nil -} - -type CreateAssetProbeRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetUrn string `protobuf:"bytes,1,opt,name=asset_urn,json=assetUrn,proto3" json:"asset_urn,omitempty"` - Probe *CreateAssetProbeRequest_Probe `protobuf:"bytes,2,opt,name=probe,proto3" json:"probe,omitempty"` -} - -func (x *CreateAssetProbeRequest) Reset() { - *x = CreateAssetProbeRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[47] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateAssetProbeRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateAssetProbeRequest) ProtoMessage() {} - -func (x *CreateAssetProbeRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[47] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateAssetProbeRequest.ProtoReflect.Descriptor instead. -func (*CreateAssetProbeRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{47} -} - -func (x *CreateAssetProbeRequest) GetAssetUrn() string { - if x != nil { - return x.AssetUrn - } - return "" -} - -func (x *CreateAssetProbeRequest) GetProbe() *CreateAssetProbeRequest_Probe { - if x != nil { - return x.Probe - } - return nil -} - -type CreateAssetProbeResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *CreateAssetProbeResponse) Reset() { - *x = CreateAssetProbeResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[48] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateAssetProbeResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateAssetProbeResponse) ProtoMessage() {} - -func (x *CreateAssetProbeResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[48] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateAssetProbeResponse.ProtoReflect.Descriptor instead. -func (*CreateAssetProbeResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{48} -} - -func (x *CreateAssetProbeResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetUserStarredAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` - Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetUserStarredAssetsRequest) Reset() { - *x = GetUserStarredAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[49] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserStarredAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserStarredAssetsRequest) ProtoMessage() {} - -func (x *GetUserStarredAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[49] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserStarredAssetsRequest.ProtoReflect.Descriptor instead. -func (*GetUserStarredAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{49} -} - -func (x *GetUserStarredAssetsRequest) GetUserId() string { - if x != nil { - return x.UserId - } - return "" -} - -func (x *GetUserStarredAssetsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetUserStarredAssetsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetUserStarredAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetUserStarredAssetsResponse) Reset() { - *x = GetUserStarredAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[50] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetUserStarredAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetUserStarredAssetsResponse) ProtoMessage() {} - -func (x *GetUserStarredAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[50] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetUserStarredAssetsResponse.ProtoReflect.Descriptor instead. -func (*GetUserStarredAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{50} -} - -func (x *GetUserStarredAssetsResponse) GetData() []*Asset { - if x != nil { - return x.Data - } - return nil -} - -type GetMyStarredAssetsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetMyStarredAssetsRequest) Reset() { - *x = GetMyStarredAssetsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[51] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyStarredAssetsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyStarredAssetsRequest) ProtoMessage() {} - -func (x *GetMyStarredAssetsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[51] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyStarredAssetsRequest.ProtoReflect.Descriptor instead. -func (*GetMyStarredAssetsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{51} -} - -func (x *GetMyStarredAssetsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetMyStarredAssetsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetMyStarredAssetsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetMyStarredAssetsResponse) Reset() { - *x = GetMyStarredAssetsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[52] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyStarredAssetsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyStarredAssetsResponse) ProtoMessage() {} - -func (x *GetMyStarredAssetsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[52] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyStarredAssetsResponse.ProtoReflect.Descriptor instead. -func (*GetMyStarredAssetsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{52} -} - -func (x *GetMyStarredAssetsResponse) GetData() []*Asset { - if x != nil { - return x.Data - } - return nil -} - -type GetMyStarredAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` -} - -func (x *GetMyStarredAssetRequest) Reset() { - *x = GetMyStarredAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[53] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyStarredAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyStarredAssetRequest) ProtoMessage() {} - -func (x *GetMyStarredAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[53] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyStarredAssetRequest.ProtoReflect.Descriptor instead. -func (*GetMyStarredAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{53} -} - -func (x *GetMyStarredAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -type GetMyStarredAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetMyStarredAssetResponse) Reset() { - *x = GetMyStarredAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[54] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyStarredAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyStarredAssetResponse) ProtoMessage() {} - -func (x *GetMyStarredAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[54] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyStarredAssetResponse.ProtoReflect.Descriptor instead. -func (*GetMyStarredAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{54} -} - -func (x *GetMyStarredAssetResponse) GetData() *Asset { - if x != nil { - return x.Data - } - return nil -} - -type StarAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` -} - -func (x *StarAssetRequest) Reset() { - *x = StarAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[55] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StarAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StarAssetRequest) ProtoMessage() {} - -func (x *StarAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[55] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StarAssetRequest.ProtoReflect.Descriptor instead. -func (*StarAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{55} -} - -func (x *StarAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -type StarAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *StarAssetResponse) Reset() { - *x = StarAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[56] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StarAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StarAssetResponse) ProtoMessage() {} - -func (x *StarAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[56] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StarAssetResponse.ProtoReflect.Descriptor instead. -func (*StarAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{56} -} - -func (x *StarAssetResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type UnstarAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` -} - -func (x *UnstarAssetRequest) Reset() { - *x = UnstarAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[57] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnstarAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnstarAssetRequest) ProtoMessage() {} - -func (x *UnstarAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[57] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnstarAssetRequest.ProtoReflect.Descriptor instead. -func (*UnstarAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{57} -} - -func (x *UnstarAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -type UnstarAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UnstarAssetResponse) Reset() { - *x = UnstarAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[58] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UnstarAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UnstarAssetResponse) ProtoMessage() {} - -func (x *UnstarAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[58] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UnstarAssetResponse.ProtoReflect.Descriptor instead. -func (*UnstarAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{58} -} - -type GetMyDiscussionsRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` - Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` - Labels string `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` - Sort string `protobuf:"bytes,6,opt,name=sort,proto3" json:"sort,omitempty"` - Direction string `protobuf:"bytes,7,opt,name=direction,proto3" json:"direction,omitempty"` - Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` - Offset uint32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"` -} - -func (x *GetMyDiscussionsRequest) Reset() { - *x = GetMyDiscussionsRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[59] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyDiscussionsRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyDiscussionsRequest) ProtoMessage() {} - -func (x *GetMyDiscussionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[59] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyDiscussionsRequest.ProtoReflect.Descriptor instead. -func (*GetMyDiscussionsRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{59} -} - -func (x *GetMyDiscussionsRequest) GetFilter() string { - if x != nil { - return x.Filter - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetAsset() string { - if x != nil { - return x.Asset - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetLabels() string { - if x != nil { - return x.Labels - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetSort() string { - if x != nil { - return x.Sort - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetDirection() string { - if x != nil { - return x.Direction - } - return "" -} - -func (x *GetMyDiscussionsRequest) GetSize() uint32 { - if x != nil { - return x.Size - } - return 0 -} - -func (x *GetMyDiscussionsRequest) GetOffset() uint32 { - if x != nil { - return x.Offset - } - return 0 -} - -type GetMyDiscussionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Discussion `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetMyDiscussionsResponse) Reset() { - *x = GetMyDiscussionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[60] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetMyDiscussionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetMyDiscussionsResponse) ProtoMessage() {} - -func (x *GetMyDiscussionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[60] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetMyDiscussionsResponse.ProtoReflect.Descriptor instead. -func (*GetMyDiscussionsResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{60} -} - -func (x *GetMyDiscussionsResponse) GetData() []*Discussion { - if x != nil { - return x.Data - } - return nil -} - -type CreateTagAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // required - TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` // required - TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` // required - TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` - TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` -} - -func (x *CreateTagAssetRequest) Reset() { - *x = CreateTagAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[61] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTagAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTagAssetRequest) ProtoMessage() {} - -func (x *CreateTagAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[61] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTagAssetRequest.ProtoReflect.Descriptor instead. -func (*CreateTagAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{61} -} - -func (x *CreateTagAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -func (x *CreateTagAssetRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -func (x *CreateTagAssetRequest) GetTagValues() []*TagValue { - if x != nil { - return x.TagValues - } - return nil -} - -func (x *CreateTagAssetRequest) GetTemplateDisplayName() string { - if x != nil { - return x.TemplateDisplayName - } - return "" -} - -func (x *CreateTagAssetRequest) GetTemplateDescription() string { - if x != nil { - return x.TemplateDescription - } - return "" -} - -type CreateTagAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *CreateTagAssetResponse) Reset() { - *x = CreateTagAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[62] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTagAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTagAssetResponse) ProtoMessage() {} - -func (x *CreateTagAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[62] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTagAssetResponse.ProtoReflect.Descriptor instead. -func (*CreateTagAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{62} -} - -func (x *CreateTagAssetResponse) GetData() *Tag { - if x != nil { - return x.Data - } - return nil -} - -type GetTagByAssetAndTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - TemplateUrn string `protobuf:"bytes,3,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` -} - -func (x *GetTagByAssetAndTemplateRequest) Reset() { - *x = GetTagByAssetAndTemplateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[63] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTagByAssetAndTemplateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTagByAssetAndTemplateRequest) ProtoMessage() {} - -func (x *GetTagByAssetAndTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[63] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTagByAssetAndTemplateRequest.ProtoReflect.Descriptor instead. -func (*GetTagByAssetAndTemplateRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{63} -} - -func (x *GetTagByAssetAndTemplateRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -func (x *GetTagByAssetAndTemplateRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -type GetTagByAssetAndTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetTagByAssetAndTemplateResponse) Reset() { - *x = GetTagByAssetAndTemplateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[64] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTagByAssetAndTemplateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTagByAssetAndTemplateResponse) ProtoMessage() {} - -func (x *GetTagByAssetAndTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[64] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTagByAssetAndTemplateResponse.ProtoReflect.Descriptor instead. -func (*GetTagByAssetAndTemplateResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{64} -} - -func (x *GetTagByAssetAndTemplateResponse) GetData() *Tag { - if x != nil { - return x.Data - } - return nil -} - -type UpdateTagAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // required - TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` - TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` // required - TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` - TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` -} - -func (x *UpdateTagAssetRequest) Reset() { - *x = UpdateTagAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[65] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTagAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTagAssetRequest) ProtoMessage() {} - -func (x *UpdateTagAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[65] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTagAssetRequest.ProtoReflect.Descriptor instead. -func (*UpdateTagAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{65} -} - -func (x *UpdateTagAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -func (x *UpdateTagAssetRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -func (x *UpdateTagAssetRequest) GetTagValues() []*TagValue { - if x != nil { - return x.TagValues - } - return nil -} - -func (x *UpdateTagAssetRequest) GetTemplateDisplayName() string { - if x != nil { - return x.TemplateDisplayName - } - return "" -} - -func (x *UpdateTagAssetRequest) GetTemplateDescription() string { - if x != nil { - return x.TemplateDescription - } - return "" -} - -type UpdateTagAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *UpdateTagAssetResponse) Reset() { - *x = UpdateTagAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[66] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTagAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTagAssetResponse) ProtoMessage() {} - -func (x *UpdateTagAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[66] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTagAssetResponse.ProtoReflect.Descriptor instead. -func (*UpdateTagAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{66} -} - -func (x *UpdateTagAssetResponse) GetData() *Tag { - if x != nil { - return x.Data - } - return nil -} - -type DeleteTagAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` -} - -func (x *DeleteTagAssetRequest) Reset() { - *x = DeleteTagAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[67] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTagAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTagAssetRequest) ProtoMessage() {} - -func (x *DeleteTagAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[67] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTagAssetRequest.ProtoReflect.Descriptor instead. -func (*DeleteTagAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{67} -} - -func (x *DeleteTagAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -func (x *DeleteTagAssetRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -type DeleteTagAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DeleteTagAssetResponse) Reset() { - *x = DeleteTagAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[68] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTagAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTagAssetResponse) ProtoMessage() {} - -func (x *DeleteTagAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[68] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTagAssetResponse.ProtoReflect.Descriptor instead. -func (*DeleteTagAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{68} -} - -type GetAllTagsByAssetRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` -} - -func (x *GetAllTagsByAssetRequest) Reset() { - *x = GetAllTagsByAssetRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[69] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTagsByAssetRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTagsByAssetRequest) ProtoMessage() {} - -func (x *GetAllTagsByAssetRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[69] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTagsByAssetRequest.ProtoReflect.Descriptor instead. -func (*GetAllTagsByAssetRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{69} -} - -func (x *GetAllTagsByAssetRequest) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -type GetAllTagsByAssetResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*Tag `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAllTagsByAssetResponse) Reset() { - *x = GetAllTagsByAssetResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[70] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTagsByAssetResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTagsByAssetResponse) ProtoMessage() {} - -func (x *GetAllTagsByAssetResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[70] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTagsByAssetResponse.ProtoReflect.Descriptor instead. -func (*GetAllTagsByAssetResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{70} -} - -func (x *GetAllTagsByAssetResponse) GetData() []*Tag { - if x != nil { - return x.Data - } - return nil -} - -type GetAllTagTemplatesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` -} - -func (x *GetAllTagTemplatesRequest) Reset() { - *x = GetAllTagTemplatesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[71] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTagTemplatesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTagTemplatesRequest) ProtoMessage() {} - -func (x *GetAllTagTemplatesRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[71] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTagTemplatesRequest.ProtoReflect.Descriptor instead. -func (*GetAllTagTemplatesRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{71} -} - -func (x *GetAllTagTemplatesRequest) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -type GetAllTagTemplatesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data []*TagTemplate `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetAllTagTemplatesResponse) Reset() { - *x = GetAllTagTemplatesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[72] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetAllTagTemplatesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetAllTagTemplatesResponse) ProtoMessage() {} - -func (x *GetAllTagTemplatesResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[72] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetAllTagTemplatesResponse.ProtoReflect.Descriptor instead. -func (*GetAllTagTemplatesResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{72} -} - -func (x *GetAllTagTemplatesResponse) GetData() []*TagTemplate { - if x != nil { - return x.Data - } - return nil -} - -type CreateTagTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` // required - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // required - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // required - Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` // required -} - -func (x *CreateTagTemplateRequest) Reset() { - *x = CreateTagTemplateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[73] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTagTemplateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTagTemplateRequest) ProtoMessage() {} - -func (x *CreateTagTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[73] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTagTemplateRequest.ProtoReflect.Descriptor instead. -func (*CreateTagTemplateRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{73} -} - -func (x *CreateTagTemplateRequest) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *CreateTagTemplateRequest) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *CreateTagTemplateRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *CreateTagTemplateRequest) GetFields() []*TagTemplateField { - if x != nil { - return x.Fields - } - return nil -} - -type CreateTagTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *CreateTagTemplateResponse) Reset() { - *x = CreateTagTemplateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[74] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateTagTemplateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateTagTemplateResponse) ProtoMessage() {} - -func (x *CreateTagTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[74] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateTagTemplateResponse.ProtoReflect.Descriptor instead. -func (*CreateTagTemplateResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{74} -} - -func (x *CreateTagTemplateResponse) GetData() *TagTemplate { - if x != nil { - return x.Data - } - return nil -} - -type GetTagTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` -} - -func (x *GetTagTemplateRequest) Reset() { - *x = GetTagTemplateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[75] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTagTemplateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTagTemplateRequest) ProtoMessage() {} - -func (x *GetTagTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[75] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTagTemplateRequest.ProtoReflect.Descriptor instead. -func (*GetTagTemplateRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{75} -} - -func (x *GetTagTemplateRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -type GetTagTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *GetTagTemplateResponse) Reset() { - *x = GetTagTemplateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[76] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetTagTemplateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetTagTemplateResponse) ProtoMessage() {} - -func (x *GetTagTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[76] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetTagTemplateResponse.ProtoReflect.Descriptor instead. -func (*GetTagTemplateResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{76} -} - -func (x *GetTagTemplateResponse) GetData() *TagTemplate { - if x != nil { - return x.Data - } - return nil -} - -type UpdateTagTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // required - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // required - Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` // required -} - -func (x *UpdateTagTemplateRequest) Reset() { - *x = UpdateTagTemplateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[77] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTagTemplateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTagTemplateRequest) ProtoMessage() {} - -func (x *UpdateTagTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[77] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTagTemplateRequest.ProtoReflect.Descriptor instead. -func (*UpdateTagTemplateRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{77} -} - -func (x *UpdateTagTemplateRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -func (x *UpdateTagTemplateRequest) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *UpdateTagTemplateRequest) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UpdateTagTemplateRequest) GetFields() []*TagTemplateField { - if x != nil { - return x.Fields - } - return nil -} - -type UpdateTagTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` -} - -func (x *UpdateTagTemplateResponse) Reset() { - *x = UpdateTagTemplateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[78] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateTagTemplateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateTagTemplateResponse) ProtoMessage() {} - -func (x *UpdateTagTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[78] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateTagTemplateResponse.ProtoReflect.Descriptor instead. -func (*UpdateTagTemplateResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{78} -} - -func (x *UpdateTagTemplateResponse) GetData() *TagTemplate { - if x != nil { - return x.Data - } - return nil -} - -type DeleteTagTemplateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` -} - -func (x *DeleteTagTemplateRequest) Reset() { - *x = DeleteTagTemplateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[79] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTagTemplateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTagTemplateRequest) ProtoMessage() {} - -func (x *DeleteTagTemplateRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[79] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTagTemplateRequest.ProtoReflect.Descriptor instead. -func (*DeleteTagTemplateRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{79} -} - -func (x *DeleteTagTemplateRequest) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -type DeleteTagTemplateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *DeleteTagTemplateResponse) Reset() { - *x = DeleteTagTemplateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[80] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteTagTemplateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteTagTemplateResponse) ProtoMessage() {} - -func (x *DeleteTagTemplateResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[80] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteTagTemplateResponse.ProtoReflect.Descriptor instead. -func (*DeleteTagTemplateResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{80} -} - -type CreateNamespaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` - Metadata *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *CreateNamespaceRequest) Reset() { - *x = CreateNamespaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[81] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceRequest) ProtoMessage() {} - -func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[81] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*CreateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{81} -} - -func (x *CreateNamespaceRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *CreateNamespaceRequest) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *CreateNamespaceRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *CreateNamespaceRequest) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -type CreateNamespaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *CreateNamespaceResponse) Reset() { - *x = CreateNamespaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[82] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateNamespaceResponse) ProtoMessage() {} - -func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[82] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*CreateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{82} -} - -func (x *CreateNamespaceResponse) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type GetNamespaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // set either id or name - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` -} - -func (x *GetNamespaceRequest) Reset() { - *x = GetNamespaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[83] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceRequest) ProtoMessage() {} - -func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[83] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead. -func (*GetNamespaceRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{83} -} - -func (x *GetNamespaceRequest) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -type GetNamespaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` -} - -func (x *GetNamespaceResponse) Reset() { - *x = GetNamespaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[84] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetNamespaceResponse) ProtoMessage() {} - -func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[84] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead. -func (*GetNamespaceResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{84} -} - -func (x *GetNamespaceResponse) GetNamespace() *Namespace { - if x != nil { - return x.Namespace - } - return nil -} - -type UpdateNamespaceRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // set either id or name - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` - Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *UpdateNamespaceRequest) Reset() { - *x = UpdateNamespaceRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[85] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateNamespaceRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceRequest) ProtoMessage() {} - -func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[85] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{85} -} - -func (x *UpdateNamespaceRequest) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *UpdateNamespaceRequest) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *UpdateNamespaceRequest) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -type UpdateNamespaceResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *UpdateNamespaceResponse) Reset() { - *x = UpdateNamespaceResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[86] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpdateNamespaceResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpdateNamespaceResponse) ProtoMessage() {} - -func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[86] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead. -func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{86} -} - -type ListNamespacesRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields -} - -func (x *ListNamespacesRequest) Reset() { - *x = ListNamespacesRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[87] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListNamespacesRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListNamespacesRequest) ProtoMessage() {} - -func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[87] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead. -func (*ListNamespacesRequest) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{87} -} - -type ListNamespacesResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` -} - -func (x *ListNamespacesResponse) Reset() { - *x = ListNamespacesResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[88] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ListNamespacesResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ListNamespacesResponse) ProtoMessage() {} - -func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[88] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead. -func (*ListNamespacesResponse) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{88} -} - -func (x *ListNamespacesResponse) GetNamespaces() []*Namespace { - if x != nil { - return x.Namespaces - } - return nil -} - -type User struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` - Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` - Provider string `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *User) Reset() { - *x = User{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[89] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *User) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*User) ProtoMessage() {} - -func (x *User) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[89] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use User.ProtoReflect.Descriptor instead. -func (*User) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{89} -} - -func (x *User) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *User) GetUuid() string { - if x != nil { - return x.Uuid - } - return "" -} - -func (x *User) GetEmail() string { - if x != nil { - return x.Email - } - return "" -} - -func (x *User) GetProvider() string { - if x != nil { - return x.Provider - } - return "" -} - -func (x *User) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *User) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type Change struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` - Path []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` - From *structpb.Value `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` - To *structpb.Value `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` -} - -func (x *Change) Reset() { - *x = Change{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[90] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Change) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Change) ProtoMessage() {} - -func (x *Change) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[90] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Change.ProtoReflect.Descriptor instead. -func (*Change) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{90} -} - -func (x *Change) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *Change) GetPath() []string { - if x != nil { - return x.Path - } - return nil -} - -func (x *Change) GetFrom() *structpb.Value { - if x != nil { - return x.From - } - return nil -} - -func (x *Change) GetTo() *structpb.Value { - if x != nil { - return x.To - } - return nil -} - -type Asset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` - Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` - Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` - Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` - Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` - Data *structpb.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` - Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Owners []*User `protobuf:"bytes,9,rep,name=owners,proto3" json:"owners,omitempty"` - Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` - UpdatedBy *User `protobuf:"bytes,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` - Changelog []*Change `protobuf:"bytes,12,rep,name=changelog,proto3" json:"changelog,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` - Url string `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"` - Probes []*Probe `protobuf:"bytes,16,rep,name=probes,proto3" json:"probes,omitempty"` - IsDeleted bool `protobuf:"varint,17,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` -} - -func (x *Asset) Reset() { - *x = Asset{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[91] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Asset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Asset) ProtoMessage() {} - -func (x *Asset) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[91] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Asset.ProtoReflect.Descriptor instead. -func (*Asset) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{91} -} - -func (x *Asset) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Asset) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *Asset) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *Asset) GetService() string { - if x != nil { - return x.Service - } - return "" -} - -func (x *Asset) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Asset) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *Asset) GetData() *structpb.Struct { - if x != nil { - return x.Data - } - return nil -} - -func (x *Asset) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *Asset) GetOwners() []*User { - if x != nil { - return x.Owners - } - return nil -} - -func (x *Asset) GetVersion() string { - if x != nil { - return x.Version - } - return "" -} - -func (x *Asset) GetUpdatedBy() *User { - if x != nil { - return x.UpdatedBy - } - return nil -} - -func (x *Asset) GetChangelog() []*Change { - if x != nil { - return x.Changelog - } - return nil -} - -func (x *Asset) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *Asset) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -func (x *Asset) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -func (x *Asset) GetProbes() []*Probe { - if x != nil { - return x.Probes - } - return nil -} - -func (x *Asset) GetIsDeleted() bool { - if x != nil { - return x.IsDeleted - } - return false -} - -type Probe struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - AssetUrn string `protobuf:"bytes,2,opt,name=asset_urn,json=assetUrn,proto3" json:"asset_urn,omitempty"` - Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` - StatusReason string `protobuf:"bytes,4,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` - Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` -} - -func (x *Probe) Reset() { - *x = Probe{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[92] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Probe) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Probe) ProtoMessage() {} - -func (x *Probe) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[92] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Probe.ProtoReflect.Descriptor instead. -func (*Probe) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{92} -} - -func (x *Probe) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Probe) GetAssetUrn() string { - if x != nil { - return x.AssetUrn - } - return "" -} - -func (x *Probe) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *Probe) GetStatusReason() string { - if x != nil { - return x.StatusReason - } - return "" -} - -func (x *Probe) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Probe) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *Probe) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -type Discussion struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` - State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` - Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` - Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` - Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` - Owner *User `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *Discussion) Reset() { - *x = Discussion{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[93] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Discussion) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Discussion) ProtoMessage() {} - -func (x *Discussion) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[93] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Discussion.ProtoReflect.Descriptor instead. -func (*Discussion) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{93} -} - -func (x *Discussion) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Discussion) GetTitle() string { - if x != nil { - return x.Title - } - return "" -} - -func (x *Discussion) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -func (x *Discussion) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *Discussion) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *Discussion) GetLabels() []string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *Discussion) GetAssets() []string { - if x != nil { - return x.Assets - } - return nil -} - -func (x *Discussion) GetAssignees() []string { - if x != nil { - return x.Assignees - } - return nil -} - -func (x *Discussion) GetOwner() *User { - if x != nil { - return x.Owner - } - return nil -} - -func (x *Discussion) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *Discussion) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type Comment struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - DiscussionId string `protobuf:"bytes,2,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` - Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` - Owner *User `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` - UpdatedBy *User `protobuf:"bytes,5,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *Comment) Reset() { - *x = Comment{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[94] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Comment) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Comment) ProtoMessage() {} - -func (x *Comment) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[94] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Comment.ProtoReflect.Descriptor instead. -func (*Comment) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{94} -} - -func (x *Comment) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Comment) GetDiscussionId() string { - if x != nil { - return x.DiscussionId - } - return "" -} - -func (x *Comment) GetBody() string { - if x != nil { - return x.Body - } - return "" -} - -func (x *Comment) GetOwner() *User { - if x != nil { - return x.Owner - } - return nil -} - -func (x *Comment) GetUpdatedBy() *User { - if x != nil { - return x.UpdatedBy - } - return nil -} - -func (x *Comment) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *Comment) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type LineageEdge struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` - Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` - Prop *structpb.Struct `protobuf:"bytes,3,opt,name=prop,proto3" json:"prop,omitempty"` -} - -func (x *LineageEdge) Reset() { - *x = LineageEdge{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[95] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LineageEdge) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LineageEdge) ProtoMessage() {} - -func (x *LineageEdge) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[95] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LineageEdge.ProtoReflect.Descriptor instead. -func (*LineageEdge) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{95} -} - -func (x *LineageEdge) GetSource() string { - if x != nil { - return x.Source - } - return "" -} - -func (x *LineageEdge) GetTarget() string { - if x != nil { - return x.Target - } - return "" -} - -func (x *LineageEdge) GetProp() *structpb.Struct { - if x != nil { - return x.Prop - } - return nil -} - -type LineageNode struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - // Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - // Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. - Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` -} - -func (x *LineageNode) Reset() { - *x = LineageNode{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[96] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *LineageNode) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LineageNode) ProtoMessage() {} - -func (x *LineageNode) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[96] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LineageNode.ProtoReflect.Descriptor instead. -func (*LineageNode) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{96} -} - -func (x *LineageNode) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -// Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. -func (x *LineageNode) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -// Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. -func (x *LineageNode) GetService() string { - if x != nil { - return x.Service - } - return "" -} - -type Tag struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` - TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` - TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` - TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` - TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` -} - -func (x *Tag) Reset() { - *x = Tag{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[97] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Tag) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Tag) ProtoMessage() {} - -func (x *Tag) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[97] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Tag.ProtoReflect.Descriptor instead. -func (*Tag) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{97} -} - -func (x *Tag) GetAssetId() string { - if x != nil { - return x.AssetId - } - return "" -} - -func (x *Tag) GetTemplateUrn() string { - if x != nil { - return x.TemplateUrn - } - return "" -} - -func (x *Tag) GetTagValues() []*TagValue { - if x != nil { - return x.TagValues - } - return nil -} - -func (x *Tag) GetTemplateDisplayName() string { - if x != nil { - return x.TemplateDisplayName - } - return "" -} - -func (x *Tag) GetTemplateDescription() string { - if x != nil { - return x.TemplateDescription - } - return "" -} - -type TagValue struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - FieldId uint32 `protobuf:"varint,1,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"` - FieldValue *structpb.Value `protobuf:"bytes,2,opt,name=field_value,json=fieldValue,proto3" json:"field_value,omitempty"` - FieldUrn string `protobuf:"bytes,3,opt,name=field_urn,json=fieldUrn,proto3" json:"field_urn,omitempty"` - FieldDisplayName string `protobuf:"bytes,4,opt,name=field_display_name,json=fieldDisplayName,proto3" json:"field_display_name,omitempty"` - FieldDescription string `protobuf:"bytes,5,opt,name=field_description,json=fieldDescription,proto3" json:"field_description,omitempty"` - FieldDataType string `protobuf:"bytes,6,opt,name=field_data_type,json=fieldDataType,proto3" json:"field_data_type,omitempty"` - FieldOptions []string `protobuf:"bytes,7,rep,name=field_options,json=fieldOptions,proto3" json:"field_options,omitempty"` - FieldRequired bool `protobuf:"varint,8,opt,name=field_required,json=fieldRequired,proto3" json:"field_required,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *TagValue) Reset() { - *x = TagValue{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[98] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TagValue) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TagValue) ProtoMessage() {} - -func (x *TagValue) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[98] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TagValue.ProtoReflect.Descriptor instead. -func (*TagValue) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{98} -} - -func (x *TagValue) GetFieldId() uint32 { - if x != nil { - return x.FieldId - } - return 0 -} - -func (x *TagValue) GetFieldValue() *structpb.Value { - if x != nil { - return x.FieldValue - } - return nil -} - -func (x *TagValue) GetFieldUrn() string { - if x != nil { - return x.FieldUrn - } - return "" -} - -func (x *TagValue) GetFieldDisplayName() string { - if x != nil { - return x.FieldDisplayName - } - return "" -} - -func (x *TagValue) GetFieldDescription() string { - if x != nil { - return x.FieldDescription - } - return "" -} - -func (x *TagValue) GetFieldDataType() string { - if x != nil { - return x.FieldDataType - } - return "" -} - -func (x *TagValue) GetFieldOptions() []string { - if x != nil { - return x.FieldOptions - } - return nil -} - -func (x *TagValue) GetFieldRequired() bool { - if x != nil { - return x.FieldRequired - } - return false -} - -func (x *TagValue) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *TagValue) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type TagTemplate struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` - Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *TagTemplate) Reset() { - *x = TagTemplate{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[99] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TagTemplate) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TagTemplate) ProtoMessage() {} - -func (x *TagTemplate) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[99] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TagTemplate.ProtoReflect.Descriptor instead. -func (*TagTemplate) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{99} -} - -func (x *TagTemplate) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *TagTemplate) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *TagTemplate) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *TagTemplate) GetFields() []*TagTemplateField { - if x != nil { - return x.Fields - } - return nil -} - -func (x *TagTemplate) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *TagTemplate) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type TagTemplateField struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` - Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` - DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` - Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` - DataType string `protobuf:"bytes,5,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` - Options []string `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"` - Required bool `protobuf:"varint,7,opt,name=required,proto3" json:"required,omitempty"` - CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` - UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` -} - -func (x *TagTemplateField) Reset() { - *x = TagTemplateField{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[100] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *TagTemplateField) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TagTemplateField) ProtoMessage() {} - -func (x *TagTemplateField) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[100] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TagTemplateField.ProtoReflect.Descriptor instead. -func (*TagTemplateField) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{100} -} - -func (x *TagTemplateField) GetId() uint32 { - if x != nil { - return x.Id - } - return 0 -} - -func (x *TagTemplateField) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *TagTemplateField) GetDisplayName() string { - if x != nil { - return x.DisplayName - } - return "" -} - -func (x *TagTemplateField) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *TagTemplateField) GetDataType() string { - if x != nil { - return x.DataType - } - return "" -} - -func (x *TagTemplateField) GetOptions() []string { - if x != nil { - return x.Options - } - return nil -} - -func (x *TagTemplateField) GetRequired() bool { - if x != nil { - return x.Required - } - return false -} - -func (x *TagTemplateField) GetCreatedAt() *timestamppb.Timestamp { - if x != nil { - return x.CreatedAt - } - return nil -} - -func (x *TagTemplateField) GetUpdatedAt() *timestamppb.Timestamp { - if x != nil { - return x.UpdatedAt - } - return nil -} - -type Type struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` -} - -func (x *Type) Reset() { - *x = Type{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[101] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Type) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Type) ProtoMessage() {} - -func (x *Type) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[101] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Type.ProtoReflect.Descriptor instead. -func (*Type) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{101} -} - -func (x *Type) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Type) GetCount() uint32 { - if x != nil { - return x.Count - } - return 0 -} - -type Namespace struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` - State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` - Metadata *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` -} - -func (x *Namespace) Reset() { - *x = Namespace{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[102] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Namespace) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Namespace) ProtoMessage() {} - -func (x *Namespace) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[102] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Namespace.ProtoReflect.Descriptor instead. -func (*Namespace) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{102} -} - -func (x *Namespace) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *Namespace) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Namespace) GetState() string { - if x != nil { - return x.State - } - return "" -} - -func (x *Namespace) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -type GetGraphResponse_ProbesInfo struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Latest *Probe `protobuf:"bytes,1,opt,name=latest,proto3" json:"latest,omitempty"` -} - -func (x *GetGraphResponse_ProbesInfo) Reset() { - *x = GetGraphResponse_ProbesInfo{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[106] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGraphResponse_ProbesInfo) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGraphResponse_ProbesInfo) ProtoMessage() {} - -func (x *GetGraphResponse_ProbesInfo) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[106] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGraphResponse_ProbesInfo.ProtoReflect.Descriptor instead. -func (*GetGraphResponse_ProbesInfo) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28, 0} -} - -func (x *GetGraphResponse_ProbesInfo) GetLatest() *Probe { - if x != nil { - return x.Latest - } - return nil -} - -type GetGraphResponse_NodeAttributes struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Probes *GetGraphResponse_ProbesInfo `protobuf:"bytes,1,opt,name=probes,proto3" json:"probes,omitempty"` -} - -func (x *GetGraphResponse_NodeAttributes) Reset() { - *x = GetGraphResponse_NodeAttributes{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[107] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetGraphResponse_NodeAttributes) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetGraphResponse_NodeAttributes) ProtoMessage() {} - -func (x *GetGraphResponse_NodeAttributes) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[107] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetGraphResponse_NodeAttributes.ProtoReflect.Descriptor instead. -func (*GetGraphResponse_NodeAttributes) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28, 1} -} - -func (x *GetGraphResponse_NodeAttributes) GetProbes() *GetGraphResponse_ProbesInfo { - if x != nil { - return x.Probes - } - return nil -} - -type UpsertAssetRequest_Asset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` - Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` - Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Owners []*User `protobuf:"bytes,8,rep,name=owners,proto3" json:"owners,omitempty"` - Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` -} - -func (x *UpsertAssetRequest_Asset) Reset() { - *x = UpsertAssetRequest_Asset{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[111] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertAssetRequest_Asset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertAssetRequest_Asset) ProtoMessage() {} - -func (x *UpsertAssetRequest_Asset) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[111] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertAssetRequest_Asset.ProtoReflect.Descriptor instead. -func (*UpsertAssetRequest_Asset) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{35, 0} -} - -func (x *UpsertAssetRequest_Asset) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *UpsertAssetRequest_Asset) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *UpsertAssetRequest_Asset) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *UpsertAssetRequest_Asset) GetService() string { - if x != nil { - return x.Service - } - return "" -} - -func (x *UpsertAssetRequest_Asset) GetDescription() string { - if x != nil { - return x.Description - } - return "" -} - -func (x *UpsertAssetRequest_Asset) GetData() *structpb.Struct { - if x != nil { - return x.Data - } - return nil -} - -func (x *UpsertAssetRequest_Asset) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *UpsertAssetRequest_Asset) GetOwners() []*User { - if x != nil { - return x.Owners - } - return nil -} - -func (x *UpsertAssetRequest_Asset) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -type UpsertPatchAssetRequest_Asset struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` - Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` - Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` - Description *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` - Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` - Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Owners []*User `protobuf:"bytes,8,rep,name=owners,proto3" json:"owners,omitempty"` - Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` -} - -func (x *UpsertPatchAssetRequest_Asset) Reset() { - *x = UpsertPatchAssetRequest_Asset{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[113] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *UpsertPatchAssetRequest_Asset) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UpsertPatchAssetRequest_Asset) ProtoMessage() {} - -func (x *UpsertPatchAssetRequest_Asset) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[113] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UpsertPatchAssetRequest_Asset.ProtoReflect.Descriptor instead. -func (*UpsertPatchAssetRequest_Asset) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{37, 0} -} - -func (x *UpsertPatchAssetRequest_Asset) GetUrn() string { - if x != nil { - return x.Urn - } - return "" -} - -func (x *UpsertPatchAssetRequest_Asset) GetType() string { - if x != nil { - return x.Type - } - return "" -} - -func (x *UpsertPatchAssetRequest_Asset) GetName() *wrapperspb.StringValue { - if x != nil { - return x.Name - } - return nil -} - -func (x *UpsertPatchAssetRequest_Asset) GetService() string { - if x != nil { - return x.Service - } - return "" -} - -func (x *UpsertPatchAssetRequest_Asset) GetDescription() *wrapperspb.StringValue { - if x != nil { - return x.Description - } - return nil -} - -func (x *UpsertPatchAssetRequest_Asset) GetData() *structpb.Struct { - if x != nil { - return x.Data - } - return nil -} - -func (x *UpsertPatchAssetRequest_Asset) GetLabels() map[string]string { - if x != nil { - return x.Labels - } - return nil -} - -func (x *UpsertPatchAssetRequest_Asset) GetOwners() []*User { - if x != nil { - return x.Owners - } - return nil -} - -func (x *UpsertPatchAssetRequest_Asset) GetUrl() string { - if x != nil { - return x.Url - } - return "" -} - -type CreateAssetProbeRequest_Probe struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` - StatusReason string `protobuf:"bytes,2,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` - Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` - Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` - Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *CreateAssetProbeRequest_Probe) Reset() { - *x = CreateAssetProbeRequest_Probe{} - if protoimpl.UnsafeEnabled { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[115] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CreateAssetProbeRequest_Probe) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CreateAssetProbeRequest_Probe) ProtoMessage() {} - -func (x *CreateAssetProbeRequest_Probe) ProtoReflect() protoreflect.Message { - mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[115] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CreateAssetProbeRequest_Probe.ProtoReflect.Descriptor instead. -func (*CreateAssetProbeRequest_Probe) Descriptor() ([]byte, []int) { - return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{47, 0} -} - -func (x *CreateAssetProbeRequest_Probe) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *CreateAssetProbeRequest_Probe) GetStatusReason() string { - if x != nil { - return x.StatusReason - } - return "" -} - -func (x *CreateAssetProbeRequest_Probe) GetMetadata() *structpb.Struct { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *CreateAssetProbeRequest_Probe) GetTimestamp() *timestamppb.Timestamp { - if x != nil { - return x.Timestamp - } - return nil -} - -func (x *CreateAssetProbeRequest_Probe) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -var File_raystack_compass_v1beta1_service_proto protoreflect.FileDescriptor - -var file_raystack_compass_v1beta1_service_proto_rawDesc = []byte{ - 0x0a, 0x26, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, - 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2f, 0x77, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x17, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x65, 0x2f, 0x76, 0x61, 0x6c, 0x69, - 0x64, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xe8, 0x02, 0x0a, 0x18, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x24, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, - 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, - 0x01, 0x52, 0x08, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, - 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x20, 0x0a, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x1c, 0x0a, - 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x09, 0x64, - 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, - 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, - 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, - 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x55, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, - 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x38, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x69, 0x73, 0x63, - 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xfb, 0x01, 0x0a, - 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, - 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1b, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, - 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, - 0x18, 0x01, 0x28, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x06, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, - 0x07, 0x92, 0x01, 0x04, 0x18, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x12, 0x28, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, 0x18, 0x01, 0x28, 0x01, 0x52, - 0x09, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x18, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x26, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, - 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x51, - 0x0a, 0x15, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0x96, 0x02, 0x0a, 0x16, 0x50, 0x61, 0x74, 0x63, 0x68, 0x44, 0x69, 0x73, 0x63, 0x75, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x05, - 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, - 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1c, 0x0a, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, - 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, - 0x01, 0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, - 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x22, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, - 0x18, 0x01, 0x28, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x22, 0x0a, 0x06, - 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, - 0x07, 0x92, 0x01, 0x04, 0x18, 0x01, 0x28, 0x01, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x12, 0x28, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, 0x18, 0x01, 0x28, 0x01, 0x52, - 0x09, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x22, 0x58, 0x0a, 0x14, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x75, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1b, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x22, 0x19, 0x0a, 0x17, 0x50, 0x61, 0x74, 0x63, 0x68, 0x44, 0x69, 0x73, - 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x27, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0xc4, 0x01, 0x0a, 0x15, 0x47, 0x65, 0x74, - 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x75, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, - 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, - 0x01, 0x01, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, - 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, - 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, - 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, - 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, - 0x4f, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0x48, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, - 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x4b, 0x0a, 0x12, 0x47, 0x65, - 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x35, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x68, 0x0a, 0x14, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x04, 0x62, 0x6f, 0x64, - 0x79, 0x22, 0x17, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4b, 0x0a, 0x14, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x75, - 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x17, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x9f, 0x04, 0x0a, 0x13, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, - 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x20, 0x0a, 0x06, 0x72, 0x61, 0x6e, 0x6b, 0x62, 0x79, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, - 0x52, 0x06, 0x72, 0x61, 0x6e, 0x6b, 0x62, 0x79, 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, - 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x51, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x39, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x4e, 0x0a, 0x05, 0x71, 0x75, - 0x65, 0x72, 0x79, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x12, 0x31, 0x0a, 0x0e, 0x69, 0x6e, - 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, - 0x28, 0x09, 0x42, 0x0a, 0xfa, 0x42, 0x07, 0x92, 0x01, 0x04, 0x18, 0x01, 0x28, 0x01, 0x52, 0x0d, - 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x21, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, - 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x12, 0x3b, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x65, 0x61, 0x72, 0x63, - 0x68, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x1a, 0x39, 0x0a, - 0x0b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x38, 0x0a, 0x0a, 0x51, 0x75, 0x65, 0x72, - 0x79, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x22, 0x87, 0x01, 0x0a, 0x0b, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x46, 0x6c, 0x61, - 0x67, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x69, 0x73, 0x5f, 0x63, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x5f, - 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x73, - 0x43, 0x6f, 0x6c, 0x75, 0x6d, 0x6e, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x23, 0x0a, 0x0d, - 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x66, 0x75, 0x7a, 0x7a, 0x79, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x46, 0x75, 0x7a, 0x7a, - 0x79, 0x12, 0x29, 0x0a, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x68, 0x69, 0x67, 0x68, - 0x6c, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x65, 0x6e, 0x61, - 0x62, 0x6c, 0x65, 0x48, 0x69, 0x67, 0x68, 0x6c, 0x69, 0x67, 0x68, 0x74, 0x22, 0x4b, 0x0a, 0x14, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x34, 0x0a, 0x14, 0x53, 0x75, 0x67, - 0x67, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x22, - 0x2b, 0x0a, 0x15, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x8b, 0x02, 0x0a, - 0x12, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x79, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x92, 0x01, 0x02, 0x08, 0x01, 0x52, 0x07, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x79, 0x12, 0x50, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, - 0x79, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x69, 0x6e, 0x63, - 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, - 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, - 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x1a, - 0x39, 0x0a, 0x0b, 0x46, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, - 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, - 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x5e, 0x0a, 0x13, 0x47, 0x72, - 0x6f, 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x47, 0x0a, 0x0c, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x0b, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x22, 0x8e, 0x01, 0x0a, 0x0a, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x47, 0x0a, 0x0c, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x24, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, - 0x64, 0x73, 0x12, 0x37, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x22, 0x4a, 0x0a, 0x0a, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x4b, 0x65, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x67, 0x72, 0x6f, - 0x75, 0x70, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xe1, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x47, - 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x12, 0x14, 0x0a, - 0x05, 0x6c, 0x65, 0x76, 0x65, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x6c, 0x65, - 0x76, 0x65, 0x6c, 0x12, 0x3b, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x1d, 0xfa, 0x42, 0x1a, 0x72, 0x18, 0x52, 0x08, 0x75, - 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x52, 0x0a, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x52, 0x00, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x2c, 0x0a, 0x0f, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, - 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0e, 0x77, 0x69, 0x74, - 0x68, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x27, - 0x0a, 0x0f, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0e, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x77, 0x69, 0x74, 0x68, - 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x22, 0xc8, 0x03, 0x0a, 0x10, - 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, - 0x65, 0x45, 0x64, 0x67, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x58, 0x0a, 0x0a, 0x6e, - 0x6f, 0x64, 0x65, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x39, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, - 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, - 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x6e, 0x6f, 0x64, 0x65, - 0x41, 0x74, 0x74, 0x72, 0x73, 0x1a, 0x45, 0x0a, 0x0a, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x49, - 0x6e, 0x66, 0x6f, 0x12, 0x37, 0x0a, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, - 0x72, 0x6f, 0x62, 0x65, 0x52, 0x06, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x5f, 0x0a, 0x0e, - 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x4d, - 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, - 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, - 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x1a, 0x77, 0x0a, - 0x0e, 0x4e, 0x6f, 0x64, 0x65, 0x41, 0x74, 0x74, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x4f, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x39, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, - 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x4e, 0x6f, 0x64, - 0x65, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, - 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9c, 0x02, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x6c, - 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, - 0x01, 0x71, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, - 0x01, 0x01, 0x52, 0x01, 0x71, 0x12, 0x23, 0x0a, 0x08, 0x71, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, - 0x01, 0x52, 0x07, 0x71, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x1e, 0x0a, 0x05, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, - 0xd0, 0x01, 0x01, 0x52, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x08, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, - 0x12, 0x4a, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, 0x61, 0x74, - 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x37, 0x0a, 0x09, - 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x49, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, - 0x79, 0x70, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, - 0x22, 0xe4, 0x03, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x01, 0x71, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x01, 0x71, - 0x12, 0x23, 0x0a, 0x08, 0x71, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x07, 0x71, 0x46, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x1e, 0x0a, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x12, 0x24, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, - 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, - 0x01, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x1c, 0x0a, 0x04, 0x73, - 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, - 0xd0, 0x01, 0x01, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, 0x26, 0x0a, 0x09, 0x64, 0x69, 0x72, - 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, - 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x4b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, - 0x37, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, - 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x44, - 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x1d, - 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, - 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, - 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x12, 0x1d, 0x0a, 0x0a, 0x77, 0x69, 0x74, 0x68, 0x5f, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x0a, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x09, 0x77, 0x69, 0x74, 0x68, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x12, - 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x1a, 0x37, - 0x0a, 0x09, 0x44, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, - 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, - 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, - 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x61, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x6c, - 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x52, 0x05, 0x74, 0x6f, 0x74, 0x61, 0x6c, 0x22, 0x25, 0x0a, 0x13, 0x47, 0x65, - 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x4b, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, - 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x97, - 0x05, 0x0a, 0x12, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x48, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, - 0x43, 0x0a, 0x09, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, - 0x6e, 0x65, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x75, 0x70, 0x73, 0x74, 0x72, - 0x65, 0x61, 0x6d, 0x73, 0x12, 0x47, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, - 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, - 0x52, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x1f, 0x0a, - 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x04, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x1a, 0x87, - 0x03, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, - 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x20, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, - 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, - 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, - 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x56, 0x0a, 0x06, 0x6c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x3e, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, - 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x12, 0x36, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, - 0x72, 0x6c, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x39, 0x0a, - 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x25, 0x0a, 0x13, 0x55, 0x70, 0x73, 0x65, - 0x72, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0xa3, 0x06, 0x0a, 0x17, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x74, 0x63, 0x68, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4d, 0x0a, 0x05, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x74, 0x63, - 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, 0x43, 0x0a, 0x09, 0x75, 0x70, - 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x09, 0x75, 0x70, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, - 0x47, 0x0a, 0x0b, 0x64, 0x6f, 0x77, 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x18, 0x03, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x0b, 0x64, 0x6f, 0x77, - 0x6e, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x73, 0x12, 0x2b, 0x0a, 0x11, 0x6f, 0x76, 0x65, 0x72, - 0x77, 0x72, 0x69, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x10, 0x6f, 0x76, 0x65, 0x72, 0x77, 0x72, 0x69, 0x74, 0x65, 0x4c, 0x69, - 0x6e, 0x65, 0x61, 0x67, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, - 0x6f, 0x6e, 0x6c, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0a, 0x75, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4f, 0x6e, 0x6c, 0x79, 0x1a, 0xdc, 0x03, 0x0a, 0x05, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, - 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3a, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, - 0x75, 0x65, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x48, 0x0a, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x12, 0x5b, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x07, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x43, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x70, 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x4c, 0x61, 0x62, - 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x12, 0x36, 0x0a, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, - 0x52, 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x1a, 0x39, 0x0a, 0x0b, 0x4c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2a, 0x0a, 0x18, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x50, - 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x24, 0x0a, 0x12, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x15, 0x0a, 0x13, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, - 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x67, 0x61, - 0x7a, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1d, 0x0a, 0x04, 0x73, - 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, - 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x66, - 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, - 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x50, 0x0a, - 0x1a, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x67, 0x61, 0x7a, - 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0x71, 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, - 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, - 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, - 0x21, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x42, - 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x22, 0x55, 0x0a, 0x1e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x65, - 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x44, 0x0a, 0x18, 0x47, 0x65, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, - 0x50, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x56, 0x65, 0x72, - 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x22, 0xdd, 0x02, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x24, 0x0a, - 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x42, 0x07, 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, - 0x55, 0x72, 0x6e, 0x12, 0x4d, 0x0a, 0x05, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x05, 0x70, 0x72, 0x6f, - 0x62, 0x65, 0x1a, 0xcc, 0x01, 0x0a, 0x05, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x1f, 0x0a, 0x06, - 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x01, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, - 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, - 0x6f, 0x6e, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, - 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x2a, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, - 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x78, 0x0a, - 0x1b, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, 0x04, - 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, 0x52, - 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x53, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5d, 0x0a, 0x19, - 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, - 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, - 0x40, 0x01, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, - 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, - 0x00, 0x40, 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x51, 0x0a, 0x1a, 0x47, - 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, - 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x35, - 0x0a, 0x18, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, - 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x50, 0x0a, 0x19, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, - 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x33, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x72, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, - 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x23, 0x0a, 0x11, 0x53, 0x74, 0x61, 0x72, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x2f, 0x0a, 0x12, 0x55, - 0x6e, 0x73, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x15, 0x0a, 0x13, - 0x55, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0xc3, 0x02, 0x0a, 0x17, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x44, 0x69, 0x73, - 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x20, 0x0a, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x06, 0x66, 0x69, 0x6c, 0x74, 0x65, - 0x72, 0x12, 0x1c, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, - 0x1e, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, - 0x1e, 0x0a, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x08, - 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x05, 0x61, 0x73, 0x73, 0x65, 0x74, 0x12, - 0x20, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, - 0x73, 0x12, 0x1c, 0x0a, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x04, 0x73, 0x6f, 0x72, 0x74, 0x12, - 0x26, 0x0a, 0x09, 0x64, 0x69, 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x42, 0x08, 0xfa, 0x42, 0x05, 0x72, 0x03, 0xd0, 0x01, 0x01, 0x52, 0x09, 0x64, 0x69, - 0x72, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, 0x01, - 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x21, 0x0a, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, - 0x18, 0x09, 0x20, 0x01, 0x28, 0x0d, 0x42, 0x09, 0xfa, 0x42, 0x06, 0x2a, 0x04, 0x28, 0x00, 0x40, - 0x01, 0x52, 0x06, 0x6f, 0x66, 0x66, 0x73, 0x65, 0x74, 0x22, 0x54, 0x0a, 0x18, 0x47, 0x65, 0x74, - 0x4d, 0x79, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, - 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, - 0xff, 0x01, 0x0a, 0x15, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, - 0x65, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x12, 0x41, 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, - 0x09, 0x74, 0x61, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x74, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, - 0x0a, 0x14, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x74, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x4b, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x5f, - 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, - 0x6e, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, - 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x22, - 0x55, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x41, 0x6e, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xff, 0x01, 0x0a, 0x15, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x12, 0x41, - 0x0a, 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, - 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x74, 0x61, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, - 0x73, 0x12, 0x32, 0x0a, 0x15, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x13, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x13, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x55, 0x0a, 0x15, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, - 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x65, 0x6d, - 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x22, 0x18, 0x0a, 0x16, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x35, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x54, 0x61, 0x67, 0x73, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x22, 0x4e, 0x0a, - 0x19, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x42, 0x79, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x31, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d, 0x0a, - 0x19, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x22, 0x57, 0x0a, 0x1a, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xb5, 0x01, 0x0a, 0x18, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x72, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, - 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, - 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, - 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x06, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x56, 0x0a, - 0x19, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x64, 0x61, - 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3a, 0x0a, 0x15, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x54, - 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x21, - 0x0a, 0x0c, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, - 0x6e, 0x22, 0x53, 0x0a, 0x16, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0xc6, 0x01, 0x0a, 0x18, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, - 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, - 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x06, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, - 0x56, 0x0a, 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, - 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x39, 0x0a, 0x04, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, - 0x65, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x3d, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, - 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x22, 0x1b, 0x0a, 0x19, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x90, 0x01, 0x0a, 0x16, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1b, - 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, 0xfa, 0x42, - 0x04, 0x72, 0x02, 0x10, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, - 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x29, 0x0a, 0x17, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, - 0x64, 0x22, 0x27, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x22, 0x59, 0x0a, 0x14, 0x47, 0x65, - 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x41, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, - 0x73, 0x70, 0x61, 0x63, 0x65, 0x22, 0x75, 0x0a, 0x16, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, - 0x6e, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x19, 0x0a, 0x17, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x17, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x22, 0x5d, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, - 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0a, 0x6e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x52, 0x0a, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x22, - 0xd2, 0x01, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x75, 0x75, 0x69, 0x64, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, - 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x6d, 0x61, - 0x69, 0x6c, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x18, 0x04, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x22, 0x84, 0x01, 0x0a, 0x06, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x12, - 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, - 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x2a, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x04, 0x66, - 0x72, 0x6f, 0x6d, 0x12, 0x26, 0x0a, 0x02, 0x74, 0x6f, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x02, 0x74, 0x6f, 0x22, 0xeb, 0x05, 0x0a, 0x05, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, - 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2b, 0x0a, 0x04, 0x64, - 0x61, 0x74, 0x61, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, - 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x12, 0x43, 0x0a, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x41, 0x73, 0x73, 0x65, 0x74, 0x2e, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, - 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x36, 0x0a, - 0x06, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x06, 0x6f, - 0x77, 0x6e, 0x65, 0x72, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x3d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x0b, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x3e, - 0x0a, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x18, 0x0c, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x52, 0x09, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x6c, 0x6f, 0x67, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x37, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, - 0x18, 0x10, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x06, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x12, - 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x5f, 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x11, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x09, 0x69, 0x73, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x1a, 0x39, - 0x0a, 0x0b, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, - 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, - 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, - 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x9b, 0x02, 0x0a, 0x05, 0x50, 0x72, - 0x6f, 0x62, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x02, 0x69, 0x64, 0x12, 0x1b, 0x0a, 0x09, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x75, 0x72, 0x6e, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x55, 0x72, 0x6e, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, - 0x75, 0x73, 0x5f, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x33, 0x0a, - 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, - 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, - 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, - 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x39, 0x0a, 0x0a, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xea, 0x02, 0x0a, 0x0a, 0x44, 0x69, 0x73, 0x63, - 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04, - 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, - 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, - 0x74, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x06, 0x6c, 0x61, 0x62, 0x65, - 0x6c, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x18, 0x07, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x06, 0x61, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x73, - 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x61, - 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x65, 0x73, 0x12, 0x34, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, - 0x72, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x22, 0xbd, 0x02, 0x0a, 0x07, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x23, 0x0a, 0x0d, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x64, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, - 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x34, 0x0a, 0x05, 0x6f, 0x77, 0x6e, - 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, - 0x3d, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x62, 0x79, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, - 0x73, 0x65, 0x72, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x42, 0x79, 0x12, 0x39, - 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, - 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, - 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x64, 0x41, 0x74, 0x22, 0x6a, 0x0a, 0x0b, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, 0x45, - 0x64, 0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x74, - 0x61, 0x72, 0x67, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x74, 0x61, 0x72, - 0x67, 0x65, 0x74, 0x12, 0x2b, 0x0a, 0x04, 0x70, 0x72, 0x6f, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x70, 0x72, 0x6f, 0x70, - 0x22, 0x55, 0x0a, 0x0b, 0x4c, 0x69, 0x6e, 0x65, 0x61, 0x67, 0x65, 0x4e, 0x6f, 0x64, 0x65, 0x12, - 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, - 0x6e, 0x12, 0x16, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, - 0x02, 0x18, 0x01, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x73, 0x65, 0x72, - 0x76, 0x69, 0x63, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x02, 0x18, 0x01, 0x52, 0x07, - 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x03, 0x54, 0x61, 0x67, 0x12, - 0x19, 0x0a, 0x08, 0x61, 0x73, 0x73, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x07, 0x61, 0x73, 0x73, 0x65, 0x74, 0x49, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x74, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0b, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x72, 0x6e, 0x12, 0x41, 0x0a, - 0x0a, 0x74, 0x61, 0x67, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x22, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, - 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x09, 0x74, 0x61, 0x67, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x73, - 0x12, 0x32, 0x0a, 0x15, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x5f, 0x64, 0x69, 0x73, - 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x13, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x31, 0x0a, 0x14, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, - 0x5f, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x13, 0x74, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x44, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xc0, 0x03, 0x0a, 0x08, 0x54, 0x61, 0x67, 0x56, - 0x61, 0x6c, 0x75, 0x65, 0x12, 0x19, 0x0a, 0x08, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x49, 0x64, 0x12, - 0x37, 0x0a, 0x0b, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x0a, 0x66, 0x69, - 0x65, 0x6c, 0x64, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x5f, 0x75, 0x72, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x69, 0x65, - 0x6c, 0x64, 0x55, 0x72, 0x6e, 0x12, 0x2c, 0x0a, 0x12, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, - 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x10, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, - 0x61, 0x6d, 0x65, 0x12, 0x2b, 0x0a, 0x11, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x65, 0x73, - 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, - 0x66, 0x69, 0x65, 0x6c, 0x64, 0x44, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x26, 0x0a, 0x0f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x74, - 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, - 0x44, 0x61, 0x74, 0x61, 0x54, 0x79, 0x70, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x69, 0x65, 0x6c, - 0x64, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, - 0x0c, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x25, 0x0a, - 0x0e, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, - 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x65, 0x71, 0x75, - 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, - 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, - 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, - 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, - 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x0a, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, - 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0x9e, 0x02, 0x0a, 0x0b, 0x54, - 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, - 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6e, 0x12, 0x21, 0x0a, 0x0c, - 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x42, 0x0a, 0x06, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x2a, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x54, 0x61, 0x67, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x52, 0x06, 0x66, - 0x69, 0x65, 0x6c, 0x64, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, - 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, 0x22, 0xc2, 0x02, 0x0a, 0x10, - 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x46, 0x69, 0x65, 0x6c, 0x64, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, - 0x72, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x5f, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, - 0x79, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, - 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, - 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x64, 0x61, 0x74, 0x61, 0x5f, - 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x64, 0x61, 0x74, 0x61, - 0x54, 0x79, 0x70, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, - 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x1a, - 0x0a, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, - 0x52, 0x08, 0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x64, 0x12, 0x39, 0x0a, 0x0a, 0x63, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x63, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, - 0x5f, 0x61, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, - 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x41, 0x74, - 0x22, 0x30, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, - 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x63, 0x6f, 0x75, - 0x6e, 0x74, 0x22, 0x83, 0x01, 0x0a, 0x09, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, - 0x12, 0x1b, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x07, - 0xfa, 0x42, 0x04, 0x72, 0x02, 0x10, 0x03, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, - 0x61, 0x74, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52, 0x08, - 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x32, 0xde, 0x28, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x7e, 0x0a, 0x11, 0x47, - 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, - 0x6c, 0x6c, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x10, 0x43, - 0x72, 0x65, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x31, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x44, - 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x0f, - 0x50, 0x61, 0x74, 0x63, 0x68, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x12, - 0x30, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x74, 0x63, 0x68, - 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x61, 0x74, - 0x63, 0x68, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2f, 0x2e, 0x72, - 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x00, 0x12, 0x69, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, - 0x2b, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, - 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, - 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65, - 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0d, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x43, - 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x72, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, - 0x74, 0x12, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0c, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, - 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, - 0x65, 0x61, 0x72, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x72, 0x0a, 0x0d, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x53, 0x75, 0x67, 0x67, 0x65, 0x73, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0b, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x2c, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x63, 0x0a, 0x08, 0x47, 0x65, 0x74, 0x47, 0x72, - 0x61, 0x70, 0x68, 0x12, 0x29, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, - 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, - 0x65, 0x74, 0x47, 0x72, 0x61, 0x70, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2a, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x61, - 0x70, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0b, - 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2c, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, - 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x79, 0x70, 0x65, 0x73, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0c, 0x47, 0x65, - 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x2d, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0c, 0x47, - 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x49, 0x44, 0x12, 0x2d, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, - 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, - 0x49, 0x44, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0b, - 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x10, 0x55, 0x70, - 0x73, 0x65, 0x72, 0x74, 0x50, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x31, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, - 0x50, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x73, - 0x65, 0x72, 0x74, 0x50, 0x61, 0x74, 0x63, 0x68, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0b, 0x44, 0x65, 0x6c, 0x65, 0x74, - 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x67, 0x61, 0x7a, 0x65, 0x72, 0x73, 0x12, 0x33, 0x2e, 0x72, - 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x53, 0x74, 0x61, 0x72, 0x67, 0x61, 0x7a, 0x65, 0x72, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x34, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x72, 0x67, 0x61, 0x7a, 0x65, 0x72, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x8d, 0x01, 0x0a, 0x16, 0x47, 0x65, - 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, - 0x74, 0x6f, 0x72, 0x79, 0x12, 0x37, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, - 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x38, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x11, 0x47, 0x65, 0x74, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x32, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x42, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, - 0x74, 0x41, 0x73, 0x73, 0x65, 0x74, 0x42, 0x79, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x10, 0x43, 0x72, 0x65, - 0x61, 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x12, 0x31, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x1a, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x41, 0x73, 0x73, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x87, 0x01, 0x0a, 0x14, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, - 0x35, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, - 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x36, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x55, 0x73, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, - 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, - 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, - 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x12, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, 0x2e, 0x72, - 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, - 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, - 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, - 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, 0x61, 0x72, 0x72, 0x65, - 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x53, 0x74, - 0x61, 0x72, 0x72, 0x65, 0x64, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x66, 0x0a, 0x09, 0x53, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x12, 0x2a, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, - 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6c, 0x0a, 0x0b, - 0x55, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2c, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, - 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x6e, 0x73, 0x74, 0x61, 0x72, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7b, 0x0a, 0x10, 0x47, 0x65, - 0x74, 0x4d, 0x79, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x31, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4d, 0x79, 0x44, - 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x1a, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, - 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, - 0x4d, 0x79, 0x44, 0x69, 0x73, 0x63, 0x75, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, - 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x61, 0x79, - 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, - 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x93, - 0x01, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x41, 0x6e, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x39, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x42, 0x79, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x41, 0x6e, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x41, - 0x6e, 0x64, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, - 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, - 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x2f, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, - 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x54, 0x61, 0x67, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, - 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x12, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x73, 0x42, 0x79, 0x41, - 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, - 0x73, 0x42, 0x79, 0x41, 0x73, 0x73, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x81, 0x01, 0x0a, 0x12, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x12, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, 0x54, 0x61, 0x67, 0x54, 0x65, - 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x34, - 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, - 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x6c, 0x6c, - 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, - 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x32, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, - 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, - 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x12, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x61, 0x79, 0x73, - 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, - 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, - 0x11, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x12, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, - 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x7e, 0x0a, - 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, - 0x74, 0x65, 0x12, 0x32, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, 0x61, 0x74, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x33, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x54, 0x61, 0x67, 0x54, 0x65, 0x6d, 0x70, 0x6c, - 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, - 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, - 0x12, 0x30, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x72, - 0x65, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x6f, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x4e, 0x61, - 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x2d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, - 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, - 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2e, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, - 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, - 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x78, 0x0a, 0x0f, 0x55, 0x70, 0x64, 0x61, - 0x74, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x12, 0x30, 0x2e, 0x72, 0x61, - 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, - 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, 0x61, 0x6d, - 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, - 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4e, - 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x00, 0x12, 0x75, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, - 0x61, 0x63, 0x65, 0x73, 0x12, 0x2f, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, - 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, - 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, - 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x42, 0xe0, 0x01, 0x0a, 0x1c, 0x63, 0x6f, - 0x6d, 0x2e, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x63, 0x6f, 0x6d, 0x70, 0x61, - 0x73, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x0c, 0x53, 0x65, 0x72, 0x76, - 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2f, - 0x63, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xa2, 0x02, 0x03, 0x52, - 0x43, 0x58, 0xaa, 0x02, 0x18, 0x52, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2e, 0x43, 0x6f, - 0x6d, 0x70, 0x61, 0x73, 0x73, 0x2e, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xca, 0x02, 0x18, - 0x52, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x5c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, - 0x5c, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0xe2, 0x02, 0x24, 0x52, 0x61, 0x79, 0x73, 0x74, - 0x61, 0x63, 0x6b, 0x5c, 0x43, 0x6f, 0x6d, 0x70, 0x61, 0x73, 0x73, 0x5c, 0x56, 0x31, 0x62, 0x65, - 0x74, 0x61, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x1a, 0x52, 0x61, 0x79, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x3a, 0x3a, 0x43, 0x6f, 0x6d, 0x70, - 0x61, 0x73, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_raystack_compass_v1beta1_service_proto_rawDescOnce sync.Once - file_raystack_compass_v1beta1_service_proto_rawDescData = file_raystack_compass_v1beta1_service_proto_rawDesc -) - -func file_raystack_compass_v1beta1_service_proto_rawDescGZIP() []byte { - file_raystack_compass_v1beta1_service_proto_rawDescOnce.Do(func() { - file_raystack_compass_v1beta1_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_raystack_compass_v1beta1_service_proto_rawDescData) - }) - return file_raystack_compass_v1beta1_service_proto_rawDescData -} - -var file_raystack_compass_v1beta1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 117) -var file_raystack_compass_v1beta1_service_proto_goTypes = []interface{}{ - (*GetAllDiscussionsRequest)(nil), // 0: raystack.compass.v1beta1.GetAllDiscussionsRequest - (*GetAllDiscussionsResponse)(nil), // 1: raystack.compass.v1beta1.GetAllDiscussionsResponse - (*CreateDiscussionRequest)(nil), // 2: raystack.compass.v1beta1.CreateDiscussionRequest - (*CreateDiscussionResponse)(nil), // 3: raystack.compass.v1beta1.CreateDiscussionResponse - (*GetDiscussionRequest)(nil), // 4: raystack.compass.v1beta1.GetDiscussionRequest - (*GetDiscussionResponse)(nil), // 5: raystack.compass.v1beta1.GetDiscussionResponse - (*PatchDiscussionRequest)(nil), // 6: raystack.compass.v1beta1.PatchDiscussionRequest - (*CreateCommentRequest)(nil), // 7: raystack.compass.v1beta1.CreateCommentRequest - (*PatchDiscussionResponse)(nil), // 8: raystack.compass.v1beta1.PatchDiscussionResponse - (*CreateCommentResponse)(nil), // 9: raystack.compass.v1beta1.CreateCommentResponse - (*GetAllCommentsRequest)(nil), // 10: raystack.compass.v1beta1.GetAllCommentsRequest - (*GetAllCommentsResponse)(nil), // 11: raystack.compass.v1beta1.GetAllCommentsResponse - (*GetCommentRequest)(nil), // 12: raystack.compass.v1beta1.GetCommentRequest - (*GetCommentResponse)(nil), // 13: raystack.compass.v1beta1.GetCommentResponse - (*UpdateCommentRequest)(nil), // 14: raystack.compass.v1beta1.UpdateCommentRequest - (*UpdateCommentResponse)(nil), // 15: raystack.compass.v1beta1.UpdateCommentResponse - (*DeleteCommentRequest)(nil), // 16: raystack.compass.v1beta1.DeleteCommentRequest - (*DeleteCommentResponse)(nil), // 17: raystack.compass.v1beta1.DeleteCommentResponse - (*SearchAssetsRequest)(nil), // 18: raystack.compass.v1beta1.SearchAssetsRequest - (*SearchFlags)(nil), // 19: raystack.compass.v1beta1.SearchFlags - (*SearchAssetsResponse)(nil), // 20: raystack.compass.v1beta1.SearchAssetsResponse - (*SuggestAssetsRequest)(nil), // 21: raystack.compass.v1beta1.SuggestAssetsRequest - (*SuggestAssetsResponse)(nil), // 22: raystack.compass.v1beta1.SuggestAssetsResponse - (*GroupAssetsRequest)(nil), // 23: raystack.compass.v1beta1.GroupAssetsRequest - (*GroupAssetsResponse)(nil), // 24: raystack.compass.v1beta1.GroupAssetsResponse - (*AssetGroup)(nil), // 25: raystack.compass.v1beta1.AssetGroup - (*GroupField)(nil), // 26: raystack.compass.v1beta1.GroupField - (*GetGraphRequest)(nil), // 27: raystack.compass.v1beta1.GetGraphRequest - (*GetGraphResponse)(nil), // 28: raystack.compass.v1beta1.GetGraphResponse - (*GetAllTypesRequest)(nil), // 29: raystack.compass.v1beta1.GetAllTypesRequest - (*GetAllTypesResponse)(nil), // 30: raystack.compass.v1beta1.GetAllTypesResponse - (*GetAllAssetsRequest)(nil), // 31: raystack.compass.v1beta1.GetAllAssetsRequest - (*GetAllAssetsResponse)(nil), // 32: raystack.compass.v1beta1.GetAllAssetsResponse - (*GetAssetByIDRequest)(nil), // 33: raystack.compass.v1beta1.GetAssetByIDRequest - (*GetAssetByIDResponse)(nil), // 34: raystack.compass.v1beta1.GetAssetByIDResponse - (*UpsertAssetRequest)(nil), // 35: raystack.compass.v1beta1.UpsertAssetRequest - (*UpsertAssetResponse)(nil), // 36: raystack.compass.v1beta1.UpsertAssetResponse - (*UpsertPatchAssetRequest)(nil), // 37: raystack.compass.v1beta1.UpsertPatchAssetRequest - (*UpsertPatchAssetResponse)(nil), // 38: raystack.compass.v1beta1.UpsertPatchAssetResponse - (*DeleteAssetRequest)(nil), // 39: raystack.compass.v1beta1.DeleteAssetRequest - (*DeleteAssetResponse)(nil), // 40: raystack.compass.v1beta1.DeleteAssetResponse - (*GetAssetStargazersRequest)(nil), // 41: raystack.compass.v1beta1.GetAssetStargazersRequest - (*GetAssetStargazersResponse)(nil), // 42: raystack.compass.v1beta1.GetAssetStargazersResponse - (*GetAssetVersionHistoryRequest)(nil), // 43: raystack.compass.v1beta1.GetAssetVersionHistoryRequest - (*GetAssetVersionHistoryResponse)(nil), // 44: raystack.compass.v1beta1.GetAssetVersionHistoryResponse - (*GetAssetByVersionRequest)(nil), // 45: raystack.compass.v1beta1.GetAssetByVersionRequest - (*GetAssetByVersionResponse)(nil), // 46: raystack.compass.v1beta1.GetAssetByVersionResponse - (*CreateAssetProbeRequest)(nil), // 47: raystack.compass.v1beta1.CreateAssetProbeRequest - (*CreateAssetProbeResponse)(nil), // 48: raystack.compass.v1beta1.CreateAssetProbeResponse - (*GetUserStarredAssetsRequest)(nil), // 49: raystack.compass.v1beta1.GetUserStarredAssetsRequest - (*GetUserStarredAssetsResponse)(nil), // 50: raystack.compass.v1beta1.GetUserStarredAssetsResponse - (*GetMyStarredAssetsRequest)(nil), // 51: raystack.compass.v1beta1.GetMyStarredAssetsRequest - (*GetMyStarredAssetsResponse)(nil), // 52: raystack.compass.v1beta1.GetMyStarredAssetsResponse - (*GetMyStarredAssetRequest)(nil), // 53: raystack.compass.v1beta1.GetMyStarredAssetRequest - (*GetMyStarredAssetResponse)(nil), // 54: raystack.compass.v1beta1.GetMyStarredAssetResponse - (*StarAssetRequest)(nil), // 55: raystack.compass.v1beta1.StarAssetRequest - (*StarAssetResponse)(nil), // 56: raystack.compass.v1beta1.StarAssetResponse - (*UnstarAssetRequest)(nil), // 57: raystack.compass.v1beta1.UnstarAssetRequest - (*UnstarAssetResponse)(nil), // 58: raystack.compass.v1beta1.UnstarAssetResponse - (*GetMyDiscussionsRequest)(nil), // 59: raystack.compass.v1beta1.GetMyDiscussionsRequest - (*GetMyDiscussionsResponse)(nil), // 60: raystack.compass.v1beta1.GetMyDiscussionsResponse - (*CreateTagAssetRequest)(nil), // 61: raystack.compass.v1beta1.CreateTagAssetRequest - (*CreateTagAssetResponse)(nil), // 62: raystack.compass.v1beta1.CreateTagAssetResponse - (*GetTagByAssetAndTemplateRequest)(nil), // 63: raystack.compass.v1beta1.GetTagByAssetAndTemplateRequest - (*GetTagByAssetAndTemplateResponse)(nil), // 64: raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse - (*UpdateTagAssetRequest)(nil), // 65: raystack.compass.v1beta1.UpdateTagAssetRequest - (*UpdateTagAssetResponse)(nil), // 66: raystack.compass.v1beta1.UpdateTagAssetResponse - (*DeleteTagAssetRequest)(nil), // 67: raystack.compass.v1beta1.DeleteTagAssetRequest - (*DeleteTagAssetResponse)(nil), // 68: raystack.compass.v1beta1.DeleteTagAssetResponse - (*GetAllTagsByAssetRequest)(nil), // 69: raystack.compass.v1beta1.GetAllTagsByAssetRequest - (*GetAllTagsByAssetResponse)(nil), // 70: raystack.compass.v1beta1.GetAllTagsByAssetResponse - (*GetAllTagTemplatesRequest)(nil), // 71: raystack.compass.v1beta1.GetAllTagTemplatesRequest - (*GetAllTagTemplatesResponse)(nil), // 72: raystack.compass.v1beta1.GetAllTagTemplatesResponse - (*CreateTagTemplateRequest)(nil), // 73: raystack.compass.v1beta1.CreateTagTemplateRequest - (*CreateTagTemplateResponse)(nil), // 74: raystack.compass.v1beta1.CreateTagTemplateResponse - (*GetTagTemplateRequest)(nil), // 75: raystack.compass.v1beta1.GetTagTemplateRequest - (*GetTagTemplateResponse)(nil), // 76: raystack.compass.v1beta1.GetTagTemplateResponse - (*UpdateTagTemplateRequest)(nil), // 77: raystack.compass.v1beta1.UpdateTagTemplateRequest - (*UpdateTagTemplateResponse)(nil), // 78: raystack.compass.v1beta1.UpdateTagTemplateResponse - (*DeleteTagTemplateRequest)(nil), // 79: raystack.compass.v1beta1.DeleteTagTemplateRequest - (*DeleteTagTemplateResponse)(nil), // 80: raystack.compass.v1beta1.DeleteTagTemplateResponse - (*CreateNamespaceRequest)(nil), // 81: raystack.compass.v1beta1.CreateNamespaceRequest - (*CreateNamespaceResponse)(nil), // 82: raystack.compass.v1beta1.CreateNamespaceResponse - (*GetNamespaceRequest)(nil), // 83: raystack.compass.v1beta1.GetNamespaceRequest - (*GetNamespaceResponse)(nil), // 84: raystack.compass.v1beta1.GetNamespaceResponse - (*UpdateNamespaceRequest)(nil), // 85: raystack.compass.v1beta1.UpdateNamespaceRequest - (*UpdateNamespaceResponse)(nil), // 86: raystack.compass.v1beta1.UpdateNamespaceResponse - (*ListNamespacesRequest)(nil), // 87: raystack.compass.v1beta1.ListNamespacesRequest - (*ListNamespacesResponse)(nil), // 88: raystack.compass.v1beta1.ListNamespacesResponse - (*User)(nil), // 89: raystack.compass.v1beta1.User - (*Change)(nil), // 90: raystack.compass.v1beta1.Change - (*Asset)(nil), // 91: raystack.compass.v1beta1.Asset - (*Probe)(nil), // 92: raystack.compass.v1beta1.Probe - (*Discussion)(nil), // 93: raystack.compass.v1beta1.Discussion - (*Comment)(nil), // 94: raystack.compass.v1beta1.Comment - (*LineageEdge)(nil), // 95: raystack.compass.v1beta1.LineageEdge - (*LineageNode)(nil), // 96: raystack.compass.v1beta1.LineageNode - (*Tag)(nil), // 97: raystack.compass.v1beta1.Tag - (*TagValue)(nil), // 98: raystack.compass.v1beta1.TagValue - (*TagTemplate)(nil), // 99: raystack.compass.v1beta1.TagTemplate - (*TagTemplateField)(nil), // 100: raystack.compass.v1beta1.TagTemplateField - (*Type)(nil), // 101: raystack.compass.v1beta1.Type - (*Namespace)(nil), // 102: raystack.compass.v1beta1.Namespace - nil, // 103: raystack.compass.v1beta1.SearchAssetsRequest.FilterEntry - nil, // 104: raystack.compass.v1beta1.SearchAssetsRequest.QueryEntry - nil, // 105: raystack.compass.v1beta1.GroupAssetsRequest.FilterEntry - (*GetGraphResponse_ProbesInfo)(nil), // 106: raystack.compass.v1beta1.GetGraphResponse.ProbesInfo - (*GetGraphResponse_NodeAttributes)(nil), // 107: raystack.compass.v1beta1.GetGraphResponse.NodeAttributes - nil, // 108: raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry - nil, // 109: raystack.compass.v1beta1.GetAllTypesRequest.DataEntry - nil, // 110: raystack.compass.v1beta1.GetAllAssetsRequest.DataEntry - (*UpsertAssetRequest_Asset)(nil), // 111: raystack.compass.v1beta1.UpsertAssetRequest.Asset - nil, // 112: raystack.compass.v1beta1.UpsertAssetRequest.Asset.LabelsEntry - (*UpsertPatchAssetRequest_Asset)(nil), // 113: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset - nil, // 114: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.LabelsEntry - (*CreateAssetProbeRequest_Probe)(nil), // 115: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe - nil, // 116: raystack.compass.v1beta1.Asset.LabelsEntry - (*structpb.Struct)(nil), // 117: google.protobuf.Struct - (*timestamppb.Timestamp)(nil), // 118: google.protobuf.Timestamp - (*structpb.Value)(nil), // 119: google.protobuf.Value - (*wrapperspb.StringValue)(nil), // 120: google.protobuf.StringValue -} -var file_raystack_compass_v1beta1_service_proto_depIdxs = []int32{ - 93, // 0: raystack.compass.v1beta1.GetAllDiscussionsResponse.data:type_name -> raystack.compass.v1beta1.Discussion - 93, // 1: raystack.compass.v1beta1.GetDiscussionResponse.data:type_name -> raystack.compass.v1beta1.Discussion - 94, // 2: raystack.compass.v1beta1.GetAllCommentsResponse.data:type_name -> raystack.compass.v1beta1.Comment - 94, // 3: raystack.compass.v1beta1.GetCommentResponse.data:type_name -> raystack.compass.v1beta1.Comment - 103, // 4: raystack.compass.v1beta1.SearchAssetsRequest.filter:type_name -> raystack.compass.v1beta1.SearchAssetsRequest.FilterEntry - 104, // 5: raystack.compass.v1beta1.SearchAssetsRequest.query:type_name -> raystack.compass.v1beta1.SearchAssetsRequest.QueryEntry - 19, // 6: raystack.compass.v1beta1.SearchAssetsRequest.flags:type_name -> raystack.compass.v1beta1.SearchFlags - 91, // 7: raystack.compass.v1beta1.SearchAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset - 105, // 8: raystack.compass.v1beta1.GroupAssetsRequest.filter:type_name -> raystack.compass.v1beta1.GroupAssetsRequest.FilterEntry - 25, // 9: raystack.compass.v1beta1.GroupAssetsResponse.asset_groups:type_name -> raystack.compass.v1beta1.AssetGroup - 26, // 10: raystack.compass.v1beta1.AssetGroup.group_fields:type_name -> raystack.compass.v1beta1.GroupField - 91, // 11: raystack.compass.v1beta1.AssetGroup.assets:type_name -> raystack.compass.v1beta1.Asset - 95, // 12: raystack.compass.v1beta1.GetGraphResponse.data:type_name -> raystack.compass.v1beta1.LineageEdge - 108, // 13: raystack.compass.v1beta1.GetGraphResponse.node_attrs:type_name -> raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry - 109, // 14: raystack.compass.v1beta1.GetAllTypesRequest.data:type_name -> raystack.compass.v1beta1.GetAllTypesRequest.DataEntry - 101, // 15: raystack.compass.v1beta1.GetAllTypesResponse.data:type_name -> raystack.compass.v1beta1.Type - 110, // 16: raystack.compass.v1beta1.GetAllAssetsRequest.data:type_name -> raystack.compass.v1beta1.GetAllAssetsRequest.DataEntry - 91, // 17: raystack.compass.v1beta1.GetAllAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset - 91, // 18: raystack.compass.v1beta1.GetAssetByIDResponse.data:type_name -> raystack.compass.v1beta1.Asset - 111, // 19: raystack.compass.v1beta1.UpsertAssetRequest.asset:type_name -> raystack.compass.v1beta1.UpsertAssetRequest.Asset - 96, // 20: raystack.compass.v1beta1.UpsertAssetRequest.upstreams:type_name -> raystack.compass.v1beta1.LineageNode - 96, // 21: raystack.compass.v1beta1.UpsertAssetRequest.downstreams:type_name -> raystack.compass.v1beta1.LineageNode - 113, // 22: raystack.compass.v1beta1.UpsertPatchAssetRequest.asset:type_name -> raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset - 96, // 23: raystack.compass.v1beta1.UpsertPatchAssetRequest.upstreams:type_name -> raystack.compass.v1beta1.LineageNode - 96, // 24: raystack.compass.v1beta1.UpsertPatchAssetRequest.downstreams:type_name -> raystack.compass.v1beta1.LineageNode - 89, // 25: raystack.compass.v1beta1.GetAssetStargazersResponse.data:type_name -> raystack.compass.v1beta1.User - 91, // 26: raystack.compass.v1beta1.GetAssetVersionHistoryResponse.data:type_name -> raystack.compass.v1beta1.Asset - 91, // 27: raystack.compass.v1beta1.GetAssetByVersionResponse.data:type_name -> raystack.compass.v1beta1.Asset - 115, // 28: raystack.compass.v1beta1.CreateAssetProbeRequest.probe:type_name -> raystack.compass.v1beta1.CreateAssetProbeRequest.Probe - 91, // 29: raystack.compass.v1beta1.GetUserStarredAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset - 91, // 30: raystack.compass.v1beta1.GetMyStarredAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset - 91, // 31: raystack.compass.v1beta1.GetMyStarredAssetResponse.data:type_name -> raystack.compass.v1beta1.Asset - 93, // 32: raystack.compass.v1beta1.GetMyDiscussionsResponse.data:type_name -> raystack.compass.v1beta1.Discussion - 98, // 33: raystack.compass.v1beta1.CreateTagAssetRequest.tag_values:type_name -> raystack.compass.v1beta1.TagValue - 97, // 34: raystack.compass.v1beta1.CreateTagAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag - 97, // 35: raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse.data:type_name -> raystack.compass.v1beta1.Tag - 98, // 36: raystack.compass.v1beta1.UpdateTagAssetRequest.tag_values:type_name -> raystack.compass.v1beta1.TagValue - 97, // 37: raystack.compass.v1beta1.UpdateTagAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag - 97, // 38: raystack.compass.v1beta1.GetAllTagsByAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag - 99, // 39: raystack.compass.v1beta1.GetAllTagTemplatesResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate - 100, // 40: raystack.compass.v1beta1.CreateTagTemplateRequest.fields:type_name -> raystack.compass.v1beta1.TagTemplateField - 99, // 41: raystack.compass.v1beta1.CreateTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate - 99, // 42: raystack.compass.v1beta1.GetTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate - 100, // 43: raystack.compass.v1beta1.UpdateTagTemplateRequest.fields:type_name -> raystack.compass.v1beta1.TagTemplateField - 99, // 44: raystack.compass.v1beta1.UpdateTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate - 117, // 45: raystack.compass.v1beta1.CreateNamespaceRequest.metadata:type_name -> google.protobuf.Struct - 102, // 46: raystack.compass.v1beta1.GetNamespaceResponse.namespace:type_name -> raystack.compass.v1beta1.Namespace - 117, // 47: raystack.compass.v1beta1.UpdateNamespaceRequest.metadata:type_name -> google.protobuf.Struct - 102, // 48: raystack.compass.v1beta1.ListNamespacesResponse.namespaces:type_name -> raystack.compass.v1beta1.Namespace - 118, // 49: raystack.compass.v1beta1.User.created_at:type_name -> google.protobuf.Timestamp - 118, // 50: raystack.compass.v1beta1.User.updated_at:type_name -> google.protobuf.Timestamp - 119, // 51: raystack.compass.v1beta1.Change.from:type_name -> google.protobuf.Value - 119, // 52: raystack.compass.v1beta1.Change.to:type_name -> google.protobuf.Value - 117, // 53: raystack.compass.v1beta1.Asset.data:type_name -> google.protobuf.Struct - 116, // 54: raystack.compass.v1beta1.Asset.labels:type_name -> raystack.compass.v1beta1.Asset.LabelsEntry - 89, // 55: raystack.compass.v1beta1.Asset.owners:type_name -> raystack.compass.v1beta1.User - 89, // 56: raystack.compass.v1beta1.Asset.updated_by:type_name -> raystack.compass.v1beta1.User - 90, // 57: raystack.compass.v1beta1.Asset.changelog:type_name -> raystack.compass.v1beta1.Change - 118, // 58: raystack.compass.v1beta1.Asset.created_at:type_name -> google.protobuf.Timestamp - 118, // 59: raystack.compass.v1beta1.Asset.updated_at:type_name -> google.protobuf.Timestamp - 92, // 60: raystack.compass.v1beta1.Asset.probes:type_name -> raystack.compass.v1beta1.Probe - 117, // 61: raystack.compass.v1beta1.Probe.metadata:type_name -> google.protobuf.Struct - 118, // 62: raystack.compass.v1beta1.Probe.timestamp:type_name -> google.protobuf.Timestamp - 118, // 63: raystack.compass.v1beta1.Probe.created_at:type_name -> google.protobuf.Timestamp - 89, // 64: raystack.compass.v1beta1.Discussion.owner:type_name -> raystack.compass.v1beta1.User - 118, // 65: raystack.compass.v1beta1.Discussion.created_at:type_name -> google.protobuf.Timestamp - 118, // 66: raystack.compass.v1beta1.Discussion.updated_at:type_name -> google.protobuf.Timestamp - 89, // 67: raystack.compass.v1beta1.Comment.owner:type_name -> raystack.compass.v1beta1.User - 89, // 68: raystack.compass.v1beta1.Comment.updated_by:type_name -> raystack.compass.v1beta1.User - 118, // 69: raystack.compass.v1beta1.Comment.created_at:type_name -> google.protobuf.Timestamp - 118, // 70: raystack.compass.v1beta1.Comment.updated_at:type_name -> google.protobuf.Timestamp - 117, // 71: raystack.compass.v1beta1.LineageEdge.prop:type_name -> google.protobuf.Struct - 98, // 72: raystack.compass.v1beta1.Tag.tag_values:type_name -> raystack.compass.v1beta1.TagValue - 119, // 73: raystack.compass.v1beta1.TagValue.field_value:type_name -> google.protobuf.Value - 118, // 74: raystack.compass.v1beta1.TagValue.created_at:type_name -> google.protobuf.Timestamp - 118, // 75: raystack.compass.v1beta1.TagValue.updated_at:type_name -> google.protobuf.Timestamp - 100, // 76: raystack.compass.v1beta1.TagTemplate.fields:type_name -> raystack.compass.v1beta1.TagTemplateField - 118, // 77: raystack.compass.v1beta1.TagTemplate.created_at:type_name -> google.protobuf.Timestamp - 118, // 78: raystack.compass.v1beta1.TagTemplate.updated_at:type_name -> google.protobuf.Timestamp - 118, // 79: raystack.compass.v1beta1.TagTemplateField.created_at:type_name -> google.protobuf.Timestamp - 118, // 80: raystack.compass.v1beta1.TagTemplateField.updated_at:type_name -> google.protobuf.Timestamp - 117, // 81: raystack.compass.v1beta1.Namespace.metadata:type_name -> google.protobuf.Struct - 92, // 82: raystack.compass.v1beta1.GetGraphResponse.ProbesInfo.latest:type_name -> raystack.compass.v1beta1.Probe - 106, // 83: raystack.compass.v1beta1.GetGraphResponse.NodeAttributes.probes:type_name -> raystack.compass.v1beta1.GetGraphResponse.ProbesInfo - 107, // 84: raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry.value:type_name -> raystack.compass.v1beta1.GetGraphResponse.NodeAttributes - 117, // 85: raystack.compass.v1beta1.UpsertAssetRequest.Asset.data:type_name -> google.protobuf.Struct - 112, // 86: raystack.compass.v1beta1.UpsertAssetRequest.Asset.labels:type_name -> raystack.compass.v1beta1.UpsertAssetRequest.Asset.LabelsEntry - 89, // 87: raystack.compass.v1beta1.UpsertAssetRequest.Asset.owners:type_name -> raystack.compass.v1beta1.User - 120, // 88: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.name:type_name -> google.protobuf.StringValue - 120, // 89: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.description:type_name -> google.protobuf.StringValue - 117, // 90: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.data:type_name -> google.protobuf.Struct - 114, // 91: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.labels:type_name -> raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.LabelsEntry - 89, // 92: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.owners:type_name -> raystack.compass.v1beta1.User - 117, // 93: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe.metadata:type_name -> google.protobuf.Struct - 118, // 94: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe.timestamp:type_name -> google.protobuf.Timestamp - 0, // 95: raystack.compass.v1beta1.CompassService.GetAllDiscussions:input_type -> raystack.compass.v1beta1.GetAllDiscussionsRequest - 2, // 96: raystack.compass.v1beta1.CompassService.CreateDiscussion:input_type -> raystack.compass.v1beta1.CreateDiscussionRequest - 4, // 97: raystack.compass.v1beta1.CompassService.GetDiscussion:input_type -> raystack.compass.v1beta1.GetDiscussionRequest - 6, // 98: raystack.compass.v1beta1.CompassService.PatchDiscussion:input_type -> raystack.compass.v1beta1.PatchDiscussionRequest - 7, // 99: raystack.compass.v1beta1.CompassService.CreateComment:input_type -> raystack.compass.v1beta1.CreateCommentRequest - 10, // 100: raystack.compass.v1beta1.CompassService.GetAllComments:input_type -> raystack.compass.v1beta1.GetAllCommentsRequest - 12, // 101: raystack.compass.v1beta1.CompassService.GetComment:input_type -> raystack.compass.v1beta1.GetCommentRequest - 14, // 102: raystack.compass.v1beta1.CompassService.UpdateComment:input_type -> raystack.compass.v1beta1.UpdateCommentRequest - 16, // 103: raystack.compass.v1beta1.CompassService.DeleteComment:input_type -> raystack.compass.v1beta1.DeleteCommentRequest - 18, // 104: raystack.compass.v1beta1.CompassService.SearchAssets:input_type -> raystack.compass.v1beta1.SearchAssetsRequest - 21, // 105: raystack.compass.v1beta1.CompassService.SuggestAssets:input_type -> raystack.compass.v1beta1.SuggestAssetsRequest - 23, // 106: raystack.compass.v1beta1.CompassService.GroupAssets:input_type -> raystack.compass.v1beta1.GroupAssetsRequest - 27, // 107: raystack.compass.v1beta1.CompassService.GetGraph:input_type -> raystack.compass.v1beta1.GetGraphRequest - 29, // 108: raystack.compass.v1beta1.CompassService.GetAllTypes:input_type -> raystack.compass.v1beta1.GetAllTypesRequest - 31, // 109: raystack.compass.v1beta1.CompassService.GetAllAssets:input_type -> raystack.compass.v1beta1.GetAllAssetsRequest - 33, // 110: raystack.compass.v1beta1.CompassService.GetAssetByID:input_type -> raystack.compass.v1beta1.GetAssetByIDRequest - 35, // 111: raystack.compass.v1beta1.CompassService.UpsertAsset:input_type -> raystack.compass.v1beta1.UpsertAssetRequest - 37, // 112: raystack.compass.v1beta1.CompassService.UpsertPatchAsset:input_type -> raystack.compass.v1beta1.UpsertPatchAssetRequest - 39, // 113: raystack.compass.v1beta1.CompassService.DeleteAsset:input_type -> raystack.compass.v1beta1.DeleteAssetRequest - 41, // 114: raystack.compass.v1beta1.CompassService.GetAssetStargazers:input_type -> raystack.compass.v1beta1.GetAssetStargazersRequest - 43, // 115: raystack.compass.v1beta1.CompassService.GetAssetVersionHistory:input_type -> raystack.compass.v1beta1.GetAssetVersionHistoryRequest - 45, // 116: raystack.compass.v1beta1.CompassService.GetAssetByVersion:input_type -> raystack.compass.v1beta1.GetAssetByVersionRequest - 47, // 117: raystack.compass.v1beta1.CompassService.CreateAssetProbe:input_type -> raystack.compass.v1beta1.CreateAssetProbeRequest - 49, // 118: raystack.compass.v1beta1.CompassService.GetUserStarredAssets:input_type -> raystack.compass.v1beta1.GetUserStarredAssetsRequest - 51, // 119: raystack.compass.v1beta1.CompassService.GetMyStarredAssets:input_type -> raystack.compass.v1beta1.GetMyStarredAssetsRequest - 53, // 120: raystack.compass.v1beta1.CompassService.GetMyStarredAsset:input_type -> raystack.compass.v1beta1.GetMyStarredAssetRequest - 55, // 121: raystack.compass.v1beta1.CompassService.StarAsset:input_type -> raystack.compass.v1beta1.StarAssetRequest - 57, // 122: raystack.compass.v1beta1.CompassService.UnstarAsset:input_type -> raystack.compass.v1beta1.UnstarAssetRequest - 59, // 123: raystack.compass.v1beta1.CompassService.GetMyDiscussions:input_type -> raystack.compass.v1beta1.GetMyDiscussionsRequest - 61, // 124: raystack.compass.v1beta1.CompassService.CreateTagAsset:input_type -> raystack.compass.v1beta1.CreateTagAssetRequest - 63, // 125: raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate:input_type -> raystack.compass.v1beta1.GetTagByAssetAndTemplateRequest - 65, // 126: raystack.compass.v1beta1.CompassService.UpdateTagAsset:input_type -> raystack.compass.v1beta1.UpdateTagAssetRequest - 67, // 127: raystack.compass.v1beta1.CompassService.DeleteTagAsset:input_type -> raystack.compass.v1beta1.DeleteTagAssetRequest - 69, // 128: raystack.compass.v1beta1.CompassService.GetAllTagsByAsset:input_type -> raystack.compass.v1beta1.GetAllTagsByAssetRequest - 71, // 129: raystack.compass.v1beta1.CompassService.GetAllTagTemplates:input_type -> raystack.compass.v1beta1.GetAllTagTemplatesRequest - 73, // 130: raystack.compass.v1beta1.CompassService.CreateTagTemplate:input_type -> raystack.compass.v1beta1.CreateTagTemplateRequest - 75, // 131: raystack.compass.v1beta1.CompassService.GetTagTemplate:input_type -> raystack.compass.v1beta1.GetTagTemplateRequest - 77, // 132: raystack.compass.v1beta1.CompassService.UpdateTagTemplate:input_type -> raystack.compass.v1beta1.UpdateTagTemplateRequest - 79, // 133: raystack.compass.v1beta1.CompassService.DeleteTagTemplate:input_type -> raystack.compass.v1beta1.DeleteTagTemplateRequest - 81, // 134: raystack.compass.v1beta1.CompassService.CreateNamespace:input_type -> raystack.compass.v1beta1.CreateNamespaceRequest - 83, // 135: raystack.compass.v1beta1.CompassService.GetNamespace:input_type -> raystack.compass.v1beta1.GetNamespaceRequest - 85, // 136: raystack.compass.v1beta1.CompassService.UpdateNamespace:input_type -> raystack.compass.v1beta1.UpdateNamespaceRequest - 87, // 137: raystack.compass.v1beta1.CompassService.ListNamespaces:input_type -> raystack.compass.v1beta1.ListNamespacesRequest - 1, // 138: raystack.compass.v1beta1.CompassService.GetAllDiscussions:output_type -> raystack.compass.v1beta1.GetAllDiscussionsResponse - 3, // 139: raystack.compass.v1beta1.CompassService.CreateDiscussion:output_type -> raystack.compass.v1beta1.CreateDiscussionResponse - 5, // 140: raystack.compass.v1beta1.CompassService.GetDiscussion:output_type -> raystack.compass.v1beta1.GetDiscussionResponse - 8, // 141: raystack.compass.v1beta1.CompassService.PatchDiscussion:output_type -> raystack.compass.v1beta1.PatchDiscussionResponse - 9, // 142: raystack.compass.v1beta1.CompassService.CreateComment:output_type -> raystack.compass.v1beta1.CreateCommentResponse - 11, // 143: raystack.compass.v1beta1.CompassService.GetAllComments:output_type -> raystack.compass.v1beta1.GetAllCommentsResponse - 13, // 144: raystack.compass.v1beta1.CompassService.GetComment:output_type -> raystack.compass.v1beta1.GetCommentResponse - 15, // 145: raystack.compass.v1beta1.CompassService.UpdateComment:output_type -> raystack.compass.v1beta1.UpdateCommentResponse - 17, // 146: raystack.compass.v1beta1.CompassService.DeleteComment:output_type -> raystack.compass.v1beta1.DeleteCommentResponse - 20, // 147: raystack.compass.v1beta1.CompassService.SearchAssets:output_type -> raystack.compass.v1beta1.SearchAssetsResponse - 22, // 148: raystack.compass.v1beta1.CompassService.SuggestAssets:output_type -> raystack.compass.v1beta1.SuggestAssetsResponse - 24, // 149: raystack.compass.v1beta1.CompassService.GroupAssets:output_type -> raystack.compass.v1beta1.GroupAssetsResponse - 28, // 150: raystack.compass.v1beta1.CompassService.GetGraph:output_type -> raystack.compass.v1beta1.GetGraphResponse - 30, // 151: raystack.compass.v1beta1.CompassService.GetAllTypes:output_type -> raystack.compass.v1beta1.GetAllTypesResponse - 32, // 152: raystack.compass.v1beta1.CompassService.GetAllAssets:output_type -> raystack.compass.v1beta1.GetAllAssetsResponse - 34, // 153: raystack.compass.v1beta1.CompassService.GetAssetByID:output_type -> raystack.compass.v1beta1.GetAssetByIDResponse - 36, // 154: raystack.compass.v1beta1.CompassService.UpsertAsset:output_type -> raystack.compass.v1beta1.UpsertAssetResponse - 38, // 155: raystack.compass.v1beta1.CompassService.UpsertPatchAsset:output_type -> raystack.compass.v1beta1.UpsertPatchAssetResponse - 40, // 156: raystack.compass.v1beta1.CompassService.DeleteAsset:output_type -> raystack.compass.v1beta1.DeleteAssetResponse - 42, // 157: raystack.compass.v1beta1.CompassService.GetAssetStargazers:output_type -> raystack.compass.v1beta1.GetAssetStargazersResponse - 44, // 158: raystack.compass.v1beta1.CompassService.GetAssetVersionHistory:output_type -> raystack.compass.v1beta1.GetAssetVersionHistoryResponse - 46, // 159: raystack.compass.v1beta1.CompassService.GetAssetByVersion:output_type -> raystack.compass.v1beta1.GetAssetByVersionResponse - 48, // 160: raystack.compass.v1beta1.CompassService.CreateAssetProbe:output_type -> raystack.compass.v1beta1.CreateAssetProbeResponse - 50, // 161: raystack.compass.v1beta1.CompassService.GetUserStarredAssets:output_type -> raystack.compass.v1beta1.GetUserStarredAssetsResponse - 52, // 162: raystack.compass.v1beta1.CompassService.GetMyStarredAssets:output_type -> raystack.compass.v1beta1.GetMyStarredAssetsResponse - 54, // 163: raystack.compass.v1beta1.CompassService.GetMyStarredAsset:output_type -> raystack.compass.v1beta1.GetMyStarredAssetResponse - 56, // 164: raystack.compass.v1beta1.CompassService.StarAsset:output_type -> raystack.compass.v1beta1.StarAssetResponse - 58, // 165: raystack.compass.v1beta1.CompassService.UnstarAsset:output_type -> raystack.compass.v1beta1.UnstarAssetResponse - 60, // 166: raystack.compass.v1beta1.CompassService.GetMyDiscussions:output_type -> raystack.compass.v1beta1.GetMyDiscussionsResponse - 62, // 167: raystack.compass.v1beta1.CompassService.CreateTagAsset:output_type -> raystack.compass.v1beta1.CreateTagAssetResponse - 64, // 168: raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate:output_type -> raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse - 66, // 169: raystack.compass.v1beta1.CompassService.UpdateTagAsset:output_type -> raystack.compass.v1beta1.UpdateTagAssetResponse - 68, // 170: raystack.compass.v1beta1.CompassService.DeleteTagAsset:output_type -> raystack.compass.v1beta1.DeleteTagAssetResponse - 70, // 171: raystack.compass.v1beta1.CompassService.GetAllTagsByAsset:output_type -> raystack.compass.v1beta1.GetAllTagsByAssetResponse - 72, // 172: raystack.compass.v1beta1.CompassService.GetAllTagTemplates:output_type -> raystack.compass.v1beta1.GetAllTagTemplatesResponse - 74, // 173: raystack.compass.v1beta1.CompassService.CreateTagTemplate:output_type -> raystack.compass.v1beta1.CreateTagTemplateResponse - 76, // 174: raystack.compass.v1beta1.CompassService.GetTagTemplate:output_type -> raystack.compass.v1beta1.GetTagTemplateResponse - 78, // 175: raystack.compass.v1beta1.CompassService.UpdateTagTemplate:output_type -> raystack.compass.v1beta1.UpdateTagTemplateResponse - 80, // 176: raystack.compass.v1beta1.CompassService.DeleteTagTemplate:output_type -> raystack.compass.v1beta1.DeleteTagTemplateResponse - 82, // 177: raystack.compass.v1beta1.CompassService.CreateNamespace:output_type -> raystack.compass.v1beta1.CreateNamespaceResponse - 84, // 178: raystack.compass.v1beta1.CompassService.GetNamespace:output_type -> raystack.compass.v1beta1.GetNamespaceResponse - 86, // 179: raystack.compass.v1beta1.CompassService.UpdateNamespace:output_type -> raystack.compass.v1beta1.UpdateNamespaceResponse - 88, // 180: raystack.compass.v1beta1.CompassService.ListNamespaces:output_type -> raystack.compass.v1beta1.ListNamespacesResponse - 138, // [138:181] is the sub-list for method output_type - 95, // [95:138] is the sub-list for method input_type - 95, // [95:95] is the sub-list for extension type_name - 95, // [95:95] is the sub-list for extension extendee - 0, // [0:95] is the sub-list for field type_name -} - -func init() { file_raystack_compass_v1beta1_service_proto_init() } -func file_raystack_compass_v1beta1_service_proto_init() { - if File_raystack_compass_v1beta1_service_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_raystack_compass_v1beta1_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllDiscussionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllDiscussionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDiscussionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateDiscussionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDiscussionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetDiscussionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PatchDiscussionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PatchDiscussionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateCommentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllCommentsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllCommentsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetCommentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateCommentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCommentRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteCommentResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchFlags); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SearchAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuggestAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SuggestAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AssetGroup); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GroupField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGraphRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGraphResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTypesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTypesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetByIDResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertPatchAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertPatchAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetStargazersRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetStargazersResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetVersionHistoryRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetVersionHistoryResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetByVersionRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAssetByVersionResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateAssetProbeRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateAssetProbeResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserStarredAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetUserStarredAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyStarredAssetsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyStarredAssetsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyStarredAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyStarredAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StarAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StarAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnstarAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UnstarAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyDiscussionsRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetMyDiscussionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[61].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTagAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[62].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTagAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[63].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTagByAssetAndTemplateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[64].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTagByAssetAndTemplateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[65].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTagAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[66].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTagAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[67].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTagAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[68].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTagAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[69].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTagsByAssetRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[70].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTagsByAssetResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[71].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTagTemplatesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[72].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetAllTagTemplatesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[73].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTagTemplateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[74].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateTagTemplateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[75].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTagTemplateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[76].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetTagTemplateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[77].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTagTemplateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[78].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateTagTemplateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[79].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTagTemplateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[80].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteTagTemplateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[81].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateNamespaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[82].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateNamespaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[83].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNamespaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[84].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetNamespaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[85].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateNamespaceRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[86].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpdateNamespaceResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[87].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNamespacesRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[88].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ListNamespacesResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[89].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*User); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[90].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Change); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[91].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Asset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[92].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Probe); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[93].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Discussion); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[94].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Comment); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[95].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LineageEdge); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[96].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*LineageNode); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[97].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Tag); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[98].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TagValue); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[99].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TagTemplate); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[100].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TagTemplateField); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[101].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Type); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[102].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Namespace); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[106].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGraphResponse_ProbesInfo); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[107].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGraphResponse_NodeAttributes); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[111].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertAssetRequest_Asset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[113].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*UpsertPatchAssetRequest_Asset); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[115].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CreateAssetProbeRequest_Probe); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - file_raystack_compass_v1beta1_service_proto_msgTypes[27].OneofWrappers = []interface{}{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_raystack_compass_v1beta1_service_proto_rawDesc, - NumEnums: 0, - NumMessages: 117, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_raystack_compass_v1beta1_service_proto_goTypes, - DependencyIndexes: file_raystack_compass_v1beta1_service_proto_depIdxs, - MessageInfos: file_raystack_compass_v1beta1_service_proto_msgTypes, - }.Build() - File_raystack_compass_v1beta1_service_proto = out.File - file_raystack_compass_v1beta1_service_proto_rawDesc = nil - file_raystack_compass_v1beta1_service_proto_goTypes = nil - file_raystack_compass_v1beta1_service_proto_depIdxs = nil -} diff --git a/proto/compassv1beta1/service.pb.validate.go b/proto/compassv1beta1/service.pb.validate.go deleted file mode 100644 index d1222eb7..00000000 --- a/proto/compassv1beta1/service.pb.validate.go +++ /dev/null @@ -1,14636 +0,0 @@ -// Code generated by protoc-gen-validate. DO NOT EDIT. -// source: raystack/compass/v1beta1/service.proto - -package compassv1beta1 - -import ( - "bytes" - "errors" - "fmt" - "net" - "net/mail" - "net/url" - "regexp" - "sort" - "strings" - "time" - "unicode/utf8" - - "google.golang.org/protobuf/types/known/anypb" -) - -// ensure the imports are used -var ( - _ = bytes.MinRead - _ = errors.New("") - _ = fmt.Print - _ = utf8.UTFMax - _ = (*regexp.Regexp)(nil) - _ = (*strings.Reader)(nil) - _ = net.IPv4len - _ = time.Duration(0) - _ = (*url.URL)(nil) - _ = (*mail.Address)(nil) - _ = anypb.Any{} - _ = sort.Sort -) - -// Validate checks the field values on GetAllDiscussionsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllDiscussionsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllDiscussionsRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllDiscussionsRequestMultiError, or nil if none found. -func (m *GetAllDiscussionsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllDiscussionsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetType() != "" { - - } - - if m.GetState() != "" { - - } - - if m.GetOwner() != "" { - - } - - if m.GetAssignee() != "" { - - } - - if m.GetAsset() != "" { - - } - - if m.GetLabels() != "" { - - } - - if m.GetSort() != "" { - - } - - if m.GetDirection() != "" { - - } - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetAllDiscussionsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetAllDiscussionsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetAllDiscussionsRequestMultiError(errors) - } - - return nil -} - -// GetAllDiscussionsRequestMultiError is an error wrapping multiple validation -// errors returned by GetAllDiscussionsRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAllDiscussionsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllDiscussionsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllDiscussionsRequestMultiError) AllErrors() []error { return m } - -// GetAllDiscussionsRequestValidationError is the validation error returned by -// GetAllDiscussionsRequest.Validate if the designated constraints aren't met. -type GetAllDiscussionsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllDiscussionsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllDiscussionsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllDiscussionsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllDiscussionsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllDiscussionsRequestValidationError) ErrorName() string { - return "GetAllDiscussionsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllDiscussionsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllDiscussionsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllDiscussionsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllDiscussionsRequestValidationError{} - -// Validate checks the field values on GetAllDiscussionsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllDiscussionsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllDiscussionsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllDiscussionsResponseMultiError, or nil if none found. -func (m *GetAllDiscussionsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllDiscussionsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAllDiscussionsResponseMultiError(errors) - } - - return nil -} - -// GetAllDiscussionsResponseMultiError is an error wrapping multiple validation -// errors returned by GetAllDiscussionsResponse.ValidateAll() if the -// designated constraints aren't met. -type GetAllDiscussionsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllDiscussionsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllDiscussionsResponseMultiError) AllErrors() []error { return m } - -// GetAllDiscussionsResponseValidationError is the validation error returned by -// GetAllDiscussionsResponse.Validate if the designated constraints aren't met. -type GetAllDiscussionsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllDiscussionsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllDiscussionsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllDiscussionsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllDiscussionsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllDiscussionsResponseValidationError) ErrorName() string { - return "GetAllDiscussionsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllDiscussionsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllDiscussionsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllDiscussionsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllDiscussionsResponseValidationError{} - -// Validate checks the field values on CreateDiscussionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateDiscussionRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateDiscussionRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateDiscussionRequestMultiError, or nil if none found. -func (m *CreateDiscussionRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateDiscussionRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetTitle()) < 1 { - err := CreateDiscussionRequestValidationError{ - field: "Title", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if utf8.RuneCountInString(m.GetBody()) < 1 { - err := CreateDiscussionRequestValidationError{ - field: "Body", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for Type - - if m.GetState() != "" { - - } - - if len(m.GetLabels()) > 0 { - - _CreateDiscussionRequest_Labels_Unique := make(map[string]struct{}, len(m.GetLabels())) - - for idx, item := range m.GetLabels() { - _, _ = idx, item - - if _, exists := _CreateDiscussionRequest_Labels_Unique[item]; exists { - err := CreateDiscussionRequestValidationError{ - field: fmt.Sprintf("Labels[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _CreateDiscussionRequest_Labels_Unique[item] = struct{}{} - } - - // no validation rules for Labels[idx] - } - - } - - if len(m.GetAssets()) > 0 { - - _CreateDiscussionRequest_Assets_Unique := make(map[string]struct{}, len(m.GetAssets())) - - for idx, item := range m.GetAssets() { - _, _ = idx, item - - if _, exists := _CreateDiscussionRequest_Assets_Unique[item]; exists { - err := CreateDiscussionRequestValidationError{ - field: fmt.Sprintf("Assets[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _CreateDiscussionRequest_Assets_Unique[item] = struct{}{} - } - - // no validation rules for Assets[idx] - } - - } - - if len(m.GetAssignees()) > 0 { - - _CreateDiscussionRequest_Assignees_Unique := make(map[string]struct{}, len(m.GetAssignees())) - - for idx, item := range m.GetAssignees() { - _, _ = idx, item - - if _, exists := _CreateDiscussionRequest_Assignees_Unique[item]; exists { - err := CreateDiscussionRequestValidationError{ - field: fmt.Sprintf("Assignees[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _CreateDiscussionRequest_Assignees_Unique[item] = struct{}{} - } - - // no validation rules for Assignees[idx] - } - - } - - if len(errors) > 0 { - return CreateDiscussionRequestMultiError(errors) - } - - return nil -} - -// CreateDiscussionRequestMultiError is an error wrapping multiple validation -// errors returned by CreateDiscussionRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateDiscussionRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateDiscussionRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateDiscussionRequestMultiError) AllErrors() []error { return m } - -// CreateDiscussionRequestValidationError is the validation error returned by -// CreateDiscussionRequest.Validate if the designated constraints aren't met. -type CreateDiscussionRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateDiscussionRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateDiscussionRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateDiscussionRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateDiscussionRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateDiscussionRequestValidationError) ErrorName() string { - return "CreateDiscussionRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateDiscussionRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateDiscussionRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateDiscussionRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateDiscussionRequestValidationError{} - -// Validate checks the field values on CreateDiscussionResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateDiscussionResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateDiscussionResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateDiscussionResponseMultiError, or nil if none found. -func (m *CreateDiscussionResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateDiscussionResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return CreateDiscussionResponseMultiError(errors) - } - - return nil -} - -// CreateDiscussionResponseMultiError is an error wrapping multiple validation -// errors returned by CreateDiscussionResponse.ValidateAll() if the designated -// constraints aren't met. -type CreateDiscussionResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateDiscussionResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateDiscussionResponseMultiError) AllErrors() []error { return m } - -// CreateDiscussionResponseValidationError is the validation error returned by -// CreateDiscussionResponse.Validate if the designated constraints aren't met. -type CreateDiscussionResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateDiscussionResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateDiscussionResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateDiscussionResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateDiscussionResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateDiscussionResponseValidationError) ErrorName() string { - return "CreateDiscussionResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateDiscussionResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateDiscussionResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateDiscussionResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateDiscussionResponseValidationError{} - -// Validate checks the field values on GetDiscussionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetDiscussionRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetDiscussionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetDiscussionRequestMultiError, or nil if none found. -func (m *GetDiscussionRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetDiscussionRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return GetDiscussionRequestMultiError(errors) - } - - return nil -} - -// GetDiscussionRequestMultiError is an error wrapping multiple validation -// errors returned by GetDiscussionRequest.ValidateAll() if the designated -// constraints aren't met. -type GetDiscussionRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetDiscussionRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetDiscussionRequestMultiError) AllErrors() []error { return m } - -// GetDiscussionRequestValidationError is the validation error returned by -// GetDiscussionRequest.Validate if the designated constraints aren't met. -type GetDiscussionRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetDiscussionRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetDiscussionRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetDiscussionRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetDiscussionRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetDiscussionRequestValidationError) ErrorName() string { - return "GetDiscussionRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetDiscussionRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetDiscussionRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetDiscussionRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetDiscussionRequestValidationError{} - -// Validate checks the field values on GetDiscussionResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetDiscussionResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetDiscussionResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetDiscussionResponseMultiError, or nil if none found. -func (m *GetDiscussionResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetDiscussionResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetDiscussionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetDiscussionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetDiscussionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetDiscussionResponseMultiError(errors) - } - - return nil -} - -// GetDiscussionResponseMultiError is an error wrapping multiple validation -// errors returned by GetDiscussionResponse.ValidateAll() if the designated -// constraints aren't met. -type GetDiscussionResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetDiscussionResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetDiscussionResponseMultiError) AllErrors() []error { return m } - -// GetDiscussionResponseValidationError is the validation error returned by -// GetDiscussionResponse.Validate if the designated constraints aren't met. -type GetDiscussionResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetDiscussionResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetDiscussionResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetDiscussionResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetDiscussionResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetDiscussionResponseValidationError) ErrorName() string { - return "GetDiscussionResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetDiscussionResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetDiscussionResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetDiscussionResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetDiscussionResponseValidationError{} - -// Validate checks the field values on PatchDiscussionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *PatchDiscussionRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on PatchDiscussionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// PatchDiscussionRequestMultiError, or nil if none found. -func (m *PatchDiscussionRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *PatchDiscussionRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if m.GetTitle() != "" { - - } - - if m.GetBody() != "" { - - } - - if m.GetType() != "" { - - } - - if m.GetState() != "" { - - } - - if len(m.GetLabels()) > 0 { - - _PatchDiscussionRequest_Labels_Unique := make(map[string]struct{}, len(m.GetLabels())) - - for idx, item := range m.GetLabels() { - _, _ = idx, item - - if _, exists := _PatchDiscussionRequest_Labels_Unique[item]; exists { - err := PatchDiscussionRequestValidationError{ - field: fmt.Sprintf("Labels[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _PatchDiscussionRequest_Labels_Unique[item] = struct{}{} - } - - // no validation rules for Labels[idx] - } - - } - - if len(m.GetAssets()) > 0 { - - _PatchDiscussionRequest_Assets_Unique := make(map[string]struct{}, len(m.GetAssets())) - - for idx, item := range m.GetAssets() { - _, _ = idx, item - - if _, exists := _PatchDiscussionRequest_Assets_Unique[item]; exists { - err := PatchDiscussionRequestValidationError{ - field: fmt.Sprintf("Assets[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _PatchDiscussionRequest_Assets_Unique[item] = struct{}{} - } - - // no validation rules for Assets[idx] - } - - } - - if len(m.GetAssignees()) > 0 { - - _PatchDiscussionRequest_Assignees_Unique := make(map[string]struct{}, len(m.GetAssignees())) - - for idx, item := range m.GetAssignees() { - _, _ = idx, item - - if _, exists := _PatchDiscussionRequest_Assignees_Unique[item]; exists { - err := PatchDiscussionRequestValidationError{ - field: fmt.Sprintf("Assignees[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _PatchDiscussionRequest_Assignees_Unique[item] = struct{}{} - } - - // no validation rules for Assignees[idx] - } - - } - - if len(errors) > 0 { - return PatchDiscussionRequestMultiError(errors) - } - - return nil -} - -// PatchDiscussionRequestMultiError is an error wrapping multiple validation -// errors returned by PatchDiscussionRequest.ValidateAll() if the designated -// constraints aren't met. -type PatchDiscussionRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m PatchDiscussionRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m PatchDiscussionRequestMultiError) AllErrors() []error { return m } - -// PatchDiscussionRequestValidationError is the validation error returned by -// PatchDiscussionRequest.Validate if the designated constraints aren't met. -type PatchDiscussionRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PatchDiscussionRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PatchDiscussionRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PatchDiscussionRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PatchDiscussionRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PatchDiscussionRequestValidationError) ErrorName() string { - return "PatchDiscussionRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e PatchDiscussionRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPatchDiscussionRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PatchDiscussionRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PatchDiscussionRequestValidationError{} - -// Validate checks the field values on CreateCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateCommentRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateCommentRequestMultiError, or nil if none found. -func (m *CreateCommentRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateCommentRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for DiscussionId - - if utf8.RuneCountInString(m.GetBody()) < 1 { - err := CreateCommentRequestValidationError{ - field: "Body", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return CreateCommentRequestMultiError(errors) - } - - return nil -} - -// CreateCommentRequestMultiError is an error wrapping multiple validation -// errors returned by CreateCommentRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateCommentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateCommentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateCommentRequestMultiError) AllErrors() []error { return m } - -// CreateCommentRequestValidationError is the validation error returned by -// CreateCommentRequest.Validate if the designated constraints aren't met. -type CreateCommentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateCommentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateCommentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateCommentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateCommentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateCommentRequestValidationError) ErrorName() string { - return "CreateCommentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateCommentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateCommentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateCommentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateCommentRequestValidationError{} - -// Validate checks the field values on PatchDiscussionResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *PatchDiscussionResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on PatchDiscussionResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// PatchDiscussionResponseMultiError, or nil if none found. -func (m *PatchDiscussionResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *PatchDiscussionResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return PatchDiscussionResponseMultiError(errors) - } - - return nil -} - -// PatchDiscussionResponseMultiError is an error wrapping multiple validation -// errors returned by PatchDiscussionResponse.ValidateAll() if the designated -// constraints aren't met. -type PatchDiscussionResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m PatchDiscussionResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m PatchDiscussionResponseMultiError) AllErrors() []error { return m } - -// PatchDiscussionResponseValidationError is the validation error returned by -// PatchDiscussionResponse.Validate if the designated constraints aren't met. -type PatchDiscussionResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e PatchDiscussionResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e PatchDiscussionResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e PatchDiscussionResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e PatchDiscussionResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e PatchDiscussionResponseValidationError) ErrorName() string { - return "PatchDiscussionResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e PatchDiscussionResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sPatchDiscussionResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = PatchDiscussionResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = PatchDiscussionResponseValidationError{} - -// Validate checks the field values on CreateCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateCommentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateCommentResponseMultiError, or nil if none found. -func (m *CreateCommentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateCommentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return CreateCommentResponseMultiError(errors) - } - - return nil -} - -// CreateCommentResponseMultiError is an error wrapping multiple validation -// errors returned by CreateCommentResponse.ValidateAll() if the designated -// constraints aren't met. -type CreateCommentResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateCommentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateCommentResponseMultiError) AllErrors() []error { return m } - -// CreateCommentResponseValidationError is the validation error returned by -// CreateCommentResponse.Validate if the designated constraints aren't met. -type CreateCommentResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateCommentResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateCommentResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateCommentResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateCommentResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateCommentResponseValidationError) ErrorName() string { - return "CreateCommentResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateCommentResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateCommentResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateCommentResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateCommentResponseValidationError{} - -// Validate checks the field values on GetAllCommentsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllCommentsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllCommentsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllCommentsRequestMultiError, or nil if none found. -func (m *GetAllCommentsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllCommentsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for DiscussionId - - if m.GetSort() != "" { - - } - - if m.GetDirection() != "" { - - } - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetAllCommentsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetAllCommentsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetAllCommentsRequestMultiError(errors) - } - - return nil -} - -// GetAllCommentsRequestMultiError is an error wrapping multiple validation -// errors returned by GetAllCommentsRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAllCommentsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllCommentsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllCommentsRequestMultiError) AllErrors() []error { return m } - -// GetAllCommentsRequestValidationError is the validation error returned by -// GetAllCommentsRequest.Validate if the designated constraints aren't met. -type GetAllCommentsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllCommentsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllCommentsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllCommentsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllCommentsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllCommentsRequestValidationError) ErrorName() string { - return "GetAllCommentsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllCommentsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllCommentsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllCommentsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllCommentsRequestValidationError{} - -// Validate checks the field values on GetAllCommentsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllCommentsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllCommentsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllCommentsResponseMultiError, or nil if none found. -func (m *GetAllCommentsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllCommentsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllCommentsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllCommentsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllCommentsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAllCommentsResponseMultiError(errors) - } - - return nil -} - -// GetAllCommentsResponseMultiError is an error wrapping multiple validation -// errors returned by GetAllCommentsResponse.ValidateAll() if the designated -// constraints aren't met. -type GetAllCommentsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllCommentsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllCommentsResponseMultiError) AllErrors() []error { return m } - -// GetAllCommentsResponseValidationError is the validation error returned by -// GetAllCommentsResponse.Validate if the designated constraints aren't met. -type GetAllCommentsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllCommentsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllCommentsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllCommentsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllCommentsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllCommentsResponseValidationError) ErrorName() string { - return "GetAllCommentsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllCommentsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllCommentsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllCommentsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllCommentsResponseValidationError{} - -// Validate checks the field values on GetCommentRequest with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *GetCommentRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetCommentRequestMultiError, or nil if none found. -func (m *GetCommentRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetCommentRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for DiscussionId - - // no validation rules for Id - - if len(errors) > 0 { - return GetCommentRequestMultiError(errors) - } - - return nil -} - -// GetCommentRequestMultiError is an error wrapping multiple validation errors -// returned by GetCommentRequest.ValidateAll() if the designated constraints -// aren't met. -type GetCommentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetCommentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetCommentRequestMultiError) AllErrors() []error { return m } - -// GetCommentRequestValidationError is the validation error returned by -// GetCommentRequest.Validate if the designated constraints aren't met. -type GetCommentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetCommentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetCommentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetCommentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetCommentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetCommentRequestValidationError) ErrorName() string { - return "GetCommentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetCommentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetCommentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetCommentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetCommentRequestValidationError{} - -// Validate checks the field values on GetCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetCommentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetCommentResponseMultiError, or nil if none found. -func (m *GetCommentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetCommentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetCommentResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetCommentResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetCommentResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetCommentResponseMultiError(errors) - } - - return nil -} - -// GetCommentResponseMultiError is an error wrapping multiple validation errors -// returned by GetCommentResponse.ValidateAll() if the designated constraints -// aren't met. -type GetCommentResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetCommentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetCommentResponseMultiError) AllErrors() []error { return m } - -// GetCommentResponseValidationError is the validation error returned by -// GetCommentResponse.Validate if the designated constraints aren't met. -type GetCommentResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetCommentResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetCommentResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetCommentResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetCommentResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetCommentResponseValidationError) ErrorName() string { - return "GetCommentResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetCommentResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetCommentResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetCommentResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetCommentResponseValidationError{} - -// Validate checks the field values on UpdateCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateCommentRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateCommentRequestMultiError, or nil if none found. -func (m *UpdateCommentRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateCommentRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for DiscussionId - - // no validation rules for Id - - if utf8.RuneCountInString(m.GetBody()) < 1 { - err := UpdateCommentRequestValidationError{ - field: "Body", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if len(errors) > 0 { - return UpdateCommentRequestMultiError(errors) - } - - return nil -} - -// UpdateCommentRequestMultiError is an error wrapping multiple validation -// errors returned by UpdateCommentRequest.ValidateAll() if the designated -// constraints aren't met. -type UpdateCommentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateCommentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateCommentRequestMultiError) AllErrors() []error { return m } - -// UpdateCommentRequestValidationError is the validation error returned by -// UpdateCommentRequest.Validate if the designated constraints aren't met. -type UpdateCommentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateCommentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateCommentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateCommentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateCommentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateCommentRequestValidationError) ErrorName() string { - return "UpdateCommentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateCommentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateCommentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateCommentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateCommentRequestValidationError{} - -// Validate checks the field values on UpdateCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateCommentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateCommentResponseMultiError, or nil if none found. -func (m *UpdateCommentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateCommentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return UpdateCommentResponseMultiError(errors) - } - - return nil -} - -// UpdateCommentResponseMultiError is an error wrapping multiple validation -// errors returned by UpdateCommentResponse.ValidateAll() if the designated -// constraints aren't met. -type UpdateCommentResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateCommentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateCommentResponseMultiError) AllErrors() []error { return m } - -// UpdateCommentResponseValidationError is the validation error returned by -// UpdateCommentResponse.Validate if the designated constraints aren't met. -type UpdateCommentResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateCommentResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateCommentResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateCommentResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateCommentResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateCommentResponseValidationError) ErrorName() string { - return "UpdateCommentResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateCommentResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateCommentResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateCommentResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateCommentResponseValidationError{} - -// Validate checks the field values on DeleteCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteCommentRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteCommentRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteCommentRequestMultiError, or nil if none found. -func (m *DeleteCommentRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteCommentRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for DiscussionId - - // no validation rules for Id - - if len(errors) > 0 { - return DeleteCommentRequestMultiError(errors) - } - - return nil -} - -// DeleteCommentRequestMultiError is an error wrapping multiple validation -// errors returned by DeleteCommentRequest.ValidateAll() if the designated -// constraints aren't met. -type DeleteCommentRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteCommentRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteCommentRequestMultiError) AllErrors() []error { return m } - -// DeleteCommentRequestValidationError is the validation error returned by -// DeleteCommentRequest.Validate if the designated constraints aren't met. -type DeleteCommentRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteCommentRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteCommentRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteCommentRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteCommentRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteCommentRequestValidationError) ErrorName() string { - return "DeleteCommentRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteCommentRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteCommentRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteCommentRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteCommentRequestValidationError{} - -// Validate checks the field values on DeleteCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteCommentResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteCommentResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteCommentResponseMultiError, or nil if none found. -func (m *DeleteCommentResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteCommentResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DeleteCommentResponseMultiError(errors) - } - - return nil -} - -// DeleteCommentResponseMultiError is an error wrapping multiple validation -// errors returned by DeleteCommentResponse.ValidateAll() if the designated -// constraints aren't met. -type DeleteCommentResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteCommentResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteCommentResponseMultiError) AllErrors() []error { return m } - -// DeleteCommentResponseValidationError is the validation error returned by -// DeleteCommentResponse.Validate if the designated constraints aren't met. -type DeleteCommentResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteCommentResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteCommentResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteCommentResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteCommentResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteCommentResponseValidationError) ErrorName() string { - return "DeleteCommentResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteCommentResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteCommentResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteCommentResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteCommentResponseValidationError{} - -// Validate checks the field values on SearchAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *SearchAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SearchAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// SearchAssetsRequestMultiError, or nil if none found. -func (m *SearchAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *SearchAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetText() != "" { - - } - - if m.GetRankby() != "" { - - } - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := SearchAssetsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - // no validation rules for Filter - - // no validation rules for Query - - if len(m.GetIncludeFields()) > 0 { - - _SearchAssetsRequest_IncludeFields_Unique := make(map[string]struct{}, len(m.GetIncludeFields())) - - for idx, item := range m.GetIncludeFields() { - _, _ = idx, item - - if _, exists := _SearchAssetsRequest_IncludeFields_Unique[item]; exists { - err := SearchAssetsRequestValidationError{ - field: fmt.Sprintf("IncludeFields[%v]", idx), - reason: "repeated value must contain unique items", - } - if !all { - return err - } - errors = append(errors, err) - } else { - _SearchAssetsRequest_IncludeFields_Unique[item] = struct{}{} - } - - // no validation rules for IncludeFields[idx] - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := SearchAssetsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if all { - switch v := interface{}(m.GetFlags()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SearchAssetsRequestValidationError{ - field: "Flags", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SearchAssetsRequestValidationError{ - field: "Flags", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetFlags()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SearchAssetsRequestValidationError{ - field: "Flags", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return SearchAssetsRequestMultiError(errors) - } - - return nil -} - -// SearchAssetsRequestMultiError is an error wrapping multiple validation -// errors returned by SearchAssetsRequest.ValidateAll() if the designated -// constraints aren't met. -type SearchAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SearchAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SearchAssetsRequestMultiError) AllErrors() []error { return m } - -// SearchAssetsRequestValidationError is the validation error returned by -// SearchAssetsRequest.Validate if the designated constraints aren't met. -type SearchAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SearchAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SearchAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SearchAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SearchAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SearchAssetsRequestValidationError) ErrorName() string { - return "SearchAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e SearchAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSearchAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SearchAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SearchAssetsRequestValidationError{} - -// Validate checks the field values on SearchFlags with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *SearchFlags) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SearchFlags with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in SearchFlagsMultiError, or -// nil if none found. -func (m *SearchFlags) ValidateAll() error { - return m.validate(true) -} - -func (m *SearchFlags) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for IsColumnSearch - - // no validation rules for DisableFuzzy - - // no validation rules for EnableHighlight - - if len(errors) > 0 { - return SearchFlagsMultiError(errors) - } - - return nil -} - -// SearchFlagsMultiError is an error wrapping multiple validation errors -// returned by SearchFlags.ValidateAll() if the designated constraints aren't met. -type SearchFlagsMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SearchFlagsMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SearchFlagsMultiError) AllErrors() []error { return m } - -// SearchFlagsValidationError is the validation error returned by -// SearchFlags.Validate if the designated constraints aren't met. -type SearchFlagsValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SearchFlagsValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SearchFlagsValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SearchFlagsValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SearchFlagsValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SearchFlagsValidationError) ErrorName() string { return "SearchFlagsValidationError" } - -// Error satisfies the builtin error interface -func (e SearchFlagsValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSearchFlags.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SearchFlagsValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SearchFlagsValidationError{} - -// Validate checks the field values on SearchAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *SearchAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SearchAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// SearchAssetsResponseMultiError, or nil if none found. -func (m *SearchAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *SearchAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, SearchAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, SearchAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return SearchAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return SearchAssetsResponseMultiError(errors) - } - - return nil -} - -// SearchAssetsResponseMultiError is an error wrapping multiple validation -// errors returned by SearchAssetsResponse.ValidateAll() if the designated -// constraints aren't met. -type SearchAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SearchAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SearchAssetsResponseMultiError) AllErrors() []error { return m } - -// SearchAssetsResponseValidationError is the validation error returned by -// SearchAssetsResponse.Validate if the designated constraints aren't met. -type SearchAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SearchAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SearchAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SearchAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SearchAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SearchAssetsResponseValidationError) ErrorName() string { - return "SearchAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e SearchAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSearchAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SearchAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SearchAssetsResponseValidationError{} - -// Validate checks the field values on SuggestAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *SuggestAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SuggestAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// SuggestAssetsRequestMultiError, or nil if none found. -func (m *SuggestAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *SuggestAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetText() != "" { - - } - - if len(errors) > 0 { - return SuggestAssetsRequestMultiError(errors) - } - - return nil -} - -// SuggestAssetsRequestMultiError is an error wrapping multiple validation -// errors returned by SuggestAssetsRequest.ValidateAll() if the designated -// constraints aren't met. -type SuggestAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SuggestAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SuggestAssetsRequestMultiError) AllErrors() []error { return m } - -// SuggestAssetsRequestValidationError is the validation error returned by -// SuggestAssetsRequest.Validate if the designated constraints aren't met. -type SuggestAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SuggestAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SuggestAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SuggestAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SuggestAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SuggestAssetsRequestValidationError) ErrorName() string { - return "SuggestAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e SuggestAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSuggestAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SuggestAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SuggestAssetsRequestValidationError{} - -// Validate checks the field values on SuggestAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *SuggestAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on SuggestAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// SuggestAssetsResponseMultiError, or nil if none found. -func (m *SuggestAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *SuggestAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return SuggestAssetsResponseMultiError(errors) - } - - return nil -} - -// SuggestAssetsResponseMultiError is an error wrapping multiple validation -// errors returned by SuggestAssetsResponse.ValidateAll() if the designated -// constraints aren't met. -type SuggestAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m SuggestAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m SuggestAssetsResponseMultiError) AllErrors() []error { return m } - -// SuggestAssetsResponseValidationError is the validation error returned by -// SuggestAssetsResponse.Validate if the designated constraints aren't met. -type SuggestAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e SuggestAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e SuggestAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e SuggestAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e SuggestAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e SuggestAssetsResponseValidationError) ErrorName() string { - return "SuggestAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e SuggestAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sSuggestAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = SuggestAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = SuggestAssetsResponseValidationError{} - -// Validate checks the field values on GroupAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GroupAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GroupAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GroupAssetsRequestMultiError, or nil if none found. -func (m *GroupAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GroupAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(m.GetGroupby()) < 1 { - err := GroupAssetsRequestValidationError{ - field: "Groupby", - reason: "value must contain at least 1 item(s)", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for Filter - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GroupAssetsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GroupAssetsRequestMultiError(errors) - } - - return nil -} - -// GroupAssetsRequestMultiError is an error wrapping multiple validation errors -// returned by GroupAssetsRequest.ValidateAll() if the designated constraints -// aren't met. -type GroupAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GroupAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GroupAssetsRequestMultiError) AllErrors() []error { return m } - -// GroupAssetsRequestValidationError is the validation error returned by -// GroupAssetsRequest.Validate if the designated constraints aren't met. -type GroupAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GroupAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GroupAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GroupAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GroupAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GroupAssetsRequestValidationError) ErrorName() string { - return "GroupAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GroupAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGroupAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GroupAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GroupAssetsRequestValidationError{} - -// Validate checks the field values on GroupAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GroupAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GroupAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GroupAssetsResponseMultiError, or nil if none found. -func (m *GroupAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GroupAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetAssetGroups() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GroupAssetsResponseValidationError{ - field: fmt.Sprintf("AssetGroups[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GroupAssetsResponseValidationError{ - field: fmt.Sprintf("AssetGroups[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GroupAssetsResponseValidationError{ - field: fmt.Sprintf("AssetGroups[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GroupAssetsResponseMultiError(errors) - } - - return nil -} - -// GroupAssetsResponseMultiError is an error wrapping multiple validation -// errors returned by GroupAssetsResponse.ValidateAll() if the designated -// constraints aren't met. -type GroupAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GroupAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GroupAssetsResponseMultiError) AllErrors() []error { return m } - -// GroupAssetsResponseValidationError is the validation error returned by -// GroupAssetsResponse.Validate if the designated constraints aren't met. -type GroupAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GroupAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GroupAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GroupAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GroupAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GroupAssetsResponseValidationError) ErrorName() string { - return "GroupAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GroupAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGroupAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GroupAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GroupAssetsResponseValidationError{} - -// Validate checks the field values on AssetGroup with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *AssetGroup) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on AssetGroup with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in AssetGroupMultiError, or -// nil if none found. -func (m *AssetGroup) ValidateAll() error { - return m.validate(true) -} - -func (m *AssetGroup) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetGroupFields() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetGroupValidationError{ - field: fmt.Sprintf("GroupFields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetGroupValidationError{ - field: fmt.Sprintf("GroupFields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetGroupValidationError{ - field: fmt.Sprintf("GroupFields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetAssets() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetGroupValidationError{ - field: fmt.Sprintf("Assets[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetGroupValidationError{ - field: fmt.Sprintf("Assets[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetGroupValidationError{ - field: fmt.Sprintf("Assets[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return AssetGroupMultiError(errors) - } - - return nil -} - -// AssetGroupMultiError is an error wrapping multiple validation errors -// returned by AssetGroup.ValidateAll() if the designated constraints aren't met. -type AssetGroupMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AssetGroupMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AssetGroupMultiError) AllErrors() []error { return m } - -// AssetGroupValidationError is the validation error returned by -// AssetGroup.Validate if the designated constraints aren't met. -type AssetGroupValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AssetGroupValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AssetGroupValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AssetGroupValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AssetGroupValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AssetGroupValidationError) ErrorName() string { return "AssetGroupValidationError" } - -// Error satisfies the builtin error interface -func (e AssetGroupValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAssetGroup.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AssetGroupValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AssetGroupValidationError{} - -// Validate checks the field values on GroupField with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *GroupField) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GroupField with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in GroupFieldMultiError, or -// nil if none found. -func (m *GroupField) ValidateAll() error { - return m.validate(true) -} - -func (m *GroupField) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for GroupKey - - // no validation rules for GroupValue - - if len(errors) > 0 { - return GroupFieldMultiError(errors) - } - - return nil -} - -// GroupFieldMultiError is an error wrapping multiple validation errors -// returned by GroupField.ValidateAll() if the designated constraints aren't met. -type GroupFieldMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GroupFieldMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GroupFieldMultiError) AllErrors() []error { return m } - -// GroupFieldValidationError is the validation error returned by -// GroupField.Validate if the designated constraints aren't met. -type GroupFieldValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GroupFieldValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GroupFieldValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GroupFieldValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GroupFieldValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GroupFieldValidationError) ErrorName() string { return "GroupFieldValidationError" } - -// Error satisfies the builtin error interface -func (e GroupFieldValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGroupField.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GroupFieldValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GroupFieldValidationError{} - -// Validate checks the field values on GetGraphRequest with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *GetGraphRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetGraphRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetGraphRequestMultiError, or nil if none found. -func (m *GetGraphRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetGraphRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for Level - - if _, ok := _GetGraphRequest_Direction_InLookup[m.GetDirection()]; !ok { - err := GetGraphRequestValidationError{ - field: "Direction", - reason: "value must be in list [upstream downstream ]", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for IncludeDeleted - - if m.WithAttributes != nil { - // no validation rules for WithAttributes - } - - if len(errors) > 0 { - return GetGraphRequestMultiError(errors) - } - - return nil -} - -// GetGraphRequestMultiError is an error wrapping multiple validation errors -// returned by GetGraphRequest.ValidateAll() if the designated constraints -// aren't met. -type GetGraphRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetGraphRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetGraphRequestMultiError) AllErrors() []error { return m } - -// GetGraphRequestValidationError is the validation error returned by -// GetGraphRequest.Validate if the designated constraints aren't met. -type GetGraphRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetGraphRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetGraphRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetGraphRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetGraphRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetGraphRequestValidationError) ErrorName() string { return "GetGraphRequestValidationError" } - -// Error satisfies the builtin error interface -func (e GetGraphRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetGraphRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetGraphRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetGraphRequestValidationError{} - -var _GetGraphRequest_Direction_InLookup = map[string]struct{}{ - "upstream": {}, - "downstream": {}, - "": {}, -} - -// Validate checks the field values on GetGraphResponse with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *GetGraphResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetGraphResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetGraphResponseMultiError, or nil if none found. -func (m *GetGraphResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetGraphResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetGraphResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetGraphResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetGraphResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - { - sorted_keys := make([]string, len(m.GetNodeAttrs())) - i := 0 - for key := range m.GetNodeAttrs() { - sorted_keys[i] = key - i++ - } - sort.Slice(sorted_keys, func(i, j int) bool { return sorted_keys[i] < sorted_keys[j] }) - for _, key := range sorted_keys { - val := m.GetNodeAttrs()[key] - _ = val - - // no validation rules for NodeAttrs[key] - - if all { - switch v := interface{}(val).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetGraphResponseValidationError{ - field: fmt.Sprintf("NodeAttrs[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetGraphResponseValidationError{ - field: fmt.Sprintf("NodeAttrs[%v]", key), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(val).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetGraphResponseValidationError{ - field: fmt.Sprintf("NodeAttrs[%v]", key), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - } - - if len(errors) > 0 { - return GetGraphResponseMultiError(errors) - } - - return nil -} - -// GetGraphResponseMultiError is an error wrapping multiple validation errors -// returned by GetGraphResponse.ValidateAll() if the designated constraints -// aren't met. -type GetGraphResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetGraphResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetGraphResponseMultiError) AllErrors() []error { return m } - -// GetGraphResponseValidationError is the validation error returned by -// GetGraphResponse.Validate if the designated constraints aren't met. -type GetGraphResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetGraphResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetGraphResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetGraphResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetGraphResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetGraphResponseValidationError) ErrorName() string { return "GetGraphResponseValidationError" } - -// Error satisfies the builtin error interface -func (e GetGraphResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetGraphResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetGraphResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetGraphResponseValidationError{} - -// Validate checks the field values on GetAllTypesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTypesRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTypesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTypesRequestMultiError, or nil if none found. -func (m *GetAllTypesRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTypesRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetQ() != "" { - - } - - if m.GetQFields() != "" { - - } - - if m.GetTypes() != "" { - - } - - if m.GetServices() != "" { - - } - - // no validation rules for Data - - if len(errors) > 0 { - return GetAllTypesRequestMultiError(errors) - } - - return nil -} - -// GetAllTypesRequestMultiError is an error wrapping multiple validation errors -// returned by GetAllTypesRequest.ValidateAll() if the designated constraints -// aren't met. -type GetAllTypesRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTypesRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTypesRequestMultiError) AllErrors() []error { return m } - -// GetAllTypesRequestValidationError is the validation error returned by -// GetAllTypesRequest.Validate if the designated constraints aren't met. -type GetAllTypesRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTypesRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTypesRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTypesRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTypesRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTypesRequestValidationError) ErrorName() string { - return "GetAllTypesRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTypesRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTypesRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTypesRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTypesRequestValidationError{} - -// Validate checks the field values on GetAllTypesResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTypesResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTypesResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTypesResponseMultiError, or nil if none found. -func (m *GetAllTypesResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTypesResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllTypesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllTypesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllTypesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAllTypesResponseMultiError(errors) - } - - return nil -} - -// GetAllTypesResponseMultiError is an error wrapping multiple validation -// errors returned by GetAllTypesResponse.ValidateAll() if the designated -// constraints aren't met. -type GetAllTypesResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTypesResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTypesResponseMultiError) AllErrors() []error { return m } - -// GetAllTypesResponseValidationError is the validation error returned by -// GetAllTypesResponse.Validate if the designated constraints aren't met. -type GetAllTypesResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTypesResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTypesResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTypesResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTypesResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTypesResponseValidationError) ErrorName() string { - return "GetAllTypesResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTypesResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTypesResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTypesResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTypesResponseValidationError{} - -// Validate checks the field values on GetAllAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllAssetsRequestMultiError, or nil if none found. -func (m *GetAllAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetQ() != "" { - - } - - if m.GetQFields() != "" { - - } - - if m.GetTypes() != "" { - - } - - if m.GetServices() != "" { - - } - - if m.GetSort() != "" { - - } - - if m.GetDirection() != "" { - - } - - // no validation rules for Data - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetAllAssetsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetAllAssetsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - // no validation rules for WithTotal - - // no validation rules for IsDeleted - - if len(errors) > 0 { - return GetAllAssetsRequestMultiError(errors) - } - - return nil -} - -// GetAllAssetsRequestMultiError is an error wrapping multiple validation -// errors returned by GetAllAssetsRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAllAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllAssetsRequestMultiError) AllErrors() []error { return m } - -// GetAllAssetsRequestValidationError is the validation error returned by -// GetAllAssetsRequest.Validate if the designated constraints aren't met. -type GetAllAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllAssetsRequestValidationError) ErrorName() string { - return "GetAllAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllAssetsRequestValidationError{} - -// Validate checks the field values on GetAllAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllAssetsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllAssetsResponseMultiError, or nil if none found. -func (m *GetAllAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Total - - if len(errors) > 0 { - return GetAllAssetsResponseMultiError(errors) - } - - return nil -} - -// GetAllAssetsResponseMultiError is an error wrapping multiple validation -// errors returned by GetAllAssetsResponse.ValidateAll() if the designated -// constraints aren't met. -type GetAllAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllAssetsResponseMultiError) AllErrors() []error { return m } - -// GetAllAssetsResponseValidationError is the validation error returned by -// GetAllAssetsResponse.Validate if the designated constraints aren't met. -type GetAllAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllAssetsResponseValidationError) ErrorName() string { - return "GetAllAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllAssetsResponseValidationError{} - -// Validate checks the field values on GetAssetByIDRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetByIDRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetByIDRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetByIDRequestMultiError, or nil if none found. -func (m *GetAssetByIDRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetByIDRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return GetAssetByIDRequestMultiError(errors) - } - - return nil -} - -// GetAssetByIDRequestMultiError is an error wrapping multiple validation -// errors returned by GetAssetByIDRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAssetByIDRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetByIDRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetByIDRequestMultiError) AllErrors() []error { return m } - -// GetAssetByIDRequestValidationError is the validation error returned by -// GetAssetByIDRequest.Validate if the designated constraints aren't met. -type GetAssetByIDRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetByIDRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetByIDRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetByIDRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetByIDRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetByIDRequestValidationError) ErrorName() string { - return "GetAssetByIDRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetByIDRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetByIDRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetByIDRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetByIDRequestValidationError{} - -// Validate checks the field values on GetAssetByIDResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetByIDResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetByIDResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetByIDResponseMultiError, or nil if none found. -func (m *GetAssetByIDResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetByIDResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAssetByIDResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAssetByIDResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAssetByIDResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetAssetByIDResponseMultiError(errors) - } - - return nil -} - -// GetAssetByIDResponseMultiError is an error wrapping multiple validation -// errors returned by GetAssetByIDResponse.ValidateAll() if the designated -// constraints aren't met. -type GetAssetByIDResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetByIDResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetByIDResponseMultiError) AllErrors() []error { return m } - -// GetAssetByIDResponseValidationError is the validation error returned by -// GetAssetByIDResponse.Validate if the designated constraints aren't met. -type GetAssetByIDResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetByIDResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetByIDResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetByIDResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetByIDResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetByIDResponseValidationError) ErrorName() string { - return "GetAssetByIDResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetByIDResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetByIDResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetByIDResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetByIDResponseValidationError{} - -// Validate checks the field values on UpsertAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpsertAssetRequestMultiError, or nil if none found. -func (m *UpsertAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetAsset()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetAsset()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetUpstreams() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetDownstreams() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for UpdateOnly - - if len(errors) > 0 { - return UpsertAssetRequestMultiError(errors) - } - - return nil -} - -// UpsertAssetRequestMultiError is an error wrapping multiple validation errors -// returned by UpsertAssetRequest.ValidateAll() if the designated constraints -// aren't met. -type UpsertAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertAssetRequestMultiError) AllErrors() []error { return m } - -// UpsertAssetRequestValidationError is the validation error returned by -// UpsertAssetRequest.Validate if the designated constraints aren't met. -type UpsertAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertAssetRequestValidationError) ErrorName() string { - return "UpsertAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertAssetRequestValidationError{} - -// Validate checks the field values on UpsertAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpsertAssetResponseMultiError, or nil if none found. -func (m *UpsertAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return UpsertAssetResponseMultiError(errors) - } - - return nil -} - -// UpsertAssetResponseMultiError is an error wrapping multiple validation -// errors returned by UpsertAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type UpsertAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertAssetResponseMultiError) AllErrors() []error { return m } - -// UpsertAssetResponseValidationError is the validation error returned by -// UpsertAssetResponse.Validate if the designated constraints aren't met. -type UpsertAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertAssetResponseValidationError) ErrorName() string { - return "UpsertAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertAssetResponseValidationError{} - -// Validate checks the field values on UpsertPatchAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertPatchAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertPatchAssetRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpsertPatchAssetRequestMultiError, or nil if none found. -func (m *UpsertPatchAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertPatchAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetAsset()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetAsset()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertPatchAssetRequestValidationError{ - field: "Asset", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetUpstreams() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Upstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - for idx, item := range m.GetDownstreams() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertPatchAssetRequestValidationError{ - field: fmt.Sprintf("Downstreams[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for OverwriteLineage - - // no validation rules for UpdateOnly - - if len(errors) > 0 { - return UpsertPatchAssetRequestMultiError(errors) - } - - return nil -} - -// UpsertPatchAssetRequestMultiError is an error wrapping multiple validation -// errors returned by UpsertPatchAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type UpsertPatchAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertPatchAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertPatchAssetRequestMultiError) AllErrors() []error { return m } - -// UpsertPatchAssetRequestValidationError is the validation error returned by -// UpsertPatchAssetRequest.Validate if the designated constraints aren't met. -type UpsertPatchAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertPatchAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertPatchAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertPatchAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertPatchAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertPatchAssetRequestValidationError) ErrorName() string { - return "UpsertPatchAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertPatchAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertPatchAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertPatchAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertPatchAssetRequestValidationError{} - -// Validate checks the field values on UpsertPatchAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertPatchAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertPatchAssetResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpsertPatchAssetResponseMultiError, or nil if none found. -func (m *UpsertPatchAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertPatchAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return UpsertPatchAssetResponseMultiError(errors) - } - - return nil -} - -// UpsertPatchAssetResponseMultiError is an error wrapping multiple validation -// errors returned by UpsertPatchAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type UpsertPatchAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertPatchAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertPatchAssetResponseMultiError) AllErrors() []error { return m } - -// UpsertPatchAssetResponseValidationError is the validation error returned by -// UpsertPatchAssetResponse.Validate if the designated constraints aren't met. -type UpsertPatchAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertPatchAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertPatchAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertPatchAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertPatchAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertPatchAssetResponseValidationError) ErrorName() string { - return "UpsertPatchAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertPatchAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertPatchAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertPatchAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertPatchAssetResponseValidationError{} - -// Validate checks the field values on DeleteAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteAssetRequestMultiError, or nil if none found. -func (m *DeleteAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return DeleteAssetRequestMultiError(errors) - } - - return nil -} - -// DeleteAssetRequestMultiError is an error wrapping multiple validation errors -// returned by DeleteAssetRequest.ValidateAll() if the designated constraints -// aren't met. -type DeleteAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteAssetRequestMultiError) AllErrors() []error { return m } - -// DeleteAssetRequestValidationError is the validation error returned by -// DeleteAssetRequest.Validate if the designated constraints aren't met. -type DeleteAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteAssetRequestValidationError) ErrorName() string { - return "DeleteAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteAssetRequestValidationError{} - -// Validate checks the field values on DeleteAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteAssetResponseMultiError, or nil if none found. -func (m *DeleteAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DeleteAssetResponseMultiError(errors) - } - - return nil -} - -// DeleteAssetResponseMultiError is an error wrapping multiple validation -// errors returned by DeleteAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type DeleteAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteAssetResponseMultiError) AllErrors() []error { return m } - -// DeleteAssetResponseValidationError is the validation error returned by -// DeleteAssetResponse.Validate if the designated constraints aren't met. -type DeleteAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteAssetResponseValidationError) ErrorName() string { - return "DeleteAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteAssetResponseValidationError{} - -// Validate checks the field values on GetAssetStargazersRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetStargazersRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetStargazersRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetStargazersRequestMultiError, or nil if none found. -func (m *GetAssetStargazersRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetStargazersRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetAssetStargazersRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetAssetStargazersRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetAssetStargazersRequestMultiError(errors) - } - - return nil -} - -// GetAssetStargazersRequestMultiError is an error wrapping multiple validation -// errors returned by GetAssetStargazersRequest.ValidateAll() if the -// designated constraints aren't met. -type GetAssetStargazersRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetStargazersRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetStargazersRequestMultiError) AllErrors() []error { return m } - -// GetAssetStargazersRequestValidationError is the validation error returned by -// GetAssetStargazersRequest.Validate if the designated constraints aren't met. -type GetAssetStargazersRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetStargazersRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetStargazersRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetStargazersRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetStargazersRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetStargazersRequestValidationError) ErrorName() string { - return "GetAssetStargazersRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetStargazersRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetStargazersRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetStargazersRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetStargazersRequestValidationError{} - -// Validate checks the field values on GetAssetStargazersResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetStargazersResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetStargazersResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetStargazersResponseMultiError, or nil if none found. -func (m *GetAssetStargazersResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetStargazersResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAssetStargazersResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAssetStargazersResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAssetStargazersResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAssetStargazersResponseMultiError(errors) - } - - return nil -} - -// GetAssetStargazersResponseMultiError is an error wrapping multiple -// validation errors returned by GetAssetStargazersResponse.ValidateAll() if -// the designated constraints aren't met. -type GetAssetStargazersResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetStargazersResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetStargazersResponseMultiError) AllErrors() []error { return m } - -// GetAssetStargazersResponseValidationError is the validation error returned -// by GetAssetStargazersResponse.Validate if the designated constraints aren't met. -type GetAssetStargazersResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetStargazersResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetStargazersResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetStargazersResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetStargazersResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetStargazersResponseValidationError) ErrorName() string { - return "GetAssetStargazersResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetStargazersResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetStargazersResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetStargazersResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetStargazersResponseValidationError{} - -// Validate checks the field values on GetAssetVersionHistoryRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetVersionHistoryRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetVersionHistoryRequest with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// GetAssetVersionHistoryRequestMultiError, or nil if none found. -func (m *GetAssetVersionHistoryRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetVersionHistoryRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetAssetVersionHistoryRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetAssetVersionHistoryRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetAssetVersionHistoryRequestMultiError(errors) - } - - return nil -} - -// GetAssetVersionHistoryRequestMultiError is an error wrapping multiple -// validation errors returned by GetAssetVersionHistoryRequest.ValidateAll() -// if the designated constraints aren't met. -type GetAssetVersionHistoryRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetVersionHistoryRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetVersionHistoryRequestMultiError) AllErrors() []error { return m } - -// GetAssetVersionHistoryRequestValidationError is the validation error -// returned by GetAssetVersionHistoryRequest.Validate if the designated -// constraints aren't met. -type GetAssetVersionHistoryRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetVersionHistoryRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetVersionHistoryRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetVersionHistoryRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetVersionHistoryRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetVersionHistoryRequestValidationError) ErrorName() string { - return "GetAssetVersionHistoryRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetVersionHistoryRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetVersionHistoryRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetVersionHistoryRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetVersionHistoryRequestValidationError{} - -// Validate checks the field values on GetAssetVersionHistoryResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetVersionHistoryResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetVersionHistoryResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// GetAssetVersionHistoryResponseMultiError, or nil if none found. -func (m *GetAssetVersionHistoryResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetVersionHistoryResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAssetVersionHistoryResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAssetVersionHistoryResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAssetVersionHistoryResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAssetVersionHistoryResponseMultiError(errors) - } - - return nil -} - -// GetAssetVersionHistoryResponseMultiError is an error wrapping multiple -// validation errors returned by GetAssetVersionHistoryResponse.ValidateAll() -// if the designated constraints aren't met. -type GetAssetVersionHistoryResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetVersionHistoryResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetVersionHistoryResponseMultiError) AllErrors() []error { return m } - -// GetAssetVersionHistoryResponseValidationError is the validation error -// returned by GetAssetVersionHistoryResponse.Validate if the designated -// constraints aren't met. -type GetAssetVersionHistoryResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetVersionHistoryResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetVersionHistoryResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetVersionHistoryResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetVersionHistoryResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetVersionHistoryResponseValidationError) ErrorName() string { - return "GetAssetVersionHistoryResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetVersionHistoryResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetVersionHistoryResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetVersionHistoryResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetVersionHistoryResponseValidationError{} - -// Validate checks the field values on GetAssetByVersionRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetByVersionRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetByVersionRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetByVersionRequestMultiError, or nil if none found. -func (m *GetAssetByVersionRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetByVersionRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for Version - - if len(errors) > 0 { - return GetAssetByVersionRequestMultiError(errors) - } - - return nil -} - -// GetAssetByVersionRequestMultiError is an error wrapping multiple validation -// errors returned by GetAssetByVersionRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAssetByVersionRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetByVersionRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetByVersionRequestMultiError) AllErrors() []error { return m } - -// GetAssetByVersionRequestValidationError is the validation error returned by -// GetAssetByVersionRequest.Validate if the designated constraints aren't met. -type GetAssetByVersionRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetByVersionRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetByVersionRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetByVersionRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetByVersionRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetByVersionRequestValidationError) ErrorName() string { - return "GetAssetByVersionRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetByVersionRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetByVersionRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetByVersionRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetByVersionRequestValidationError{} - -// Validate checks the field values on GetAssetByVersionResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAssetByVersionResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAssetByVersionResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAssetByVersionResponseMultiError, or nil if none found. -func (m *GetAssetByVersionResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAssetByVersionResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAssetByVersionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAssetByVersionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAssetByVersionResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetAssetByVersionResponseMultiError(errors) - } - - return nil -} - -// GetAssetByVersionResponseMultiError is an error wrapping multiple validation -// errors returned by GetAssetByVersionResponse.ValidateAll() if the -// designated constraints aren't met. -type GetAssetByVersionResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAssetByVersionResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAssetByVersionResponseMultiError) AllErrors() []error { return m } - -// GetAssetByVersionResponseValidationError is the validation error returned by -// GetAssetByVersionResponse.Validate if the designated constraints aren't met. -type GetAssetByVersionResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAssetByVersionResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAssetByVersionResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAssetByVersionResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAssetByVersionResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAssetByVersionResponseValidationError) ErrorName() string { - return "GetAssetByVersionResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAssetByVersionResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAssetByVersionResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAssetByVersionResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAssetByVersionResponseValidationError{} - -// Validate checks the field values on CreateAssetProbeRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateAssetProbeRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateAssetProbeRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateAssetProbeRequestMultiError, or nil if none found. -func (m *CreateAssetProbeRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateAssetProbeRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetAssetUrn()) < 1 { - err := CreateAssetProbeRequestValidationError{ - field: "AssetUrn", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - if all { - switch v := interface{}(m.GetProbe()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateAssetProbeRequestValidationError{ - field: "Probe", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateAssetProbeRequestValidationError{ - field: "Probe", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetProbe()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateAssetProbeRequestValidationError{ - field: "Probe", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return CreateAssetProbeRequestMultiError(errors) - } - - return nil -} - -// CreateAssetProbeRequestMultiError is an error wrapping multiple validation -// errors returned by CreateAssetProbeRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateAssetProbeRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateAssetProbeRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateAssetProbeRequestMultiError) AllErrors() []error { return m } - -// CreateAssetProbeRequestValidationError is the validation error returned by -// CreateAssetProbeRequest.Validate if the designated constraints aren't met. -type CreateAssetProbeRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateAssetProbeRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateAssetProbeRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateAssetProbeRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateAssetProbeRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateAssetProbeRequestValidationError) ErrorName() string { - return "CreateAssetProbeRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateAssetProbeRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateAssetProbeRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateAssetProbeRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateAssetProbeRequestValidationError{} - -// Validate checks the field values on CreateAssetProbeResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateAssetProbeResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateAssetProbeResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateAssetProbeResponseMultiError, or nil if none found. -func (m *CreateAssetProbeResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateAssetProbeResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return CreateAssetProbeResponseMultiError(errors) - } - - return nil -} - -// CreateAssetProbeResponseMultiError is an error wrapping multiple validation -// errors returned by CreateAssetProbeResponse.ValidateAll() if the designated -// constraints aren't met. -type CreateAssetProbeResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateAssetProbeResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateAssetProbeResponseMultiError) AllErrors() []error { return m } - -// CreateAssetProbeResponseValidationError is the validation error returned by -// CreateAssetProbeResponse.Validate if the designated constraints aren't met. -type CreateAssetProbeResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateAssetProbeResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateAssetProbeResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateAssetProbeResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateAssetProbeResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateAssetProbeResponseValidationError) ErrorName() string { - return "CreateAssetProbeResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateAssetProbeResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateAssetProbeResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateAssetProbeResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateAssetProbeResponseValidationError{} - -// Validate checks the field values on GetUserStarredAssetsRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetUserStarredAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetUserStarredAssetsRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetUserStarredAssetsRequestMultiError, or nil if none found. -func (m *GetUserStarredAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetUserStarredAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for UserId - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetUserStarredAssetsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetUserStarredAssetsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetUserStarredAssetsRequestMultiError(errors) - } - - return nil -} - -// GetUserStarredAssetsRequestMultiError is an error wrapping multiple -// validation errors returned by GetUserStarredAssetsRequest.ValidateAll() if -// the designated constraints aren't met. -type GetUserStarredAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetUserStarredAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetUserStarredAssetsRequestMultiError) AllErrors() []error { return m } - -// GetUserStarredAssetsRequestValidationError is the validation error returned -// by GetUserStarredAssetsRequest.Validate if the designated constraints -// aren't met. -type GetUserStarredAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetUserStarredAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetUserStarredAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetUserStarredAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetUserStarredAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetUserStarredAssetsRequestValidationError) ErrorName() string { - return "GetUserStarredAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetUserStarredAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetUserStarredAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetUserStarredAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetUserStarredAssetsRequestValidationError{} - -// Validate checks the field values on GetUserStarredAssetsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetUserStarredAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetUserStarredAssetsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetUserStarredAssetsResponseMultiError, or nil if none found. -func (m *GetUserStarredAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetUserStarredAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetUserStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetUserStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetUserStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetUserStarredAssetsResponseMultiError(errors) - } - - return nil -} - -// GetUserStarredAssetsResponseMultiError is an error wrapping multiple -// validation errors returned by GetUserStarredAssetsResponse.ValidateAll() if -// the designated constraints aren't met. -type GetUserStarredAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetUserStarredAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetUserStarredAssetsResponseMultiError) AllErrors() []error { return m } - -// GetUserStarredAssetsResponseValidationError is the validation error returned -// by GetUserStarredAssetsResponse.Validate if the designated constraints -// aren't met. -type GetUserStarredAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetUserStarredAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetUserStarredAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetUserStarredAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetUserStarredAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetUserStarredAssetsResponseValidationError) ErrorName() string { - return "GetUserStarredAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetUserStarredAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetUserStarredAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetUserStarredAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetUserStarredAssetsResponseValidationError{} - -// Validate checks the field values on GetMyStarredAssetsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyStarredAssetsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyStarredAssetsRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyStarredAssetsRequestMultiError, or nil if none found. -func (m *GetMyStarredAssetsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyStarredAssetsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetMyStarredAssetsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetMyStarredAssetsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetMyStarredAssetsRequestMultiError(errors) - } - - return nil -} - -// GetMyStarredAssetsRequestMultiError is an error wrapping multiple validation -// errors returned by GetMyStarredAssetsRequest.ValidateAll() if the -// designated constraints aren't met. -type GetMyStarredAssetsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyStarredAssetsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyStarredAssetsRequestMultiError) AllErrors() []error { return m } - -// GetMyStarredAssetsRequestValidationError is the validation error returned by -// GetMyStarredAssetsRequest.Validate if the designated constraints aren't met. -type GetMyStarredAssetsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyStarredAssetsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyStarredAssetsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyStarredAssetsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyStarredAssetsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyStarredAssetsRequestValidationError) ErrorName() string { - return "GetMyStarredAssetsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyStarredAssetsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyStarredAssetsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyStarredAssetsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyStarredAssetsRequestValidationError{} - -// Validate checks the field values on GetMyStarredAssetsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyStarredAssetsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyStarredAssetsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyStarredAssetsResponseMultiError, or nil if none found. -func (m *GetMyStarredAssetsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyStarredAssetsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetMyStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetMyStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetMyStarredAssetsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetMyStarredAssetsResponseMultiError(errors) - } - - return nil -} - -// GetMyStarredAssetsResponseMultiError is an error wrapping multiple -// validation errors returned by GetMyStarredAssetsResponse.ValidateAll() if -// the designated constraints aren't met. -type GetMyStarredAssetsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyStarredAssetsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyStarredAssetsResponseMultiError) AllErrors() []error { return m } - -// GetMyStarredAssetsResponseValidationError is the validation error returned -// by GetMyStarredAssetsResponse.Validate if the designated constraints aren't met. -type GetMyStarredAssetsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyStarredAssetsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyStarredAssetsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyStarredAssetsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyStarredAssetsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyStarredAssetsResponseValidationError) ErrorName() string { - return "GetMyStarredAssetsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyStarredAssetsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyStarredAssetsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyStarredAssetsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyStarredAssetsResponseValidationError{} - -// Validate checks the field values on GetMyStarredAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyStarredAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyStarredAssetRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyStarredAssetRequestMultiError, or nil if none found. -func (m *GetMyStarredAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyStarredAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - if len(errors) > 0 { - return GetMyStarredAssetRequestMultiError(errors) - } - - return nil -} - -// GetMyStarredAssetRequestMultiError is an error wrapping multiple validation -// errors returned by GetMyStarredAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type GetMyStarredAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyStarredAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyStarredAssetRequestMultiError) AllErrors() []error { return m } - -// GetMyStarredAssetRequestValidationError is the validation error returned by -// GetMyStarredAssetRequest.Validate if the designated constraints aren't met. -type GetMyStarredAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyStarredAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyStarredAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyStarredAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyStarredAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyStarredAssetRequestValidationError) ErrorName() string { - return "GetMyStarredAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyStarredAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyStarredAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyStarredAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyStarredAssetRequestValidationError{} - -// Validate checks the field values on GetMyStarredAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyStarredAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyStarredAssetResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyStarredAssetResponseMultiError, or nil if none found. -func (m *GetMyStarredAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyStarredAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetMyStarredAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetMyStarredAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetMyStarredAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetMyStarredAssetResponseMultiError(errors) - } - - return nil -} - -// GetMyStarredAssetResponseMultiError is an error wrapping multiple validation -// errors returned by GetMyStarredAssetResponse.ValidateAll() if the -// designated constraints aren't met. -type GetMyStarredAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyStarredAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyStarredAssetResponseMultiError) AllErrors() []error { return m } - -// GetMyStarredAssetResponseValidationError is the validation error returned by -// GetMyStarredAssetResponse.Validate if the designated constraints aren't met. -type GetMyStarredAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyStarredAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyStarredAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyStarredAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyStarredAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyStarredAssetResponseValidationError) ErrorName() string { - return "GetMyStarredAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyStarredAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyStarredAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyStarredAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyStarredAssetResponseValidationError{} - -// Validate checks the field values on StarAssetRequest with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *StarAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on StarAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// StarAssetRequestMultiError, or nil if none found. -func (m *StarAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *StarAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - if len(errors) > 0 { - return StarAssetRequestMultiError(errors) - } - - return nil -} - -// StarAssetRequestMultiError is an error wrapping multiple validation errors -// returned by StarAssetRequest.ValidateAll() if the designated constraints -// aren't met. -type StarAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m StarAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m StarAssetRequestMultiError) AllErrors() []error { return m } - -// StarAssetRequestValidationError is the validation error returned by -// StarAssetRequest.Validate if the designated constraints aren't met. -type StarAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e StarAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e StarAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e StarAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e StarAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e StarAssetRequestValidationError) ErrorName() string { return "StarAssetRequestValidationError" } - -// Error satisfies the builtin error interface -func (e StarAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sStarAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = StarAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = StarAssetRequestValidationError{} - -// Validate checks the field values on StarAssetResponse with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *StarAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on StarAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// StarAssetResponseMultiError, or nil if none found. -func (m *StarAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *StarAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return StarAssetResponseMultiError(errors) - } - - return nil -} - -// StarAssetResponseMultiError is an error wrapping multiple validation errors -// returned by StarAssetResponse.ValidateAll() if the designated constraints -// aren't met. -type StarAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m StarAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m StarAssetResponseMultiError) AllErrors() []error { return m } - -// StarAssetResponseValidationError is the validation error returned by -// StarAssetResponse.Validate if the designated constraints aren't met. -type StarAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e StarAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e StarAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e StarAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e StarAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e StarAssetResponseValidationError) ErrorName() string { - return "StarAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e StarAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sStarAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = StarAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = StarAssetResponseValidationError{} - -// Validate checks the field values on UnstarAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UnstarAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UnstarAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UnstarAssetRequestMultiError, or nil if none found. -func (m *UnstarAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UnstarAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - if len(errors) > 0 { - return UnstarAssetRequestMultiError(errors) - } - - return nil -} - -// UnstarAssetRequestMultiError is an error wrapping multiple validation errors -// returned by UnstarAssetRequest.ValidateAll() if the designated constraints -// aren't met. -type UnstarAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UnstarAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UnstarAssetRequestMultiError) AllErrors() []error { return m } - -// UnstarAssetRequestValidationError is the validation error returned by -// UnstarAssetRequest.Validate if the designated constraints aren't met. -type UnstarAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UnstarAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UnstarAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UnstarAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UnstarAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UnstarAssetRequestValidationError) ErrorName() string { - return "UnstarAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UnstarAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUnstarAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UnstarAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UnstarAssetRequestValidationError{} - -// Validate checks the field values on UnstarAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UnstarAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UnstarAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UnstarAssetResponseMultiError, or nil if none found. -func (m *UnstarAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UnstarAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return UnstarAssetResponseMultiError(errors) - } - - return nil -} - -// UnstarAssetResponseMultiError is an error wrapping multiple validation -// errors returned by UnstarAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type UnstarAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UnstarAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UnstarAssetResponseMultiError) AllErrors() []error { return m } - -// UnstarAssetResponseValidationError is the validation error returned by -// UnstarAssetResponse.Validate if the designated constraints aren't met. -type UnstarAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UnstarAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UnstarAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UnstarAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UnstarAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UnstarAssetResponseValidationError) ErrorName() string { - return "UnstarAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UnstarAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUnstarAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UnstarAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UnstarAssetResponseValidationError{} - -// Validate checks the field values on GetMyDiscussionsRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyDiscussionsRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyDiscussionsRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyDiscussionsRequestMultiError, or nil if none found. -func (m *GetMyDiscussionsRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyDiscussionsRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if m.GetFilter() != "" { - - } - - if m.GetType() != "" { - - } - - if m.GetState() != "" { - - } - - if m.GetAsset() != "" { - - } - - if m.GetLabels() != "" { - - } - - if m.GetSort() != "" { - - } - - if m.GetDirection() != "" { - - } - - if m.GetSize() != 0 { - - if m.GetSize() < 0 { - err := GetMyDiscussionsRequestValidationError{ - field: "Size", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if m.GetOffset() != 0 { - - if m.GetOffset() < 0 { - err := GetMyDiscussionsRequestValidationError{ - field: "Offset", - reason: "value must be greater than or equal to 0", - } - if !all { - return err - } - errors = append(errors, err) - } - - } - - if len(errors) > 0 { - return GetMyDiscussionsRequestMultiError(errors) - } - - return nil -} - -// GetMyDiscussionsRequestMultiError is an error wrapping multiple validation -// errors returned by GetMyDiscussionsRequest.ValidateAll() if the designated -// constraints aren't met. -type GetMyDiscussionsRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyDiscussionsRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyDiscussionsRequestMultiError) AllErrors() []error { return m } - -// GetMyDiscussionsRequestValidationError is the validation error returned by -// GetMyDiscussionsRequest.Validate if the designated constraints aren't met. -type GetMyDiscussionsRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyDiscussionsRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyDiscussionsRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyDiscussionsRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyDiscussionsRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyDiscussionsRequestValidationError) ErrorName() string { - return "GetMyDiscussionsRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyDiscussionsRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyDiscussionsRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyDiscussionsRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyDiscussionsRequestValidationError{} - -// Validate checks the field values on GetMyDiscussionsResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetMyDiscussionsResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetMyDiscussionsResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetMyDiscussionsResponseMultiError, or nil if none found. -func (m *GetMyDiscussionsResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetMyDiscussionsResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetMyDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetMyDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetMyDiscussionsResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetMyDiscussionsResponseMultiError(errors) - } - - return nil -} - -// GetMyDiscussionsResponseMultiError is an error wrapping multiple validation -// errors returned by GetMyDiscussionsResponse.ValidateAll() if the designated -// constraints aren't met. -type GetMyDiscussionsResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetMyDiscussionsResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetMyDiscussionsResponseMultiError) AllErrors() []error { return m } - -// GetMyDiscussionsResponseValidationError is the validation error returned by -// GetMyDiscussionsResponse.Validate if the designated constraints aren't met. -type GetMyDiscussionsResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetMyDiscussionsResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetMyDiscussionsResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetMyDiscussionsResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetMyDiscussionsResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetMyDiscussionsResponseValidationError) ErrorName() string { - return "GetMyDiscussionsResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetMyDiscussionsResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetMyDiscussionsResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetMyDiscussionsResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetMyDiscussionsResponseValidationError{} - -// Validate checks the field values on CreateTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateTagAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateTagAssetRequestMultiError, or nil if none found. -func (m *CreateTagAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateTagAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - // no validation rules for TemplateUrn - - for idx, item := range m.GetTagValues() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for TemplateDisplayName - - // no validation rules for TemplateDescription - - if len(errors) > 0 { - return CreateTagAssetRequestMultiError(errors) - } - - return nil -} - -// CreateTagAssetRequestMultiError is an error wrapping multiple validation -// errors returned by CreateTagAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateTagAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateTagAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateTagAssetRequestMultiError) AllErrors() []error { return m } - -// CreateTagAssetRequestValidationError is the validation error returned by -// CreateTagAssetRequest.Validate if the designated constraints aren't met. -type CreateTagAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateTagAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateTagAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateTagAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateTagAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateTagAssetRequestValidationError) ErrorName() string { - return "CreateTagAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateTagAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateTagAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateTagAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateTagAssetRequestValidationError{} - -// Validate checks the field values on CreateTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateTagAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateTagAssetResponseMultiError, or nil if none found. -func (m *CreateTagAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateTagAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return CreateTagAssetResponseMultiError(errors) - } - - return nil -} - -// CreateTagAssetResponseMultiError is an error wrapping multiple validation -// errors returned by CreateTagAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type CreateTagAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateTagAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateTagAssetResponseMultiError) AllErrors() []error { return m } - -// CreateTagAssetResponseValidationError is the validation error returned by -// CreateTagAssetResponse.Validate if the designated constraints aren't met. -type CreateTagAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateTagAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateTagAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateTagAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateTagAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateTagAssetResponseValidationError) ErrorName() string { - return "CreateTagAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateTagAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateTagAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateTagAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateTagAssetResponseValidationError{} - -// Validate checks the field values on GetTagByAssetAndTemplateRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetTagByAssetAndTemplateRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetTagByAssetAndTemplateRequest with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// GetTagByAssetAndTemplateRequestMultiError, or nil if none found. -func (m *GetTagByAssetAndTemplateRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetTagByAssetAndTemplateRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - // no validation rules for TemplateUrn - - if len(errors) > 0 { - return GetTagByAssetAndTemplateRequestMultiError(errors) - } - - return nil -} - -// GetTagByAssetAndTemplateRequestMultiError is an error wrapping multiple -// validation errors returned by GetTagByAssetAndTemplateRequest.ValidateAll() -// if the designated constraints aren't met. -type GetTagByAssetAndTemplateRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetTagByAssetAndTemplateRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetTagByAssetAndTemplateRequestMultiError) AllErrors() []error { return m } - -// GetTagByAssetAndTemplateRequestValidationError is the validation error -// returned by GetTagByAssetAndTemplateRequest.Validate if the designated -// constraints aren't met. -type GetTagByAssetAndTemplateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetTagByAssetAndTemplateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetTagByAssetAndTemplateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetTagByAssetAndTemplateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetTagByAssetAndTemplateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetTagByAssetAndTemplateRequestValidationError) ErrorName() string { - return "GetTagByAssetAndTemplateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetTagByAssetAndTemplateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetTagByAssetAndTemplateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetTagByAssetAndTemplateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetTagByAssetAndTemplateRequestValidationError{} - -// Validate checks the field values on GetTagByAssetAndTemplateResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the first error encountered is returned, or nil if there are -// no violations. -func (m *GetTagByAssetAndTemplateResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetTagByAssetAndTemplateResponse with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// GetTagByAssetAndTemplateResponseMultiError, or nil if none found. -func (m *GetTagByAssetAndTemplateResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetTagByAssetAndTemplateResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetTagByAssetAndTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetTagByAssetAndTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetTagByAssetAndTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetTagByAssetAndTemplateResponseMultiError(errors) - } - - return nil -} - -// GetTagByAssetAndTemplateResponseMultiError is an error wrapping multiple -// validation errors returned by -// GetTagByAssetAndTemplateResponse.ValidateAll() if the designated -// constraints aren't met. -type GetTagByAssetAndTemplateResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetTagByAssetAndTemplateResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetTagByAssetAndTemplateResponseMultiError) AllErrors() []error { return m } - -// GetTagByAssetAndTemplateResponseValidationError is the validation error -// returned by GetTagByAssetAndTemplateResponse.Validate if the designated -// constraints aren't met. -type GetTagByAssetAndTemplateResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetTagByAssetAndTemplateResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetTagByAssetAndTemplateResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetTagByAssetAndTemplateResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetTagByAssetAndTemplateResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetTagByAssetAndTemplateResponseValidationError) ErrorName() string { - return "GetTagByAssetAndTemplateResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetTagByAssetAndTemplateResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetTagByAssetAndTemplateResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetTagByAssetAndTemplateResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetTagByAssetAndTemplateResponseValidationError{} - -// Validate checks the field values on UpdateTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateTagAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateTagAssetRequestMultiError, or nil if none found. -func (m *UpdateTagAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateTagAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - // no validation rules for TemplateUrn - - for idx, item := range m.GetTagValues() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpdateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpdateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpdateTagAssetRequestValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for TemplateDisplayName - - // no validation rules for TemplateDescription - - if len(errors) > 0 { - return UpdateTagAssetRequestMultiError(errors) - } - - return nil -} - -// UpdateTagAssetRequestMultiError is an error wrapping multiple validation -// errors returned by UpdateTagAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type UpdateTagAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateTagAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateTagAssetRequestMultiError) AllErrors() []error { return m } - -// UpdateTagAssetRequestValidationError is the validation error returned by -// UpdateTagAssetRequest.Validate if the designated constraints aren't met. -type UpdateTagAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateTagAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateTagAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateTagAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateTagAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateTagAssetRequestValidationError) ErrorName() string { - return "UpdateTagAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateTagAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateTagAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateTagAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateTagAssetRequestValidationError{} - -// Validate checks the field values on UpdateTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateTagAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateTagAssetResponseMultiError, or nil if none found. -func (m *UpdateTagAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateTagAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpdateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpdateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpdateTagAssetResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return UpdateTagAssetResponseMultiError(errors) - } - - return nil -} - -// UpdateTagAssetResponseMultiError is an error wrapping multiple validation -// errors returned by UpdateTagAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type UpdateTagAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateTagAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateTagAssetResponseMultiError) AllErrors() []error { return m } - -// UpdateTagAssetResponseValidationError is the validation error returned by -// UpdateTagAssetResponse.Validate if the designated constraints aren't met. -type UpdateTagAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateTagAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateTagAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateTagAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateTagAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateTagAssetResponseValidationError) ErrorName() string { - return "UpdateTagAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateTagAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateTagAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateTagAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateTagAssetResponseValidationError{} - -// Validate checks the field values on DeleteTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteTagAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteTagAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteTagAssetRequestMultiError, or nil if none found. -func (m *DeleteTagAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteTagAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - // no validation rules for TemplateUrn - - if len(errors) > 0 { - return DeleteTagAssetRequestMultiError(errors) - } - - return nil -} - -// DeleteTagAssetRequestMultiError is an error wrapping multiple validation -// errors returned by DeleteTagAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type DeleteTagAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteTagAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteTagAssetRequestMultiError) AllErrors() []error { return m } - -// DeleteTagAssetRequestValidationError is the validation error returned by -// DeleteTagAssetRequest.Validate if the designated constraints aren't met. -type DeleteTagAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteTagAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteTagAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteTagAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteTagAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteTagAssetRequestValidationError) ErrorName() string { - return "DeleteTagAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteTagAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteTagAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteTagAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteTagAssetRequestValidationError{} - -// Validate checks the field values on DeleteTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteTagAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteTagAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteTagAssetResponseMultiError, or nil if none found. -func (m *DeleteTagAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteTagAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DeleteTagAssetResponseMultiError(errors) - } - - return nil -} - -// DeleteTagAssetResponseMultiError is an error wrapping multiple validation -// errors returned by DeleteTagAssetResponse.ValidateAll() if the designated -// constraints aren't met. -type DeleteTagAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteTagAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteTagAssetResponseMultiError) AllErrors() []error { return m } - -// DeleteTagAssetResponseValidationError is the validation error returned by -// DeleteTagAssetResponse.Validate if the designated constraints aren't met. -type DeleteTagAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteTagAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteTagAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteTagAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteTagAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteTagAssetResponseValidationError) ErrorName() string { - return "DeleteTagAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteTagAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteTagAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteTagAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteTagAssetResponseValidationError{} - -// Validate checks the field values on GetAllTagsByAssetRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTagsByAssetRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTagsByAssetRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTagsByAssetRequestMultiError, or nil if none found. -func (m *GetAllTagsByAssetRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTagsByAssetRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - if len(errors) > 0 { - return GetAllTagsByAssetRequestMultiError(errors) - } - - return nil -} - -// GetAllTagsByAssetRequestMultiError is an error wrapping multiple validation -// errors returned by GetAllTagsByAssetRequest.ValidateAll() if the designated -// constraints aren't met. -type GetAllTagsByAssetRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTagsByAssetRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTagsByAssetRequestMultiError) AllErrors() []error { return m } - -// GetAllTagsByAssetRequestValidationError is the validation error returned by -// GetAllTagsByAssetRequest.Validate if the designated constraints aren't met. -type GetAllTagsByAssetRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTagsByAssetRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTagsByAssetRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTagsByAssetRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTagsByAssetRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTagsByAssetRequestValidationError) ErrorName() string { - return "GetAllTagsByAssetRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTagsByAssetRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTagsByAssetRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTagsByAssetRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTagsByAssetRequestValidationError{} - -// Validate checks the field values on GetAllTagsByAssetResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTagsByAssetResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTagsByAssetResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTagsByAssetResponseMultiError, or nil if none found. -func (m *GetAllTagsByAssetResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTagsByAssetResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllTagsByAssetResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllTagsByAssetResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllTagsByAssetResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAllTagsByAssetResponseMultiError(errors) - } - - return nil -} - -// GetAllTagsByAssetResponseMultiError is an error wrapping multiple validation -// errors returned by GetAllTagsByAssetResponse.ValidateAll() if the -// designated constraints aren't met. -type GetAllTagsByAssetResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTagsByAssetResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTagsByAssetResponseMultiError) AllErrors() []error { return m } - -// GetAllTagsByAssetResponseValidationError is the validation error returned by -// GetAllTagsByAssetResponse.Validate if the designated constraints aren't met. -type GetAllTagsByAssetResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTagsByAssetResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTagsByAssetResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTagsByAssetResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTagsByAssetResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTagsByAssetResponseValidationError) ErrorName() string { - return "GetAllTagsByAssetResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTagsByAssetResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTagsByAssetResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTagsByAssetResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTagsByAssetResponseValidationError{} - -// Validate checks the field values on GetAllTagTemplatesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTagTemplatesRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTagTemplatesRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTagTemplatesRequestMultiError, or nil if none found. -func (m *GetAllTagTemplatesRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTagTemplatesRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - if len(errors) > 0 { - return GetAllTagTemplatesRequestMultiError(errors) - } - - return nil -} - -// GetAllTagTemplatesRequestMultiError is an error wrapping multiple validation -// errors returned by GetAllTagTemplatesRequest.ValidateAll() if the -// designated constraints aren't met. -type GetAllTagTemplatesRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTagTemplatesRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTagTemplatesRequestMultiError) AllErrors() []error { return m } - -// GetAllTagTemplatesRequestValidationError is the validation error returned by -// GetAllTagTemplatesRequest.Validate if the designated constraints aren't met. -type GetAllTagTemplatesRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTagTemplatesRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTagTemplatesRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTagTemplatesRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTagTemplatesRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTagTemplatesRequestValidationError) ErrorName() string { - return "GetAllTagTemplatesRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTagTemplatesRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTagTemplatesRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTagTemplatesRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTagTemplatesRequestValidationError{} - -// Validate checks the field values on GetAllTagTemplatesResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetAllTagTemplatesResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetAllTagTemplatesResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetAllTagTemplatesResponseMultiError, or nil if none found. -func (m *GetAllTagTemplatesResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetAllTagTemplatesResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetData() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetAllTagTemplatesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetAllTagTemplatesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetAllTagTemplatesResponseValidationError{ - field: fmt.Sprintf("Data[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return GetAllTagTemplatesResponseMultiError(errors) - } - - return nil -} - -// GetAllTagTemplatesResponseMultiError is an error wrapping multiple -// validation errors returned by GetAllTagTemplatesResponse.ValidateAll() if -// the designated constraints aren't met. -type GetAllTagTemplatesResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetAllTagTemplatesResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetAllTagTemplatesResponseMultiError) AllErrors() []error { return m } - -// GetAllTagTemplatesResponseValidationError is the validation error returned -// by GetAllTagTemplatesResponse.Validate if the designated constraints aren't met. -type GetAllTagTemplatesResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetAllTagTemplatesResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetAllTagTemplatesResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetAllTagTemplatesResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetAllTagTemplatesResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetAllTagTemplatesResponseValidationError) ErrorName() string { - return "GetAllTagTemplatesResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetAllTagTemplatesResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetAllTagTemplatesResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetAllTagTemplatesResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetAllTagTemplatesResponseValidationError{} - -// Validate checks the field values on CreateTagTemplateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateTagTemplateRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateTagTemplateRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateTagTemplateRequestMultiError, or nil if none found. -func (m *CreateTagTemplateRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateTagTemplateRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for DisplayName - - // no validation rules for Description - - for idx, item := range m.GetFields() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return CreateTagTemplateRequestMultiError(errors) - } - - return nil -} - -// CreateTagTemplateRequestMultiError is an error wrapping multiple validation -// errors returned by CreateTagTemplateRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateTagTemplateRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateTagTemplateRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateTagTemplateRequestMultiError) AllErrors() []error { return m } - -// CreateTagTemplateRequestValidationError is the validation error returned by -// CreateTagTemplateRequest.Validate if the designated constraints aren't met. -type CreateTagTemplateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateTagTemplateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateTagTemplateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateTagTemplateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateTagTemplateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateTagTemplateRequestValidationError) ErrorName() string { - return "CreateTagTemplateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateTagTemplateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateTagTemplateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateTagTemplateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateTagTemplateRequestValidationError{} - -// Validate checks the field values on CreateTagTemplateResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateTagTemplateResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateTagTemplateResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateTagTemplateResponseMultiError, or nil if none found. -func (m *CreateTagTemplateResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateTagTemplateResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return CreateTagTemplateResponseMultiError(errors) - } - - return nil -} - -// CreateTagTemplateResponseMultiError is an error wrapping multiple validation -// errors returned by CreateTagTemplateResponse.ValidateAll() if the -// designated constraints aren't met. -type CreateTagTemplateResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateTagTemplateResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateTagTemplateResponseMultiError) AllErrors() []error { return m } - -// CreateTagTemplateResponseValidationError is the validation error returned by -// CreateTagTemplateResponse.Validate if the designated constraints aren't met. -type CreateTagTemplateResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateTagTemplateResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateTagTemplateResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateTagTemplateResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateTagTemplateResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateTagTemplateResponseValidationError) ErrorName() string { - return "CreateTagTemplateResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateTagTemplateResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateTagTemplateResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateTagTemplateResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateTagTemplateResponseValidationError{} - -// Validate checks the field values on GetTagTemplateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetTagTemplateRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetTagTemplateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetTagTemplateRequestMultiError, or nil if none found. -func (m *GetTagTemplateRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetTagTemplateRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for TemplateUrn - - if len(errors) > 0 { - return GetTagTemplateRequestMultiError(errors) - } - - return nil -} - -// GetTagTemplateRequestMultiError is an error wrapping multiple validation -// errors returned by GetTagTemplateRequest.ValidateAll() if the designated -// constraints aren't met. -type GetTagTemplateRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetTagTemplateRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetTagTemplateRequestMultiError) AllErrors() []error { return m } - -// GetTagTemplateRequestValidationError is the validation error returned by -// GetTagTemplateRequest.Validate if the designated constraints aren't met. -type GetTagTemplateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetTagTemplateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetTagTemplateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetTagTemplateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetTagTemplateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetTagTemplateRequestValidationError) ErrorName() string { - return "GetTagTemplateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetTagTemplateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetTagTemplateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetTagTemplateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetTagTemplateRequestValidationError{} - -// Validate checks the field values on GetTagTemplateResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetTagTemplateResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetTagTemplateResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetTagTemplateResponseMultiError, or nil if none found. -func (m *GetTagTemplateResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetTagTemplateResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetTagTemplateResponseMultiError(errors) - } - - return nil -} - -// GetTagTemplateResponseMultiError is an error wrapping multiple validation -// errors returned by GetTagTemplateResponse.ValidateAll() if the designated -// constraints aren't met. -type GetTagTemplateResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetTagTemplateResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetTagTemplateResponseMultiError) AllErrors() []error { return m } - -// GetTagTemplateResponseValidationError is the validation error returned by -// GetTagTemplateResponse.Validate if the designated constraints aren't met. -type GetTagTemplateResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetTagTemplateResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetTagTemplateResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetTagTemplateResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetTagTemplateResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetTagTemplateResponseValidationError) ErrorName() string { - return "GetTagTemplateResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetTagTemplateResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetTagTemplateResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetTagTemplateResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetTagTemplateResponseValidationError{} - -// Validate checks the field values on UpdateTagTemplateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateTagTemplateRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateTagTemplateRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateTagTemplateRequestMultiError, or nil if none found. -func (m *UpdateTagTemplateRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateTagTemplateRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for TemplateUrn - - // no validation rules for DisplayName - - // no validation rules for Description - - for idx, item := range m.GetFields() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpdateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpdateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpdateTagTemplateRequestValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return UpdateTagTemplateRequestMultiError(errors) - } - - return nil -} - -// UpdateTagTemplateRequestMultiError is an error wrapping multiple validation -// errors returned by UpdateTagTemplateRequest.ValidateAll() if the designated -// constraints aren't met. -type UpdateTagTemplateRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateTagTemplateRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateTagTemplateRequestMultiError) AllErrors() []error { return m } - -// UpdateTagTemplateRequestValidationError is the validation error returned by -// UpdateTagTemplateRequest.Validate if the designated constraints aren't met. -type UpdateTagTemplateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateTagTemplateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateTagTemplateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateTagTemplateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateTagTemplateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateTagTemplateRequestValidationError) ErrorName() string { - return "UpdateTagTemplateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateTagTemplateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateTagTemplateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateTagTemplateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateTagTemplateRequestValidationError{} - -// Validate checks the field values on UpdateTagTemplateResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateTagTemplateResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateTagTemplateResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateTagTemplateResponseMultiError, or nil if none found. -func (m *UpdateTagTemplateResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateTagTemplateResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpdateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpdateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpdateTagTemplateResponseValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return UpdateTagTemplateResponseMultiError(errors) - } - - return nil -} - -// UpdateTagTemplateResponseMultiError is an error wrapping multiple validation -// errors returned by UpdateTagTemplateResponse.ValidateAll() if the -// designated constraints aren't met. -type UpdateTagTemplateResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateTagTemplateResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateTagTemplateResponseMultiError) AllErrors() []error { return m } - -// UpdateTagTemplateResponseValidationError is the validation error returned by -// UpdateTagTemplateResponse.Validate if the designated constraints aren't met. -type UpdateTagTemplateResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateTagTemplateResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateTagTemplateResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateTagTemplateResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateTagTemplateResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateTagTemplateResponseValidationError) ErrorName() string { - return "UpdateTagTemplateResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateTagTemplateResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateTagTemplateResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateTagTemplateResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateTagTemplateResponseValidationError{} - -// Validate checks the field values on DeleteTagTemplateRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteTagTemplateRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteTagTemplateRequest with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteTagTemplateRequestMultiError, or nil if none found. -func (m *DeleteTagTemplateRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteTagTemplateRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for TemplateUrn - - if len(errors) > 0 { - return DeleteTagTemplateRequestMultiError(errors) - } - - return nil -} - -// DeleteTagTemplateRequestMultiError is an error wrapping multiple validation -// errors returned by DeleteTagTemplateRequest.ValidateAll() if the designated -// constraints aren't met. -type DeleteTagTemplateRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteTagTemplateRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteTagTemplateRequestMultiError) AllErrors() []error { return m } - -// DeleteTagTemplateRequestValidationError is the validation error returned by -// DeleteTagTemplateRequest.Validate if the designated constraints aren't met. -type DeleteTagTemplateRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteTagTemplateRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteTagTemplateRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteTagTemplateRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteTagTemplateRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteTagTemplateRequestValidationError) ErrorName() string { - return "DeleteTagTemplateRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteTagTemplateRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteTagTemplateRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteTagTemplateRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteTagTemplateRequestValidationError{} - -// Validate checks the field values on DeleteTagTemplateResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *DeleteTagTemplateResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on DeleteTagTemplateResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// DeleteTagTemplateResponseMultiError, or nil if none found. -func (m *DeleteTagTemplateResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *DeleteTagTemplateResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return DeleteTagTemplateResponseMultiError(errors) - } - - return nil -} - -// DeleteTagTemplateResponseMultiError is an error wrapping multiple validation -// errors returned by DeleteTagTemplateResponse.ValidateAll() if the -// designated constraints aren't met. -type DeleteTagTemplateResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DeleteTagTemplateResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DeleteTagTemplateResponseMultiError) AllErrors() []error { return m } - -// DeleteTagTemplateResponseValidationError is the validation error returned by -// DeleteTagTemplateResponse.Validate if the designated constraints aren't met. -type DeleteTagTemplateResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DeleteTagTemplateResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DeleteTagTemplateResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DeleteTagTemplateResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DeleteTagTemplateResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DeleteTagTemplateResponseValidationError) ErrorName() string { - return "DeleteTagTemplateResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e DeleteTagTemplateResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDeleteTagTemplateResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DeleteTagTemplateResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DeleteTagTemplateResponseValidationError{} - -// Validate checks the field values on CreateNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateNamespaceRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateNamespaceRequestMultiError, or nil if none found. -func (m *CreateNamespaceRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateNamespaceRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if utf8.RuneCountInString(m.GetName()) < 3 { - err := CreateNamespaceRequestValidationError{ - field: "Name", - reason: "value length must be at least 3 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for State - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return CreateNamespaceRequestMultiError(errors) - } - - return nil -} - -// CreateNamespaceRequestMultiError is an error wrapping multiple validation -// errors returned by CreateNamespaceRequest.ValidateAll() if the designated -// constraints aren't met. -type CreateNamespaceRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateNamespaceRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateNamespaceRequestMultiError) AllErrors() []error { return m } - -// CreateNamespaceRequestValidationError is the validation error returned by -// CreateNamespaceRequest.Validate if the designated constraints aren't met. -type CreateNamespaceRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateNamespaceRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateNamespaceRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateNamespaceRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateNamespaceRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateNamespaceRequestValidationError) ErrorName() string { - return "CreateNamespaceRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateNamespaceRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateNamespaceRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateNamespaceRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateNamespaceRequestValidationError{} - -// Validate checks the field values on CreateNamespaceResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateNamespaceResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateNamespaceResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// CreateNamespaceResponseMultiError, or nil if none found. -func (m *CreateNamespaceResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateNamespaceResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if len(errors) > 0 { - return CreateNamespaceResponseMultiError(errors) - } - - return nil -} - -// CreateNamespaceResponseMultiError is an error wrapping multiple validation -// errors returned by CreateNamespaceResponse.ValidateAll() if the designated -// constraints aren't met. -type CreateNamespaceResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateNamespaceResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateNamespaceResponseMultiError) AllErrors() []error { return m } - -// CreateNamespaceResponseValidationError is the validation error returned by -// CreateNamespaceResponse.Validate if the designated constraints aren't met. -type CreateNamespaceResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateNamespaceResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateNamespaceResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateNamespaceResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateNamespaceResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateNamespaceResponseValidationError) ErrorName() string { - return "CreateNamespaceResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateNamespaceResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateNamespaceResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateNamespaceResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateNamespaceResponseValidationError{} - -// Validate checks the field values on GetNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetNamespaceRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetNamespaceRequestMultiError, or nil if none found. -func (m *GetNamespaceRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *GetNamespaceRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - if len(errors) > 0 { - return GetNamespaceRequestMultiError(errors) - } - - return nil -} - -// GetNamespaceRequestMultiError is an error wrapping multiple validation -// errors returned by GetNamespaceRequest.ValidateAll() if the designated -// constraints aren't met. -type GetNamespaceRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetNamespaceRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetNamespaceRequestMultiError) AllErrors() []error { return m } - -// GetNamespaceRequestValidationError is the validation error returned by -// GetNamespaceRequest.Validate if the designated constraints aren't met. -type GetNamespaceRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetNamespaceRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetNamespaceRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetNamespaceRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetNamespaceRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetNamespaceRequestValidationError) ErrorName() string { - return "GetNamespaceRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e GetNamespaceRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetNamespaceRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetNamespaceRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetNamespaceRequestValidationError{} - -// Validate checks the field values on GetNamespaceResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetNamespaceResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetNamespaceResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetNamespaceResponseMultiError, or nil if none found. -func (m *GetNamespaceResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *GetNamespaceResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetNamespace()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetNamespaceResponseValidationError{ - field: "Namespace", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetNamespaceResponseValidationError{ - field: "Namespace", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetNamespace()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetNamespaceResponseValidationError{ - field: "Namespace", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetNamespaceResponseMultiError(errors) - } - - return nil -} - -// GetNamespaceResponseMultiError is an error wrapping multiple validation -// errors returned by GetNamespaceResponse.ValidateAll() if the designated -// constraints aren't met. -type GetNamespaceResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetNamespaceResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetNamespaceResponseMultiError) AllErrors() []error { return m } - -// GetNamespaceResponseValidationError is the validation error returned by -// GetNamespaceResponse.Validate if the designated constraints aren't met. -type GetNamespaceResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetNamespaceResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetNamespaceResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetNamespaceResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetNamespaceResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetNamespaceResponseValidationError) ErrorName() string { - return "GetNamespaceResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e GetNamespaceResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetNamespaceResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetNamespaceResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetNamespaceResponseValidationError{} - -// Validate checks the field values on UpdateNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateNamespaceRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateNamespaceRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateNamespaceRequestMultiError, or nil if none found. -func (m *UpdateNamespaceRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateNamespaceRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for State - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpdateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpdateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpdateNamespaceRequestValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return UpdateNamespaceRequestMultiError(errors) - } - - return nil -} - -// UpdateNamespaceRequestMultiError is an error wrapping multiple validation -// errors returned by UpdateNamespaceRequest.ValidateAll() if the designated -// constraints aren't met. -type UpdateNamespaceRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateNamespaceRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateNamespaceRequestMultiError) AllErrors() []error { return m } - -// UpdateNamespaceRequestValidationError is the validation error returned by -// UpdateNamespaceRequest.Validate if the designated constraints aren't met. -type UpdateNamespaceRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateNamespaceRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateNamespaceRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateNamespaceRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateNamespaceRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateNamespaceRequestValidationError) ErrorName() string { - return "UpdateNamespaceRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateNamespaceRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateNamespaceRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateNamespaceRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateNamespaceRequestValidationError{} - -// Validate checks the field values on UpdateNamespaceResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpdateNamespaceResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpdateNamespaceResponse with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpdateNamespaceResponseMultiError, or nil if none found. -func (m *UpdateNamespaceResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *UpdateNamespaceResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return UpdateNamespaceResponseMultiError(errors) - } - - return nil -} - -// UpdateNamespaceResponseMultiError is an error wrapping multiple validation -// errors returned by UpdateNamespaceResponse.ValidateAll() if the designated -// constraints aren't met. -type UpdateNamespaceResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpdateNamespaceResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpdateNamespaceResponseMultiError) AllErrors() []error { return m } - -// UpdateNamespaceResponseValidationError is the validation error returned by -// UpdateNamespaceResponse.Validate if the designated constraints aren't met. -type UpdateNamespaceResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpdateNamespaceResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpdateNamespaceResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpdateNamespaceResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpdateNamespaceResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpdateNamespaceResponseValidationError) ErrorName() string { - return "UpdateNamespaceResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e UpdateNamespaceResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpdateNamespaceResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpdateNamespaceResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpdateNamespaceResponseValidationError{} - -// Validate checks the field values on ListNamespacesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ListNamespacesRequest) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ListNamespacesRequest with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ListNamespacesRequestMultiError, or nil if none found. -func (m *ListNamespacesRequest) ValidateAll() error { - return m.validate(true) -} - -func (m *ListNamespacesRequest) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if len(errors) > 0 { - return ListNamespacesRequestMultiError(errors) - } - - return nil -} - -// ListNamespacesRequestMultiError is an error wrapping multiple validation -// errors returned by ListNamespacesRequest.ValidateAll() if the designated -// constraints aren't met. -type ListNamespacesRequestMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ListNamespacesRequestMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ListNamespacesRequestMultiError) AllErrors() []error { return m } - -// ListNamespacesRequestValidationError is the validation error returned by -// ListNamespacesRequest.Validate if the designated constraints aren't met. -type ListNamespacesRequestValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ListNamespacesRequestValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ListNamespacesRequestValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ListNamespacesRequestValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ListNamespacesRequestValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ListNamespacesRequestValidationError) ErrorName() string { - return "ListNamespacesRequestValidationError" -} - -// Error satisfies the builtin error interface -func (e ListNamespacesRequestValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sListNamespacesRequest.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ListNamespacesRequestValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ListNamespacesRequestValidationError{} - -// Validate checks the field values on ListNamespacesResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *ListNamespacesResponse) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on ListNamespacesResponse with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// ListNamespacesResponseMultiError, or nil if none found. -func (m *ListNamespacesResponse) ValidateAll() error { - return m.validate(true) -} - -func (m *ListNamespacesResponse) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - for idx, item := range m.GetNamespaces() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ListNamespacesResponseValidationError{ - field: fmt.Sprintf("Namespaces[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ListNamespacesResponseValidationError{ - field: fmt.Sprintf("Namespaces[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ListNamespacesResponseValidationError{ - field: fmt.Sprintf("Namespaces[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if len(errors) > 0 { - return ListNamespacesResponseMultiError(errors) - } - - return nil -} - -// ListNamespacesResponseMultiError is an error wrapping multiple validation -// errors returned by ListNamespacesResponse.ValidateAll() if the designated -// constraints aren't met. -type ListNamespacesResponseMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ListNamespacesResponseMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ListNamespacesResponseMultiError) AllErrors() []error { return m } - -// ListNamespacesResponseValidationError is the validation error returned by -// ListNamespacesResponse.Validate if the designated constraints aren't met. -type ListNamespacesResponseValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ListNamespacesResponseValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ListNamespacesResponseValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ListNamespacesResponseValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ListNamespacesResponseValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ListNamespacesResponseValidationError) ErrorName() string { - return "ListNamespacesResponseValidationError" -} - -// Error satisfies the builtin error interface -func (e ListNamespacesResponseValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sListNamespacesResponse.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ListNamespacesResponseValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ListNamespacesResponseValidationError{} - -// Validate checks the field values on User with the rules defined in the proto -// definition for this message. If any rules are violated, the first error -// encountered is returned, or nil if there are no violations. -func (m *User) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on User with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in UserMultiError, or nil if none found. -func (m *User) ValidateAll() error { - return m.validate(true) -} - -func (m *User) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for Uuid - - // no validation rules for Email - - // no validation rules for Provider - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UserValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UserValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UserValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UserValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UserValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return UserMultiError(errors) - } - - return nil -} - -// UserMultiError is an error wrapping multiple validation errors returned by -// User.ValidateAll() if the designated constraints aren't met. -type UserMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UserMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UserMultiError) AllErrors() []error { return m } - -// UserValidationError is the validation error returned by User.Validate if the -// designated constraints aren't met. -type UserValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UserValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UserValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UserValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UserValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UserValidationError) ErrorName() string { return "UserValidationError" } - -// Error satisfies the builtin error interface -func (e UserValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUser.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UserValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UserValidationError{} - -// Validate checks the field values on Change with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Change) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Change with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in ChangeMultiError, or nil if none found. -func (m *Change) ValidateAll() error { - return m.validate(true) -} - -func (m *Change) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Type - - if all { - switch v := interface{}(m.GetFrom()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ChangeValidationError{ - field: "From", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ChangeValidationError{ - field: "From", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetFrom()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "From", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetTo()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ChangeValidationError{ - field: "To", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ChangeValidationError{ - field: "To", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetTo()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ChangeValidationError{ - field: "To", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return ChangeMultiError(errors) - } - - return nil -} - -// ChangeMultiError is an error wrapping multiple validation errors returned by -// Change.ValidateAll() if the designated constraints aren't met. -type ChangeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ChangeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ChangeMultiError) AllErrors() []error { return m } - -// ChangeValidationError is the validation error returned by Change.Validate if -// the designated constraints aren't met. -type ChangeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ChangeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ChangeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ChangeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ChangeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ChangeValidationError) ErrorName() string { return "ChangeValidationError" } - -// Error satisfies the builtin error interface -func (e ChangeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sChange.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ChangeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ChangeValidationError{} - -// Validate checks the field values on Asset with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Asset) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Asset with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in AssetMultiError, or nil if none found. -func (m *Asset) ValidateAll() error { - return m.validate(true) -} - -func (m *Asset) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for Urn - - // no validation rules for Type - - // no validation rules for Service - - // no validation rules for Name - - // no validation rules for Description - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Labels - - for idx, item := range m.GetOwners() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Version - - if all { - switch v := interface{}(m.GetUpdatedBy()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedBy()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - } - } - } - - for idx, item := range m.GetChangelog() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Changelog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Changelog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: fmt.Sprintf("Changelog[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Url - - for idx, item := range m.GetProbes() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Probes[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, AssetValidationError{ - field: fmt.Sprintf("Probes[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return AssetValidationError{ - field: fmt.Sprintf("Probes[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for IsDeleted - - if len(errors) > 0 { - return AssetMultiError(errors) - } - - return nil -} - -// AssetMultiError is an error wrapping multiple validation errors returned by -// Asset.ValidateAll() if the designated constraints aren't met. -type AssetMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m AssetMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m AssetMultiError) AllErrors() []error { return m } - -// AssetValidationError is the validation error returned by Asset.Validate if -// the designated constraints aren't met. -type AssetValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e AssetValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e AssetValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e AssetValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e AssetValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e AssetValidationError) ErrorName() string { return "AssetValidationError" } - -// Error satisfies the builtin error interface -func (e AssetValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sAsset.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = AssetValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = AssetValidationError{} - -// Validate checks the field values on Probe with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Probe) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Probe with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in ProbeMultiError, or nil if none found. -func (m *Probe) ValidateAll() error { - return m.validate(true) -} - -func (m *Probe) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for AssetUrn - - // no validation rules for Status - - // no validation rules for StatusReason - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetTimestamp()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, ProbeValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return ProbeValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return ProbeMultiError(errors) - } - - return nil -} - -// ProbeMultiError is an error wrapping multiple validation errors returned by -// Probe.ValidateAll() if the designated constraints aren't met. -type ProbeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m ProbeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m ProbeMultiError) AllErrors() []error { return m } - -// ProbeValidationError is the validation error returned by Probe.Validate if -// the designated constraints aren't met. -type ProbeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e ProbeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e ProbeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e ProbeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e ProbeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e ProbeValidationError) ErrorName() string { return "ProbeValidationError" } - -// Error satisfies the builtin error interface -func (e ProbeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sProbe.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = ProbeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = ProbeValidationError{} - -// Validate checks the field values on Discussion with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Discussion) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Discussion with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in DiscussionMultiError, or -// nil if none found. -func (m *Discussion) ValidateAll() error { - return m.validate(true) -} - -func (m *Discussion) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for Title - - // no validation rules for Body - - // no validation rules for Type - - // no validation rules for State - - if all { - switch v := interface{}(m.GetOwner()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetOwner()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DiscussionValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DiscussionValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, DiscussionValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return DiscussionValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return DiscussionMultiError(errors) - } - - return nil -} - -// DiscussionMultiError is an error wrapping multiple validation errors -// returned by Discussion.ValidateAll() if the designated constraints aren't met. -type DiscussionMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m DiscussionMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m DiscussionMultiError) AllErrors() []error { return m } - -// DiscussionValidationError is the validation error returned by -// Discussion.Validate if the designated constraints aren't met. -type DiscussionValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e DiscussionValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e DiscussionValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e DiscussionValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e DiscussionValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e DiscussionValidationError) ErrorName() string { return "DiscussionValidationError" } - -// Error satisfies the builtin error interface -func (e DiscussionValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sDiscussion.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = DiscussionValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = DiscussionValidationError{} - -// Validate checks the field values on Comment with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Comment) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Comment with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in CommentMultiError, or nil if none found. -func (m *Comment) ValidateAll() error { - return m.validate(true) -} - -func (m *Comment) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for DiscussionId - - // no validation rules for Body - - if all { - switch v := interface{}(m.GetOwner()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CommentValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CommentValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetOwner()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CommentValidationError{ - field: "Owner", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedBy()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CommentValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CommentValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedBy()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CommentValidationError{ - field: "UpdatedBy", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CommentValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CommentValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CommentValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CommentValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CommentValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CommentValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return CommentMultiError(errors) - } - - return nil -} - -// CommentMultiError is an error wrapping multiple validation errors returned -// by Comment.ValidateAll() if the designated constraints aren't met. -type CommentMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CommentMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CommentMultiError) AllErrors() []error { return m } - -// CommentValidationError is the validation error returned by Comment.Validate -// if the designated constraints aren't met. -type CommentValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CommentValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CommentValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CommentValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CommentValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CommentValidationError) ErrorName() string { return "CommentValidationError" } - -// Error satisfies the builtin error interface -func (e CommentValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sComment.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CommentValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CommentValidationError{} - -// Validate checks the field values on LineageEdge with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *LineageEdge) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on LineageEdge with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in LineageEdgeMultiError, or -// nil if none found. -func (m *LineageEdge) ValidateAll() error { - return m.validate(true) -} - -func (m *LineageEdge) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Source - - // no validation rules for Target - - if all { - switch v := interface{}(m.GetProp()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, LineageEdgeValidationError{ - field: "Prop", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, LineageEdgeValidationError{ - field: "Prop", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetProp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return LineageEdgeValidationError{ - field: "Prop", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return LineageEdgeMultiError(errors) - } - - return nil -} - -// LineageEdgeMultiError is an error wrapping multiple validation errors -// returned by LineageEdge.ValidateAll() if the designated constraints aren't met. -type LineageEdgeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m LineageEdgeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m LineageEdgeMultiError) AllErrors() []error { return m } - -// LineageEdgeValidationError is the validation error returned by -// LineageEdge.Validate if the designated constraints aren't met. -type LineageEdgeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LineageEdgeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LineageEdgeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LineageEdgeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LineageEdgeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LineageEdgeValidationError) ErrorName() string { return "LineageEdgeValidationError" } - -// Error satisfies the builtin error interface -func (e LineageEdgeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLineageEdge.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LineageEdgeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LineageEdgeValidationError{} - -// Validate checks the field values on LineageNode with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *LineageNode) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on LineageNode with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in LineageNodeMultiError, or -// nil if none found. -func (m *LineageNode) ValidateAll() error { - return m.validate(true) -} - -func (m *LineageNode) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for Type - - // no validation rules for Service - - if len(errors) > 0 { - return LineageNodeMultiError(errors) - } - - return nil -} - -// LineageNodeMultiError is an error wrapping multiple validation errors -// returned by LineageNode.ValidateAll() if the designated constraints aren't met. -type LineageNodeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m LineageNodeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m LineageNodeMultiError) AllErrors() []error { return m } - -// LineageNodeValidationError is the validation error returned by -// LineageNode.Validate if the designated constraints aren't met. -type LineageNodeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e LineageNodeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e LineageNodeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e LineageNodeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e LineageNodeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e LineageNodeValidationError) ErrorName() string { return "LineageNodeValidationError" } - -// Error satisfies the builtin error interface -func (e LineageNodeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sLineageNode.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = LineageNodeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = LineageNodeValidationError{} - -// Validate checks the field values on Tag with the rules defined in the proto -// definition for this message. If any rules are violated, the first error -// encountered is returned, or nil if there are no violations. -func (m *Tag) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Tag with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in TagMultiError, or nil if none found. -func (m *Tag) ValidateAll() error { - return m.validate(true) -} - -func (m *Tag) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for AssetId - - // no validation rules for TemplateUrn - - for idx, item := range m.GetTagValues() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagValidationError{ - field: fmt.Sprintf("TagValues[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for TemplateDisplayName - - // no validation rules for TemplateDescription - - if len(errors) > 0 { - return TagMultiError(errors) - } - - return nil -} - -// TagMultiError is an error wrapping multiple validation errors returned by -// Tag.ValidateAll() if the designated constraints aren't met. -type TagMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m TagMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m TagMultiError) AllErrors() []error { return m } - -// TagValidationError is the validation error returned by Tag.Validate if the -// designated constraints aren't met. -type TagValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TagValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TagValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TagValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TagValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TagValidationError) ErrorName() string { return "TagValidationError" } - -// Error satisfies the builtin error interface -func (e TagValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTag.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TagValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TagValidationError{} - -// Validate checks the field values on TagValue with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *TagValue) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on TagValue with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in TagValueMultiError, or nil -// if none found. -func (m *TagValue) ValidateAll() error { - return m.validate(true) -} - -func (m *TagValue) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for FieldId - - if all { - switch v := interface{}(m.GetFieldValue()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "FieldValue", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "FieldValue", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetFieldValue()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagValueValidationError{ - field: "FieldValue", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for FieldUrn - - // no validation rules for FieldDisplayName - - // no validation rules for FieldDescription - - // no validation rules for FieldDataType - - // no validation rules for FieldRequired - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagValueValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagValueValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagValueValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return TagValueMultiError(errors) - } - - return nil -} - -// TagValueMultiError is an error wrapping multiple validation errors returned -// by TagValue.ValidateAll() if the designated constraints aren't met. -type TagValueMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m TagValueMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m TagValueMultiError) AllErrors() []error { return m } - -// TagValueValidationError is the validation error returned by -// TagValue.Validate if the designated constraints aren't met. -type TagValueValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TagValueValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TagValueValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TagValueValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TagValueValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TagValueValidationError) ErrorName() string { return "TagValueValidationError" } - -// Error satisfies the builtin error interface -func (e TagValueValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTagValue.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TagValueValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TagValueValidationError{} - -// Validate checks the field values on TagTemplate with the rules defined in -// the proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *TagTemplate) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on TagTemplate with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in TagTemplateMultiError, or -// nil if none found. -func (m *TagTemplate) ValidateAll() error { - return m.validate(true) -} - -func (m *TagTemplate) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for DisplayName - - // no validation rules for Description - - for idx, item := range m.GetFields() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagTemplateValidationError{ - field: fmt.Sprintf("Fields[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagTemplateValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagTemplateValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagTemplateValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return TagTemplateMultiError(errors) - } - - return nil -} - -// TagTemplateMultiError is an error wrapping multiple validation errors -// returned by TagTemplate.ValidateAll() if the designated constraints aren't met. -type TagTemplateMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m TagTemplateMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m TagTemplateMultiError) AllErrors() []error { return m } - -// TagTemplateValidationError is the validation error returned by -// TagTemplate.Validate if the designated constraints aren't met. -type TagTemplateValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TagTemplateValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TagTemplateValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TagTemplateValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TagTemplateValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TagTemplateValidationError) ErrorName() string { return "TagTemplateValidationError" } - -// Error satisfies the builtin error interface -func (e TagTemplateValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTagTemplate.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TagTemplateValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TagTemplateValidationError{} - -// Validate checks the field values on TagTemplateField with the rules defined -// in the proto definition for this message. If any rules are violated, the -// first error encountered is returned, or nil if there are no violations. -func (m *TagTemplateField) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on TagTemplateField with the rules -// defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// TagTemplateFieldMultiError, or nil if none found. -func (m *TagTemplateField) ValidateAll() error { - return m.validate(true) -} - -func (m *TagTemplateField) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - // no validation rules for Urn - - // no validation rules for DisplayName - - // no validation rules for Description - - // no validation rules for DataType - - // no validation rules for Required - - if all { - switch v := interface{}(m.GetCreatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagTemplateFieldValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagTemplateFieldValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetCreatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagTemplateFieldValidationError{ - field: "CreatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetUpdatedAt()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, TagTemplateFieldValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, TagTemplateFieldValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetUpdatedAt()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return TagTemplateFieldValidationError{ - field: "UpdatedAt", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return TagTemplateFieldMultiError(errors) - } - - return nil -} - -// TagTemplateFieldMultiError is an error wrapping multiple validation errors -// returned by TagTemplateField.ValidateAll() if the designated constraints -// aren't met. -type TagTemplateFieldMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m TagTemplateFieldMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m TagTemplateFieldMultiError) AllErrors() []error { return m } - -// TagTemplateFieldValidationError is the validation error returned by -// TagTemplateField.Validate if the designated constraints aren't met. -type TagTemplateFieldValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TagTemplateFieldValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TagTemplateFieldValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TagTemplateFieldValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TagTemplateFieldValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TagTemplateFieldValidationError) ErrorName() string { return "TagTemplateFieldValidationError" } - -// Error satisfies the builtin error interface -func (e TagTemplateFieldValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sTagTemplateField.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TagTemplateFieldValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TagTemplateFieldValidationError{} - -// Validate checks the field values on Type with the rules defined in the proto -// definition for this message. If any rules are violated, the first error -// encountered is returned, or nil if there are no violations. -func (m *Type) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Type with the rules defined in the -// proto definition for this message. If any rules are violated, the result is -// a list of violation errors wrapped in TypeMultiError, or nil if none found. -func (m *Type) ValidateAll() error { - return m.validate(true) -} - -func (m *Type) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Name - - // no validation rules for Count - - if len(errors) > 0 { - return TypeMultiError(errors) - } - - return nil -} - -// TypeMultiError is an error wrapping multiple validation errors returned by -// Type.ValidateAll() if the designated constraints aren't met. -type TypeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m TypeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m TypeMultiError) AllErrors() []error { return m } - -// TypeValidationError is the validation error returned by Type.Validate if the -// designated constraints aren't met. -type TypeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e TypeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e TypeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e TypeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e TypeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e TypeValidationError) ErrorName() string { return "TypeValidationError" } - -// Error satisfies the builtin error interface -func (e TypeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sType.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = TypeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = TypeValidationError{} - -// Validate checks the field values on Namespace with the rules defined in the -// proto definition for this message. If any rules are violated, the first -// error encountered is returned, or nil if there are no violations. -func (m *Namespace) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on Namespace with the rules defined in -// the proto definition for this message. If any rules are violated, the -// result is a list of violation errors wrapped in NamespaceMultiError, or nil -// if none found. -func (m *Namespace) ValidateAll() error { - return m.validate(true) -} - -func (m *Namespace) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Id - - if utf8.RuneCountInString(m.GetName()) < 3 { - err := NamespaceValidationError{ - field: "Name", - reason: "value length must be at least 3 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for State - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, NamespaceValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, NamespaceValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return NamespaceValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return NamespaceMultiError(errors) - } - - return nil -} - -// NamespaceMultiError is an error wrapping multiple validation errors returned -// by Namespace.ValidateAll() if the designated constraints aren't met. -type NamespaceMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m NamespaceMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m NamespaceMultiError) AllErrors() []error { return m } - -// NamespaceValidationError is the validation error returned by -// Namespace.Validate if the designated constraints aren't met. -type NamespaceValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e NamespaceValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e NamespaceValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e NamespaceValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e NamespaceValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e NamespaceValidationError) ErrorName() string { return "NamespaceValidationError" } - -// Error satisfies the builtin error interface -func (e NamespaceValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sNamespace.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = NamespaceValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = NamespaceValidationError{} - -// Validate checks the field values on GetGraphResponse_ProbesInfo with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetGraphResponse_ProbesInfo) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetGraphResponse_ProbesInfo with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// GetGraphResponse_ProbesInfoMultiError, or nil if none found. -func (m *GetGraphResponse_ProbesInfo) ValidateAll() error { - return m.validate(true) -} - -func (m *GetGraphResponse_ProbesInfo) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetLatest()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetGraphResponse_ProbesInfoValidationError{ - field: "Latest", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetGraphResponse_ProbesInfoValidationError{ - field: "Latest", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetLatest()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetGraphResponse_ProbesInfoValidationError{ - field: "Latest", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetGraphResponse_ProbesInfoMultiError(errors) - } - - return nil -} - -// GetGraphResponse_ProbesInfoMultiError is an error wrapping multiple -// validation errors returned by GetGraphResponse_ProbesInfo.ValidateAll() if -// the designated constraints aren't met. -type GetGraphResponse_ProbesInfoMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetGraphResponse_ProbesInfoMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetGraphResponse_ProbesInfoMultiError) AllErrors() []error { return m } - -// GetGraphResponse_ProbesInfoValidationError is the validation error returned -// by GetGraphResponse_ProbesInfo.Validate if the designated constraints -// aren't met. -type GetGraphResponse_ProbesInfoValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetGraphResponse_ProbesInfoValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetGraphResponse_ProbesInfoValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetGraphResponse_ProbesInfoValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetGraphResponse_ProbesInfoValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetGraphResponse_ProbesInfoValidationError) ErrorName() string { - return "GetGraphResponse_ProbesInfoValidationError" -} - -// Error satisfies the builtin error interface -func (e GetGraphResponse_ProbesInfoValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetGraphResponse_ProbesInfo.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetGraphResponse_ProbesInfoValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetGraphResponse_ProbesInfoValidationError{} - -// Validate checks the field values on GetGraphResponse_NodeAttributes with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *GetGraphResponse_NodeAttributes) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on GetGraphResponse_NodeAttributes with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// GetGraphResponse_NodeAttributesMultiError, or nil if none found. -func (m *GetGraphResponse_NodeAttributes) ValidateAll() error { - return m.validate(true) -} - -func (m *GetGraphResponse_NodeAttributes) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if all { - switch v := interface{}(m.GetProbes()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, GetGraphResponse_NodeAttributesValidationError{ - field: "Probes", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, GetGraphResponse_NodeAttributesValidationError{ - field: "Probes", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetProbes()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return GetGraphResponse_NodeAttributesValidationError{ - field: "Probes", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if len(errors) > 0 { - return GetGraphResponse_NodeAttributesMultiError(errors) - } - - return nil -} - -// GetGraphResponse_NodeAttributesMultiError is an error wrapping multiple -// validation errors returned by GetGraphResponse_NodeAttributes.ValidateAll() -// if the designated constraints aren't met. -type GetGraphResponse_NodeAttributesMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m GetGraphResponse_NodeAttributesMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m GetGraphResponse_NodeAttributesMultiError) AllErrors() []error { return m } - -// GetGraphResponse_NodeAttributesValidationError is the validation error -// returned by GetGraphResponse_NodeAttributes.Validate if the designated -// constraints aren't met. -type GetGraphResponse_NodeAttributesValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e GetGraphResponse_NodeAttributesValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e GetGraphResponse_NodeAttributesValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e GetGraphResponse_NodeAttributesValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e GetGraphResponse_NodeAttributesValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e GetGraphResponse_NodeAttributesValidationError) ErrorName() string { - return "GetGraphResponse_NodeAttributesValidationError" -} - -// Error satisfies the builtin error interface -func (e GetGraphResponse_NodeAttributesValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sGetGraphResponse_NodeAttributes.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = GetGraphResponse_NodeAttributesValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = GetGraphResponse_NodeAttributesValidationError{} - -// Validate checks the field values on UpsertAssetRequest_Asset with the rules -// defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertAssetRequest_Asset) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertAssetRequest_Asset with the -// rules defined in the proto definition for this message. If any rules are -// violated, the result is a list of violation errors wrapped in -// UpsertAssetRequest_AssetMultiError, or nil if none found. -func (m *UpsertAssetRequest_Asset) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertAssetRequest_Asset) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for Type - - // no validation rules for Name - - // no validation rules for Service - - // no validation rules for Description - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Labels - - for idx, item := range m.GetOwners() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Url - - if len(errors) > 0 { - return UpsertAssetRequest_AssetMultiError(errors) - } - - return nil -} - -// UpsertAssetRequest_AssetMultiError is an error wrapping multiple validation -// errors returned by UpsertAssetRequest_Asset.ValidateAll() if the designated -// constraints aren't met. -type UpsertAssetRequest_AssetMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertAssetRequest_AssetMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertAssetRequest_AssetMultiError) AllErrors() []error { return m } - -// UpsertAssetRequest_AssetValidationError is the validation error returned by -// UpsertAssetRequest_Asset.Validate if the designated constraints aren't met. -type UpsertAssetRequest_AssetValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertAssetRequest_AssetValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertAssetRequest_AssetValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertAssetRequest_AssetValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertAssetRequest_AssetValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertAssetRequest_AssetValidationError) ErrorName() string { - return "UpsertAssetRequest_AssetValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertAssetRequest_AssetValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertAssetRequest_Asset.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertAssetRequest_AssetValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertAssetRequest_AssetValidationError{} - -// Validate checks the field values on UpsertPatchAssetRequest_Asset with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *UpsertPatchAssetRequest_Asset) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on UpsertPatchAssetRequest_Asset with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// UpsertPatchAssetRequest_AssetMultiError, or nil if none found. -func (m *UpsertPatchAssetRequest_Asset) ValidateAll() error { - return m.validate(true) -} - -func (m *UpsertPatchAssetRequest_Asset) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - // no validation rules for Urn - - // no validation rules for Type - - if wrapper := m.GetName(); wrapper != nil { - - if wrapper.GetValue() != "" { - - } - - } - - // no validation rules for Service - - if wrapper := m.GetDescription(); wrapper != nil { - - if wrapper.GetValue() != "" { - - } - - } - - if all { - switch v := interface{}(m.GetData()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertPatchAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertPatchAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetData()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertPatchAssetRequest_AssetValidationError{ - field: "Data", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Labels - - for idx, item := range m.GetOwners() { - _, _ = idx, item - - if all { - switch v := interface{}(item).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, UpsertPatchAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, UpsertPatchAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(item).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return UpsertPatchAssetRequest_AssetValidationError{ - field: fmt.Sprintf("Owners[%v]", idx), - reason: "embedded message failed validation", - cause: err, - } - } - } - - } - - // no validation rules for Url - - if len(errors) > 0 { - return UpsertPatchAssetRequest_AssetMultiError(errors) - } - - return nil -} - -// UpsertPatchAssetRequest_AssetMultiError is an error wrapping multiple -// validation errors returned by UpsertPatchAssetRequest_Asset.ValidateAll() -// if the designated constraints aren't met. -type UpsertPatchAssetRequest_AssetMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m UpsertPatchAssetRequest_AssetMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m UpsertPatchAssetRequest_AssetMultiError) AllErrors() []error { return m } - -// UpsertPatchAssetRequest_AssetValidationError is the validation error -// returned by UpsertPatchAssetRequest_Asset.Validate if the designated -// constraints aren't met. -type UpsertPatchAssetRequest_AssetValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e UpsertPatchAssetRequest_AssetValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e UpsertPatchAssetRequest_AssetValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e UpsertPatchAssetRequest_AssetValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e UpsertPatchAssetRequest_AssetValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e UpsertPatchAssetRequest_AssetValidationError) ErrorName() string { - return "UpsertPatchAssetRequest_AssetValidationError" -} - -// Error satisfies the builtin error interface -func (e UpsertPatchAssetRequest_AssetValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sUpsertPatchAssetRequest_Asset.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = UpsertPatchAssetRequest_AssetValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = UpsertPatchAssetRequest_AssetValidationError{} - -// Validate checks the field values on CreateAssetProbeRequest_Probe with the -// rules defined in the proto definition for this message. If any rules are -// violated, the first error encountered is returned, or nil if there are no violations. -func (m *CreateAssetProbeRequest_Probe) Validate() error { - return m.validate(false) -} - -// ValidateAll checks the field values on CreateAssetProbeRequest_Probe with -// the rules defined in the proto definition for this message. If any rules -// are violated, the result is a list of violation errors wrapped in -// CreateAssetProbeRequest_ProbeMultiError, or nil if none found. -func (m *CreateAssetProbeRequest_Probe) ValidateAll() error { - return m.validate(true) -} - -func (m *CreateAssetProbeRequest_Probe) validate(all bool) error { - if m == nil { - return nil - } - - var errors []error - - if utf8.RuneCountInString(m.GetStatus()) < 1 { - err := CreateAssetProbeRequest_ProbeValidationError{ - field: "Status", - reason: "value length must be at least 1 runes", - } - if !all { - return err - } - errors = append(errors, err) - } - - // no validation rules for StatusReason - - if all { - switch v := interface{}(m.GetMetadata()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateAssetProbeRequest_ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateAssetProbeRequest_ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetMetadata()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateAssetProbeRequest_ProbeValidationError{ - field: "Metadata", - reason: "embedded message failed validation", - cause: err, - } - } - } - - if all { - switch v := interface{}(m.GetTimestamp()).(type) { - case interface{ ValidateAll() error }: - if err := v.ValidateAll(); err != nil { - errors = append(errors, CreateAssetProbeRequest_ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - }) - } - case interface{ Validate() error }: - if err := v.Validate(); err != nil { - errors = append(errors, CreateAssetProbeRequest_ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - }) - } - } - } else if v, ok := interface{}(m.GetTimestamp()).(interface{ Validate() error }); ok { - if err := v.Validate(); err != nil { - return CreateAssetProbeRequest_ProbeValidationError{ - field: "Timestamp", - reason: "embedded message failed validation", - cause: err, - } - } - } - - // no validation rules for Id - - if len(errors) > 0 { - return CreateAssetProbeRequest_ProbeMultiError(errors) - } - - return nil -} - -// CreateAssetProbeRequest_ProbeMultiError is an error wrapping multiple -// validation errors returned by CreateAssetProbeRequest_Probe.ValidateAll() -// if the designated constraints aren't met. -type CreateAssetProbeRequest_ProbeMultiError []error - -// Error returns a concatenation of all the error messages it wraps. -func (m CreateAssetProbeRequest_ProbeMultiError) Error() string { - var msgs []string - for _, err := range m { - msgs = append(msgs, err.Error()) - } - return strings.Join(msgs, "; ") -} - -// AllErrors returns a list of validation violation errors. -func (m CreateAssetProbeRequest_ProbeMultiError) AllErrors() []error { return m } - -// CreateAssetProbeRequest_ProbeValidationError is the validation error -// returned by CreateAssetProbeRequest_Probe.Validate if the designated -// constraints aren't met. -type CreateAssetProbeRequest_ProbeValidationError struct { - field string - reason string - cause error - key bool -} - -// Field function returns field value. -func (e CreateAssetProbeRequest_ProbeValidationError) Field() string { return e.field } - -// Reason function returns reason value. -func (e CreateAssetProbeRequest_ProbeValidationError) Reason() string { return e.reason } - -// Cause function returns cause value. -func (e CreateAssetProbeRequest_ProbeValidationError) Cause() error { return e.cause } - -// Key function returns key value. -func (e CreateAssetProbeRequest_ProbeValidationError) Key() bool { return e.key } - -// ErrorName returns error name. -func (e CreateAssetProbeRequest_ProbeValidationError) ErrorName() string { - return "CreateAssetProbeRequest_ProbeValidationError" -} - -// Error satisfies the builtin error interface -func (e CreateAssetProbeRequest_ProbeValidationError) Error() string { - cause := "" - if e.cause != nil { - cause = fmt.Sprintf(" | caused by: %v", e.cause) - } - - key := "" - if e.key { - key = "key for " - } - - return fmt.Sprintf( - "invalid %sCreateAssetProbeRequest_Probe.%s: %s%s", - key, - e.field, - e.reason, - cause) -} - -var _ error = CreateAssetProbeRequest_ProbeValidationError{} - -var _ interface { - Field() string - Reason() string - Key() bool - Cause() error - ErrorName() string -} = CreateAssetProbeRequest_ProbeValidationError{} diff --git a/proto/gen/buf/validate/validate.pb.go b/proto/gen/buf/validate/validate.pb.go new file mode 100644 index 00000000..a7df0ec9 --- /dev/null +++ b/proto/gen/buf/validate/validate.pb.go @@ -0,0 +1,9070 @@ +// Copyright 2023-2026 Buf Technologies, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc (unknown) +// source: buf/validate/validate.proto + +// [Protovalidate](https://protovalidate.com/) is the semantic validation library for Protobuf. +// It provides standard annotations to validate common rules on messages and fields, as well as the ability to use [CEL](https://cel.dev) to write custom rules. +// It's the next generation of [protoc-gen-validate](https://github.com/bufbuild/protoc-gen-validate). +// +// This package provides the options, messages, and enums that power Protovalidate. +// Apply its options to messages, fields, and oneofs in your Protobuf schemas to add validation rules: +// +// ```proto +// message User { +// string id = 1 [(buf.validate.field).string.uuid = true]; +// string first_name = 2 [(buf.validate.field).string.max_len = 64]; +// string last_name = 3 [(buf.validate.field).string.max_len = 64]; +// +// option (buf.validate.message).cel = { +// id: "first_name_requires_last_name" +// message: "last_name must be present if first_name is present" +// expression: "!has(this.first_name) || has(this.last_name)" +// }; +// } +// ``` +// +// These rules are enforced at runtime by language-specific libraries. +// See the [developer quickstart](https://protovalidate.com/quickstart/) to get started, or go directly to the runtime library for your language: +// [Go](https://github.com/bufbuild/protovalidate-go) +// [JavaScript/TypeScript](https://github.com/bufbuild/protovalidate-es), +// [Java](https://github.com/bufbuild/protovalidate-java), +// [Python](https://github.com/bufbuild/protovalidate-python), +// or [C++](https://github.com/bufbuild/protovalidate-cc). + +package validate + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + descriptorpb "google.golang.org/protobuf/types/descriptorpb" + durationpb "google.golang.org/protobuf/types/known/durationpb" + fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Specifies how `FieldRules.ignore` behaves, depending on the field's value, and +// whether the field tracks presence. +type Ignore int32 + +const ( + // Ignore rules if the field tracks presence and is unset. This is the default + // behavior. + // + // In proto3, only message fields, members of a Protobuf `oneof`, and fields + // with the `optional` label track presence. Consequently, the following fields + // are always validated, whether a value is set or not: + // + // ```proto + // syntax="proto3"; + // + // message RulesApply { + // string email = 1 [ + // (buf.validate.field).string.email = true + // ]; + // int32 age = 2 [ + // (buf.validate.field).int32.gt = 0 + // ]; + // repeated string labels = 3 [ + // (buf.validate.field).repeated.min_items = 1 + // ]; + // } + // + // ``` + // + // In contrast, the following fields track presence, and are only validated if + // a value is set: + // + // ```proto + // syntax="proto3"; + // + // message RulesApplyIfSet { + // optional string email = 1 [ + // (buf.validate.field).string.email = true + // ]; + // oneof ref { + // string reference = 2 [ + // (buf.validate.field).string.uuid = true + // ]; + // string name = 3 [ + // (buf.validate.field).string.min_len = 4 + // ]; + // } + // SomeMessage msg = 4 [ + // (buf.validate.field).cel = {/* ... */} + // ]; + // } + // + // ``` + // + // To ensure that such a field is set, add the `required` rule. + // + // To learn which fields track presence, see the + // [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat). + Ignore_IGNORE_UNSPECIFIED Ignore = 0 + // Ignore rules if the field is unset, or set to the zero value. + // + // The zero value depends on the field type: + // - For strings, the zero value is the empty string. + // - For bytes, the zero value is empty bytes. + // - For bool, the zero value is false. + // - For numeric types, the zero value is zero. + // - For enums, the zero value is the first defined enum value. + // - For repeated fields, the zero is an empty list. + // - For map fields, the zero is an empty map. + // - For message fields, absence of the message (typically a null-value) is considered zero value. + // + // For fields that track presence (e.g. adding the `optional` label in proto3), + // this a no-op and behavior is the same as the default `IGNORE_UNSPECIFIED`. + Ignore_IGNORE_IF_ZERO_VALUE Ignore = 1 + // Always ignore rules, including the `required` rule. + // + // This is useful for ignoring the rules of a referenced message, or to + // temporarily ignore rules during development. + // + // ```proto + // + // message MyMessage { + // // The field's rules will always be ignored, including any validations + // // on value's fields. + // MyOtherMessage value = 1 [ + // (buf.validate.field).ignore = IGNORE_ALWAYS + // ]; + // } + // + // ``` + Ignore_IGNORE_ALWAYS Ignore = 3 +) + +// Enum value maps for Ignore. +var ( + Ignore_name = map[int32]string{ + 0: "IGNORE_UNSPECIFIED", + 1: "IGNORE_IF_ZERO_VALUE", + 3: "IGNORE_ALWAYS", + } + Ignore_value = map[string]int32{ + "IGNORE_UNSPECIFIED": 0, + "IGNORE_IF_ZERO_VALUE": 1, + "IGNORE_ALWAYS": 3, + } +) + +func (x Ignore) Enum() *Ignore { + p := new(Ignore) + *p = x + return p +} + +func (x Ignore) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (Ignore) Descriptor() protoreflect.EnumDescriptor { + return file_buf_validate_validate_proto_enumTypes[0].Descriptor() +} + +func (Ignore) Type() protoreflect.EnumType { + return &file_buf_validate_validate_proto_enumTypes[0] +} + +func (x Ignore) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *Ignore) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = Ignore(num) + return nil +} + +// Deprecated: Use Ignore.Descriptor instead. +func (Ignore) EnumDescriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{0} +} + +// KnownRegex contains some well-known patterns. +type KnownRegex int32 + +const ( + KnownRegex_KNOWN_REGEX_UNSPECIFIED KnownRegex = 0 + // HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2). + KnownRegex_KNOWN_REGEX_HTTP_HEADER_NAME KnownRegex = 1 + // HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4). + KnownRegex_KNOWN_REGEX_HTTP_HEADER_VALUE KnownRegex = 2 +) + +// Enum value maps for KnownRegex. +var ( + KnownRegex_name = map[int32]string{ + 0: "KNOWN_REGEX_UNSPECIFIED", + 1: "KNOWN_REGEX_HTTP_HEADER_NAME", + 2: "KNOWN_REGEX_HTTP_HEADER_VALUE", + } + KnownRegex_value = map[string]int32{ + "KNOWN_REGEX_UNSPECIFIED": 0, + "KNOWN_REGEX_HTTP_HEADER_NAME": 1, + "KNOWN_REGEX_HTTP_HEADER_VALUE": 2, + } +) + +func (x KnownRegex) Enum() *KnownRegex { + p := new(KnownRegex) + *p = x + return p +} + +func (x KnownRegex) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (KnownRegex) Descriptor() protoreflect.EnumDescriptor { + return file_buf_validate_validate_proto_enumTypes[1].Descriptor() +} + +func (KnownRegex) Type() protoreflect.EnumType { + return &file_buf_validate_validate_proto_enumTypes[1] +} + +func (x KnownRegex) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Do not use. +func (x *KnownRegex) UnmarshalJSON(b []byte) error { + num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b) + if err != nil { + return err + } + *x = KnownRegex(num) + return nil +} + +// Deprecated: Use KnownRegex.Descriptor instead. +func (KnownRegex) EnumDescriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{1} +} + +// `Rule` represents a validation rule written in the Common Expression +// Language (CEL) syntax. Each Rule includes a unique identifier, an +// optional error message, and the CEL expression to evaluate. For more +// information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). +// +// ```proto +// +// message Foo { +// option (buf.validate.message).cel = { +// id: "foo.bar" +// message: "bar must be greater than 0" +// expression: "this.bar > 0" +// }; +// int32 bar = 1; +// } +// +// ``` +type Rule struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `id` is a string that serves as a machine-readable name for this Rule. + // It should be unique within its scope, which could be either a message or a field. + Id *string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"` + // `message` is an optional field that provides a human-readable error message + // for this Rule when the CEL expression evaluates to false. If a + // non-empty message is provided, any strings resulting from the CEL + // expression evaluation are ignored. + Message *string `protobuf:"bytes,2,opt,name=message" json:"message,omitempty"` + // `expression` is the actual CEL expression that will be evaluated for + // validation. This string must resolve to either a boolean or a string + // value. If the expression evaluates to false or a non-empty string, the + // validation is considered failed, and the message is rejected. + Expression *string `protobuf:"bytes,3,opt,name=expression" json:"expression,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Rule) Reset() { + *x = Rule{} + mi := &file_buf_validate_validate_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Rule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Rule) ProtoMessage() {} + +func (x *Rule) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Rule.ProtoReflect.Descriptor instead. +func (*Rule) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{0} +} + +func (x *Rule) GetId() string { + if x != nil && x.Id != nil { + return *x.Id + } + return "" +} + +func (x *Rule) GetMessage() string { + if x != nil && x.Message != nil { + return *x.Message + } + return "" +} + +func (x *Rule) GetExpression() string { + if x != nil && x.Expression != nil { + return *x.Expression + } + return "" +} + +// MessageRules represents validation rules that are applied to the entire message. +// It includes disabling options and a list of Rule messages representing Common Expression Language (CEL) validation rules. +type MessageRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation + // rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax. + // + // This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for + // simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will + // be same as the `expression`. + // + // For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + // + // ```proto + // + // message MyMessage { + // // The field `foo` must be greater than 42. + // option (buf.validate.message).cel_expression = "this.foo > 42"; + // // The field `foo` must be less than 84. + // option (buf.validate.message).cel_expression = "this.foo < 84"; + // optional int32 foo = 1; + // } + // + // ``` + CelExpression []string `protobuf:"bytes,5,rep,name=cel_expression,json=celExpression" json:"cel_expression,omitempty"` + // `cel` is a repeated field of type Rule. Each Rule specifies a validation rule to be applied to this message. + // These rules are written in Common Expression Language (CEL) syntax. For more information, + // [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + // + // ```proto + // + // message MyMessage { + // // The field `foo` must be greater than 42. + // option (buf.validate.message).cel = { + // id: "my_message.value", + // message: "value must be greater than 42", + // expression: "this.foo > 42", + // }; + // optional int32 foo = 1; + // } + // + // ``` + Cel []*Rule `protobuf:"bytes,3,rep,name=cel" json:"cel,omitempty"` + // `oneof` is a repeated field of type MessageOneofRule that specifies a list of fields + // of which at most one can be present. If `required` is also specified, then exactly one + // of the specified fields _must_ be present. + // + // This will enforce oneof-like constraints with a few features not provided by + // actual Protobuf oneof declarations: + // 1. Repeated and map fields are allowed in this validation. In a Protobuf oneof, + // only scalar fields are allowed. + // 2. Fields with implicit presence are allowed. In a Protobuf oneof, all member + // fields have explicit presence. This means that, for the purpose of determining + // how many fields are set, explicitly setting such a field to its zero value is + // effectively the same as not setting it at all. + // 3. This will always generate validation errors for a message unmarshalled from + // serialized data that sets more than one field. With a Protobuf oneof, when + // multiple fields are present in the serialized form, earlier values are usually + // silently ignored when unmarshalling, with only the last field being set when + // unmarshalling completes. + // + // Note that adding a field to a `oneof` will also set the IGNORE_IF_ZERO_VALUE on the fields. This means + // only the field that is set will be validated and the unset fields are not validated according to the field rules. + // This behavior can be overridden by setting `ignore` against a field. + // + // ```proto + // + // message MyMessage { + // // Only one of `field1` or `field2` _can_ be present in this message. + // option (buf.validate.message).oneof = { fields: ["field1", "field2"] }; + // // Exactly one of `field3` or `field4` _must_ be present in this message. + // option (buf.validate.message).oneof = { fields: ["field3", "field4"], required: true }; + // string field1 = 1; + // bytes field2 = 2; + // bool field3 = 3; + // int32 field4 = 4; + // } + // + // ``` + Oneof []*MessageOneofRule `protobuf:"bytes,4,rep,name=oneof" json:"oneof,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MessageRules) Reset() { + *x = MessageRules{} + mi := &file_buf_validate_validate_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MessageRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageRules) ProtoMessage() {} + +func (x *MessageRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MessageRules.ProtoReflect.Descriptor instead. +func (*MessageRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{1} +} + +func (x *MessageRules) GetCelExpression() []string { + if x != nil { + return x.CelExpression + } + return nil +} + +func (x *MessageRules) GetCel() []*Rule { + if x != nil { + return x.Cel + } + return nil +} + +func (x *MessageRules) GetOneof() []*MessageOneofRule { + if x != nil { + return x.Oneof + } + return nil +} + +type MessageOneofRule struct { + state protoimpl.MessageState `protogen:"open.v1"` + // A list of field names to include in the oneof. All field names must be + // defined in the message. At least one field must be specified, and + // duplicates are not permitted. + Fields []string `protobuf:"bytes,1,rep,name=fields" json:"fields,omitempty"` + // If true, one of the fields specified _must_ be set. + Required *bool `protobuf:"varint,2,opt,name=required" json:"required,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MessageOneofRule) Reset() { + *x = MessageOneofRule{} + mi := &file_buf_validate_validate_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MessageOneofRule) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MessageOneofRule) ProtoMessage() {} + +func (x *MessageOneofRule) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MessageOneofRule.ProtoReflect.Descriptor instead. +func (*MessageOneofRule) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{2} +} + +func (x *MessageOneofRule) GetFields() []string { + if x != nil { + return x.Fields + } + return nil +} + +func (x *MessageOneofRule) GetRequired() bool { + if x != nil && x.Required != nil { + return *x.Required + } + return false +} + +// The `OneofRules` message type enables you to manage rules for +// oneof fields in your protobuf messages. +type OneofRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // If `required` is true, exactly one field of the oneof must be set. A + // validation error is returned if no fields in the oneof are set. Further rules + // should be placed on the fields themselves to ensure they are valid values, + // such as `min_len` or `gt`. + // + // ```proto + // + // message MyMessage { + // oneof value { + // // Either `a` or `b` must be set. If `a` is set, it must also be + // // non-empty; whereas if `b` is set, it can still be an empty string. + // option (buf.validate.oneof).required = true; + // string a = 1 [(buf.validate.field).string.min_len = 1]; + // string b = 2; + // } + // } + // + // ``` + Required *bool `protobuf:"varint,1,opt,name=required" json:"required,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *OneofRules) Reset() { + *x = OneofRules{} + mi := &file_buf_validate_validate_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *OneofRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*OneofRules) ProtoMessage() {} + +func (x *OneofRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use OneofRules.ProtoReflect.Descriptor instead. +func (*OneofRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{3} +} + +func (x *OneofRules) GetRequired() bool { + if x != nil && x.Required != nil { + return *x.Required + } + return false +} + +// FieldRules encapsulates the rules for each type of field. Depending on +// the field, the correct set should be used to ensure proper validations. +type FieldRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `cel_expression` is a repeated field CEL expressions. Each expression specifies a validation + // rule to be applied to this message. These rules are written in Common Expression Language (CEL) syntax. + // + // This is a simplified form of the `cel` Rule field, where only `expression` is set. This allows for + // simpler syntax when defining CEL Rules where `id` and `message` derived from the `expression`. `id` will + // be same as the `expression`. + // + // For more information, [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + // + // ```proto + // + // message MyMessage { + // // The field `value` must be greater than 42. + // optional int32 value = 1 [(buf.validate.field).cel_expression = "this > 42"]; + // } + // + // ``` + CelExpression []string `protobuf:"bytes,29,rep,name=cel_expression,json=celExpression" json:"cel_expression,omitempty"` + // `cel` is a repeated field used to represent a textual expression + // in the Common Expression Language (CEL) syntax. For more information, + // [see our documentation](https://buf.build/docs/protovalidate/schemas/custom-rules/). + // + // ```proto + // + // message MyMessage { + // // The field `value` must be greater than 42. + // optional int32 value = 1 [(buf.validate.field).cel = { + // id: "my_message.value", + // message: "value must be greater than 42", + // expression: "this > 42", + // }]; + // } + // + // ``` + Cel []*Rule `protobuf:"bytes,23,rep,name=cel" json:"cel,omitempty"` + // If `required` is true, the field must be set. A validation error is returned + // if the field is not set. + // + // ```proto + // syntax="proto3"; + // + // message FieldsWithPresence { + // // Requires any string to be set, including the empty string. + // optional string link = 1 [ + // (buf.validate.field).required = true + // ]; + // // Requires true or false to be set. + // optional bool disabled = 2 [ + // (buf.validate.field).required = true + // ]; + // // Requires a message to be set, including the empty message. + // SomeMessage msg = 4 [ + // (buf.validate.field).required = true + // ]; + // } + // + // ``` + // + // All fields in the example above track presence. By default, Protovalidate + // ignores rules on those fields if no value is set. `required` ensures that + // the fields are set and valid. + // + // Fields that don't track presence are always validated by Protovalidate, + // whether they are set or not. It is not necessary to add `required`. It + // can be added to indicate that the field cannot be the zero value. + // + // ```proto + // syntax="proto3"; + // + // message FieldsWithoutPresence { + // // `string.email` always applies, even to an empty string. + // string link = 1 [ + // (buf.validate.field).string.email = true + // ]; + // // `repeated.min_items` always applies, even to an empty list. + // repeated string labels = 2 [ + // (buf.validate.field).repeated.min_items = 1 + // ]; + // // `required`, for fields that don't track presence, indicates + // // the value of the field can't be the zero value. + // int32 zero_value_not_allowed = 3 [ + // (buf.validate.field).required = true + // ]; + // } + // + // ``` + // + // To learn which fields track presence, see the + // [Field Presence cheat sheet](https://protobuf.dev/programming-guides/field_presence/#cheat). + // + // Note: While field rules can be applied to repeated items, map keys, and map + // values, the elements are always considered to be set. Consequently, + // specifying `repeated.items.required` is redundant. + Required *bool `protobuf:"varint,25,opt,name=required" json:"required,omitempty"` + // Ignore validation rules on the field if its value matches the specified + // criteria. See the `Ignore` enum for details. + // + // ```proto + // + // message UpdateRequest { + // // The uri rule only applies if the field is not an empty string. + // string url = 1 [ + // (buf.validate.field).ignore = IGNORE_IF_ZERO_VALUE, + // (buf.validate.field).string.uri = true + // ]; + // } + // + // ``` + Ignore *Ignore `protobuf:"varint,27,opt,name=ignore,enum=buf.validate.Ignore" json:"ignore,omitempty"` + // Types that are valid to be assigned to Type: + // + // *FieldRules_Float + // *FieldRules_Double + // *FieldRules_Int32 + // *FieldRules_Int64 + // *FieldRules_Uint32 + // *FieldRules_Uint64 + // *FieldRules_Sint32 + // *FieldRules_Sint64 + // *FieldRules_Fixed32 + // *FieldRules_Fixed64 + // *FieldRules_Sfixed32 + // *FieldRules_Sfixed64 + // *FieldRules_Bool + // *FieldRules_String_ + // *FieldRules_Bytes + // *FieldRules_Enum + // *FieldRules_Repeated + // *FieldRules_Map + // *FieldRules_Any + // *FieldRules_Duration + // *FieldRules_FieldMask + // *FieldRules_Timestamp + Type isFieldRules_Type `protobuf_oneof:"type"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldRules) Reset() { + *x = FieldRules{} + mi := &file_buf_validate_validate_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldRules) ProtoMessage() {} + +func (x *FieldRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldRules.ProtoReflect.Descriptor instead. +func (*FieldRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{4} +} + +func (x *FieldRules) GetCelExpression() []string { + if x != nil { + return x.CelExpression + } + return nil +} + +func (x *FieldRules) GetCel() []*Rule { + if x != nil { + return x.Cel + } + return nil +} + +func (x *FieldRules) GetRequired() bool { + if x != nil && x.Required != nil { + return *x.Required + } + return false +} + +func (x *FieldRules) GetIgnore() Ignore { + if x != nil && x.Ignore != nil { + return *x.Ignore + } + return Ignore_IGNORE_UNSPECIFIED +} + +func (x *FieldRules) GetType() isFieldRules_Type { + if x != nil { + return x.Type + } + return nil +} + +func (x *FieldRules) GetFloat() *FloatRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Float); ok { + return x.Float + } + } + return nil +} + +func (x *FieldRules) GetDouble() *DoubleRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Double); ok { + return x.Double + } + } + return nil +} + +func (x *FieldRules) GetInt32() *Int32Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Int32); ok { + return x.Int32 + } + } + return nil +} + +func (x *FieldRules) GetInt64() *Int64Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Int64); ok { + return x.Int64 + } + } + return nil +} + +func (x *FieldRules) GetUint32() *UInt32Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Uint32); ok { + return x.Uint32 + } + } + return nil +} + +func (x *FieldRules) GetUint64() *UInt64Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Uint64); ok { + return x.Uint64 + } + } + return nil +} + +func (x *FieldRules) GetSint32() *SInt32Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Sint32); ok { + return x.Sint32 + } + } + return nil +} + +func (x *FieldRules) GetSint64() *SInt64Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Sint64); ok { + return x.Sint64 + } + } + return nil +} + +func (x *FieldRules) GetFixed32() *Fixed32Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Fixed32); ok { + return x.Fixed32 + } + } + return nil +} + +func (x *FieldRules) GetFixed64() *Fixed64Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Fixed64); ok { + return x.Fixed64 + } + } + return nil +} + +func (x *FieldRules) GetSfixed32() *SFixed32Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Sfixed32); ok { + return x.Sfixed32 + } + } + return nil +} + +func (x *FieldRules) GetSfixed64() *SFixed64Rules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Sfixed64); ok { + return x.Sfixed64 + } + } + return nil +} + +func (x *FieldRules) GetBool() *BoolRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Bool); ok { + return x.Bool + } + } + return nil +} + +func (x *FieldRules) GetString_() *StringRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_String_); ok { + return x.String_ + } + } + return nil +} + +func (x *FieldRules) GetBytes() *BytesRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Bytes); ok { + return x.Bytes + } + } + return nil +} + +func (x *FieldRules) GetEnum() *EnumRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Enum); ok { + return x.Enum + } + } + return nil +} + +func (x *FieldRules) GetRepeated() *RepeatedRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Repeated); ok { + return x.Repeated + } + } + return nil +} + +func (x *FieldRules) GetMap() *MapRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Map); ok { + return x.Map + } + } + return nil +} + +func (x *FieldRules) GetAny() *AnyRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Any); ok { + return x.Any + } + } + return nil +} + +func (x *FieldRules) GetDuration() *DurationRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Duration); ok { + return x.Duration + } + } + return nil +} + +func (x *FieldRules) GetFieldMask() *FieldMaskRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_FieldMask); ok { + return x.FieldMask + } + } + return nil +} + +func (x *FieldRules) GetTimestamp() *TimestampRules { + if x != nil { + if x, ok := x.Type.(*FieldRules_Timestamp); ok { + return x.Timestamp + } + } + return nil +} + +type isFieldRules_Type interface { + isFieldRules_Type() +} + +type FieldRules_Float struct { + // Scalar Field Types + Float *FloatRules `protobuf:"bytes,1,opt,name=float,oneof"` +} + +type FieldRules_Double struct { + Double *DoubleRules `protobuf:"bytes,2,opt,name=double,oneof"` +} + +type FieldRules_Int32 struct { + Int32 *Int32Rules `protobuf:"bytes,3,opt,name=int32,oneof"` +} + +type FieldRules_Int64 struct { + Int64 *Int64Rules `protobuf:"bytes,4,opt,name=int64,oneof"` +} + +type FieldRules_Uint32 struct { + Uint32 *UInt32Rules `protobuf:"bytes,5,opt,name=uint32,oneof"` +} + +type FieldRules_Uint64 struct { + Uint64 *UInt64Rules `protobuf:"bytes,6,opt,name=uint64,oneof"` +} + +type FieldRules_Sint32 struct { + Sint32 *SInt32Rules `protobuf:"bytes,7,opt,name=sint32,oneof"` +} + +type FieldRules_Sint64 struct { + Sint64 *SInt64Rules `protobuf:"bytes,8,opt,name=sint64,oneof"` +} + +type FieldRules_Fixed32 struct { + Fixed32 *Fixed32Rules `protobuf:"bytes,9,opt,name=fixed32,oneof"` +} + +type FieldRules_Fixed64 struct { + Fixed64 *Fixed64Rules `protobuf:"bytes,10,opt,name=fixed64,oneof"` +} + +type FieldRules_Sfixed32 struct { + Sfixed32 *SFixed32Rules `protobuf:"bytes,11,opt,name=sfixed32,oneof"` +} + +type FieldRules_Sfixed64 struct { + Sfixed64 *SFixed64Rules `protobuf:"bytes,12,opt,name=sfixed64,oneof"` +} + +type FieldRules_Bool struct { + Bool *BoolRules `protobuf:"bytes,13,opt,name=bool,oneof"` +} + +type FieldRules_String_ struct { + String_ *StringRules `protobuf:"bytes,14,opt,name=string,oneof"` +} + +type FieldRules_Bytes struct { + Bytes *BytesRules `protobuf:"bytes,15,opt,name=bytes,oneof"` +} + +type FieldRules_Enum struct { + // Complex Field Types + Enum *EnumRules `protobuf:"bytes,16,opt,name=enum,oneof"` +} + +type FieldRules_Repeated struct { + Repeated *RepeatedRules `protobuf:"bytes,18,opt,name=repeated,oneof"` +} + +type FieldRules_Map struct { + Map *MapRules `protobuf:"bytes,19,opt,name=map,oneof"` +} + +type FieldRules_Any struct { + // Well-Known Field Types + Any *AnyRules `protobuf:"bytes,20,opt,name=any,oneof"` +} + +type FieldRules_Duration struct { + Duration *DurationRules `protobuf:"bytes,21,opt,name=duration,oneof"` +} + +type FieldRules_FieldMask struct { + FieldMask *FieldMaskRules `protobuf:"bytes,28,opt,name=field_mask,json=fieldMask,oneof"` +} + +type FieldRules_Timestamp struct { + Timestamp *TimestampRules `protobuf:"bytes,22,opt,name=timestamp,oneof"` +} + +func (*FieldRules_Float) isFieldRules_Type() {} + +func (*FieldRules_Double) isFieldRules_Type() {} + +func (*FieldRules_Int32) isFieldRules_Type() {} + +func (*FieldRules_Int64) isFieldRules_Type() {} + +func (*FieldRules_Uint32) isFieldRules_Type() {} + +func (*FieldRules_Uint64) isFieldRules_Type() {} + +func (*FieldRules_Sint32) isFieldRules_Type() {} + +func (*FieldRules_Sint64) isFieldRules_Type() {} + +func (*FieldRules_Fixed32) isFieldRules_Type() {} + +func (*FieldRules_Fixed64) isFieldRules_Type() {} + +func (*FieldRules_Sfixed32) isFieldRules_Type() {} + +func (*FieldRules_Sfixed64) isFieldRules_Type() {} + +func (*FieldRules_Bool) isFieldRules_Type() {} + +func (*FieldRules_String_) isFieldRules_Type() {} + +func (*FieldRules_Bytes) isFieldRules_Type() {} + +func (*FieldRules_Enum) isFieldRules_Type() {} + +func (*FieldRules_Repeated) isFieldRules_Type() {} + +func (*FieldRules_Map) isFieldRules_Type() {} + +func (*FieldRules_Any) isFieldRules_Type() {} + +func (*FieldRules_Duration) isFieldRules_Type() {} + +func (*FieldRules_FieldMask) isFieldRules_Type() {} + +func (*FieldRules_Timestamp) isFieldRules_Type() {} + +// PredefinedRules are custom rules that can be re-used with +// multiple fields. +type PredefinedRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `cel` is a repeated field used to represent a textual expression + // in the Common Expression Language (CEL) syntax. For more information, + // [see our documentation](https://buf.build/docs/protovalidate/schemas/predefined-rules/). + // + // ```proto + // + // message MyMessage { + // // The field `value` must be greater than 42. + // optional int32 value = 1 [(buf.validate.predefined).cel = { + // id: "my_message.value", + // message: "value must be greater than 42", + // expression: "this > 42", + // }]; + // } + // + // ``` + Cel []*Rule `protobuf:"bytes,1,rep,name=cel" json:"cel,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PredefinedRules) Reset() { + *x = PredefinedRules{} + mi := &file_buf_validate_validate_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PredefinedRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PredefinedRules) ProtoMessage() {} + +func (x *PredefinedRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PredefinedRules.ProtoReflect.Descriptor instead. +func (*PredefinedRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{5} +} + +func (x *PredefinedRules) GetCel() []*Rule { + if x != nil { + return x.Cel + } + return nil +} + +// FloatRules describes the rules applied to `float` values. These +// rules may also be applied to the `google.protobuf.FloatValue` Well-Known-Type. +type FloatRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyFloat { + // // value must equal 42.0 + // float value = 1 [(buf.validate.field).float.const = 42.0]; + // } + // + // ``` + Const *float32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *FloatRules_Lt + // *FloatRules_Lte + LessThan isFloatRules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *FloatRules_Gt + // *FloatRules_Gte + GreaterThan isFloatRules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message + // is generated. + // + // ```proto + // + // message MyFloat { + // // value must be in list [1.0, 2.0, 3.0] + // float value = 1 [(buf.validate.field).float = { in: [1.0, 2.0, 3.0] }]; + // } + // + // ``` + In []float32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` + // `in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyFloat { + // // value must not be in list [1.0, 2.0, 3.0] + // float value = 1 [(buf.validate.field).float = { not_in: [1.0, 2.0, 3.0] }]; + // } + // + // ``` + NotIn []float32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `finite` requires the field value to be finite. If the field value is + // infinite or NaN, an error message is generated. + Finite *bool `protobuf:"varint,8,opt,name=finite" json:"finite,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyFloat { + // float value = 1 [ + // (buf.validate.field).float.example = 1.0, + // (buf.validate.field).float.example = inf + // ]; + // } + // + // ``` + Example []float32 `protobuf:"fixed32,9,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FloatRules) Reset() { + *x = FloatRules{} + mi := &file_buf_validate_validate_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FloatRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FloatRules) ProtoMessage() {} + +func (x *FloatRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FloatRules.ProtoReflect.Descriptor instead. +func (*FloatRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{6} +} + +func (x *FloatRules) GetConst() float32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *FloatRules) GetLessThan() isFloatRules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *FloatRules) GetLt() float32 { + if x != nil { + if x, ok := x.LessThan.(*FloatRules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *FloatRules) GetLte() float32 { + if x != nil { + if x, ok := x.LessThan.(*FloatRules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *FloatRules) GetGreaterThan() isFloatRules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *FloatRules) GetGt() float32 { + if x != nil { + if x, ok := x.GreaterThan.(*FloatRules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *FloatRules) GetGte() float32 { + if x != nil { + if x, ok := x.GreaterThan.(*FloatRules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *FloatRules) GetIn() []float32 { + if x != nil { + return x.In + } + return nil +} + +func (x *FloatRules) GetNotIn() []float32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *FloatRules) GetFinite() bool { + if x != nil && x.Finite != nil { + return *x.Finite + } + return false +} + +func (x *FloatRules) GetExample() []float32 { + if x != nil { + return x.Example + } + return nil +} + +type isFloatRules_LessThan interface { + isFloatRules_LessThan() +} + +type FloatRules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyFloat { + // // value must be less than 10.0 + // float value = 1 [(buf.validate.field).float.lt = 10.0]; + // } + // + // ``` + Lt float32 `protobuf:"fixed32,2,opt,name=lt,oneof"` +} + +type FloatRules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyFloat { + // // value must be less than or equal to 10.0 + // float value = 1 [(buf.validate.field).float.lte = 10.0]; + // } + // + // ``` + Lte float32 `protobuf:"fixed32,3,opt,name=lte,oneof"` +} + +func (*FloatRules_Lt) isFloatRules_LessThan() {} + +func (*FloatRules_Lte) isFloatRules_LessThan() {} + +type isFloatRules_GreaterThan interface { + isFloatRules_GreaterThan() +} + +type FloatRules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFloat { + // // value must be greater than 5.0 [float.gt] + // float value = 1 [(buf.validate.field).float.gt = 5.0]; + // + // // value must be greater than 5 and less than 10.0 [float.gt_lt] + // float other_value = 2 [(buf.validate.field).float = { gt: 5.0, lt: 10.0 }]; + // + // // value must be greater than 10 or less than 5.0 [float.gt_lt_exclusive] + // float another_value = 3 [(buf.validate.field).float = { gt: 10.0, lt: 5.0 }]; + // } + // + // ``` + Gt float32 `protobuf:"fixed32,4,opt,name=gt,oneof"` +} + +type FloatRules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFloat { + // // value must be greater than or equal to 5.0 [float.gte] + // float value = 1 [(buf.validate.field).float.gte = 5.0]; + // + // // value must be greater than or equal to 5.0 and less than 10.0 [float.gte_lt] + // float other_value = 2 [(buf.validate.field).float = { gte: 5.0, lt: 10.0 }]; + // + // // value must be greater than or equal to 10.0 or less than 5.0 [float.gte_lt_exclusive] + // float another_value = 3 [(buf.validate.field).float = { gte: 10.0, lt: 5.0 }]; + // } + // + // ``` + Gte float32 `protobuf:"fixed32,5,opt,name=gte,oneof"` +} + +func (*FloatRules_Gt) isFloatRules_GreaterThan() {} + +func (*FloatRules_Gte) isFloatRules_GreaterThan() {} + +// DoubleRules describes the rules applied to `double` values. These +// rules may also be applied to the `google.protobuf.DoubleValue` Well-Known-Type. +type DoubleRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyDouble { + // // value must equal 42.0 + // double value = 1 [(buf.validate.field).double.const = 42.0]; + // } + // + // ``` + Const *float64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *DoubleRules_Lt + // *DoubleRules_Lte + LessThan isDoubleRules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *DoubleRules_Gt + // *DoubleRules_Gte + GreaterThan isDoubleRules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyDouble { + // // value must be in list [1.0, 2.0, 3.0] + // double value = 1 [(buf.validate.field).double = { in: [1.0, 2.0, 3.0] }]; + // } + // + // ``` + In []float64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyDouble { + // // value must not be in list [1.0, 2.0, 3.0] + // double value = 1 [(buf.validate.field).double = { not_in: [1.0, 2.0, 3.0] }]; + // } + // + // ``` + NotIn []float64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `finite` requires the field value to be finite. If the field value is + // infinite or NaN, an error message is generated. + Finite *bool `protobuf:"varint,8,opt,name=finite" json:"finite,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyDouble { + // double value = 1 [ + // (buf.validate.field).double.example = 1.0, + // (buf.validate.field).double.example = inf + // ]; + // } + // + // ``` + Example []float64 `protobuf:"fixed64,9,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DoubleRules) Reset() { + *x = DoubleRules{} + mi := &file_buf_validate_validate_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DoubleRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DoubleRules) ProtoMessage() {} + +func (x *DoubleRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DoubleRules.ProtoReflect.Descriptor instead. +func (*DoubleRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{7} +} + +func (x *DoubleRules) GetConst() float64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *DoubleRules) GetLessThan() isDoubleRules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *DoubleRules) GetLt() float64 { + if x != nil { + if x, ok := x.LessThan.(*DoubleRules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *DoubleRules) GetLte() float64 { + if x != nil { + if x, ok := x.LessThan.(*DoubleRules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *DoubleRules) GetGreaterThan() isDoubleRules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *DoubleRules) GetGt() float64 { + if x != nil { + if x, ok := x.GreaterThan.(*DoubleRules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *DoubleRules) GetGte() float64 { + if x != nil { + if x, ok := x.GreaterThan.(*DoubleRules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *DoubleRules) GetIn() []float64 { + if x != nil { + return x.In + } + return nil +} + +func (x *DoubleRules) GetNotIn() []float64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *DoubleRules) GetFinite() bool { + if x != nil && x.Finite != nil { + return *x.Finite + } + return false +} + +func (x *DoubleRules) GetExample() []float64 { + if x != nil { + return x.Example + } + return nil +} + +type isDoubleRules_LessThan interface { + isDoubleRules_LessThan() +} + +type DoubleRules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyDouble { + // // value must be less than 10.0 + // double value = 1 [(buf.validate.field).double.lt = 10.0]; + // } + // + // ``` + Lt float64 `protobuf:"fixed64,2,opt,name=lt,oneof"` +} + +type DoubleRules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified value + // (field <= value). If the field value is greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyDouble { + // // value must be less than or equal to 10.0 + // double value = 1 [(buf.validate.field).double.lte = 10.0]; + // } + // + // ``` + Lte float64 `protobuf:"fixed64,3,opt,name=lte,oneof"` +} + +func (*DoubleRules_Lt) isDoubleRules_LessThan() {} + +func (*DoubleRules_Lte) isDoubleRules_LessThan() {} + +type isDoubleRules_GreaterThan interface { + isDoubleRules_GreaterThan() +} + +type DoubleRules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or `lte`, + // the range is reversed, and the field value must be outside the specified + // range. If the field value doesn't meet the required conditions, an error + // message is generated. + // + // ```proto + // + // message MyDouble { + // // value must be greater than 5.0 [double.gt] + // double value = 1 [(buf.validate.field).double.gt = 5.0]; + // + // // value must be greater than 5 and less than 10.0 [double.gt_lt] + // double other_value = 2 [(buf.validate.field).double = { gt: 5.0, lt: 10.0 }]; + // + // // value must be greater than 10 or less than 5.0 [double.gt_lt_exclusive] + // double another_value = 3 [(buf.validate.field).double = { gt: 10.0, lt: 5.0 }]; + // } + // + // ``` + Gt float64 `protobuf:"fixed64,4,opt,name=gt,oneof"` +} + +type DoubleRules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyDouble { + // // value must be greater than or equal to 5.0 [double.gte] + // double value = 1 [(buf.validate.field).double.gte = 5.0]; + // + // // value must be greater than or equal to 5.0 and less than 10.0 [double.gte_lt] + // double other_value = 2 [(buf.validate.field).double = { gte: 5.0, lt: 10.0 }]; + // + // // value must be greater than or equal to 10.0 or less than 5.0 [double.gte_lt_exclusive] + // double another_value = 3 [(buf.validate.field).double = { gte: 10.0, lt: 5.0 }]; + // } + // + // ``` + Gte float64 `protobuf:"fixed64,5,opt,name=gte,oneof"` +} + +func (*DoubleRules_Gt) isDoubleRules_GreaterThan() {} + +func (*DoubleRules_Gte) isDoubleRules_GreaterThan() {} + +// Int32Rules describes the rules applied to `int32` values. These +// rules may also be applied to the `google.protobuf.Int32Value` Well-Known-Type. +type Int32Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyInt32 { + // // value must equal 42 + // int32 value = 1 [(buf.validate.field).int32.const = 42]; + // } + // + // ``` + Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *Int32Rules_Lt + // *Int32Rules_Lte + LessThan isInt32Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *Int32Rules_Gt + // *Int32Rules_Gte + GreaterThan isInt32Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyInt32 { + // // value must be in list [1, 2, 3] + // int32 value = 1 [(buf.validate.field).int32 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error message + // is generated. + // + // ```proto + // + // message MyInt32 { + // // value must not be in list [1, 2, 3] + // int32 value = 1 [(buf.validate.field).int32 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int32 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyInt32 { + // int32 value = 1 [ + // (buf.validate.field).int32.example = 1, + // (buf.validate.field).int32.example = -10 + // ]; + // } + // + // ``` + Example []int32 `protobuf:"varint,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Int32Rules) Reset() { + *x = Int32Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Int32Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int32Rules) ProtoMessage() {} + +func (x *Int32Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int32Rules.ProtoReflect.Descriptor instead. +func (*Int32Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{8} +} + +func (x *Int32Rules) GetConst() int32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *Int32Rules) GetLessThan() isInt32Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *Int32Rules) GetLt() int32 { + if x != nil { + if x, ok := x.LessThan.(*Int32Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *Int32Rules) GetLte() int32 { + if x != nil { + if x, ok := x.LessThan.(*Int32Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *Int32Rules) GetGreaterThan() isInt32Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *Int32Rules) GetGt() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*Int32Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *Int32Rules) GetGte() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*Int32Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *Int32Rules) GetIn() []int32 { + if x != nil { + return x.In + } + return nil +} + +func (x *Int32Rules) GetNotIn() []int32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *Int32Rules) GetExample() []int32 { + if x != nil { + return x.Example + } + return nil +} + +type isInt32Rules_LessThan interface { + isInt32Rules_LessThan() +} + +type Int32Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field + // < value). If the field value is equal to or greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyInt32 { + // // value must be less than 10 + // int32 value = 1 [(buf.validate.field).int32.lt = 10]; + // } + // + // ``` + Lt int32 `protobuf:"varint,2,opt,name=lt,oneof"` +} + +type Int32Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyInt32 { + // // value must be less than or equal to 10 + // int32 value = 1 [(buf.validate.field).int32.lte = 10]; + // } + // + // ``` + Lte int32 `protobuf:"varint,3,opt,name=lte,oneof"` +} + +func (*Int32Rules_Lt) isInt32Rules_LessThan() {} + +func (*Int32Rules_Lte) isInt32Rules_LessThan() {} + +type isInt32Rules_GreaterThan interface { + isInt32Rules_GreaterThan() +} + +type Int32Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyInt32 { + // // value must be greater than 5 [int32.gt] + // int32 value = 1 [(buf.validate.field).int32.gt = 5]; + // + // // value must be greater than 5 and less than 10 [int32.gt_lt] + // int32 other_value = 2 [(buf.validate.field).int32 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [int32.gt_lt_exclusive] + // int32 another_value = 3 [(buf.validate.field).int32 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int32 `protobuf:"varint,4,opt,name=gt,oneof"` +} + +type Int32Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified value + // (exclusive). If the value of `gte` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyInt32 { + // // value must be greater than or equal to 5 [int32.gte] + // int32 value = 1 [(buf.validate.field).int32.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [int32.gte_lt] + // int32 other_value = 2 [(buf.validate.field).int32 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [int32.gte_lt_exclusive] + // int32 another_value = 3 [(buf.validate.field).int32 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int32 `protobuf:"varint,5,opt,name=gte,oneof"` +} + +func (*Int32Rules_Gt) isInt32Rules_GreaterThan() {} + +func (*Int32Rules_Gte) isInt32Rules_GreaterThan() {} + +// Int64Rules describes the rules applied to `int64` values. These +// rules may also be applied to the `google.protobuf.Int64Value` Well-Known-Type. +type Int64Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must equal 42 + // int64 value = 1 [(buf.validate.field).int64.const = 42]; + // } + // + // ``` + Const *int64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *Int64Rules_Lt + // *Int64Rules_Lte + LessThan isInt64Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *Int64Rules_Gt + // *Int64Rules_Gte + GreaterThan isInt64Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyInt64 { + // // value must be in list [1, 2, 3] + // int64 value = 1 [(buf.validate.field).int64 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must not be in list [1, 2, 3] + // int64 value = 1 [(buf.validate.field).int64 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int64 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyInt64 { + // int64 value = 1 [ + // (buf.validate.field).int64.example = 1, + // (buf.validate.field).int64.example = -10 + // ]; + // } + // + // ``` + Example []int64 `protobuf:"varint,9,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Int64Rules) Reset() { + *x = Int64Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Int64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Int64Rules) ProtoMessage() {} + +func (x *Int64Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Int64Rules.ProtoReflect.Descriptor instead. +func (*Int64Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{9} +} + +func (x *Int64Rules) GetConst() int64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *Int64Rules) GetLessThan() isInt64Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *Int64Rules) GetLt() int64 { + if x != nil { + if x, ok := x.LessThan.(*Int64Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *Int64Rules) GetLte() int64 { + if x != nil { + if x, ok := x.LessThan.(*Int64Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *Int64Rules) GetGreaterThan() isInt64Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *Int64Rules) GetGt() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*Int64Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *Int64Rules) GetGte() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*Int64Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *Int64Rules) GetIn() []int64 { + if x != nil { + return x.In + } + return nil +} + +func (x *Int64Rules) GetNotIn() []int64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *Int64Rules) GetExample() []int64 { + if x != nil { + return x.Example + } + return nil +} + +type isInt64Rules_LessThan interface { + isInt64Rules_LessThan() +} + +type Int64Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must be less than 10 + // int64 value = 1 [(buf.validate.field).int64.lt = 10]; + // } + // + // ``` + Lt int64 `protobuf:"varint,2,opt,name=lt,oneof"` +} + +type Int64Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must be less than or equal to 10 + // int64 value = 1 [(buf.validate.field).int64.lte = 10]; + // } + // + // ``` + Lte int64 `protobuf:"varint,3,opt,name=lte,oneof"` +} + +func (*Int64Rules_Lt) isInt64Rules_LessThan() {} + +func (*Int64Rules_Lte) isInt64Rules_LessThan() {} + +type isInt64Rules_GreaterThan interface { + isInt64Rules_GreaterThan() +} + +type Int64Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must be greater than 5 [int64.gt] + // int64 value = 1 [(buf.validate.field).int64.gt = 5]; + // + // // value must be greater than 5 and less than 10 [int64.gt_lt] + // int64 other_value = 2 [(buf.validate.field).int64 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [int64.gt_lt_exclusive] + // int64 another_value = 3 [(buf.validate.field).int64 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int64 `protobuf:"varint,4,opt,name=gt,oneof"` +} + +type Int64Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyInt64 { + // // value must be greater than or equal to 5 [int64.gte] + // int64 value = 1 [(buf.validate.field).int64.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [int64.gte_lt] + // int64 other_value = 2 [(buf.validate.field).int64 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [int64.gte_lt_exclusive] + // int64 another_value = 3 [(buf.validate.field).int64 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int64 `protobuf:"varint,5,opt,name=gte,oneof"` +} + +func (*Int64Rules_Gt) isInt64Rules_GreaterThan() {} + +func (*Int64Rules_Gte) isInt64Rules_GreaterThan() {} + +// UInt32Rules describes the rules applied to `uint32` values. These +// rules may also be applied to the `google.protobuf.UInt32Value` Well-Known-Type. +type UInt32Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must equal 42 + // uint32 value = 1 [(buf.validate.field).uint32.const = 42]; + // } + // + // ``` + Const *uint32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *UInt32Rules_Lt + // *UInt32Rules_Lte + LessThan isUInt32Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *UInt32Rules_Gt + // *UInt32Rules_Gte + GreaterThan isUInt32Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyUInt32 { + // // value must be in list [1, 2, 3] + // uint32 value = 1 [(buf.validate.field).uint32 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []uint32 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must not be in list [1, 2, 3] + // uint32 value = 1 [(buf.validate.field).uint32 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []uint32 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyUInt32 { + // uint32 value = 1 [ + // (buf.validate.field).uint32.example = 1, + // (buf.validate.field).uint32.example = 10 + // ]; + // } + // + // ``` + Example []uint32 `protobuf:"varint,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UInt32Rules) Reset() { + *x = UInt32Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UInt32Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt32Rules) ProtoMessage() {} + +func (x *UInt32Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt32Rules.ProtoReflect.Descriptor instead. +func (*UInt32Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{10} +} + +func (x *UInt32Rules) GetConst() uint32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *UInt32Rules) GetLessThan() isUInt32Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *UInt32Rules) GetLt() uint32 { + if x != nil { + if x, ok := x.LessThan.(*UInt32Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *UInt32Rules) GetLte() uint32 { + if x != nil { + if x, ok := x.LessThan.(*UInt32Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *UInt32Rules) GetGreaterThan() isUInt32Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *UInt32Rules) GetGt() uint32 { + if x != nil { + if x, ok := x.GreaterThan.(*UInt32Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *UInt32Rules) GetGte() uint32 { + if x != nil { + if x, ok := x.GreaterThan.(*UInt32Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *UInt32Rules) GetIn() []uint32 { + if x != nil { + return x.In + } + return nil +} + +func (x *UInt32Rules) GetNotIn() []uint32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *UInt32Rules) GetExample() []uint32 { + if x != nil { + return x.Example + } + return nil +} + +type isUInt32Rules_LessThan interface { + isUInt32Rules_LessThan() +} + +type UInt32Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must be less than 10 + // uint32 value = 1 [(buf.validate.field).uint32.lt = 10]; + // } + // + // ``` + Lt uint32 `protobuf:"varint,2,opt,name=lt,oneof"` +} + +type UInt32Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must be less than or equal to 10 + // uint32 value = 1 [(buf.validate.field).uint32.lte = 10]; + // } + // + // ``` + Lte uint32 `protobuf:"varint,3,opt,name=lte,oneof"` +} + +func (*UInt32Rules_Lt) isUInt32Rules_LessThan() {} + +func (*UInt32Rules_Lte) isUInt32Rules_LessThan() {} + +type isUInt32Rules_GreaterThan interface { + isUInt32Rules_GreaterThan() +} + +type UInt32Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must be greater than 5 [uint32.gt] + // uint32 value = 1 [(buf.validate.field).uint32.gt = 5]; + // + // // value must be greater than 5 and less than 10 [uint32.gt_lt] + // uint32 other_value = 2 [(buf.validate.field).uint32 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [uint32.gt_lt_exclusive] + // uint32 another_value = 3 [(buf.validate.field).uint32 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt uint32 `protobuf:"varint,4,opt,name=gt,oneof"` +} + +type UInt32Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyUInt32 { + // // value must be greater than or equal to 5 [uint32.gte] + // uint32 value = 1 [(buf.validate.field).uint32.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [uint32.gte_lt] + // uint32 other_value = 2 [(buf.validate.field).uint32 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [uint32.gte_lt_exclusive] + // uint32 another_value = 3 [(buf.validate.field).uint32 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte uint32 `protobuf:"varint,5,opt,name=gte,oneof"` +} + +func (*UInt32Rules_Gt) isUInt32Rules_GreaterThan() {} + +func (*UInt32Rules_Gte) isUInt32Rules_GreaterThan() {} + +// UInt64Rules describes the rules applied to `uint64` values. These +// rules may also be applied to the `google.protobuf.UInt64Value` Well-Known-Type. +type UInt64Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must equal 42 + // uint64 value = 1 [(buf.validate.field).uint64.const = 42]; + // } + // + // ``` + Const *uint64 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *UInt64Rules_Lt + // *UInt64Rules_Lte + LessThan isUInt64Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *UInt64Rules_Gt + // *UInt64Rules_Gte + GreaterThan isUInt64Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyUInt64 { + // // value must be in list [1, 2, 3] + // uint64 value = 1 [(buf.validate.field).uint64 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []uint64 `protobuf:"varint,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must not be in list [1, 2, 3] + // uint64 value = 1 [(buf.validate.field).uint64 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []uint64 `protobuf:"varint,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyUInt64 { + // uint64 value = 1 [ + // (buf.validate.field).uint64.example = 1, + // (buf.validate.field).uint64.example = -10 + // ]; + // } + // + // ``` + Example []uint64 `protobuf:"varint,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UInt64Rules) Reset() { + *x = UInt64Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UInt64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UInt64Rules) ProtoMessage() {} + +func (x *UInt64Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UInt64Rules.ProtoReflect.Descriptor instead. +func (*UInt64Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{11} +} + +func (x *UInt64Rules) GetConst() uint64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *UInt64Rules) GetLessThan() isUInt64Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *UInt64Rules) GetLt() uint64 { + if x != nil { + if x, ok := x.LessThan.(*UInt64Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *UInt64Rules) GetLte() uint64 { + if x != nil { + if x, ok := x.LessThan.(*UInt64Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *UInt64Rules) GetGreaterThan() isUInt64Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *UInt64Rules) GetGt() uint64 { + if x != nil { + if x, ok := x.GreaterThan.(*UInt64Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *UInt64Rules) GetGte() uint64 { + if x != nil { + if x, ok := x.GreaterThan.(*UInt64Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *UInt64Rules) GetIn() []uint64 { + if x != nil { + return x.In + } + return nil +} + +func (x *UInt64Rules) GetNotIn() []uint64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *UInt64Rules) GetExample() []uint64 { + if x != nil { + return x.Example + } + return nil +} + +type isUInt64Rules_LessThan interface { + isUInt64Rules_LessThan() +} + +type UInt64Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must be less than 10 + // uint64 value = 1 [(buf.validate.field).uint64.lt = 10]; + // } + // + // ``` + Lt uint64 `protobuf:"varint,2,opt,name=lt,oneof"` +} + +type UInt64Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must be less than or equal to 10 + // uint64 value = 1 [(buf.validate.field).uint64.lte = 10]; + // } + // + // ``` + Lte uint64 `protobuf:"varint,3,opt,name=lte,oneof"` +} + +func (*UInt64Rules_Lt) isUInt64Rules_LessThan() {} + +func (*UInt64Rules_Lte) isUInt64Rules_LessThan() {} + +type isUInt64Rules_GreaterThan interface { + isUInt64Rules_GreaterThan() +} + +type UInt64Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must be greater than 5 [uint64.gt] + // uint64 value = 1 [(buf.validate.field).uint64.gt = 5]; + // + // // value must be greater than 5 and less than 10 [uint64.gt_lt] + // uint64 other_value = 2 [(buf.validate.field).uint64 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [uint64.gt_lt_exclusive] + // uint64 another_value = 3 [(buf.validate.field).uint64 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt uint64 `protobuf:"varint,4,opt,name=gt,oneof"` +} + +type UInt64Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyUInt64 { + // // value must be greater than or equal to 5 [uint64.gte] + // uint64 value = 1 [(buf.validate.field).uint64.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [uint64.gte_lt] + // uint64 other_value = 2 [(buf.validate.field).uint64 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [uint64.gte_lt_exclusive] + // uint64 another_value = 3 [(buf.validate.field).uint64 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte uint64 `protobuf:"varint,5,opt,name=gte,oneof"` +} + +func (*UInt64Rules_Gt) isUInt64Rules_GreaterThan() {} + +func (*UInt64Rules_Gte) isUInt64Rules_GreaterThan() {} + +// SInt32Rules describes the rules applied to `sint32` values. +type SInt32Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must equal 42 + // sint32 value = 1 [(buf.validate.field).sint32.const = 42]; + // } + // + // ``` + Const *int32 `protobuf:"zigzag32,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *SInt32Rules_Lt + // *SInt32Rules_Lte + LessThan isSInt32Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *SInt32Rules_Gt + // *SInt32Rules_Gte + GreaterThan isSInt32Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MySInt32 { + // // value must be in list [1, 2, 3] + // sint32 value = 1 [(buf.validate.field).sint32 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int32 `protobuf:"zigzag32,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must not be in list [1, 2, 3] + // sint32 value = 1 [(buf.validate.field).sint32 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int32 `protobuf:"zigzag32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MySInt32 { + // sint32 value = 1 [ + // (buf.validate.field).sint32.example = 1, + // (buf.validate.field).sint32.example = -10 + // ]; + // } + // + // ``` + Example []int32 `protobuf:"zigzag32,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SInt32Rules) Reset() { + *x = SInt32Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SInt32Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SInt32Rules) ProtoMessage() {} + +func (x *SInt32Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SInt32Rules.ProtoReflect.Descriptor instead. +func (*SInt32Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{12} +} + +func (x *SInt32Rules) GetConst() int32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *SInt32Rules) GetLessThan() isSInt32Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *SInt32Rules) GetLt() int32 { + if x != nil { + if x, ok := x.LessThan.(*SInt32Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *SInt32Rules) GetLte() int32 { + if x != nil { + if x, ok := x.LessThan.(*SInt32Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *SInt32Rules) GetGreaterThan() isSInt32Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *SInt32Rules) GetGt() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*SInt32Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *SInt32Rules) GetGte() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*SInt32Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *SInt32Rules) GetIn() []int32 { + if x != nil { + return x.In + } + return nil +} + +func (x *SInt32Rules) GetNotIn() []int32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *SInt32Rules) GetExample() []int32 { + if x != nil { + return x.Example + } + return nil +} + +type isSInt32Rules_LessThan interface { + isSInt32Rules_LessThan() +} + +type SInt32Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field + // < value). If the field value is equal to or greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must be less than 10 + // sint32 value = 1 [(buf.validate.field).sint32.lt = 10]; + // } + // + // ``` + Lt int32 `protobuf:"zigzag32,2,opt,name=lt,oneof"` +} + +type SInt32Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must be less than or equal to 10 + // sint32 value = 1 [(buf.validate.field).sint32.lte = 10]; + // } + // + // ``` + Lte int32 `protobuf:"zigzag32,3,opt,name=lte,oneof"` +} + +func (*SInt32Rules_Lt) isSInt32Rules_LessThan() {} + +func (*SInt32Rules_Lte) isSInt32Rules_LessThan() {} + +type isSInt32Rules_GreaterThan interface { + isSInt32Rules_GreaterThan() +} + +type SInt32Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must be greater than 5 [sint32.gt] + // sint32 value = 1 [(buf.validate.field).sint32.gt = 5]; + // + // // value must be greater than 5 and less than 10 [sint32.gt_lt] + // sint32 other_value = 2 [(buf.validate.field).sint32 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [sint32.gt_lt_exclusive] + // sint32 another_value = 3 [(buf.validate.field).sint32 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int32 `protobuf:"zigzag32,4,opt,name=gt,oneof"` +} + +type SInt32Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySInt32 { + // // value must be greater than or equal to 5 [sint32.gte] + // sint32 value = 1 [(buf.validate.field).sint32.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [sint32.gte_lt] + // sint32 other_value = 2 [(buf.validate.field).sint32 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [sint32.gte_lt_exclusive] + // sint32 another_value = 3 [(buf.validate.field).sint32 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int32 `protobuf:"zigzag32,5,opt,name=gte,oneof"` +} + +func (*SInt32Rules_Gt) isSInt32Rules_GreaterThan() {} + +func (*SInt32Rules_Gte) isSInt32Rules_GreaterThan() {} + +// SInt64Rules describes the rules applied to `sint64` values. +type SInt64Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must equal 42 + // sint64 value = 1 [(buf.validate.field).sint64.const = 42]; + // } + // + // ``` + Const *int64 `protobuf:"zigzag64,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *SInt64Rules_Lt + // *SInt64Rules_Lte + LessThan isSInt64Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *SInt64Rules_Gt + // *SInt64Rules_Gte + GreaterThan isSInt64Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message + // is generated. + // + // ```proto + // + // message MySInt64 { + // // value must be in list [1, 2, 3] + // sint64 value = 1 [(buf.validate.field).sint64 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int64 `protobuf:"zigzag64,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must not be in list [1, 2, 3] + // sint64 value = 1 [(buf.validate.field).sint64 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int64 `protobuf:"zigzag64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MySInt64 { + // sint64 value = 1 [ + // (buf.validate.field).sint64.example = 1, + // (buf.validate.field).sint64.example = -10 + // ]; + // } + // + // ``` + Example []int64 `protobuf:"zigzag64,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SInt64Rules) Reset() { + *x = SInt64Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SInt64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SInt64Rules) ProtoMessage() {} + +func (x *SInt64Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SInt64Rules.ProtoReflect.Descriptor instead. +func (*SInt64Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{13} +} + +func (x *SInt64Rules) GetConst() int64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *SInt64Rules) GetLessThan() isSInt64Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *SInt64Rules) GetLt() int64 { + if x != nil { + if x, ok := x.LessThan.(*SInt64Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *SInt64Rules) GetLte() int64 { + if x != nil { + if x, ok := x.LessThan.(*SInt64Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *SInt64Rules) GetGreaterThan() isSInt64Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *SInt64Rules) GetGt() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*SInt64Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *SInt64Rules) GetGte() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*SInt64Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *SInt64Rules) GetIn() []int64 { + if x != nil { + return x.In + } + return nil +} + +func (x *SInt64Rules) GetNotIn() []int64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *SInt64Rules) GetExample() []int64 { + if x != nil { + return x.Example + } + return nil +} + +type isSInt64Rules_LessThan interface { + isSInt64Rules_LessThan() +} + +type SInt64Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field + // < value). If the field value is equal to or greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must be less than 10 + // sint64 value = 1 [(buf.validate.field).sint64.lt = 10]; + // } + // + // ``` + Lt int64 `protobuf:"zigzag64,2,opt,name=lt,oneof"` +} + +type SInt64Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must be less than or equal to 10 + // sint64 value = 1 [(buf.validate.field).sint64.lte = 10]; + // } + // + // ``` + Lte int64 `protobuf:"zigzag64,3,opt,name=lte,oneof"` +} + +func (*SInt64Rules_Lt) isSInt64Rules_LessThan() {} + +func (*SInt64Rules_Lte) isSInt64Rules_LessThan() {} + +type isSInt64Rules_GreaterThan interface { + isSInt64Rules_GreaterThan() +} + +type SInt64Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must be greater than 5 [sint64.gt] + // sint64 value = 1 [(buf.validate.field).sint64.gt = 5]; + // + // // value must be greater than 5 and less than 10 [sint64.gt_lt] + // sint64 other_value = 2 [(buf.validate.field).sint64 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [sint64.gt_lt_exclusive] + // sint64 another_value = 3 [(buf.validate.field).sint64 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int64 `protobuf:"zigzag64,4,opt,name=gt,oneof"` +} + +type SInt64Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySInt64 { + // // value must be greater than or equal to 5 [sint64.gte] + // sint64 value = 1 [(buf.validate.field).sint64.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [sint64.gte_lt] + // sint64 other_value = 2 [(buf.validate.field).sint64 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [sint64.gte_lt_exclusive] + // sint64 another_value = 3 [(buf.validate.field).sint64 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int64 `protobuf:"zigzag64,5,opt,name=gte,oneof"` +} + +func (*SInt64Rules_Gt) isSInt64Rules_GreaterThan() {} + +func (*SInt64Rules_Gte) isSInt64Rules_GreaterThan() {} + +// Fixed32Rules describes the rules applied to `fixed32` values. +type Fixed32Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. + // If the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must equal 42 + // fixed32 value = 1 [(buf.validate.field).fixed32.const = 42]; + // } + // + // ``` + Const *uint32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *Fixed32Rules_Lt + // *Fixed32Rules_Lte + LessThan isFixed32Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *Fixed32Rules_Gt + // *Fixed32Rules_Gte + GreaterThan isFixed32Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message + // is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must be in list [1, 2, 3] + // fixed32 value = 1 [(buf.validate.field).fixed32 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []uint32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must not be in list [1, 2, 3] + // fixed32 value = 1 [(buf.validate.field).fixed32 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []uint32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyFixed32 { + // fixed32 value = 1 [ + // (buf.validate.field).fixed32.example = 1, + // (buf.validate.field).fixed32.example = 2 + // ]; + // } + // + // ``` + Example []uint32 `protobuf:"fixed32,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Fixed32Rules) Reset() { + *x = Fixed32Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Fixed32Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Fixed32Rules) ProtoMessage() {} + +func (x *Fixed32Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Fixed32Rules.ProtoReflect.Descriptor instead. +func (*Fixed32Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{14} +} + +func (x *Fixed32Rules) GetConst() uint32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *Fixed32Rules) GetLessThan() isFixed32Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *Fixed32Rules) GetLt() uint32 { + if x != nil { + if x, ok := x.LessThan.(*Fixed32Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *Fixed32Rules) GetLte() uint32 { + if x != nil { + if x, ok := x.LessThan.(*Fixed32Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *Fixed32Rules) GetGreaterThan() isFixed32Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *Fixed32Rules) GetGt() uint32 { + if x != nil { + if x, ok := x.GreaterThan.(*Fixed32Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *Fixed32Rules) GetGte() uint32 { + if x != nil { + if x, ok := x.GreaterThan.(*Fixed32Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *Fixed32Rules) GetIn() []uint32 { + if x != nil { + return x.In + } + return nil +} + +func (x *Fixed32Rules) GetNotIn() []uint32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *Fixed32Rules) GetExample() []uint32 { + if x != nil { + return x.Example + } + return nil +} + +type isFixed32Rules_LessThan interface { + isFixed32Rules_LessThan() +} + +type Fixed32Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must be less than 10 + // fixed32 value = 1 [(buf.validate.field).fixed32.lt = 10]; + // } + // + // ``` + Lt uint32 `protobuf:"fixed32,2,opt,name=lt,oneof"` +} + +type Fixed32Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must be less than or equal to 10 + // fixed32 value = 1 [(buf.validate.field).fixed32.lte = 10]; + // } + // + // ``` + Lte uint32 `protobuf:"fixed32,3,opt,name=lte,oneof"` +} + +func (*Fixed32Rules_Lt) isFixed32Rules_LessThan() {} + +func (*Fixed32Rules_Lte) isFixed32Rules_LessThan() {} + +type isFixed32Rules_GreaterThan interface { + isFixed32Rules_GreaterThan() +} + +type Fixed32Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must be greater than 5 [fixed32.gt] + // fixed32 value = 1 [(buf.validate.field).fixed32.gt = 5]; + // + // // value must be greater than 5 and less than 10 [fixed32.gt_lt] + // fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [fixed32.gt_lt_exclusive] + // fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt uint32 `protobuf:"fixed32,4,opt,name=gt,oneof"` +} + +type Fixed32Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFixed32 { + // // value must be greater than or equal to 5 [fixed32.gte] + // fixed32 value = 1 [(buf.validate.field).fixed32.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [fixed32.gte_lt] + // fixed32 other_value = 2 [(buf.validate.field).fixed32 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [fixed32.gte_lt_exclusive] + // fixed32 another_value = 3 [(buf.validate.field).fixed32 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte uint32 `protobuf:"fixed32,5,opt,name=gte,oneof"` +} + +func (*Fixed32Rules_Gt) isFixed32Rules_GreaterThan() {} + +func (*Fixed32Rules_Gte) isFixed32Rules_GreaterThan() {} + +// Fixed64Rules describes the rules applied to `fixed64` values. +type Fixed64Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must equal 42 + // fixed64 value = 1 [(buf.validate.field).fixed64.const = 42]; + // } + // + // ``` + Const *uint64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *Fixed64Rules_Lt + // *Fixed64Rules_Lte + LessThan isFixed64Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *Fixed64Rules_Gt + // *Fixed64Rules_Gte + GreaterThan isFixed64Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyFixed64 { + // // value must be in list [1, 2, 3] + // fixed64 value = 1 [(buf.validate.field).fixed64 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []uint64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must not be in list [1, 2, 3] + // fixed64 value = 1 [(buf.validate.field).fixed64 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []uint64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyFixed64 { + // fixed64 value = 1 [ + // (buf.validate.field).fixed64.example = 1, + // (buf.validate.field).fixed64.example = 2 + // ]; + // } + // + // ``` + Example []uint64 `protobuf:"fixed64,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Fixed64Rules) Reset() { + *x = Fixed64Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Fixed64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Fixed64Rules) ProtoMessage() {} + +func (x *Fixed64Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Fixed64Rules.ProtoReflect.Descriptor instead. +func (*Fixed64Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{15} +} + +func (x *Fixed64Rules) GetConst() uint64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *Fixed64Rules) GetLessThan() isFixed64Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *Fixed64Rules) GetLt() uint64 { + if x != nil { + if x, ok := x.LessThan.(*Fixed64Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *Fixed64Rules) GetLte() uint64 { + if x != nil { + if x, ok := x.LessThan.(*Fixed64Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *Fixed64Rules) GetGreaterThan() isFixed64Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *Fixed64Rules) GetGt() uint64 { + if x != nil { + if x, ok := x.GreaterThan.(*Fixed64Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *Fixed64Rules) GetGte() uint64 { + if x != nil { + if x, ok := x.GreaterThan.(*Fixed64Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *Fixed64Rules) GetIn() []uint64 { + if x != nil { + return x.In + } + return nil +} + +func (x *Fixed64Rules) GetNotIn() []uint64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *Fixed64Rules) GetExample() []uint64 { + if x != nil { + return x.Example + } + return nil +} + +type isFixed64Rules_LessThan interface { + isFixed64Rules_LessThan() +} + +type Fixed64Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must be less than 10 + // fixed64 value = 1 [(buf.validate.field).fixed64.lt = 10]; + // } + // + // ``` + Lt uint64 `protobuf:"fixed64,2,opt,name=lt,oneof"` +} + +type Fixed64Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must be less than or equal to 10 + // fixed64 value = 1 [(buf.validate.field).fixed64.lte = 10]; + // } + // + // ``` + Lte uint64 `protobuf:"fixed64,3,opt,name=lte,oneof"` +} + +func (*Fixed64Rules_Lt) isFixed64Rules_LessThan() {} + +func (*Fixed64Rules_Lte) isFixed64Rules_LessThan() {} + +type isFixed64Rules_GreaterThan interface { + isFixed64Rules_GreaterThan() +} + +type Fixed64Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must be greater than 5 [fixed64.gt] + // fixed64 value = 1 [(buf.validate.field).fixed64.gt = 5]; + // + // // value must be greater than 5 and less than 10 [fixed64.gt_lt] + // fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [fixed64.gt_lt_exclusive] + // fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt uint64 `protobuf:"fixed64,4,opt,name=gt,oneof"` +} + +type Fixed64Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyFixed64 { + // // value must be greater than or equal to 5 [fixed64.gte] + // fixed64 value = 1 [(buf.validate.field).fixed64.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [fixed64.gte_lt] + // fixed64 other_value = 2 [(buf.validate.field).fixed64 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [fixed64.gte_lt_exclusive] + // fixed64 another_value = 3 [(buf.validate.field).fixed64 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte uint64 `protobuf:"fixed64,5,opt,name=gte,oneof"` +} + +func (*Fixed64Rules_Gt) isFixed64Rules_GreaterThan() {} + +func (*Fixed64Rules_Gte) isFixed64Rules_GreaterThan() {} + +// SFixed32Rules describes the rules applied to `fixed32` values. +type SFixed32Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must equal 42 + // sfixed32 value = 1 [(buf.validate.field).sfixed32.const = 42]; + // } + // + // ``` + Const *int32 `protobuf:"fixed32,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *SFixed32Rules_Lt + // *SFixed32Rules_Lte + LessThan isSFixed32Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *SFixed32Rules_Gt + // *SFixed32Rules_Gte + GreaterThan isSFixed32Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MySFixed32 { + // // value must be in list [1, 2, 3] + // sfixed32 value = 1 [(buf.validate.field).sfixed32 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int32 `protobuf:"fixed32,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must not be in list [1, 2, 3] + // sfixed32 value = 1 [(buf.validate.field).sfixed32 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int32 `protobuf:"fixed32,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MySFixed32 { + // sfixed32 value = 1 [ + // (buf.validate.field).sfixed32.example = 1, + // (buf.validate.field).sfixed32.example = 2 + // ]; + // } + // + // ``` + Example []int32 `protobuf:"fixed32,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SFixed32Rules) Reset() { + *x = SFixed32Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SFixed32Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SFixed32Rules) ProtoMessage() {} + +func (x *SFixed32Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SFixed32Rules.ProtoReflect.Descriptor instead. +func (*SFixed32Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{16} +} + +func (x *SFixed32Rules) GetConst() int32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *SFixed32Rules) GetLessThan() isSFixed32Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *SFixed32Rules) GetLt() int32 { + if x != nil { + if x, ok := x.LessThan.(*SFixed32Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *SFixed32Rules) GetLte() int32 { + if x != nil { + if x, ok := x.LessThan.(*SFixed32Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *SFixed32Rules) GetGreaterThan() isSFixed32Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *SFixed32Rules) GetGt() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*SFixed32Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *SFixed32Rules) GetGte() int32 { + if x != nil { + if x, ok := x.GreaterThan.(*SFixed32Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *SFixed32Rules) GetIn() []int32 { + if x != nil { + return x.In + } + return nil +} + +func (x *SFixed32Rules) GetNotIn() []int32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *SFixed32Rules) GetExample() []int32 { + if x != nil { + return x.Example + } + return nil +} + +type isSFixed32Rules_LessThan interface { + isSFixed32Rules_LessThan() +} + +type SFixed32Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must be less than 10 + // sfixed32 value = 1 [(buf.validate.field).sfixed32.lt = 10]; + // } + // + // ``` + Lt int32 `protobuf:"fixed32,2,opt,name=lt,oneof"` +} + +type SFixed32Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must be less than or equal to 10 + // sfixed32 value = 1 [(buf.validate.field).sfixed32.lte = 10]; + // } + // + // ``` + Lte int32 `protobuf:"fixed32,3,opt,name=lte,oneof"` +} + +func (*SFixed32Rules_Lt) isSFixed32Rules_LessThan() {} + +func (*SFixed32Rules_Lte) isSFixed32Rules_LessThan() {} + +type isSFixed32Rules_GreaterThan interface { + isSFixed32Rules_GreaterThan() +} + +type SFixed32Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must be greater than 5 [sfixed32.gt] + // sfixed32 value = 1 [(buf.validate.field).sfixed32.gt = 5]; + // + // // value must be greater than 5 and less than 10 [sfixed32.gt_lt] + // sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [sfixed32.gt_lt_exclusive] + // sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int32 `protobuf:"fixed32,4,opt,name=gt,oneof"` +} + +type SFixed32Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySFixed32 { + // // value must be greater than or equal to 5 [sfixed32.gte] + // sfixed32 value = 1 [(buf.validate.field).sfixed32.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [sfixed32.gte_lt] + // sfixed32 other_value = 2 [(buf.validate.field).sfixed32 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [sfixed32.gte_lt_exclusive] + // sfixed32 another_value = 3 [(buf.validate.field).sfixed32 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int32 `protobuf:"fixed32,5,opt,name=gte,oneof"` +} + +func (*SFixed32Rules_Gt) isSFixed32Rules_GreaterThan() {} + +func (*SFixed32Rules_Gte) isSFixed32Rules_GreaterThan() {} + +// SFixed64Rules describes the rules applied to `fixed64` values. +type SFixed64Rules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must equal 42 + // sfixed64 value = 1 [(buf.validate.field).sfixed64.const = 42]; + // } + // + // ``` + Const *int64 `protobuf:"fixed64,1,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *SFixed64Rules_Lt + // *SFixed64Rules_Lte + LessThan isSFixed64Rules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *SFixed64Rules_Gt + // *SFixed64Rules_Gte + GreaterThan isSFixed64Rules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` requires the field value to be equal to one of the specified values. + // If the field value isn't one of the specified values, an error message is + // generated. + // + // ```proto + // + // message MySFixed64 { + // // value must be in list [1, 2, 3] + // sfixed64 value = 1 [(buf.validate.field).sfixed64 = { in: [1, 2, 3] }]; + // } + // + // ``` + In []int64 `protobuf:"fixed64,6,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not be equal to any of the specified + // values. If the field value is one of the specified values, an error + // message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must not be in list [1, 2, 3] + // sfixed64 value = 1 [(buf.validate.field).sfixed64 = { not_in: [1, 2, 3] }]; + // } + // + // ``` + NotIn []int64 `protobuf:"fixed64,7,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MySFixed64 { + // sfixed64 value = 1 [ + // (buf.validate.field).sfixed64.example = 1, + // (buf.validate.field).sfixed64.example = 2 + // ]; + // } + // + // ``` + Example []int64 `protobuf:"fixed64,8,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SFixed64Rules) Reset() { + *x = SFixed64Rules{} + mi := &file_buf_validate_validate_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SFixed64Rules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SFixed64Rules) ProtoMessage() {} + +func (x *SFixed64Rules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SFixed64Rules.ProtoReflect.Descriptor instead. +func (*SFixed64Rules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{17} +} + +func (x *SFixed64Rules) GetConst() int64 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *SFixed64Rules) GetLessThan() isSFixed64Rules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *SFixed64Rules) GetLt() int64 { + if x != nil { + if x, ok := x.LessThan.(*SFixed64Rules_Lt); ok { + return x.Lt + } + } + return 0 +} + +func (x *SFixed64Rules) GetLte() int64 { + if x != nil { + if x, ok := x.LessThan.(*SFixed64Rules_Lte); ok { + return x.Lte + } + } + return 0 +} + +func (x *SFixed64Rules) GetGreaterThan() isSFixed64Rules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *SFixed64Rules) GetGt() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*SFixed64Rules_Gt); ok { + return x.Gt + } + } + return 0 +} + +func (x *SFixed64Rules) GetGte() int64 { + if x != nil { + if x, ok := x.GreaterThan.(*SFixed64Rules_Gte); ok { + return x.Gte + } + } + return 0 +} + +func (x *SFixed64Rules) GetIn() []int64 { + if x != nil { + return x.In + } + return nil +} + +func (x *SFixed64Rules) GetNotIn() []int64 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *SFixed64Rules) GetExample() []int64 { + if x != nil { + return x.Example + } + return nil +} + +type isSFixed64Rules_LessThan interface { + isSFixed64Rules_LessThan() +} + +type SFixed64Rules_Lt struct { + // `lt` requires the field value to be less than the specified value (field < + // value). If the field value is equal to or greater than the specified value, + // an error message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must be less than 10 + // sfixed64 value = 1 [(buf.validate.field).sfixed64.lt = 10]; + // } + // + // ``` + Lt int64 `protobuf:"fixed64,2,opt,name=lt,oneof"` +} + +type SFixed64Rules_Lte struct { + // `lte` requires the field value to be less than or equal to the specified + // value (field <= value). If the field value is greater than the specified + // value, an error message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must be less than or equal to 10 + // sfixed64 value = 1 [(buf.validate.field).sfixed64.lte = 10]; + // } + // + // ``` + Lte int64 `protobuf:"fixed64,3,opt,name=lte,oneof"` +} + +func (*SFixed64Rules_Lt) isSFixed64Rules_LessThan() {} + +func (*SFixed64Rules_Lte) isSFixed64Rules_LessThan() {} + +type isSFixed64Rules_GreaterThan interface { + isSFixed64Rules_GreaterThan() +} + +type SFixed64Rules_Gt struct { + // `gt` requires the field value to be greater than the specified value + // (exclusive). If the value of `gt` is larger than a specified `lt` or + // `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must be greater than 5 [sfixed64.gt] + // sfixed64 value = 1 [(buf.validate.field).sfixed64.gt = 5]; + // + // // value must be greater than 5 and less than 10 [sfixed64.gt_lt] + // sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gt: 5, lt: 10 }]; + // + // // value must be greater than 10 or less than 5 [sfixed64.gt_lt_exclusive] + // sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gt: 10, lt: 5 }]; + // } + // + // ``` + Gt int64 `protobuf:"fixed64,4,opt,name=gt,oneof"` +} + +type SFixed64Rules_Gte struct { + // `gte` requires the field value to be greater than or equal to the specified + // value (exclusive). If the value of `gte` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MySFixed64 { + // // value must be greater than or equal to 5 [sfixed64.gte] + // sfixed64 value = 1 [(buf.validate.field).sfixed64.gte = 5]; + // + // // value must be greater than or equal to 5 and less than 10 [sfixed64.gte_lt] + // sfixed64 other_value = 2 [(buf.validate.field).sfixed64 = { gte: 5, lt: 10 }]; + // + // // value must be greater than or equal to 10 or less than 5 [sfixed64.gte_lt_exclusive] + // sfixed64 another_value = 3 [(buf.validate.field).sfixed64 = { gte: 10, lt: 5 }]; + // } + // + // ``` + Gte int64 `protobuf:"fixed64,5,opt,name=gte,oneof"` +} + +func (*SFixed64Rules_Gt) isSFixed64Rules_GreaterThan() {} + +func (*SFixed64Rules_Gte) isSFixed64Rules_GreaterThan() {} + +// BoolRules describes the rules applied to `bool` values. These rules +// may also be applied to the `google.protobuf.BoolValue` Well-Known-Type. +type BoolRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified boolean value. + // If the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyBool { + // // value must equal true + // bool value = 1 [(buf.validate.field).bool.const = true]; + // } + // + // ``` + Const *bool `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyBool { + // bool value = 1 [ + // (buf.validate.field).bool.example = 1, + // (buf.validate.field).bool.example = 2 + // ]; + // } + // + // ``` + Example []bool `protobuf:"varint,2,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BoolRules) Reset() { + *x = BoolRules{} + mi := &file_buf_validate_validate_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BoolRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BoolRules) ProtoMessage() {} + +func (x *BoolRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BoolRules.ProtoReflect.Descriptor instead. +func (*BoolRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{18} +} + +func (x *BoolRules) GetConst() bool { + if x != nil && x.Const != nil { + return *x.Const + } + return false +} + +func (x *BoolRules) GetExample() []bool { + if x != nil { + return x.Example + } + return nil +} + +// StringRules describes the rules applied to `string` values These +// rules may also be applied to the `google.protobuf.StringValue` Well-Known-Type. +type StringRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified value. If + // the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyString { + // // value must equal `hello` + // string value = 1 [(buf.validate.field).string.const = "hello"]; + // } + // + // ``` + Const *string `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"` + // `len` dictates that the field value must have the specified + // number of characters (Unicode code points), which may differ from the number + // of bytes in the string. If the field value does not meet the specified + // length, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value length must be 5 characters + // string value = 1 [(buf.validate.field).string.len = 5]; + // } + // + // ``` + Len *uint64 `protobuf:"varint,19,opt,name=len" json:"len,omitempty"` + // `min_len` specifies that the field value must have at least the specified + // number of characters (Unicode code points), which may differ from the number + // of bytes in the string. If the field value contains fewer characters, an error + // message will be generated. + // + // ```proto + // + // message MyString { + // // value length must be at least 3 characters + // string value = 1 [(buf.validate.field).string.min_len = 3]; + // } + // + // ``` + MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"` + // `max_len` specifies that the field value must have no more than the specified + // number of characters (Unicode code points), which may differ from the + // number of bytes in the string. If the field value contains more characters, + // an error message will be generated. + // + // ```proto + // + // message MyString { + // // value length must be at most 10 characters + // string value = 1 [(buf.validate.field).string.max_len = 10]; + // } + // + // ``` + MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"` + // `len_bytes` dictates that the field value must have the specified number of + // bytes. If the field value does not match the specified length in bytes, + // an error message will be generated. + // + // ```proto + // + // message MyString { + // // value length must be 6 bytes + // string value = 1 [(buf.validate.field).string.len_bytes = 6]; + // } + // + // ``` + LenBytes *uint64 `protobuf:"varint,20,opt,name=len_bytes,json=lenBytes" json:"len_bytes,omitempty"` + // `min_bytes` specifies that the field value must have at least the specified + // number of bytes. If the field value contains fewer bytes, an error message + // will be generated. + // + // ```proto + // + // message MyString { + // // value length must be at least 4 bytes + // string value = 1 [(buf.validate.field).string.min_bytes = 4]; + // } + // + // ``` + MinBytes *uint64 `protobuf:"varint,4,opt,name=min_bytes,json=minBytes" json:"min_bytes,omitempty"` + // `max_bytes` specifies that the field value must have no more than the + // specified number of bytes. If the field value contains more bytes, an + // error message will be generated. + // + // ```proto + // + // message MyString { + // // value length must be at most 8 bytes + // string value = 1 [(buf.validate.field).string.max_bytes = 8]; + // } + // + // ``` + MaxBytes *uint64 `protobuf:"varint,5,opt,name=max_bytes,json=maxBytes" json:"max_bytes,omitempty"` + // `pattern` specifies that the field value must match the specified + // regular expression (RE2 syntax), with the expression provided without any + // delimiters. If the field value doesn't match the regular expression, an + // error message will be generated. + // + // ```proto + // + // message MyString { + // // value does not match regex pattern `^[a-zA-Z]//$` + // string value = 1 [(buf.validate.field).string.pattern = "^[a-zA-Z]//$"]; + // } + // + // ``` + Pattern *string `protobuf:"bytes,6,opt,name=pattern" json:"pattern,omitempty"` + // `prefix` specifies that the field value must have the + // specified substring at the beginning of the string. If the field value + // doesn't start with the specified prefix, an error message will be + // generated. + // + // ```proto + // + // message MyString { + // // value does not have prefix `pre` + // string value = 1 [(buf.validate.field).string.prefix = "pre"]; + // } + // + // ``` + Prefix *string `protobuf:"bytes,7,opt,name=prefix" json:"prefix,omitempty"` + // `suffix` specifies that the field value must have the + // specified substring at the end of the string. If the field value doesn't + // end with the specified suffix, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value does not have suffix `post` + // string value = 1 [(buf.validate.field).string.suffix = "post"]; + // } + // + // ``` + Suffix *string `protobuf:"bytes,8,opt,name=suffix" json:"suffix,omitempty"` + // `contains` specifies that the field value must have the + // specified substring anywhere in the string. If the field value doesn't + // contain the specified substring, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value does not contain substring `inside`. + // string value = 1 [(buf.validate.field).string.contains = "inside"]; + // } + // + // ``` + Contains *string `protobuf:"bytes,9,opt,name=contains" json:"contains,omitempty"` + // `not_contains` specifies that the field value must not have the + // specified substring anywhere in the string. If the field value contains + // the specified substring, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value contains substring `inside`. + // string value = 1 [(buf.validate.field).string.not_contains = "inside"]; + // } + // + // ``` + NotContains *string `protobuf:"bytes,23,opt,name=not_contains,json=notContains" json:"not_contains,omitempty"` + // `in` specifies that the field value must be equal to one of the specified + // values. If the field value isn't one of the specified values, an error + // message will be generated. + // + // ```proto + // + // message MyString { + // // value must be in list ["apple", "banana"] + // string value = 1 [(buf.validate.field).string.in = "apple", (buf.validate.field).string.in = "banana"]; + // } + // + // ``` + In []string `protobuf:"bytes,10,rep,name=in" json:"in,omitempty"` + // `not_in` specifies that the field value cannot be equal to any + // of the specified values. If the field value is one of the specified values, + // an error message will be generated. + // ```proto + // + // message MyString { + // // value must not be in list ["orange", "grape"] + // string value = 1 [(buf.validate.field).string.not_in = "orange", (buf.validate.field).string.not_in = "grape"]; + // } + // + // ``` + NotIn []string `protobuf:"bytes,11,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `WellKnown` rules provide advanced rules against common string + // patterns. + // + // Types that are valid to be assigned to WellKnown: + // + // *StringRules_Email + // *StringRules_Hostname + // *StringRules_Ip + // *StringRules_Ipv4 + // *StringRules_Ipv6 + // *StringRules_Uri + // *StringRules_UriRef + // *StringRules_Address + // *StringRules_Uuid + // *StringRules_Tuuid + // *StringRules_IpWithPrefixlen + // *StringRules_Ipv4WithPrefixlen + // *StringRules_Ipv6WithPrefixlen + // *StringRules_IpPrefix + // *StringRules_Ipv4Prefix + // *StringRules_Ipv6Prefix + // *StringRules_HostAndPort + // *StringRules_Ulid + // *StringRules_WellKnownRegex + WellKnown isStringRules_WellKnown `protobuf_oneof:"well_known"` + // This applies to regexes `HTTP_HEADER_NAME` and `HTTP_HEADER_VALUE` to + // enable strict header validation. By default, this is true, and HTTP header + // validations are [RFC-compliant](https://datatracker.ietf.org/doc/html/rfc7230#section-3). Setting to false will enable looser + // validations that only disallow `\r\n\0` characters, which can be used to + // bypass header matching rules. + // + // ```proto + // + // message MyString { + // // The field `value` must have be a valid HTTP headers, but not enforced with strict rules. + // string value = 1 [(buf.validate.field).string.strict = false]; + // } + // + // ``` + Strict *bool `protobuf:"varint,25,opt,name=strict" json:"strict,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyString { + // string value = 1 [ + // (buf.validate.field).string.example = "hello", + // (buf.validate.field).string.example = "world" + // ]; + // } + // + // ``` + Example []string `protobuf:"bytes,34,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StringRules) Reset() { + *x = StringRules{} + mi := &file_buf_validate_validate_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StringRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StringRules) ProtoMessage() {} + +func (x *StringRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StringRules.ProtoReflect.Descriptor instead. +func (*StringRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{19} +} + +func (x *StringRules) GetConst() string { + if x != nil && x.Const != nil { + return *x.Const + } + return "" +} + +func (x *StringRules) GetLen() uint64 { + if x != nil && x.Len != nil { + return *x.Len + } + return 0 +} + +func (x *StringRules) GetMinLen() uint64 { + if x != nil && x.MinLen != nil { + return *x.MinLen + } + return 0 +} + +func (x *StringRules) GetMaxLen() uint64 { + if x != nil && x.MaxLen != nil { + return *x.MaxLen + } + return 0 +} + +func (x *StringRules) GetLenBytes() uint64 { + if x != nil && x.LenBytes != nil { + return *x.LenBytes + } + return 0 +} + +func (x *StringRules) GetMinBytes() uint64 { + if x != nil && x.MinBytes != nil { + return *x.MinBytes + } + return 0 +} + +func (x *StringRules) GetMaxBytes() uint64 { + if x != nil && x.MaxBytes != nil { + return *x.MaxBytes + } + return 0 +} + +func (x *StringRules) GetPattern() string { + if x != nil && x.Pattern != nil { + return *x.Pattern + } + return "" +} + +func (x *StringRules) GetPrefix() string { + if x != nil && x.Prefix != nil { + return *x.Prefix + } + return "" +} + +func (x *StringRules) GetSuffix() string { + if x != nil && x.Suffix != nil { + return *x.Suffix + } + return "" +} + +func (x *StringRules) GetContains() string { + if x != nil && x.Contains != nil { + return *x.Contains + } + return "" +} + +func (x *StringRules) GetNotContains() string { + if x != nil && x.NotContains != nil { + return *x.NotContains + } + return "" +} + +func (x *StringRules) GetIn() []string { + if x != nil { + return x.In + } + return nil +} + +func (x *StringRules) GetNotIn() []string { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *StringRules) GetWellKnown() isStringRules_WellKnown { + if x != nil { + return x.WellKnown + } + return nil +} + +func (x *StringRules) GetEmail() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Email); ok { + return x.Email + } + } + return false +} + +func (x *StringRules) GetHostname() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Hostname); ok { + return x.Hostname + } + } + return false +} + +func (x *StringRules) GetIp() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ip); ok { + return x.Ip + } + } + return false +} + +func (x *StringRules) GetIpv4() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv4); ok { + return x.Ipv4 + } + } + return false +} + +func (x *StringRules) GetIpv6() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv6); ok { + return x.Ipv6 + } + } + return false +} + +func (x *StringRules) GetUri() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Uri); ok { + return x.Uri + } + } + return false +} + +func (x *StringRules) GetUriRef() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_UriRef); ok { + return x.UriRef + } + } + return false +} + +func (x *StringRules) GetAddress() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Address); ok { + return x.Address + } + } + return false +} + +func (x *StringRules) GetUuid() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Uuid); ok { + return x.Uuid + } + } + return false +} + +func (x *StringRules) GetTuuid() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Tuuid); ok { + return x.Tuuid + } + } + return false +} + +func (x *StringRules) GetIpWithPrefixlen() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_IpWithPrefixlen); ok { + return x.IpWithPrefixlen + } + } + return false +} + +func (x *StringRules) GetIpv4WithPrefixlen() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv4WithPrefixlen); ok { + return x.Ipv4WithPrefixlen + } + } + return false +} + +func (x *StringRules) GetIpv6WithPrefixlen() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv6WithPrefixlen); ok { + return x.Ipv6WithPrefixlen + } + } + return false +} + +func (x *StringRules) GetIpPrefix() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_IpPrefix); ok { + return x.IpPrefix + } + } + return false +} + +func (x *StringRules) GetIpv4Prefix() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv4Prefix); ok { + return x.Ipv4Prefix + } + } + return false +} + +func (x *StringRules) GetIpv6Prefix() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ipv6Prefix); ok { + return x.Ipv6Prefix + } + } + return false +} + +func (x *StringRules) GetHostAndPort() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_HostAndPort); ok { + return x.HostAndPort + } + } + return false +} + +func (x *StringRules) GetUlid() bool { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_Ulid); ok { + return x.Ulid + } + } + return false +} + +func (x *StringRules) GetWellKnownRegex() KnownRegex { + if x != nil { + if x, ok := x.WellKnown.(*StringRules_WellKnownRegex); ok { + return x.WellKnownRegex + } + } + return KnownRegex_KNOWN_REGEX_UNSPECIFIED +} + +func (x *StringRules) GetStrict() bool { + if x != nil && x.Strict != nil { + return *x.Strict + } + return false +} + +func (x *StringRules) GetExample() []string { + if x != nil { + return x.Example + } + return nil +} + +type isStringRules_WellKnown interface { + isStringRules_WellKnown() +} + +type StringRules_Email struct { + // `email` specifies that the field value must be a valid email address, for + // example "foo@example.com". + // + // Conforms to the definition for a valid email address from the [HTML standard](https://html.spec.whatwg.org/multipage/input.html#valid-e-mail-address). + // Note that this standard willfully deviates from [RFC 5322](https://datatracker.ietf.org/doc/html/rfc5322), + // which allows many unexpected forms of email addresses and will easily match + // a typographical error. + // + // If the field value isn't a valid email address, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid email address + // string value = 1 [(buf.validate.field).string.email = true]; + // } + // + // ``` + Email bool `protobuf:"varint,12,opt,name=email,oneof"` +} + +type StringRules_Hostname struct { + // `hostname` specifies that the field value must be a valid hostname, for + // example "foo.example.com". + // + // A valid hostname follows the rules below: + // - The name consists of one or more labels, separated by a dot ("."). + // - Each label can be 1 to 63 alphanumeric characters. + // - A label can contain hyphens ("-"), but must not start or end with a hyphen. + // - The right-most label must not be digits only. + // - The name can have a trailing dot—for example, "foo.example.com.". + // - The name can be 253 characters at most, excluding the optional trailing dot. + // + // If the field value isn't a valid hostname, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid hostname + // string value = 1 [(buf.validate.field).string.hostname = true]; + // } + // + // ``` + Hostname bool `protobuf:"varint,13,opt,name=hostname,oneof"` +} + +type StringRules_Ip struct { + // `ip` specifies that the field value must be a valid IP (v4 or v6) address. + // + // IPv4 addresses are expected in the dotted decimal format—for example, "192.168.5.21". + // IPv6 addresses are expected in their text representation—for example, "::1", + // or "2001:0DB8:ABCD:0012::0". + // + // Both formats are well-defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). + // Zone identifiers for IPv6 addresses (for example, "fe80::a%en1") are supported. + // + // If the field value isn't a valid IP address, an error message will be + // generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IP address + // string value = 1 [(buf.validate.field).string.ip = true]; + // } + // + // ``` + Ip bool `protobuf:"varint,14,opt,name=ip,oneof"` +} + +type StringRules_Ipv4 struct { + // `ipv4` specifies that the field value must be a valid IPv4 address—for + // example "192.168.5.21". If the field value isn't a valid IPv4 address, an + // error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv4 address + // string value = 1 [(buf.validate.field).string.ipv4 = true]; + // } + // + // ``` + Ipv4 bool `protobuf:"varint,15,opt,name=ipv4,oneof"` +} + +type StringRules_Ipv6 struct { + // `ipv6` specifies that the field value must be a valid IPv6 address—for + // example "::1", or "d7a:115c:a1e0:ab12:4843:cd96:626b:430b". If the field + // value is not a valid IPv6 address, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv6 address + // string value = 1 [(buf.validate.field).string.ipv6 = true]; + // } + // + // ``` + Ipv6 bool `protobuf:"varint,16,opt,name=ipv6,oneof"` +} + +type StringRules_Uri struct { + // `uri` specifies that the field value must be a valid URI, for example + // "https://example.com/foo/bar?baz=quux#frag". + // + // URI is defined in the internet standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). + // Zone Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). + // + // If the field value isn't a valid URI, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid URI + // string value = 1 [(buf.validate.field).string.uri = true]; + // } + // + // ``` + Uri bool `protobuf:"varint,17,opt,name=uri,oneof"` +} + +type StringRules_UriRef struct { + // `uri_ref` specifies that the field value must be a valid URI Reference—either + // a URI such as "https://example.com/foo/bar?baz=quux#frag", or a Relative + // Reference such as "./foo/bar?query". + // + // URI, URI Reference, and Relative Reference are defined in the internet + // standard [RFC 3986](https://datatracker.ietf.org/doc/html/rfc3986). Zone + // Identifiers in IPv6 address literals are supported ([RFC 6874](https://datatracker.ietf.org/doc/html/rfc6874)). + // + // If the field value isn't a valid URI Reference, an error message will be + // generated. + // + // ```proto + // + // message MyString { + // // value must be a valid URI Reference + // string value = 1 [(buf.validate.field).string.uri_ref = true]; + // } + // + // ``` + UriRef bool `protobuf:"varint,18,opt,name=uri_ref,json=uriRef,oneof"` +} + +type StringRules_Address struct { + // `address` specifies that the field value must be either a valid hostname + // (for example, "example.com"), or a valid IP (v4 or v6) address (for example, + // "192.168.0.1", or "::1"). If the field value isn't a valid hostname or IP, + // an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid hostname, or ip address + // string value = 1 [(buf.validate.field).string.address = true]; + // } + // + // ``` + Address bool `protobuf:"varint,21,opt,name=address,oneof"` +} + +type StringRules_Uuid struct { + // `uuid` specifies that the field value must be a valid UUID as defined by + // [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). If the + // field value isn't a valid UUID, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid UUID + // string value = 1 [(buf.validate.field).string.uuid = true]; + // } + // + // ``` + Uuid bool `protobuf:"varint,22,opt,name=uuid,oneof"` +} + +type StringRules_Tuuid struct { + // `tuuid` (trimmed UUID) specifies that the field value must be a valid UUID as + // defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2) with all dashes + // omitted. If the field value isn't a valid UUID without dashes, an error message + // will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid trimmed UUID + // string value = 1 [(buf.validate.field).string.tuuid = true]; + // } + // + // ``` + Tuuid bool `protobuf:"varint,33,opt,name=tuuid,oneof"` +} + +type StringRules_IpWithPrefixlen struct { + // `ip_with_prefixlen` specifies that the field value must be a valid IP + // (v4 or v6) address with prefix length—for example, "192.168.5.21/16" or + // "2001:0DB8:ABCD:0012::F1/64". If the field value isn't a valid IP with + // prefix length, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IP with prefix length + // string value = 1 [(buf.validate.field).string.ip_with_prefixlen = true]; + // } + // + // ``` + IpWithPrefixlen bool `protobuf:"varint,26,opt,name=ip_with_prefixlen,json=ipWithPrefixlen,oneof"` +} + +type StringRules_Ipv4WithPrefixlen struct { + // `ipv4_with_prefixlen` specifies that the field value must be a valid + // IPv4 address with prefix length—for example, "192.168.5.21/16". If the + // field value isn't a valid IPv4 address with prefix length, an error + // message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv4 address with prefix length + // string value = 1 [(buf.validate.field).string.ipv4_with_prefixlen = true]; + // } + // + // ``` + Ipv4WithPrefixlen bool `protobuf:"varint,27,opt,name=ipv4_with_prefixlen,json=ipv4WithPrefixlen,oneof"` +} + +type StringRules_Ipv6WithPrefixlen struct { + // `ipv6_with_prefixlen` specifies that the field value must be a valid + // IPv6 address with prefix length—for example, "2001:0DB8:ABCD:0012::F1/64". + // If the field value is not a valid IPv6 address with prefix length, + // an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv6 address prefix length + // string value = 1 [(buf.validate.field).string.ipv6_with_prefixlen = true]; + // } + // + // ``` + Ipv6WithPrefixlen bool `protobuf:"varint,28,opt,name=ipv6_with_prefixlen,json=ipv6WithPrefixlen,oneof"` +} + +type StringRules_IpPrefix struct { + // `ip_prefix` specifies that the field value must be a valid IP (v4 or v6) + // prefix—for example, "192.168.0.0/16" or "2001:0DB8:ABCD:0012::0/64". + // + // The prefix must have all zeros for the unmasked bits. For example, + // "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the + // prefix, and the remaining 64 bits must be zero. + // + // If the field value isn't a valid IP prefix, an error message will be + // generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IP prefix + // string value = 1 [(buf.validate.field).string.ip_prefix = true]; + // } + // + // ``` + IpPrefix bool `protobuf:"varint,29,opt,name=ip_prefix,json=ipPrefix,oneof"` +} + +type StringRules_Ipv4Prefix struct { + // `ipv4_prefix` specifies that the field value must be a valid IPv4 + // prefix, for example "192.168.0.0/16". + // + // The prefix must have all zeros for the unmasked bits. For example, + // "192.168.0.0/16" designates the left-most 16 bits for the prefix, + // and the remaining 16 bits must be zero. + // + // If the field value isn't a valid IPv4 prefix, an error message + // will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv4 prefix + // string value = 1 [(buf.validate.field).string.ipv4_prefix = true]; + // } + // + // ``` + Ipv4Prefix bool `protobuf:"varint,30,opt,name=ipv4_prefix,json=ipv4Prefix,oneof"` +} + +type StringRules_Ipv6Prefix struct { + // `ipv6_prefix` specifies that the field value must be a valid IPv6 prefix—for + // example, "2001:0DB8:ABCD:0012::0/64". + // + // The prefix must have all zeros for the unmasked bits. For example, + // "2001:0DB8:ABCD:0012::0/64" designates the left-most 64 bits for the + // prefix, and the remaining 64 bits must be zero. + // + // If the field value is not a valid IPv6 prefix, an error message will be + // generated. + // + // ```proto + // + // message MyString { + // // value must be a valid IPv6 prefix + // string value = 1 [(buf.validate.field).string.ipv6_prefix = true]; + // } + // + // ``` + Ipv6Prefix bool `protobuf:"varint,31,opt,name=ipv6_prefix,json=ipv6Prefix,oneof"` +} + +type StringRules_HostAndPort struct { + // `host_and_port` specifies that the field value must be valid host/port + // pair—for example, "example.com:8080". + // + // The host can be one of: + // - An IPv4 address in dotted decimal format—for example, "192.168.5.21". + // - An IPv6 address enclosed in square brackets—for example, "[2001:0DB8:ABCD:0012::F1]". + // - A hostname—for example, "example.com". + // + // The port is separated by a colon. It must be non-empty, with a decimal number + // in the range of 0-65535, inclusive. + HostAndPort bool `protobuf:"varint,32,opt,name=host_and_port,json=hostAndPort,oneof"` +} + +type StringRules_Ulid struct { + // `ulid` specifies that the field value must be a valid ULID (Universally Unique + // Lexicographically Sortable Identifier) as defined by the [ULID specification](https://github.com/ulid/spec). + // If the field value isn't a valid ULID, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid ULID + // string value = 1 [(buf.validate.field).string.ulid = true]; + // } + // + // ``` + Ulid bool `protobuf:"varint,35,opt,name=ulid,oneof"` +} + +type StringRules_WellKnownRegex struct { + // `well_known_regex` specifies a common well-known pattern + // defined as a regex. If the field value doesn't match the well-known + // regex, an error message will be generated. + // + // ```proto + // + // message MyString { + // // value must be a valid HTTP header value + // string value = 1 [(buf.validate.field).string.well_known_regex = KNOWN_REGEX_HTTP_HEADER_VALUE]; + // } + // + // ``` + // + // #### KnownRegex + // + // `well_known_regex` contains some well-known patterns. + // + // | Name | Number | Description | + // |-------------------------------|--------|-------------------------------------------| + // | KNOWN_REGEX_UNSPECIFIED | 0 | | + // | KNOWN_REGEX_HTTP_HEADER_NAME | 1 | HTTP header name as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2) | + // | KNOWN_REGEX_HTTP_HEADER_VALUE | 2 | HTTP header value as defined by [RFC 7230](https://datatracker.ietf.org/doc/html/rfc7230#section-3.2.4) | + WellKnownRegex KnownRegex `protobuf:"varint,24,opt,name=well_known_regex,json=wellKnownRegex,enum=buf.validate.KnownRegex,oneof"` +} + +func (*StringRules_Email) isStringRules_WellKnown() {} + +func (*StringRules_Hostname) isStringRules_WellKnown() {} + +func (*StringRules_Ip) isStringRules_WellKnown() {} + +func (*StringRules_Ipv4) isStringRules_WellKnown() {} + +func (*StringRules_Ipv6) isStringRules_WellKnown() {} + +func (*StringRules_Uri) isStringRules_WellKnown() {} + +func (*StringRules_UriRef) isStringRules_WellKnown() {} + +func (*StringRules_Address) isStringRules_WellKnown() {} + +func (*StringRules_Uuid) isStringRules_WellKnown() {} + +func (*StringRules_Tuuid) isStringRules_WellKnown() {} + +func (*StringRules_IpWithPrefixlen) isStringRules_WellKnown() {} + +func (*StringRules_Ipv4WithPrefixlen) isStringRules_WellKnown() {} + +func (*StringRules_Ipv6WithPrefixlen) isStringRules_WellKnown() {} + +func (*StringRules_IpPrefix) isStringRules_WellKnown() {} + +func (*StringRules_Ipv4Prefix) isStringRules_WellKnown() {} + +func (*StringRules_Ipv6Prefix) isStringRules_WellKnown() {} + +func (*StringRules_HostAndPort) isStringRules_WellKnown() {} + +func (*StringRules_Ulid) isStringRules_WellKnown() {} + +func (*StringRules_WellKnownRegex) isStringRules_WellKnown() {} + +// BytesRules describe the rules applied to `bytes` values. These rules +// may also be applied to the `google.protobuf.BytesValue` Well-Known-Type. +type BytesRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified bytes + // value. If the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must be "\x01\x02\x03\x04" + // bytes value = 1 [(buf.validate.field).bytes.const = "\x01\x02\x03\x04"]; + // } + // + // ``` + Const []byte `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"` + // `len` requires the field value to have the specified length in bytes. + // If the field value doesn't match, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value length must be 4 bytes. + // optional bytes value = 1 [(buf.validate.field).bytes.len = 4]; + // } + // + // ``` + Len *uint64 `protobuf:"varint,13,opt,name=len" json:"len,omitempty"` + // `min_len` requires the field value to have at least the specified minimum + // length in bytes. + // If the field value doesn't meet the requirement, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value length must be at least 2 bytes. + // optional bytes value = 1 [(buf.validate.field).bytes.min_len = 2]; + // } + // + // ``` + MinLen *uint64 `protobuf:"varint,2,opt,name=min_len,json=minLen" json:"min_len,omitempty"` + // `max_len` requires the field value to have at most the specified maximum + // length in bytes. + // If the field value exceeds the requirement, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must be at most 6 bytes. + // optional bytes value = 1 [(buf.validate.field).bytes.max_len = 6]; + // } + // + // ``` + MaxLen *uint64 `protobuf:"varint,3,opt,name=max_len,json=maxLen" json:"max_len,omitempty"` + // `pattern` requires the field value to match the specified regular + // expression ([RE2 syntax](https://github.com/google/re2/wiki/Syntax)). + // The value of the field must be valid UTF-8 or validation will fail with a + // runtime error. + // If the field value doesn't match the pattern, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must match regex pattern "^[a-zA-Z0-9]+$". + // optional bytes value = 1 [(buf.validate.field).bytes.pattern = "^[a-zA-Z0-9]+$"]; + // } + // + // ``` + Pattern *string `protobuf:"bytes,4,opt,name=pattern" json:"pattern,omitempty"` + // `prefix` requires the field value to have the specified bytes at the + // beginning of the string. + // If the field value doesn't meet the requirement, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value does not have prefix \x01\x02 + // optional bytes value = 1 [(buf.validate.field).bytes.prefix = "\x01\x02"]; + // } + // + // ``` + Prefix []byte `protobuf:"bytes,5,opt,name=prefix" json:"prefix,omitempty"` + // `suffix` requires the field value to have the specified bytes at the end + // of the string. + // If the field value doesn't meet the requirement, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value does not have suffix \x03\x04 + // optional bytes value = 1 [(buf.validate.field).bytes.suffix = "\x03\x04"]; + // } + // + // ``` + Suffix []byte `protobuf:"bytes,6,opt,name=suffix" json:"suffix,omitempty"` + // `contains` requires the field value to have the specified bytes anywhere in + // the string. + // If the field value doesn't meet the requirement, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value does not contain \x02\x03 + // optional bytes value = 1 [(buf.validate.field).bytes.contains = "\x02\x03"]; + // } + // + // ``` + Contains []byte `protobuf:"bytes,7,opt,name=contains" json:"contains,omitempty"` + // `in` requires the field value to be equal to one of the specified + // values. If the field value doesn't match any of the specified values, an + // error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must in ["\x01\x02", "\x02\x03", "\x03\x04"] + // optional bytes value = 1 [(buf.validate.field).bytes.in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; + // } + // + // ``` + In [][]byte `protobuf:"bytes,8,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to be not equal to any of the specified + // values. + // If the field value matches any of the specified values, an error message is + // generated. + // + // ```proto + // + // message MyBytes { + // // value must not in ["\x01\x02", "\x02\x03", "\x03\x04"] + // optional bytes value = 1 [(buf.validate.field).bytes.not_in = {"\x01\x02", "\x02\x03", "\x03\x04"}]; + // } + // + // ``` + NotIn [][]byte `protobuf:"bytes,9,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // WellKnown rules provide advanced rules against common byte + // patterns + // + // Types that are valid to be assigned to WellKnown: + // + // *BytesRules_Ip + // *BytesRules_Ipv4 + // *BytesRules_Ipv6 + // *BytesRules_Uuid + WellKnown isBytesRules_WellKnown `protobuf_oneof:"well_known"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyBytes { + // bytes value = 1 [ + // (buf.validate.field).bytes.example = "\x01\x02", + // (buf.validate.field).bytes.example = "\x02\x03" + // ]; + // } + // + // ``` + Example [][]byte `protobuf:"bytes,14,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *BytesRules) Reset() { + *x = BytesRules{} + mi := &file_buf_validate_validate_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *BytesRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*BytesRules) ProtoMessage() {} + +func (x *BytesRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use BytesRules.ProtoReflect.Descriptor instead. +func (*BytesRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{20} +} + +func (x *BytesRules) GetConst() []byte { + if x != nil { + return x.Const + } + return nil +} + +func (x *BytesRules) GetLen() uint64 { + if x != nil && x.Len != nil { + return *x.Len + } + return 0 +} + +func (x *BytesRules) GetMinLen() uint64 { + if x != nil && x.MinLen != nil { + return *x.MinLen + } + return 0 +} + +func (x *BytesRules) GetMaxLen() uint64 { + if x != nil && x.MaxLen != nil { + return *x.MaxLen + } + return 0 +} + +func (x *BytesRules) GetPattern() string { + if x != nil && x.Pattern != nil { + return *x.Pattern + } + return "" +} + +func (x *BytesRules) GetPrefix() []byte { + if x != nil { + return x.Prefix + } + return nil +} + +func (x *BytesRules) GetSuffix() []byte { + if x != nil { + return x.Suffix + } + return nil +} + +func (x *BytesRules) GetContains() []byte { + if x != nil { + return x.Contains + } + return nil +} + +func (x *BytesRules) GetIn() [][]byte { + if x != nil { + return x.In + } + return nil +} + +func (x *BytesRules) GetNotIn() [][]byte { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *BytesRules) GetWellKnown() isBytesRules_WellKnown { + if x != nil { + return x.WellKnown + } + return nil +} + +func (x *BytesRules) GetIp() bool { + if x != nil { + if x, ok := x.WellKnown.(*BytesRules_Ip); ok { + return x.Ip + } + } + return false +} + +func (x *BytesRules) GetIpv4() bool { + if x != nil { + if x, ok := x.WellKnown.(*BytesRules_Ipv4); ok { + return x.Ipv4 + } + } + return false +} + +func (x *BytesRules) GetIpv6() bool { + if x != nil { + if x, ok := x.WellKnown.(*BytesRules_Ipv6); ok { + return x.Ipv6 + } + } + return false +} + +func (x *BytesRules) GetUuid() bool { + if x != nil { + if x, ok := x.WellKnown.(*BytesRules_Uuid); ok { + return x.Uuid + } + } + return false +} + +func (x *BytesRules) GetExample() [][]byte { + if x != nil { + return x.Example + } + return nil +} + +type isBytesRules_WellKnown interface { + isBytesRules_WellKnown() +} + +type BytesRules_Ip struct { + // `ip` ensures that the field `value` is a valid IP address (v4 or v6) in byte format. + // If the field value doesn't meet this rule, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must be a valid IP address + // optional bytes value = 1 [(buf.validate.field).bytes.ip = true]; + // } + // + // ``` + Ip bool `protobuf:"varint,10,opt,name=ip,oneof"` +} + +type BytesRules_Ipv4 struct { + // `ipv4` ensures that the field `value` is a valid IPv4 address in byte format. + // If the field value doesn't meet this rule, an error message is generated. + // + // ```proto + // + // message MyBytes { + // // value must be a valid IPv4 address + // optional bytes value = 1 [(buf.validate.field).bytes.ipv4 = true]; + // } + // + // ``` + Ipv4 bool `protobuf:"varint,11,opt,name=ipv4,oneof"` +} + +type BytesRules_Ipv6 struct { + // `ipv6` ensures that the field `value` is a valid IPv6 address in byte format. + // If the field value doesn't meet this rule, an error message is generated. + // ```proto + // + // message MyBytes { + // // value must be a valid IPv6 address + // optional bytes value = 1 [(buf.validate.field).bytes.ipv6 = true]; + // } + // + // ``` + Ipv6 bool `protobuf:"varint,12,opt,name=ipv6,oneof"` +} + +type BytesRules_Uuid struct { + // `uuid` ensures that the field `value` encodes the 128-bit UUID data as + // defined by [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122#section-4.1.2). + // The field must contain exactly 16 bytes + // representing the UUID. If the field value isn't a valid UUID, an error + // message will be generated. + // + // ```proto + // + // message MyBytes { + // // value must be a valid UUID + // optional bytes value = 1 [(buf.validate.field).bytes.uuid = true]; + // } + // + // ``` + Uuid bool `protobuf:"varint,15,opt,name=uuid,oneof"` +} + +func (*BytesRules_Ip) isBytesRules_WellKnown() {} + +func (*BytesRules_Ipv4) isBytesRules_WellKnown() {} + +func (*BytesRules_Ipv6) isBytesRules_WellKnown() {} + +func (*BytesRules_Uuid) isBytesRules_WellKnown() {} + +// EnumRules describe the rules applied to `enum` values. +type EnumRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` requires the field value to exactly match the specified enum value. + // If the field value doesn't match, an error message is generated. + // + // ```proto + // + // enum MyEnum { + // MY_ENUM_UNSPECIFIED = 0; + // MY_ENUM_VALUE1 = 1; + // MY_ENUM_VALUE2 = 2; + // } + // + // message MyMessage { + // // The field `value` must be exactly MY_ENUM_VALUE1. + // MyEnum value = 1 [(buf.validate.field).enum.const = 1]; + // } + // + // ``` + Const *int32 `protobuf:"varint,1,opt,name=const" json:"const,omitempty"` + // `defined_only` requires the field value to be one of the defined values for + // this enum, failing on any undefined value. + // + // ```proto + // + // enum MyEnum { + // MY_ENUM_UNSPECIFIED = 0; + // MY_ENUM_VALUE1 = 1; + // MY_ENUM_VALUE2 = 2; + // } + // + // message MyMessage { + // // The field `value` must be a defined value of MyEnum. + // MyEnum value = 1 [(buf.validate.field).enum.defined_only = true]; + // } + // + // ``` + DefinedOnly *bool `protobuf:"varint,2,opt,name=defined_only,json=definedOnly" json:"defined_only,omitempty"` + // `in` requires the field value to be equal to one of the + // specified enum values. If the field value doesn't match any of the + // specified values, an error message is generated. + // + // ```proto + // + // enum MyEnum { + // MY_ENUM_UNSPECIFIED = 0; + // MY_ENUM_VALUE1 = 1; + // MY_ENUM_VALUE2 = 2; + // } + // + // message MyMessage { + // // The field `value` must be equal to one of the specified values. + // MyEnum value = 1 [(buf.validate.field).enum = { in: [1, 2]}]; + // } + // + // ``` + In []int32 `protobuf:"varint,3,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to be not equal to any of the + // specified enum values. If the field value matches one of the specified + // values, an error message is generated. + // + // ```proto + // + // enum MyEnum { + // MY_ENUM_UNSPECIFIED = 0; + // MY_ENUM_VALUE1 = 1; + // MY_ENUM_VALUE2 = 2; + // } + // + // message MyMessage { + // // The field `value` must not be equal to any of the specified values. + // MyEnum value = 1 [(buf.validate.field).enum = { not_in: [1, 2]}]; + // } + // + // ``` + NotIn []int32 `protobuf:"varint,4,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // enum MyEnum { + // MY_ENUM_UNSPECIFIED = 0; + // MY_ENUM_VALUE1 = 1; + // MY_ENUM_VALUE2 = 2; + // } + // + // message MyMessage { + // (buf.validate.field).enum.example = 1, + // (buf.validate.field).enum.example = 2 + // } + // + // ``` + Example []int32 `protobuf:"varint,5,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *EnumRules) Reset() { + *x = EnumRules{} + mi := &file_buf_validate_validate_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *EnumRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*EnumRules) ProtoMessage() {} + +func (x *EnumRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use EnumRules.ProtoReflect.Descriptor instead. +func (*EnumRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{21} +} + +func (x *EnumRules) GetConst() int32 { + if x != nil && x.Const != nil { + return *x.Const + } + return 0 +} + +func (x *EnumRules) GetDefinedOnly() bool { + if x != nil && x.DefinedOnly != nil { + return *x.DefinedOnly + } + return false +} + +func (x *EnumRules) GetIn() []int32 { + if x != nil { + return x.In + } + return nil +} + +func (x *EnumRules) GetNotIn() []int32 { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *EnumRules) GetExample() []int32 { + if x != nil { + return x.Example + } + return nil +} + +// RepeatedRules describe the rules applied to `repeated` values. +type RepeatedRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `min_items` requires that this field must contain at least the specified + // minimum number of items. + // + // Note that `min_items = 1` is equivalent to setting a field as `required`. + // + // ```proto + // + // message MyRepeated { + // // value must contain at least 2 items + // repeated string value = 1 [(buf.validate.field).repeated.min_items = 2]; + // } + // + // ``` + MinItems *uint64 `protobuf:"varint,1,opt,name=min_items,json=minItems" json:"min_items,omitempty"` + // `max_items` denotes that this field must not exceed a + // certain number of items as the upper limit. If the field contains more + // items than specified, an error message will be generated, requiring the + // field to maintain no more than the specified number of items. + // + // ```proto + // + // message MyRepeated { + // // value must contain no more than 3 item(s) + // repeated string value = 1 [(buf.validate.field).repeated.max_items = 3]; + // } + // + // ``` + MaxItems *uint64 `protobuf:"varint,2,opt,name=max_items,json=maxItems" json:"max_items,omitempty"` + // `unique` indicates that all elements in this field must + // be unique. This rule is strictly applicable to scalar and enum + // types, with message types not being supported. + // + // ```proto + // + // message MyRepeated { + // // repeated value must contain unique items + // repeated string value = 1 [(buf.validate.field).repeated.unique = true]; + // } + // + // ``` + Unique *bool `protobuf:"varint,3,opt,name=unique" json:"unique,omitempty"` + // `items` details the rules to be applied to each item + // in the field. Even for repeated message fields, validation is executed + // against each item unless `ignore` is specified. + // + // ```proto + // + // message MyRepeated { + // // The items in the field `value` must follow the specified rules. + // repeated string value = 1 [(buf.validate.field).repeated.items = { + // string: { + // min_len: 3 + // max_len: 10 + // } + // }]; + // } + // + // ``` + // + // Note that the `required` rule does not apply. Repeated items + // cannot be unset. + Items *FieldRules `protobuf:"bytes,4,opt,name=items" json:"items,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *RepeatedRules) Reset() { + *x = RepeatedRules{} + mi := &file_buf_validate_validate_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RepeatedRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RepeatedRules) ProtoMessage() {} + +func (x *RepeatedRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RepeatedRules.ProtoReflect.Descriptor instead. +func (*RepeatedRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{22} +} + +func (x *RepeatedRules) GetMinItems() uint64 { + if x != nil && x.MinItems != nil { + return *x.MinItems + } + return 0 +} + +func (x *RepeatedRules) GetMaxItems() uint64 { + if x != nil && x.MaxItems != nil { + return *x.MaxItems + } + return 0 +} + +func (x *RepeatedRules) GetUnique() bool { + if x != nil && x.Unique != nil { + return *x.Unique + } + return false +} + +func (x *RepeatedRules) GetItems() *FieldRules { + if x != nil { + return x.Items + } + return nil +} + +// MapRules describe the rules applied to `map` values. +type MapRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Specifies the minimum number of key-value pairs allowed. If the field has + // fewer key-value pairs than specified, an error message is generated. + // + // ```proto + // + // message MyMap { + // // The field `value` must have at least 2 key-value pairs. + // map value = 1 [(buf.validate.field).map.min_pairs = 2]; + // } + // + // ``` + MinPairs *uint64 `protobuf:"varint,1,opt,name=min_pairs,json=minPairs" json:"min_pairs,omitempty"` + // Specifies the maximum number of key-value pairs allowed. If the field has + // more key-value pairs than specified, an error message is generated. + // + // ```proto + // + // message MyMap { + // // The field `value` must have at most 3 key-value pairs. + // map value = 1 [(buf.validate.field).map.max_pairs = 3]; + // } + // + // ``` + MaxPairs *uint64 `protobuf:"varint,2,opt,name=max_pairs,json=maxPairs" json:"max_pairs,omitempty"` + // Specifies the rules to be applied to each key in the field. + // + // ```proto + // + // message MyMap { + // // The keys in the field `value` must follow the specified rules. + // map value = 1 [(buf.validate.field).map.keys = { + // string: { + // min_len: 3 + // max_len: 10 + // } + // }]; + // } + // + // ``` + // + // Note that the `required` rule does not apply. Map keys cannot be unset. + Keys *FieldRules `protobuf:"bytes,4,opt,name=keys" json:"keys,omitempty"` + // Specifies the rules to be applied to the value of each key in the + // field. Message values will still have their validations evaluated unless + // `ignore` is specified. + // + // ```proto + // + // message MyMap { + // // The values in the field `value` must follow the specified rules. + // map value = 1 [(buf.validate.field).map.values = { + // string: { + // min_len: 5 + // max_len: 20 + // } + // }]; + // } + // + // ``` + // Note that the `required` rule does not apply. Map values cannot be unset. + Values *FieldRules `protobuf:"bytes,5,opt,name=values" json:"values,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *MapRules) Reset() { + *x = MapRules{} + mi := &file_buf_validate_validate_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *MapRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*MapRules) ProtoMessage() {} + +func (x *MapRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use MapRules.ProtoReflect.Descriptor instead. +func (*MapRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{23} +} + +func (x *MapRules) GetMinPairs() uint64 { + if x != nil && x.MinPairs != nil { + return *x.MinPairs + } + return 0 +} + +func (x *MapRules) GetMaxPairs() uint64 { + if x != nil && x.MaxPairs != nil { + return *x.MaxPairs + } + return 0 +} + +func (x *MapRules) GetKeys() *FieldRules { + if x != nil { + return x.Keys + } + return nil +} + +func (x *MapRules) GetValues() *FieldRules { + if x != nil { + return x.Values + } + return nil +} + +// AnyRules describe rules applied exclusively to the `google.protobuf.Any` well-known type. +type AnyRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `in` requires the field's `type_url` to be equal to one of the + // specified values. If it doesn't match any of the specified values, an error + // message is generated. + // + // ```proto + // + // message MyAny { + // // The `value` field must have a `type_url` equal to one of the specified values. + // google.protobuf.Any value = 1 [(buf.validate.field).any = { + // in: ["type.googleapis.com/MyType1", "type.googleapis.com/MyType2"] + // }]; + // } + // + // ``` + In []string `protobuf:"bytes,2,rep,name=in" json:"in,omitempty"` + // requires the field's type_url to be not equal to any of the specified values. If it matches any of the specified values, an error message is generated. + // + // ```proto + // + // message MyAny { + // // The `value` field must not have a `type_url` equal to any of the specified values. + // google.protobuf.Any value = 1 [(buf.validate.field).any = { + // not_in: ["type.googleapis.com/ForbiddenType1", "type.googleapis.com/ForbiddenType2"] + // }]; + // } + // + // ``` + NotIn []string `protobuf:"bytes,3,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AnyRules) Reset() { + *x = AnyRules{} + mi := &file_buf_validate_validate_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AnyRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AnyRules) ProtoMessage() {} + +func (x *AnyRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AnyRules.ProtoReflect.Descriptor instead. +func (*AnyRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{24} +} + +func (x *AnyRules) GetIn() []string { + if x != nil { + return x.In + } + return nil +} + +func (x *AnyRules) GetNotIn() []string { + if x != nil { + return x.NotIn + } + return nil +} + +// DurationRules describe the rules applied exclusively to the `google.protobuf.Duration` well-known type. +type DurationRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` dictates that the field must match the specified value of the `google.protobuf.Duration` type exactly. + // If the field's value deviates from the specified value, an error message + // will be generated. + // + // ```proto + // + // message MyDuration { + // // value must equal 5s + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.const = "5s"]; + // } + // + // ``` + Const *durationpb.Duration `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *DurationRules_Lt + // *DurationRules_Lte + LessThan isDurationRules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *DurationRules_Gt + // *DurationRules_Gte + GreaterThan isDurationRules_GreaterThan `protobuf_oneof:"greater_than"` + // `in` asserts that the field must be equal to one of the specified values of the `google.protobuf.Duration` type. + // If the field's value doesn't correspond to any of the specified values, + // an error message will be generated. + // + // ```proto + // + // message MyDuration { + // // value must be in list [1s, 2s, 3s] + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.in = ["1s", "2s", "3s"]]; + // } + // + // ``` + In []*durationpb.Duration `protobuf:"bytes,7,rep,name=in" json:"in,omitempty"` + // `not_in` denotes that the field must not be equal to + // any of the specified values of the `google.protobuf.Duration` type. + // If the field's value matches any of these values, an error message will be + // generated. + // + // ```proto + // + // message MyDuration { + // // value must not be in list [1s, 2s, 3s] + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.not_in = ["1s", "2s", "3s"]]; + // } + // + // ``` + NotIn []*durationpb.Duration `protobuf:"bytes,8,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyDuration { + // google.protobuf.Duration value = 1 [ + // (buf.validate.field).duration.example = { seconds: 1 }, + // (buf.validate.field).duration.example = { seconds: 2 }, + // ]; + // } + // + // ``` + Example []*durationpb.Duration `protobuf:"bytes,9,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DurationRules) Reset() { + *x = DurationRules{} + mi := &file_buf_validate_validate_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DurationRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DurationRules) ProtoMessage() {} + +func (x *DurationRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DurationRules.ProtoReflect.Descriptor instead. +func (*DurationRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{25} +} + +func (x *DurationRules) GetConst() *durationpb.Duration { + if x != nil { + return x.Const + } + return nil +} + +func (x *DurationRules) GetLessThan() isDurationRules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *DurationRules) GetLt() *durationpb.Duration { + if x != nil { + if x, ok := x.LessThan.(*DurationRules_Lt); ok { + return x.Lt + } + } + return nil +} + +func (x *DurationRules) GetLte() *durationpb.Duration { + if x != nil { + if x, ok := x.LessThan.(*DurationRules_Lte); ok { + return x.Lte + } + } + return nil +} + +func (x *DurationRules) GetGreaterThan() isDurationRules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *DurationRules) GetGt() *durationpb.Duration { + if x != nil { + if x, ok := x.GreaterThan.(*DurationRules_Gt); ok { + return x.Gt + } + } + return nil +} + +func (x *DurationRules) GetGte() *durationpb.Duration { + if x != nil { + if x, ok := x.GreaterThan.(*DurationRules_Gte); ok { + return x.Gte + } + } + return nil +} + +func (x *DurationRules) GetIn() []*durationpb.Duration { + if x != nil { + return x.In + } + return nil +} + +func (x *DurationRules) GetNotIn() []*durationpb.Duration { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *DurationRules) GetExample() []*durationpb.Duration { + if x != nil { + return x.Example + } + return nil +} + +type isDurationRules_LessThan interface { + isDurationRules_LessThan() +} + +type DurationRules_Lt struct { + // `lt` stipulates that the field must be less than the specified value of the `google.protobuf.Duration` type, + // exclusive. If the field's value is greater than or equal to the specified + // value, an error message will be generated. + // + // ```proto + // + // message MyDuration { + // // value must be less than 5s + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = "5s"]; + // } + // + // ``` + Lt *durationpb.Duration `protobuf:"bytes,3,opt,name=lt,oneof"` +} + +type DurationRules_Lte struct { + // `lte` indicates that the field must be less than or equal to the specified + // value of the `google.protobuf.Duration` type, inclusive. If the field's value is greater than the specified value, + // an error message will be generated. + // + // ```proto + // + // message MyDuration { + // // value must be less than or equal to 10s + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.lte = "10s"]; + // } + // + // ``` + Lte *durationpb.Duration `protobuf:"bytes,4,opt,name=lte,oneof"` +} + +func (*DurationRules_Lt) isDurationRules_LessThan() {} + +func (*DurationRules_Lte) isDurationRules_LessThan() {} + +type isDurationRules_GreaterThan interface { + isDurationRules_GreaterThan() +} + +type DurationRules_Gt struct { + // `gt` requires the duration field value to be greater than the specified + // value (exclusive). If the value of `gt` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyDuration { + // // duration must be greater than 5s [duration.gt] + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.gt = { seconds: 5 }]; + // + // // duration must be greater than 5s and less than 10s [duration.gt_lt] + // google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gt: { seconds: 5 }, lt: { seconds: 10 } }]; + // + // // duration must be greater than 10s or less than 5s [duration.gt_lt_exclusive] + // google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gt: { seconds: 10 }, lt: { seconds: 5 } }]; + // } + // + // ``` + Gt *durationpb.Duration `protobuf:"bytes,5,opt,name=gt,oneof"` +} + +type DurationRules_Gte struct { + // `gte` requires the duration field value to be greater than or equal to the + // specified value (exclusive). If the value of `gte` is larger than a + // specified `lt` or `lte`, the range is reversed, and the field value must + // be outside the specified range. If the field value doesn't meet the + // required conditions, an error message is generated. + // + // ```proto + // + // message MyDuration { + // // duration must be greater than or equal to 5s [duration.gte] + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.gte = { seconds: 5 }]; + // + // // duration must be greater than or equal to 5s and less than 10s [duration.gte_lt] + // google.protobuf.Duration another_value = 2 [(buf.validate.field).duration = { gte: { seconds: 5 }, lt: { seconds: 10 } }]; + // + // // duration must be greater than or equal to 10s or less than 5s [duration.gte_lt_exclusive] + // google.protobuf.Duration other_value = 3 [(buf.validate.field).duration = { gte: { seconds: 10 }, lt: { seconds: 5 } }]; + // } + // + // ``` + Gte *durationpb.Duration `protobuf:"bytes,6,opt,name=gte,oneof"` +} + +func (*DurationRules_Gt) isDurationRules_GreaterThan() {} + +func (*DurationRules_Gte) isDurationRules_GreaterThan() {} + +// FieldMaskRules describe rules applied exclusively to the `google.protobuf.FieldMask` well-known type. +type FieldMaskRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` dictates that the field must match the specified value of the `google.protobuf.FieldMask` type exactly. + // If the field's value deviates from the specified value, an error message + // will be generated. + // + // ```proto + // + // message MyFieldMask { + // // value must equal ["a"] + // google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask.const = { + // paths: ["a"] + // }]; + // } + // + // ``` + Const *fieldmaskpb.FieldMask `protobuf:"bytes,1,opt,name=const" json:"const,omitempty"` + // `in` requires the field value to only contain paths matching specified + // values or their subpaths. + // If any of the field value's paths doesn't match the rule, + // an error message is generated. + // See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask + // + // ```proto + // + // message MyFieldMask { + // // The `value` FieldMask must only contain paths listed in `in`. + // google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = { + // in: ["a", "b", "c.a"] + // }]; + // } + // + // ``` + In []string `protobuf:"bytes,2,rep,name=in" json:"in,omitempty"` + // `not_in` requires the field value to not contain paths matching specified + // values or their subpaths. + // If any of the field value's paths matches the rule, + // an error message is generated. + // See: https://protobuf.dev/reference/protobuf/google.protobuf/#field-mask + // + // ```proto + // + // message MyFieldMask { + // // The `value` FieldMask shall not contain paths listed in `not_in`. + // google.protobuf.FieldMask value = 1 [(buf.validate.field).field_mask = { + // not_in: ["forbidden", "immutable", "c.a"] + // }]; + // } + // + // ``` + NotIn []string `protobuf:"bytes,3,rep,name=not_in,json=notIn" json:"not_in,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyFieldMask { + // google.protobuf.FieldMask value = 1 [ + // (buf.validate.field).field_mask.example = { paths: ["a", "b"] }, + // (buf.validate.field).field_mask.example = { paths: ["c.a", "d"] }, + // ]; + // } + // + // ``` + Example []*fieldmaskpb.FieldMask `protobuf:"bytes,4,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldMaskRules) Reset() { + *x = FieldMaskRules{} + mi := &file_buf_validate_validate_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldMaskRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldMaskRules) ProtoMessage() {} + +func (x *FieldMaskRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldMaskRules.ProtoReflect.Descriptor instead. +func (*FieldMaskRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{26} +} + +func (x *FieldMaskRules) GetConst() *fieldmaskpb.FieldMask { + if x != nil { + return x.Const + } + return nil +} + +func (x *FieldMaskRules) GetIn() []string { + if x != nil { + return x.In + } + return nil +} + +func (x *FieldMaskRules) GetNotIn() []string { + if x != nil { + return x.NotIn + } + return nil +} + +func (x *FieldMaskRules) GetExample() []*fieldmaskpb.FieldMask { + if x != nil { + return x.Example + } + return nil +} + +// TimestampRules describe the rules applied exclusively to the `google.protobuf.Timestamp` well-known type. +type TimestampRules struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `const` dictates that this field, of the `google.protobuf.Timestamp` type, must exactly match the specified value. If the field value doesn't correspond to the specified timestamp, an error message will be generated. + // + // ```proto + // + // message MyTimestamp { + // // value must equal 2023-05-03T10:00:00Z + // google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.const = {seconds: 1727998800}]; + // } + // + // ``` + Const *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=const" json:"const,omitempty"` + // Types that are valid to be assigned to LessThan: + // + // *TimestampRules_Lt + // *TimestampRules_Lte + // *TimestampRules_LtNow + LessThan isTimestampRules_LessThan `protobuf_oneof:"less_than"` + // Types that are valid to be assigned to GreaterThan: + // + // *TimestampRules_Gt + // *TimestampRules_Gte + // *TimestampRules_GtNow + GreaterThan isTimestampRules_GreaterThan `protobuf_oneof:"greater_than"` + // `within` specifies that this field, of the `google.protobuf.Timestamp` type, must be within the specified duration of the current time. If the field value isn't within the duration, an error message is generated. + // + // ```proto + // + // message MyTimestamp { + // // value must be within 1 hour of now + // google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.within = {seconds: 3600}]; + // } + // + // ``` + Within *durationpb.Duration `protobuf:"bytes,9,opt,name=within" json:"within,omitempty"` + // `example` specifies values that the field may have. These values SHOULD + // conform to other rules. `example` values will not impact validation + // but may be used as helpful guidance on how to populate the given field. + // + // ```proto + // + // message MyTimestamp { + // google.protobuf.Timestamp value = 1 [ + // (buf.validate.field).timestamp.example = { seconds: 1672444800 }, + // (buf.validate.field).timestamp.example = { seconds: 1672531200 }, + // ]; + // } + // + // ``` + Example []*timestamppb.Timestamp `protobuf:"bytes,10,rep,name=example" json:"example,omitempty"` + extensionFields protoimpl.ExtensionFields + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TimestampRules) Reset() { + *x = TimestampRules{} + mi := &file_buf_validate_validate_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TimestampRules) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TimestampRules) ProtoMessage() {} + +func (x *TimestampRules) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TimestampRules.ProtoReflect.Descriptor instead. +func (*TimestampRules) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{27} +} + +func (x *TimestampRules) GetConst() *timestamppb.Timestamp { + if x != nil { + return x.Const + } + return nil +} + +func (x *TimestampRules) GetLessThan() isTimestampRules_LessThan { + if x != nil { + return x.LessThan + } + return nil +} + +func (x *TimestampRules) GetLt() *timestamppb.Timestamp { + if x != nil { + if x, ok := x.LessThan.(*TimestampRules_Lt); ok { + return x.Lt + } + } + return nil +} + +func (x *TimestampRules) GetLte() *timestamppb.Timestamp { + if x != nil { + if x, ok := x.LessThan.(*TimestampRules_Lte); ok { + return x.Lte + } + } + return nil +} + +func (x *TimestampRules) GetLtNow() bool { + if x != nil { + if x, ok := x.LessThan.(*TimestampRules_LtNow); ok { + return x.LtNow + } + } + return false +} + +func (x *TimestampRules) GetGreaterThan() isTimestampRules_GreaterThan { + if x != nil { + return x.GreaterThan + } + return nil +} + +func (x *TimestampRules) GetGt() *timestamppb.Timestamp { + if x != nil { + if x, ok := x.GreaterThan.(*TimestampRules_Gt); ok { + return x.Gt + } + } + return nil +} + +func (x *TimestampRules) GetGte() *timestamppb.Timestamp { + if x != nil { + if x, ok := x.GreaterThan.(*TimestampRules_Gte); ok { + return x.Gte + } + } + return nil +} + +func (x *TimestampRules) GetGtNow() bool { + if x != nil { + if x, ok := x.GreaterThan.(*TimestampRules_GtNow); ok { + return x.GtNow + } + } + return false +} + +func (x *TimestampRules) GetWithin() *durationpb.Duration { + if x != nil { + return x.Within + } + return nil +} + +func (x *TimestampRules) GetExample() []*timestamppb.Timestamp { + if x != nil { + return x.Example + } + return nil +} + +type isTimestampRules_LessThan interface { + isTimestampRules_LessThan() +} + +type TimestampRules_Lt struct { + // requires the duration field value to be less than the specified value (field < value). If the field value doesn't meet the required conditions, an error message is generated. + // + // ```proto + // + // message MyDuration { + // // duration must be less than 'P3D' [duration.lt] + // google.protobuf.Duration value = 1 [(buf.validate.field).duration.lt = { seconds: 259200 }]; + // } + // + // ``` + Lt *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=lt,oneof"` +} + +type TimestampRules_Lte struct { + // requires the timestamp field value to be less than or equal to the specified value (field <= value). If the field value doesn't meet the required conditions, an error message is generated. + // + // ```proto + // + // message MyTimestamp { + // // timestamp must be less than or equal to '2023-05-14T00:00:00Z' [timestamp.lte] + // google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.lte = { seconds: 1678867200 }]; + // } + // + // ``` + Lte *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=lte,oneof"` +} + +type TimestampRules_LtNow struct { + // `lt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be less than the current time. `lt_now` can only be used with the `within` rule. + // + // ```proto + // + // message MyTimestamp { + // // value must be less than now + // google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.lt_now = true]; + // } + // + // ``` + LtNow bool `protobuf:"varint,7,opt,name=lt_now,json=ltNow,oneof"` +} + +func (*TimestampRules_Lt) isTimestampRules_LessThan() {} + +func (*TimestampRules_Lte) isTimestampRules_LessThan() {} + +func (*TimestampRules_LtNow) isTimestampRules_LessThan() {} + +type isTimestampRules_GreaterThan interface { + isTimestampRules_GreaterThan() +} + +type TimestampRules_Gt struct { + // `gt` requires the timestamp field value to be greater than the specified + // value (exclusive). If the value of `gt` is larger than a specified `lt` + // or `lte`, the range is reversed, and the field value must be outside the + // specified range. If the field value doesn't meet the required conditions, + // an error message is generated. + // + // ```proto + // + // message MyTimestamp { + // // timestamp must be greater than '2023-01-01T00:00:00Z' [timestamp.gt] + // google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gt = { seconds: 1672444800 }]; + // + // // timestamp must be greater than '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gt_lt] + // google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gt: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; + // + // // timestamp must be greater than '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gt_lt_exclusive] + // google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gt: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; + // } + // + // ``` + Gt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=gt,oneof"` +} + +type TimestampRules_Gte struct { + // `gte` requires the timestamp field value to be greater than or equal to the + // specified value (exclusive). If the value of `gte` is larger than a + // specified `lt` or `lte`, the range is reversed, and the field value + // must be outside the specified range. If the field value doesn't meet + // the required conditions, an error message is generated. + // + // ```proto + // + // message MyTimestamp { + // // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' [timestamp.gte] + // google.protobuf.Timestamp value = 1 [(buf.validate.field).timestamp.gte = { seconds: 1672444800 }]; + // + // // timestamp must be greater than or equal to '2023-01-01T00:00:00Z' and less than '2023-01-02T00:00:00Z' [timestamp.gte_lt] + // google.protobuf.Timestamp another_value = 2 [(buf.validate.field).timestamp = { gte: { seconds: 1672444800 }, lt: { seconds: 1672531200 } }]; + // + // // timestamp must be greater than or equal to '2023-01-02T00:00:00Z' or less than '2023-01-01T00:00:00Z' [timestamp.gte_lt_exclusive] + // google.protobuf.Timestamp other_value = 3 [(buf.validate.field).timestamp = { gte: { seconds: 1672531200 }, lt: { seconds: 1672444800 } }]; + // } + // + // ``` + Gte *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=gte,oneof"` +} + +type TimestampRules_GtNow struct { + // `gt_now` specifies that this field, of the `google.protobuf.Timestamp` type, must be greater than the current time. `gt_now` can only be used with the `within` rule. + // + // ```proto + // + // message MyTimestamp { + // // value must be greater than now + // google.protobuf.Timestamp created_at = 1 [(buf.validate.field).timestamp.gt_now = true]; + // } + // + // ``` + GtNow bool `protobuf:"varint,8,opt,name=gt_now,json=gtNow,oneof"` +} + +func (*TimestampRules_Gt) isTimestampRules_GreaterThan() {} + +func (*TimestampRules_Gte) isTimestampRules_GreaterThan() {} + +func (*TimestampRules_GtNow) isTimestampRules_GreaterThan() {} + +// `Violations` is a collection of `Violation` messages. This message type is returned by +// Protovalidate when a proto message fails to meet the requirements set by the `Rule` validation rules. +// Each individual violation is represented by a `Violation` message. +type Violations struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `violations` is a repeated field that contains all the `Violation` messages corresponding to the violations detected. + Violations []*Violation `protobuf:"bytes,1,rep,name=violations" json:"violations,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Violations) Reset() { + *x = Violations{} + mi := &file_buf_validate_validate_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Violations) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Violations) ProtoMessage() {} + +func (x *Violations) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Violations.ProtoReflect.Descriptor instead. +func (*Violations) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{28} +} + +func (x *Violations) GetViolations() []*Violation { + if x != nil { + return x.Violations + } + return nil +} + +// `Violation` represents a single instance where a validation rule, expressed +// as a `Rule`, was not met. It provides information about the field that +// caused the violation, the specific rule that wasn't fulfilled, and a +// human-readable error message. +// +// For example, consider the following message: +// +// ```proto +// +// message User { +// int32 age = 1 [(buf.validate.field).cel = { +// id: "user.age", +// expression: "this < 18 ? 'User must be at least 18 years old' : ''", +// }]; +// } +// +// ``` +// +// It could produce the following violation: +// +// ```json +// +// { +// "ruleId": "user.age", +// "message": "User must be at least 18 years old", +// "field": { +// "elements": [ +// { +// "fieldNumber": 1, +// "fieldName": "age", +// "fieldType": "TYPE_INT32" +// } +// ] +// }, +// "rule": { +// "elements": [ +// { +// "fieldNumber": 23, +// "fieldName": "cel", +// "fieldType": "TYPE_MESSAGE", +// "index": "0" +// } +// ] +// } +// } +// +// ``` +type Violation struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `field` is a machine-readable path to the field that failed validation. + // This could be a nested field, in which case the path will include all the parent fields leading to the actual field that caused the violation. + // + // For example, consider the following message: + // + // ```proto + // + // message Message { + // bool a = 1 [(buf.validate.field).required = true]; + // } + // + // ``` + // + // It could produce the following violation: + // + // ```textproto + // + // violation { + // field { element { field_number: 1, field_name: "a", field_type: 8 } } + // ... + // } + // + // ``` + Field *FieldPath `protobuf:"bytes,5,opt,name=field" json:"field,omitempty"` + // `rule` is a machine-readable path that points to the specific rule that failed validation. + // This will be a nested field starting from the FieldRules of the field that failed validation. + // For custom rules, this will provide the path of the rule, e.g. `cel[0]`. + // + // For example, consider the following message: + // + // ```proto + // + // message Message { + // bool a = 1 [(buf.validate.field).required = true]; + // bool b = 2 [(buf.validate.field).cel = { + // id: "custom_rule", + // expression: "!this ? 'b must be true': ''" + // }] + // } + // + // ``` + // + // It could produce the following violations: + // + // ```textproto + // + // violation { + // rule { element { field_number: 25, field_name: "required", field_type: 8 } } + // ... + // } + // + // violation { + // rule { element { field_number: 23, field_name: "cel", field_type: 11, index: 0 } } + // ... + // } + // + // ``` + Rule *FieldPath `protobuf:"bytes,6,opt,name=rule" json:"rule,omitempty"` + // `rule_id` is the unique identifier of the `Rule` that was not fulfilled. + // This is the same `id` that was specified in the `Rule` message, allowing easy tracing of which rule was violated. + RuleId *string `protobuf:"bytes,2,opt,name=rule_id,json=ruleId" json:"rule_id,omitempty"` + // `message` is a human-readable error message that describes the nature of the violation. + // This can be the default error message from the violated `Rule`, or it can be a custom message that gives more context about the violation. + Message *string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"` + // `for_key` indicates whether the violation was caused by a map key, rather than a value. + ForKey *bool `protobuf:"varint,4,opt,name=for_key,json=forKey" json:"for_key,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Violation) Reset() { + *x = Violation{} + mi := &file_buf_validate_validate_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Violation) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Violation) ProtoMessage() {} + +func (x *Violation) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Violation.ProtoReflect.Descriptor instead. +func (*Violation) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{29} +} + +func (x *Violation) GetField() *FieldPath { + if x != nil { + return x.Field + } + return nil +} + +func (x *Violation) GetRule() *FieldPath { + if x != nil { + return x.Rule + } + return nil +} + +func (x *Violation) GetRuleId() string { + if x != nil && x.RuleId != nil { + return *x.RuleId + } + return "" +} + +func (x *Violation) GetMessage() string { + if x != nil && x.Message != nil { + return *x.Message + } + return "" +} + +func (x *Violation) GetForKey() bool { + if x != nil && x.ForKey != nil { + return *x.ForKey + } + return false +} + +// `FieldPath` provides a path to a nested protobuf field. +// +// This message provides enough information to render a dotted field path even without protobuf descriptors. +// It also provides enough information to resolve a nested field through unknown wire data. +type FieldPath struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `elements` contains each element of the path, starting from the root and recursing downward. + Elements []*FieldPathElement `protobuf:"bytes,1,rep,name=elements" json:"elements,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldPath) Reset() { + *x = FieldPath{} + mi := &file_buf_validate_validate_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldPath) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldPath) ProtoMessage() {} + +func (x *FieldPath) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldPath.ProtoReflect.Descriptor instead. +func (*FieldPath) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{30} +} + +func (x *FieldPath) GetElements() []*FieldPathElement { + if x != nil { + return x.Elements + } + return nil +} + +// `FieldPathElement` provides enough information to nest through a single protobuf field. +// +// If the selected field is a map or repeated field, the `subscript` value selects a specific element from it. +// A path that refers to a value nested under a map key or repeated field index will have a `subscript` value. +// The `field_type` field allows unambiguous resolution of a field even if descriptors are not available. +type FieldPathElement struct { + state protoimpl.MessageState `protogen:"open.v1"` + // `field_number` is the field number this path element refers to. + FieldNumber *int32 `protobuf:"varint,1,opt,name=field_number,json=fieldNumber" json:"field_number,omitempty"` + // `field_name` contains the field name this path element refers to. + // This can be used to display a human-readable path even if the field number is unknown. + FieldName *string `protobuf:"bytes,2,opt,name=field_name,json=fieldName" json:"field_name,omitempty"` + // `field_type` specifies the type of this field. When using reflection, this value is not needed. + // + // This value is provided to make it possible to traverse unknown fields through wire data. + // When traversing wire data, be mindful of both packed[1] and delimited[2] encoding schemes. + // + // N.B.: Although groups are deprecated, the corresponding delimited encoding scheme is not, and + // can be explicitly used in Protocol Buffers 2023 Edition. + // + // [1]: https://protobuf.dev/programming-guides/encoding/#packed + // [2]: https://protobuf.dev/programming-guides/encoding/#groups + FieldType *descriptorpb.FieldDescriptorProto_Type `protobuf:"varint,3,opt,name=field_type,json=fieldType,enum=google.protobuf.FieldDescriptorProto_Type" json:"field_type,omitempty"` + // `key_type` specifies the map key type of this field. This value is useful when traversing + // unknown fields through wire data: specifically, it allows handling the differences between + // different integer encodings. + KeyType *descriptorpb.FieldDescriptorProto_Type `protobuf:"varint,4,opt,name=key_type,json=keyType,enum=google.protobuf.FieldDescriptorProto_Type" json:"key_type,omitempty"` + // `value_type` specifies map value type of this field. This is useful if you want to display a + // value inside unknown fields through wire data. + ValueType *descriptorpb.FieldDescriptorProto_Type `protobuf:"varint,5,opt,name=value_type,json=valueType,enum=google.protobuf.FieldDescriptorProto_Type" json:"value_type,omitempty"` + // `subscript` contains a repeated index or map key, if this path element nests into a repeated or map field. + // + // Types that are valid to be assigned to Subscript: + // + // *FieldPathElement_Index + // *FieldPathElement_BoolKey + // *FieldPathElement_IntKey + // *FieldPathElement_UintKey + // *FieldPathElement_StringKey + Subscript isFieldPathElement_Subscript `protobuf_oneof:"subscript"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *FieldPathElement) Reset() { + *x = FieldPathElement{} + mi := &file_buf_validate_validate_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *FieldPathElement) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*FieldPathElement) ProtoMessage() {} + +func (x *FieldPathElement) ProtoReflect() protoreflect.Message { + mi := &file_buf_validate_validate_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use FieldPathElement.ProtoReflect.Descriptor instead. +func (*FieldPathElement) Descriptor() ([]byte, []int) { + return file_buf_validate_validate_proto_rawDescGZIP(), []int{31} +} + +func (x *FieldPathElement) GetFieldNumber() int32 { + if x != nil && x.FieldNumber != nil { + return *x.FieldNumber + } + return 0 +} + +func (x *FieldPathElement) GetFieldName() string { + if x != nil && x.FieldName != nil { + return *x.FieldName + } + return "" +} + +func (x *FieldPathElement) GetFieldType() descriptorpb.FieldDescriptorProto_Type { + if x != nil && x.FieldType != nil { + return *x.FieldType + } + return descriptorpb.FieldDescriptorProto_Type(1) +} + +func (x *FieldPathElement) GetKeyType() descriptorpb.FieldDescriptorProto_Type { + if x != nil && x.KeyType != nil { + return *x.KeyType + } + return descriptorpb.FieldDescriptorProto_Type(1) +} + +func (x *FieldPathElement) GetValueType() descriptorpb.FieldDescriptorProto_Type { + if x != nil && x.ValueType != nil { + return *x.ValueType + } + return descriptorpb.FieldDescriptorProto_Type(1) +} + +func (x *FieldPathElement) GetSubscript() isFieldPathElement_Subscript { + if x != nil { + return x.Subscript + } + return nil +} + +func (x *FieldPathElement) GetIndex() uint64 { + if x != nil { + if x, ok := x.Subscript.(*FieldPathElement_Index); ok { + return x.Index + } + } + return 0 +} + +func (x *FieldPathElement) GetBoolKey() bool { + if x != nil { + if x, ok := x.Subscript.(*FieldPathElement_BoolKey); ok { + return x.BoolKey + } + } + return false +} + +func (x *FieldPathElement) GetIntKey() int64 { + if x != nil { + if x, ok := x.Subscript.(*FieldPathElement_IntKey); ok { + return x.IntKey + } + } + return 0 +} + +func (x *FieldPathElement) GetUintKey() uint64 { + if x != nil { + if x, ok := x.Subscript.(*FieldPathElement_UintKey); ok { + return x.UintKey + } + } + return 0 +} + +func (x *FieldPathElement) GetStringKey() string { + if x != nil { + if x, ok := x.Subscript.(*FieldPathElement_StringKey); ok { + return x.StringKey + } + } + return "" +} + +type isFieldPathElement_Subscript interface { + isFieldPathElement_Subscript() +} + +type FieldPathElement_Index struct { + // `index` specifies a 0-based index into a repeated field. + Index uint64 `protobuf:"varint,6,opt,name=index,oneof"` +} + +type FieldPathElement_BoolKey struct { + // `bool_key` specifies a map key of type bool. + BoolKey bool `protobuf:"varint,7,opt,name=bool_key,json=boolKey,oneof"` +} + +type FieldPathElement_IntKey struct { + // `int_key` specifies a map key of type int32, int64, sint32, sint64, sfixed32 or sfixed64. + IntKey int64 `protobuf:"varint,8,opt,name=int_key,json=intKey,oneof"` +} + +type FieldPathElement_UintKey struct { + // `uint_key` specifies a map key of type uint32, uint64, fixed32 or fixed64. + UintKey uint64 `protobuf:"varint,9,opt,name=uint_key,json=uintKey,oneof"` +} + +type FieldPathElement_StringKey struct { + // `string_key` specifies a map key of type string. + StringKey string `protobuf:"bytes,10,opt,name=string_key,json=stringKey,oneof"` +} + +func (*FieldPathElement_Index) isFieldPathElement_Subscript() {} + +func (*FieldPathElement_BoolKey) isFieldPathElement_Subscript() {} + +func (*FieldPathElement_IntKey) isFieldPathElement_Subscript() {} + +func (*FieldPathElement_UintKey) isFieldPathElement_Subscript() {} + +func (*FieldPathElement_StringKey) isFieldPathElement_Subscript() {} + +var file_buf_validate_validate_proto_extTypes = []protoimpl.ExtensionInfo{ + { + ExtendedType: (*descriptorpb.MessageOptions)(nil), + ExtensionType: (*MessageRules)(nil), + Field: 1159, + Name: "buf.validate.message", + Tag: "bytes,1159,opt,name=message", + Filename: "buf/validate/validate.proto", + }, + { + ExtendedType: (*descriptorpb.OneofOptions)(nil), + ExtensionType: (*OneofRules)(nil), + Field: 1159, + Name: "buf.validate.oneof", + Tag: "bytes,1159,opt,name=oneof", + Filename: "buf/validate/validate.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*FieldRules)(nil), + Field: 1159, + Name: "buf.validate.field", + Tag: "bytes,1159,opt,name=field", + Filename: "buf/validate/validate.proto", + }, + { + ExtendedType: (*descriptorpb.FieldOptions)(nil), + ExtensionType: (*PredefinedRules)(nil), + Field: 1160, + Name: "buf.validate.predefined", + Tag: "bytes,1160,opt,name=predefined", + Filename: "buf/validate/validate.proto", + }, +} + +// Extension fields to descriptorpb.MessageOptions. +var ( + // Rules specify the validations to be performed on this message. By default, + // no validation is performed against a message. + // + // optional buf.validate.MessageRules message = 1159; + E_Message = &file_buf_validate_validate_proto_extTypes[0] +) + +// Extension fields to descriptorpb.OneofOptions. +var ( + // Rules specify the validations to be performed on this oneof. By default, + // no validation is performed against a oneof. + // + // optional buf.validate.OneofRules oneof = 1159; + E_Oneof = &file_buf_validate_validate_proto_extTypes[1] +) + +// Extension fields to descriptorpb.FieldOptions. +var ( + // Rules specify the validations to be performed on this field. By default, + // no validation is performed against a field. + // + // optional buf.validate.FieldRules field = 1159; + E_Field = &file_buf_validate_validate_proto_extTypes[2] + // Specifies predefined rules. When extending a standard rule message, + // this adds additional CEL expressions that apply when the extension is used. + // + // ```proto + // + // extend buf.validate.Int32Rules { + // bool is_zero [(buf.validate.predefined).cel = { + // id: "int32.is_zero", + // message: "value must be zero", + // expression: "!rule || this == 0", + // }]; + // } + // + // message Foo { + // int32 reserved = 1 [(buf.validate.field).int32.(is_zero) = true]; + // } + // + // ``` + // + // optional buf.validate.PredefinedRules predefined = 1160; + E_Predefined = &file_buf_validate_validate_proto_extTypes[3] +) + +var File_buf_validate_validate_proto protoreflect.FileDescriptor + +const file_buf_validate_validate_proto_rawDesc = "" + + "\n" + + "\x1bbuf/validate/validate.proto\x12\fbuf.validate\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"P\n" + + "\x04Rule\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + + "\amessage\x18\x02 \x01(\tR\amessage\x12\x1e\n" + + "\n" + + "expression\x18\x03 \x01(\tR\n" + + "expression\"\xa1\x01\n" + + "\fMessageRules\x12%\n" + + "\x0ecel_expression\x18\x05 \x03(\tR\rcelExpression\x12$\n" + + "\x03cel\x18\x03 \x03(\v2\x12.buf.validate.RuleR\x03cel\x124\n" + + "\x05oneof\x18\x04 \x03(\v2\x1e.buf.validate.MessageOneofRuleR\x05oneofJ\x04\b\x01\x10\x02R\bdisabled\"F\n" + + "\x10MessageOneofRule\x12\x16\n" + + "\x06fields\x18\x01 \x03(\tR\x06fields\x12\x1a\n" + + "\brequired\x18\x02 \x01(\bR\brequired\"(\n" + + "\n" + + "OneofRules\x12\x1a\n" + + "\brequired\x18\x01 \x01(\bR\brequired\"\xe3\n" + + "\n" + + "\n" + + "FieldRules\x12%\n" + + "\x0ecel_expression\x18\x1d \x03(\tR\rcelExpression\x12$\n" + + "\x03cel\x18\x17 \x03(\v2\x12.buf.validate.RuleR\x03cel\x12\x1a\n" + + "\brequired\x18\x19 \x01(\bR\brequired\x12,\n" + + "\x06ignore\x18\x1b \x01(\x0e2\x14.buf.validate.IgnoreR\x06ignore\x120\n" + + "\x05float\x18\x01 \x01(\v2\x18.buf.validate.FloatRulesH\x00R\x05float\x123\n" + + "\x06double\x18\x02 \x01(\v2\x19.buf.validate.DoubleRulesH\x00R\x06double\x120\n" + + "\x05int32\x18\x03 \x01(\v2\x18.buf.validate.Int32RulesH\x00R\x05int32\x120\n" + + "\x05int64\x18\x04 \x01(\v2\x18.buf.validate.Int64RulesH\x00R\x05int64\x123\n" + + "\x06uint32\x18\x05 \x01(\v2\x19.buf.validate.UInt32RulesH\x00R\x06uint32\x123\n" + + "\x06uint64\x18\x06 \x01(\v2\x19.buf.validate.UInt64RulesH\x00R\x06uint64\x123\n" + + "\x06sint32\x18\a \x01(\v2\x19.buf.validate.SInt32RulesH\x00R\x06sint32\x123\n" + + "\x06sint64\x18\b \x01(\v2\x19.buf.validate.SInt64RulesH\x00R\x06sint64\x126\n" + + "\afixed32\x18\t \x01(\v2\x1a.buf.validate.Fixed32RulesH\x00R\afixed32\x126\n" + + "\afixed64\x18\n" + + " \x01(\v2\x1a.buf.validate.Fixed64RulesH\x00R\afixed64\x129\n" + + "\bsfixed32\x18\v \x01(\v2\x1b.buf.validate.SFixed32RulesH\x00R\bsfixed32\x129\n" + + "\bsfixed64\x18\f \x01(\v2\x1b.buf.validate.SFixed64RulesH\x00R\bsfixed64\x12-\n" + + "\x04bool\x18\r \x01(\v2\x17.buf.validate.BoolRulesH\x00R\x04bool\x123\n" + + "\x06string\x18\x0e \x01(\v2\x19.buf.validate.StringRulesH\x00R\x06string\x120\n" + + "\x05bytes\x18\x0f \x01(\v2\x18.buf.validate.BytesRulesH\x00R\x05bytes\x12-\n" + + "\x04enum\x18\x10 \x01(\v2\x17.buf.validate.EnumRulesH\x00R\x04enum\x129\n" + + "\brepeated\x18\x12 \x01(\v2\x1b.buf.validate.RepeatedRulesH\x00R\brepeated\x12*\n" + + "\x03map\x18\x13 \x01(\v2\x16.buf.validate.MapRulesH\x00R\x03map\x12*\n" + + "\x03any\x18\x14 \x01(\v2\x16.buf.validate.AnyRulesH\x00R\x03any\x129\n" + + "\bduration\x18\x15 \x01(\v2\x1b.buf.validate.DurationRulesH\x00R\bduration\x12=\n" + + "\n" + + "field_mask\x18\x1c \x01(\v2\x1c.buf.validate.FieldMaskRulesH\x00R\tfieldMask\x12<\n" + + "\ttimestamp\x18\x16 \x01(\v2\x1c.buf.validate.TimestampRulesH\x00R\ttimestampB\x06\n" + + "\x04typeJ\x04\b\x18\x10\x19J\x04\b\x1a\x10\x1bR\askippedR\fignore_empty\"Z\n" + + "\x0fPredefinedRules\x12$\n" + + "\x03cel\x18\x01 \x03(\v2\x12.buf.validate.RuleR\x03celJ\x04\b\x18\x10\x19J\x04\b\x1a\x10\x1bR\askippedR\fignore_empty\"\x90\x18\n" + + "\n" + + "FloatRules\x12\x8a\x01\n" + + "\x05const\x18\x01 \x01(\x02Bt\xc2Hq\n" + + "o\n" + + "\vfloat.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\xa3\x01\n" + + "\x02lt\x18\x02 \x01(\x02B\x90\x01\xc2H\x8c\x01\n" + + "\x89\x01\n" + + "\bfloat.lt\x1a}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xb4\x01\n" + + "\x03lte\x18\x03 \x01(\x02B\x9f\x01\xc2H\x9b\x01\n" + + "\x98\x01\n" + + "\tfloat.lte\x1a\x8a\x01!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xf3\a\n" + + "\x02gt\x18\x04 \x01(\x02B\xe0\a\xc2H\xdc\a\n" + + "\x8d\x01\n" + + "\bfloat.gt\x1a\x80\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xc3\x01\n" + + "\vfloat.gt_lt\x1a\xb3\x01has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xcd\x01\n" + + "\x15float.gt_lt_exclusive\x1a\xb3\x01has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xd3\x01\n" + + "\ffloat.gt_lte\x1a\xc2\x01has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xdd\x01\n" + + "\x16float.gt_lte_exclusive\x1a\xc2\x01has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xbf\b\n" + + "\x03gte\x18\x05 \x01(\x02B\xaa\b\xc2H\xa6\b\n" + + "\x9b\x01\n" + + "\tfloat.gte\x1a\x8d\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xd2\x01\n" + + "\ffloat.gte_lt\x1a\xc1\x01has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xdc\x01\n" + + "\x16float.gte_lt_exclusive\x1a\xc1\x01has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xe2\x01\n" + + "\rfloat.gte_lte\x1a\xd0\x01has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xec\x01\n" + + "\x17float.gte_lte_exclusive\x1a\xd0\x01has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x83\x01\n" + + "\x02in\x18\x06 \x03(\x02Bs\xc2Hp\n" + + "n\n" + + "\bfloat.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12}\n" + + "\x06not_in\x18\a \x03(\x02Bf\xc2Hc\n" + + "a\n" + + "\ffloat.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x12}\n" + + "\x06finite\x18\b \x01(\bBe\xc2Hb\n" + + "`\n" + + "\ffloat.finite\x1aPrules.finite ? (this.isNan() || this.isInf() ? 'value must be finite' : '') : ''R\x06finite\x124\n" + + "\aexample\x18\t \x03(\x02B\x1a\xc2H\x17\n" + + "\x15\n" + + "\rfloat.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xa2\x18\n" + + "\vDoubleRules\x12\x8b\x01\n" + + "\x05const\x18\x01 \x01(\x01Bu\xc2Hr\n" + + "p\n" + + "\fdouble.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\xa4\x01\n" + + "\x02lt\x18\x02 \x01(\x01B\x91\x01\xc2H\x8d\x01\n" + + "\x8a\x01\n" + + "\tdouble.lt\x1a}!has(rules.gte) && !has(rules.gt) && (this.isNan() || this >= rules.lt)? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xb5\x01\n" + + "\x03lte\x18\x03 \x01(\x01B\xa0\x01\xc2H\x9c\x01\n" + + "\x99\x01\n" + + "\n" + + "double.lte\x1a\x8a\x01!has(rules.gte) && !has(rules.gt) && (this.isNan() || this > rules.lte)? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xf8\a\n" + + "\x02gt\x18\x04 \x01(\x01B\xe5\a\xc2H\xe1\a\n" + + "\x8e\x01\n" + + "\tdouble.gt\x1a\x80\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this <= rules.gt)? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xc4\x01\n" + + "\fdouble.gt_lt\x1a\xb3\x01has(rules.lt) && rules.lt >= rules.gt && (this.isNan() || this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xce\x01\n" + + "\x16double.gt_lt_exclusive\x1a\xb3\x01has(rules.lt) && rules.lt < rules.gt && (this.isNan() || (rules.lt <= this && this <= rules.gt))? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xd4\x01\n" + + "\rdouble.gt_lte\x1a\xc2\x01has(rules.lte) && rules.lte >= rules.gt && (this.isNan() || this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xde\x01\n" + + "\x17double.gt_lte_exclusive\x1a\xc2\x01has(rules.lte) && rules.lte < rules.gt && (this.isNan() || (rules.lte < this && this <= rules.gt))? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xc4\b\n" + + "\x03gte\x18\x05 \x01(\x01B\xaf\b\xc2H\xab\b\n" + + "\x9c\x01\n" + + "\n" + + "double.gte\x1a\x8d\x01!has(rules.lt) && !has(rules.lte) && (this.isNan() || this < rules.gte)? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xd3\x01\n" + + "\rdouble.gte_lt\x1a\xc1\x01has(rules.lt) && rules.lt >= rules.gte && (this.isNan() || this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xdd\x01\n" + + "\x17double.gte_lt_exclusive\x1a\xc1\x01has(rules.lt) && rules.lt < rules.gte && (this.isNan() || (rules.lt <= this && this < rules.gte))? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xe3\x01\n" + + "\x0edouble.gte_lte\x1a\xd0\x01has(rules.lte) && rules.lte >= rules.gte && (this.isNan() || this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xed\x01\n" + + "\x18double.gte_lte_exclusive\x1a\xd0\x01has(rules.lte) && rules.lte < rules.gte && (this.isNan() || (rules.lte < this && this < rules.gte))? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x84\x01\n" + + "\x02in\x18\x06 \x03(\x01Bt\xc2Hq\n" + + "o\n" + + "\tdouble.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\a \x03(\x01Bg\xc2Hd\n" + + "b\n" + + "\rdouble.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x12~\n" + + "\x06finite\x18\b \x01(\bBf\xc2Hc\n" + + "a\n" + + "\rdouble.finite\x1aPrules.finite ? (this.isNan() || this.isInf() ? 'value must be finite' : '') : ''R\x06finite\x125\n" + + "\aexample\x18\t \x03(\x01B\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0edouble.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xba\x15\n" + + "\n" + + "Int32Rules\x12\x8a\x01\n" + + "\x05const\x18\x01 \x01(\x05Bt\xc2Hq\n" + + "o\n" + + "\vint32.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8e\x01\n" + + "\x02lt\x18\x02 \x01(\x05B|\xc2Hy\n" + + "w\n" + + "\bint32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa1\x01\n" + + "\x03lte\x18\x03 \x01(\x05B\x8c\x01\xc2H\x88\x01\n" + + "\x85\x01\n" + + "\tint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\x9b\a\n" + + "\x02gt\x18\x04 \x01(\x05B\x88\a\xc2H\x84\a\n" + + "z\n" + + "\bint32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb3\x01\n" + + "\vint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbb\x01\n" + + "\x15int32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc3\x01\n" + + "\fint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcb\x01\n" + + "\x16int32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xe8\a\n" + + "\x03gte\x18\x05 \x01(\x05B\xd3\a\xc2H\xcf\a\n" + + "\x88\x01\n" + + "\tint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc2\x01\n" + + "\fint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xca\x01\n" + + "\x16int32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd2\x01\n" + + "\rint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xda\x01\n" + + "\x17int32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x83\x01\n" + + "\x02in\x18\x06 \x03(\x05Bs\xc2Hp\n" + + "n\n" + + "\bint32.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12}\n" + + "\x06not_in\x18\a \x03(\x05Bf\xc2Hc\n" + + "a\n" + + "\fint32.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x124\n" + + "\aexample\x18\b \x03(\x05B\x1a\xc2H\x17\n" + + "\x15\n" + + "\rint32.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xba\x15\n" + + "\n" + + "Int64Rules\x12\x8a\x01\n" + + "\x05const\x18\x01 \x01(\x03Bt\xc2Hq\n" + + "o\n" + + "\vint64.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8e\x01\n" + + "\x02lt\x18\x02 \x01(\x03B|\xc2Hy\n" + + "w\n" + + "\bint64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa1\x01\n" + + "\x03lte\x18\x03 \x01(\x03B\x8c\x01\xc2H\x88\x01\n" + + "\x85\x01\n" + + "\tint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\x9b\a\n" + + "\x02gt\x18\x04 \x01(\x03B\x88\a\xc2H\x84\a\n" + + "z\n" + + "\bint64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb3\x01\n" + + "\vint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbb\x01\n" + + "\x15int64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc3\x01\n" + + "\fint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcb\x01\n" + + "\x16int64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xe8\a\n" + + "\x03gte\x18\x05 \x01(\x03B\xd3\a\xc2H\xcf\a\n" + + "\x88\x01\n" + + "\tint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc2\x01\n" + + "\fint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xca\x01\n" + + "\x16int64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd2\x01\n" + + "\rint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xda\x01\n" + + "\x17int64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x83\x01\n" + + "\x02in\x18\x06 \x03(\x03Bs\xc2Hp\n" + + "n\n" + + "\bint64.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12}\n" + + "\x06not_in\x18\a \x03(\x03Bf\xc2Hc\n" + + "a\n" + + "\fint64.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x124\n" + + "\aexample\x18\t \x03(\x03B\x1a\xc2H\x17\n" + + "\x15\n" + + "\rint64.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xcb\x15\n" + + "\vUInt32Rules\x12\x8b\x01\n" + + "\x05const\x18\x01 \x01(\rBu\xc2Hr\n" + + "p\n" + + "\fuint32.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8f\x01\n" + + "\x02lt\x18\x02 \x01(\rB}\xc2Hz\n" + + "x\n" + + "\tuint32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa2\x01\n" + + "\x03lte\x18\x03 \x01(\rB\x8d\x01\xc2H\x89\x01\n" + + "\x86\x01\n" + + "\n" + + "uint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa0\a\n" + + "\x02gt\x18\x04 \x01(\rB\x8d\a\xc2H\x89\a\n" + + "{\n" + + "\tuint32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb4\x01\n" + + "\fuint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbc\x01\n" + + "\x16uint32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc4\x01\n" + + "\ruint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcc\x01\n" + + "\x17uint32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xed\a\n" + + "\x03gte\x18\x05 \x01(\rB\xd8\a\xc2H\xd4\a\n" + + "\x89\x01\n" + + "\n" + + "uint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc3\x01\n" + + "\ruint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcb\x01\n" + + "\x17uint32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd3\x01\n" + + "\x0euint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdb\x01\n" + + "\x18uint32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x84\x01\n" + + "\x02in\x18\x06 \x03(\rBt\xc2Hq\n" + + "o\n" + + "\tuint32.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\a \x03(\rBg\xc2Hd\n" + + "b\n" + + "\ruint32.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x125\n" + + "\aexample\x18\b \x03(\rB\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0euint32.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xcb\x15\n" + + "\vUInt64Rules\x12\x8b\x01\n" + + "\x05const\x18\x01 \x01(\x04Bu\xc2Hr\n" + + "p\n" + + "\fuint64.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8f\x01\n" + + "\x02lt\x18\x02 \x01(\x04B}\xc2Hz\n" + + "x\n" + + "\tuint64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa2\x01\n" + + "\x03lte\x18\x03 \x01(\x04B\x8d\x01\xc2H\x89\x01\n" + + "\x86\x01\n" + + "\n" + + "uint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa0\a\n" + + "\x02gt\x18\x04 \x01(\x04B\x8d\a\xc2H\x89\a\n" + + "{\n" + + "\tuint64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb4\x01\n" + + "\fuint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbc\x01\n" + + "\x16uint64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc4\x01\n" + + "\ruint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcc\x01\n" + + "\x17uint64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xed\a\n" + + "\x03gte\x18\x05 \x01(\x04B\xd8\a\xc2H\xd4\a\n" + + "\x89\x01\n" + + "\n" + + "uint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc3\x01\n" + + "\ruint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcb\x01\n" + + "\x17uint64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd3\x01\n" + + "\x0euint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdb\x01\n" + + "\x18uint64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x84\x01\n" + + "\x02in\x18\x06 \x03(\x04Bt\xc2Hq\n" + + "o\n" + + "\tuint64.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\a \x03(\x04Bg\xc2Hd\n" + + "b\n" + + "\ruint64.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x125\n" + + "\aexample\x18\b \x03(\x04B\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0euint64.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xcb\x15\n" + + "\vSInt32Rules\x12\x8b\x01\n" + + "\x05const\x18\x01 \x01(\x11Bu\xc2Hr\n" + + "p\n" + + "\fsint32.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8f\x01\n" + + "\x02lt\x18\x02 \x01(\x11B}\xc2Hz\n" + + "x\n" + + "\tsint32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa2\x01\n" + + "\x03lte\x18\x03 \x01(\x11B\x8d\x01\xc2H\x89\x01\n" + + "\x86\x01\n" + + "\n" + + "sint32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa0\a\n" + + "\x02gt\x18\x04 \x01(\x11B\x8d\a\xc2H\x89\a\n" + + "{\n" + + "\tsint32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb4\x01\n" + + "\fsint32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbc\x01\n" + + "\x16sint32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc4\x01\n" + + "\rsint32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcc\x01\n" + + "\x17sint32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xed\a\n" + + "\x03gte\x18\x05 \x01(\x11B\xd8\a\xc2H\xd4\a\n" + + "\x89\x01\n" + + "\n" + + "sint32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc3\x01\n" + + "\rsint32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcb\x01\n" + + "\x17sint32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd3\x01\n" + + "\x0esint32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdb\x01\n" + + "\x18sint32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x84\x01\n" + + "\x02in\x18\x06 \x03(\x11Bt\xc2Hq\n" + + "o\n" + + "\tsint32.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\a \x03(\x11Bg\xc2Hd\n" + + "b\n" + + "\rsint32.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x125\n" + + "\aexample\x18\b \x03(\x11B\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0esint32.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xcb\x15\n" + + "\vSInt64Rules\x12\x8b\x01\n" + + "\x05const\x18\x01 \x01(\x12Bu\xc2Hr\n" + + "p\n" + + "\fsint64.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x8f\x01\n" + + "\x02lt\x18\x02 \x01(\x12B}\xc2Hz\n" + + "x\n" + + "\tsint64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa2\x01\n" + + "\x03lte\x18\x03 \x01(\x12B\x8d\x01\xc2H\x89\x01\n" + + "\x86\x01\n" + + "\n" + + "sint64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa0\a\n" + + "\x02gt\x18\x04 \x01(\x12B\x8d\a\xc2H\x89\a\n" + + "{\n" + + "\tsint64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb4\x01\n" + + "\fsint64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbc\x01\n" + + "\x16sint64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc4\x01\n" + + "\rsint64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcc\x01\n" + + "\x17sint64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xed\a\n" + + "\x03gte\x18\x05 \x01(\x12B\xd8\a\xc2H\xd4\a\n" + + "\x89\x01\n" + + "\n" + + "sint64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc3\x01\n" + + "\rsint64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcb\x01\n" + + "\x17sint64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd3\x01\n" + + "\x0esint64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdb\x01\n" + + "\x18sint64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x84\x01\n" + + "\x02in\x18\x06 \x03(\x12Bt\xc2Hq\n" + + "o\n" + + "\tsint64.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\a \x03(\x12Bg\xc2Hd\n" + + "b\n" + + "\rsint64.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x125\n" + + "\aexample\x18\b \x03(\x12B\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0esint64.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xdc\x15\n" + + "\fFixed32Rules\x12\x8c\x01\n" + + "\x05const\x18\x01 \x01(\aBv\xc2Hs\n" + + "q\n" + + "\rfixed32.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x90\x01\n" + + "\x02lt\x18\x02 \x01(\aB~\xc2H{\n" + + "y\n" + + "\n" + + "fixed32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa3\x01\n" + + "\x03lte\x18\x03 \x01(\aB\x8e\x01\xc2H\x8a\x01\n" + + "\x87\x01\n" + + "\vfixed32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa5\a\n" + + "\x02gt\x18\x04 \x01(\aB\x92\a\xc2H\x8e\a\n" + + "|\n" + + "\n" + + "fixed32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb5\x01\n" + + "\rfixed32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbd\x01\n" + + "\x17fixed32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc5\x01\n" + + "\x0efixed32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcd\x01\n" + + "\x18fixed32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xf2\a\n" + + "\x03gte\x18\x05 \x01(\aB\xdd\a\xc2H\xd9\a\n" + + "\x8a\x01\n" + + "\vfixed32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc4\x01\n" + + "\x0efixed32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcc\x01\n" + + "\x18fixed32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd4\x01\n" + + "\x0ffixed32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdc\x01\n" + + "\x19fixed32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x85\x01\n" + + "\x02in\x18\x06 \x03(\aBu\xc2Hr\n" + + "p\n" + + "\n" + + "fixed32.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\x7f\n" + + "\x06not_in\x18\a \x03(\aBh\xc2He\n" + + "c\n" + + "\x0efixed32.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x126\n" + + "\aexample\x18\b \x03(\aB\x1c\xc2H\x19\n" + + "\x17\n" + + "\x0ffixed32.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xdc\x15\n" + + "\fFixed64Rules\x12\x8c\x01\n" + + "\x05const\x18\x01 \x01(\x06Bv\xc2Hs\n" + + "q\n" + + "\rfixed64.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x90\x01\n" + + "\x02lt\x18\x02 \x01(\x06B~\xc2H{\n" + + "y\n" + + "\n" + + "fixed64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa3\x01\n" + + "\x03lte\x18\x03 \x01(\x06B\x8e\x01\xc2H\x8a\x01\n" + + "\x87\x01\n" + + "\vfixed64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xa5\a\n" + + "\x02gt\x18\x04 \x01(\x06B\x92\a\xc2H\x8e\a\n" + + "|\n" + + "\n" + + "fixed64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb5\x01\n" + + "\rfixed64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbd\x01\n" + + "\x17fixed64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc5\x01\n" + + "\x0efixed64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcd\x01\n" + + "\x18fixed64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xf2\a\n" + + "\x03gte\x18\x05 \x01(\x06B\xdd\a\xc2H\xd9\a\n" + + "\x8a\x01\n" + + "\vfixed64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc4\x01\n" + + "\x0efixed64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcc\x01\n" + + "\x18fixed64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd4\x01\n" + + "\x0ffixed64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdc\x01\n" + + "\x19fixed64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x85\x01\n" + + "\x02in\x18\x06 \x03(\x06Bu\xc2Hr\n" + + "p\n" + + "\n" + + "fixed64.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\x7f\n" + + "\x06not_in\x18\a \x03(\x06Bh\xc2He\n" + + "c\n" + + "\x0efixed64.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x126\n" + + "\aexample\x18\b \x03(\x06B\x1c\xc2H\x19\n" + + "\x17\n" + + "\x0ffixed64.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xee\x15\n" + + "\rSFixed32Rules\x12\x8d\x01\n" + + "\x05const\x18\x01 \x01(\x0fBw\xc2Ht\n" + + "r\n" + + "\x0esfixed32.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x91\x01\n" + + "\x02lt\x18\x02 \x01(\x0fB\x7f\xc2H|\n" + + "z\n" + + "\vsfixed32.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa4\x01\n" + + "\x03lte\x18\x03 \x01(\x0fB\x8f\x01\xc2H\x8b\x01\n" + + "\x88\x01\n" + + "\fsfixed32.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xaa\a\n" + + "\x02gt\x18\x04 \x01(\x0fB\x97\a\xc2H\x93\a\n" + + "}\n" + + "\vsfixed32.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb6\x01\n" + + "\x0esfixed32.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbe\x01\n" + + "\x18sfixed32.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc6\x01\n" + + "\x0fsfixed32.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xce\x01\n" + + "\x19sfixed32.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xf7\a\n" + + "\x03gte\x18\x05 \x01(\x0fB\xe2\a\xc2H\xde\a\n" + + "\x8b\x01\n" + + "\fsfixed32.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc5\x01\n" + + "\x0fsfixed32.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcd\x01\n" + + "\x19sfixed32.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd5\x01\n" + + "\x10sfixed32.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdd\x01\n" + + "\x1asfixed32.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x86\x01\n" + + "\x02in\x18\x06 \x03(\x0fBv\xc2Hs\n" + + "q\n" + + "\vsfixed32.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\x80\x01\n" + + "\x06not_in\x18\a \x03(\x0fBi\xc2Hf\n" + + "d\n" + + "\x0fsfixed32.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x127\n" + + "\aexample\x18\b \x03(\x0fB\x1d\xc2H\x1a\n" + + "\x18\n" + + "\x10sfixed32.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xee\x15\n" + + "\rSFixed64Rules\x12\x8d\x01\n" + + "\x05const\x18\x01 \x01(\x10Bw\xc2Ht\n" + + "r\n" + + "\x0esfixed64.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\x91\x01\n" + + "\x02lt\x18\x02 \x01(\x10B\x7f\xc2H|\n" + + "z\n" + + "\vsfixed64.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xa4\x01\n" + + "\x03lte\x18\x03 \x01(\x10B\x8f\x01\xc2H\x8b\x01\n" + + "\x88\x01\n" + + "\fsfixed64.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xaa\a\n" + + "\x02gt\x18\x04 \x01(\x10B\x97\a\xc2H\x93\a\n" + + "}\n" + + "\vsfixed64.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb6\x01\n" + + "\x0esfixed64.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbe\x01\n" + + "\x18sfixed64.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc6\x01\n" + + "\x0fsfixed64.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xce\x01\n" + + "\x19sfixed64.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\xf7\a\n" + + "\x03gte\x18\x05 \x01(\x10B\xe2\a\xc2H\xde\a\n" + + "\x8b\x01\n" + + "\fsfixed64.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc5\x01\n" + + "\x0fsfixed64.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcd\x01\n" + + "\x19sfixed64.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd5\x01\n" + + "\x10sfixed64.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdd\x01\n" + + "\x1asfixed64.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\x86\x01\n" + + "\x02in\x18\x06 \x03(\x10Bv\xc2Hs\n" + + "q\n" + + "\vsfixed64.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\x80\x01\n" + + "\x06not_in\x18\a \x03(\x10Bi\xc2Hf\n" + + "d\n" + + "\x0fsfixed64.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x127\n" + + "\aexample\x18\b \x03(\x10B\x1d\xc2H\x1a\n" + + "\x18\n" + + "\x10sfixed64.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\xd7\x01\n" + + "\tBoolRules\x12\x89\x01\n" + + "\x05const\x18\x01 \x01(\bBs\xc2Hp\n" + + "n\n" + + "\n" + + "bool.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x123\n" + + "\aexample\x18\x02 \x03(\bB\x19\xc2H\x16\n" + + "\x14\n" + + "\fbool.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xcf;\n" + + "\vStringRules\x12\x8d\x01\n" + + "\x05const\x18\x01 \x01(\tBw\xc2Ht\n" + + "r\n" + + "\fstring.const\x1abthis != getField(rules, 'const') ? 'value must equal `%s`'.format([getField(rules, 'const')]) : ''R\x05const\x12\x83\x01\n" + + "\x03len\x18\x13 \x01(\x04Bq\xc2Hn\n" + + "l\n" + + "\n" + + "string.len\x1a^uint(this.size()) != rules.len ? 'value length must be %s characters'.format([rules.len]) : ''R\x03len\x12\xa1\x01\n" + + "\amin_len\x18\x02 \x01(\x04B\x87\x01\xc2H\x83\x01\n" + + "\x80\x01\n" + + "\x0estring.min_len\x1anuint(this.size()) < rules.min_len ? 'value length must be at least %s characters'.format([rules.min_len]) : ''R\x06minLen\x12\x9f\x01\n" + + "\amax_len\x18\x03 \x01(\x04B\x85\x01\xc2H\x81\x01\n" + + "\x7f\n" + + "\x0estring.max_len\x1amuint(this.size()) > rules.max_len ? 'value length must be at most %s characters'.format([rules.max_len]) : ''R\x06maxLen\x12\xa5\x01\n" + + "\tlen_bytes\x18\x14 \x01(\x04B\x87\x01\xc2H\x83\x01\n" + + "\x80\x01\n" + + "\x10string.len_bytes\x1aluint(bytes(this).size()) != rules.len_bytes ? 'value length must be %s bytes'.format([rules.len_bytes]) : ''R\blenBytes\x12\xad\x01\n" + + "\tmin_bytes\x18\x04 \x01(\x04B\x8f\x01\xc2H\x8b\x01\n" + + "\x88\x01\n" + + "\x10string.min_bytes\x1atuint(bytes(this).size()) < rules.min_bytes ? 'value length must be at least %s bytes'.format([rules.min_bytes]) : ''R\bminBytes\x12\xac\x01\n" + + "\tmax_bytes\x18\x05 \x01(\x04B\x8e\x01\xc2H\x8a\x01\n" + + "\x87\x01\n" + + "\x10string.max_bytes\x1asuint(bytes(this).size()) > rules.max_bytes ? 'value length must be at most %s bytes'.format([rules.max_bytes]) : ''R\bmaxBytes\x12\x96\x01\n" + + "\apattern\x18\x06 \x01(\tB|\xc2Hy\n" + + "w\n" + + "\x0estring.pattern\x1ae!this.matches(rules.pattern) ? 'value does not match regex pattern `%s`'.format([rules.pattern]) : ''R\apattern\x12\x8c\x01\n" + + "\x06prefix\x18\a \x01(\tBt\xc2Hq\n" + + "o\n" + + "\rstring.prefix\x1a^!this.startsWith(rules.prefix) ? 'value does not have prefix `%s`'.format([rules.prefix]) : ''R\x06prefix\x12\x8a\x01\n" + + "\x06suffix\x18\b \x01(\tBr\xc2Ho\n" + + "m\n" + + "\rstring.suffix\x1a\\!this.endsWith(rules.suffix) ? 'value does not have suffix `%s`'.format([rules.suffix]) : ''R\x06suffix\x12\x9a\x01\n" + + "\bcontains\x18\t \x01(\tB~\xc2H{\n" + + "y\n" + + "\x0fstring.contains\x1af!this.contains(rules.contains) ? 'value does not contain substring `%s`'.format([rules.contains]) : ''R\bcontains\x12\xa5\x01\n" + + "\fnot_contains\x18\x17 \x01(\tB\x81\x01\xc2H~\n" + + "|\n" + + "\x13string.not_contains\x1aethis.contains(rules.not_contains) ? 'value contains substring `%s`'.format([rules.not_contains]) : ''R\vnotContains\x12\x84\x01\n" + + "\x02in\x18\n" + + " \x03(\tBt\xc2Hq\n" + + "o\n" + + "\tstring.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12~\n" + + "\x06not_in\x18\v \x03(\tBg\xc2Hd\n" + + "b\n" + + "\rstring.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x12\xe6\x01\n" + + "\x05email\x18\f \x01(\bB\xcd\x01\xc2H\xc9\x01\n" + + "a\n" + + "\fstring.email\x12#value must be a valid email address\x1a,!rules.email || this == '' || this.isEmail()\n" + + "d\n" + + "\x12string.email_empty\x122value is empty, which is not a valid email address\x1a\x1a!rules.email || this != ''H\x00R\x05email\x12\xf1\x01\n" + + "\bhostname\x18\r \x01(\bB\xd2\x01\xc2H\xce\x01\n" + + "e\n" + + "\x0fstring.hostname\x12\x1evalue must be a valid hostname\x1a2!rules.hostname || this == '' || this.isHostname()\n" + + "e\n" + + "\x15string.hostname_empty\x12-value is empty, which is not a valid hostname\x1a\x1d!rules.hostname || this != ''H\x00R\bhostname\x12\xcb\x01\n" + + "\x02ip\x18\x0e \x01(\bB\xb8\x01\xc2H\xb4\x01\n" + + "U\n" + + "\tstring.ip\x12 value must be a valid IP address\x1a&!rules.ip || this == '' || this.isIp()\n" + + "[\n" + + "\x0fstring.ip_empty\x12/value is empty, which is not a valid IP address\x1a\x17!rules.ip || this != ''H\x00R\x02ip\x12\xdc\x01\n" + + "\x04ipv4\x18\x0f \x01(\bB\xc5\x01\xc2H\xc1\x01\n" + + "\\\n" + + "\vstring.ipv4\x12\"value must be a valid IPv4 address\x1a)!rules.ipv4 || this == '' || this.isIp(4)\n" + + "a\n" + + "\x11string.ipv4_empty\x121value is empty, which is not a valid IPv4 address\x1a\x19!rules.ipv4 || this != ''H\x00R\x04ipv4\x12\xdc\x01\n" + + "\x04ipv6\x18\x10 \x01(\bB\xc5\x01\xc2H\xc1\x01\n" + + "\\\n" + + "\vstring.ipv6\x12\"value must be a valid IPv6 address\x1a)!rules.ipv6 || this == '' || this.isIp(6)\n" + + "a\n" + + "\x11string.ipv6_empty\x121value is empty, which is not a valid IPv6 address\x1a\x19!rules.ipv6 || this != ''H\x00R\x04ipv6\x12\xc4\x01\n" + + "\x03uri\x18\x11 \x01(\bB\xaf\x01\xc2H\xab\x01\n" + + "Q\n" + + "\n" + + "string.uri\x12\x19value must be a valid URI\x1a(!rules.uri || this == '' || this.isUri()\n" + + "V\n" + + "\x10string.uri_empty\x12(value is empty, which is not a valid URI\x1a\x18!rules.uri || this != ''H\x00R\x03uri\x12x\n" + + "\auri_ref\x18\x12 \x01(\bB]\xc2HZ\n" + + "X\n" + + "\x0estring.uri_ref\x12#value must be a valid URI Reference\x1a!!rules.uri_ref || this.isUriRef()H\x00R\x06uriRef\x12\x99\x02\n" + + "\aaddress\x18\x15 \x01(\bB\xfc\x01\xc2H\xf8\x01\n" + + "\x81\x01\n" + + "\x0estring.address\x12-value must be a valid hostname, or ip address\x1a@!rules.address || this == '' || this.isHostname() || this.isIp()\n" + + "r\n" + + "\x14string.address_empty\x12!rules.ipv4_with_prefixlen || this == '' || this.isIpPrefix(4)\n" + + "\x92\x01\n" + + " string.ipv4_with_prefixlen_empty\x12Dvalue is empty, which is not a valid IPv4 address with prefix length\x1a(!rules.ipv4_with_prefixlen || this != ''H\x00R\x11ipv4WithPrefixlen\x12\xe2\x02\n" + + "\x13ipv6_with_prefixlen\x18\x1c \x01(\bB\xaf\x02\xc2H\xab\x02\n" + + "\x93\x01\n" + + "\x1astring.ipv6_with_prefixlen\x125value must be a valid IPv6 address with prefix length\x1a>!rules.ipv6_with_prefixlen || this == '' || this.isIpPrefix(6)\n" + + "\x92\x01\n" + + " string.ipv6_with_prefixlen_empty\x12Dvalue is empty, which is not a valid IPv6 address with prefix length\x1a(!rules.ipv6_with_prefixlen || this != ''H\x00R\x11ipv6WithPrefixlen\x12\xfc\x01\n" + + "\tip_prefix\x18\x1d \x01(\bB\xdc\x01\xc2H\xd8\x01\n" + + "l\n" + + "\x10string.ip_prefix\x12\x1fvalue must be a valid IP prefix\x1a7!rules.ip_prefix || this == '' || this.isIpPrefix(true)\n" + + "h\n" + + "\x16string.ip_prefix_empty\x12.value is empty, which is not a valid IP prefix\x1a\x1e!rules.ip_prefix || this != ''H\x00R\bipPrefix\x12\x8f\x02\n" + + "\vipv4_prefix\x18\x1e \x01(\bB\xeb\x01\xc2H\xe7\x01\n" + + "u\n" + + "\x12string.ipv4_prefix\x12!value must be a valid IPv4 prefix\x1a!rules.host_and_port || this == '' || this.isHostAndPort(true)\n" + + "y\n" + + "\x1astring.host_and_port_empty\x127value is empty, which is not a valid host and port pair\x1a\"!rules.host_and_port || this != ''H\x00R\vhostAndPort\x12\xfb\x01\n" + + "\x04ulid\x18# \x01(\bB\xe4\x01\xc2H\xe0\x01\n" + + "\x82\x01\n" + + "\vstring.ulid\x12\x1avalue must be a valid ULID\x1aW!rules.ulid || this == '' || this.matches('^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$')\n" + + "Y\n" + + "\x11string.ulid_empty\x12)value is empty, which is not a valid ULID\x1a\x19!rules.ulid || this != ''H\x00R\x04ulid\x12\xb8\x05\n" + + "\x10well_known_regex\x18\x18 \x01(\x0e2\x18.buf.validate.KnownRegexB\xf1\x04\xc2H\xed\x04\n" + + "\xf0\x01\n" + + "#string.well_known_regex.header_name\x12&value must be a valid HTTP header name\x1a\xa0\x01rules.well_known_regex != 1 || this == '' || this.matches(!has(rules.strict) || rules.strict ?'^:?[0-9a-zA-Z!#$%&\\'*+-.^_|~\\x60]+$' :'^[^\\u0000\\u000A\\u000D]+$')\n" + + "\x8d\x01\n" + + ")string.well_known_regex.header_name_empty\x125value is empty, which is not a valid HTTP header name\x1a)rules.well_known_regex != 1 || this != ''\n" + + "\xe7\x01\n" + + "$string.well_known_regex.header_value\x12'value must be a valid HTTP header value\x1a\x95\x01rules.well_known_regex != 2 || this.matches(!has(rules.strict) || rules.strict ?'^[^\\u0000-\\u0008\\u000A-\\u001F\\u007F]*$' :'^[^\\u0000\\u000A\\u000D]*$')H\x00R\x0ewellKnownRegex\x12\x16\n" + + "\x06strict\x18\x19 \x01(\bR\x06strict\x125\n" + + "\aexample\x18\" \x03(\tB\x1b\xc2H\x18\n" + + "\x16\n" + + "\x0estring.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\f\n" + + "\n" + + "well_known\"\xac\x13\n" + + "\n" + + "BytesRules\x12\x87\x01\n" + + "\x05const\x18\x01 \x01(\fBq\xc2Hn\n" + + "l\n" + + "\vbytes.const\x1a]this != getField(rules, 'const') ? 'value must be %x'.format([getField(rules, 'const')]) : ''R\x05const\x12}\n" + + "\x03len\x18\r \x01(\x04Bk\xc2Hh\n" + + "f\n" + + "\tbytes.len\x1aYuint(this.size()) != rules.len ? 'value length must be %s bytes'.format([rules.len]) : ''R\x03len\x12\x98\x01\n" + + "\amin_len\x18\x02 \x01(\x04B\x7f\xc2H|\n" + + "z\n" + + "\rbytes.min_len\x1aiuint(this.size()) < rules.min_len ? 'value length must be at least %s bytes'.format([rules.min_len]) : ''R\x06minLen\x12\x90\x01\n" + + "\amax_len\x18\x03 \x01(\x04Bw\xc2Ht\n" + + "r\n" + + "\rbytes.max_len\x1aauint(this.size()) > rules.max_len ? 'value must be at most %s bytes'.format([rules.max_len]) : ''R\x06maxLen\x12\x99\x01\n" + + "\apattern\x18\x04 \x01(\tB\x7f\xc2H|\n" + + "z\n" + + "\rbytes.pattern\x1ai!string(this).matches(rules.pattern) ? 'value must match regex pattern `%s`'.format([rules.pattern]) : ''R\apattern\x12\x89\x01\n" + + "\x06prefix\x18\x05 \x01(\fBq\xc2Hn\n" + + "l\n" + + "\fbytes.prefix\x1a\\!this.startsWith(rules.prefix) ? 'value does not have prefix %x'.format([rules.prefix]) : ''R\x06prefix\x12\x87\x01\n" + + "\x06suffix\x18\x06 \x01(\fBo\xc2Hl\n" + + "j\n" + + "\fbytes.suffix\x1aZ!this.endsWith(rules.suffix) ? 'value does not have suffix %x'.format([rules.suffix]) : ''R\x06suffix\x12\x8d\x01\n" + + "\bcontains\x18\a \x01(\fBq\xc2Hn\n" + + "l\n" + + "\x0ebytes.contains\x1aZ!this.contains(rules.contains) ? 'value does not contain %x'.format([rules.contains]) : ''R\bcontains\x12\xab\x01\n" + + "\x02in\x18\b \x03(\fB\x9a\x01\xc2H\x96\x01\n" + + "\x93\x01\n" + + "\bbytes.in\x1a\x86\x01getField(rules, 'in').size() > 0 && !(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12}\n" + + "\x06not_in\x18\t \x03(\fBf\xc2Hc\n" + + "a\n" + + "\fbytes.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x12\xef\x01\n" + + "\x02ip\x18\n" + + " \x01(\bB\xdc\x01\xc2H\xd8\x01\n" + + "t\n" + + "\bbytes.ip\x12 value must be a valid IP address\x1aF!rules.ip || this.size() == 0 || this.size() == 4 || this.size() == 16\n" + + "`\n" + + "\x0ebytes.ip_empty\x12/value is empty, which is not a valid IP address\x1a\x1d!rules.ip || this.size() != 0H\x00R\x02ip\x12\xea\x01\n" + + "\x04ipv4\x18\v \x01(\bB\xd3\x01\xc2H\xcf\x01\n" + + "e\n" + + "\n" + + "bytes.ipv4\x12\"value must be a valid IPv4 address\x1a3!rules.ipv4 || this.size() == 0 || this.size() == 4\n" + + "f\n" + + "\x10bytes.ipv4_empty\x121value is empty, which is not a valid IPv4 address\x1a\x1f!rules.ipv4 || this.size() != 0H\x00R\x04ipv4\x12\xeb\x01\n" + + "\x04ipv6\x18\f \x01(\bB\xd4\x01\xc2H\xd0\x01\n" + + "f\n" + + "\n" + + "bytes.ipv6\x12\"value must be a valid IPv6 address\x1a4!rules.ipv6 || this.size() == 0 || this.size() == 16\n" + + "f\n" + + "\x10bytes.ipv6_empty\x121value is empty, which is not a valid IPv6 address\x1a\x1f!rules.ipv6 || this.size() != 0H\x00R\x04ipv6\x12\xdb\x01\n" + + "\x04uuid\x18\x0f \x01(\bB\xc4\x01\xc2H\xc0\x01\n" + + "^\n" + + "\n" + + "bytes.uuid\x12\x1avalue must be a valid UUID\x1a4!rules.uuid || this.size() == 0 || this.size() == 16\n" + + "^\n" + + "\x10bytes.uuid_empty\x12)value is empty, which is not a valid UUID\x1a\x1f!rules.uuid || this.size() != 0H\x00R\x04uuid\x124\n" + + "\aexample\x18\x0e \x03(\fB\x1a\xc2H\x17\n" + + "\x15\n" + + "\rbytes.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\f\n" + + "\n" + + "well_known\"\xfd\x03\n" + + "\tEnumRules\x12\x89\x01\n" + + "\x05const\x18\x01 \x01(\x05Bs\xc2Hp\n" + + "n\n" + + "\n" + + "enum.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12!\n" + + "\fdefined_only\x18\x02 \x01(\bR\vdefinedOnly\x12\x82\x01\n" + + "\x02in\x18\x03 \x03(\x05Br\xc2Ho\n" + + "m\n" + + "\aenum.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12|\n" + + "\x06not_in\x18\x04 \x03(\x05Be\xc2Hb\n" + + "`\n" + + "\venum.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x123\n" + + "\aexample\x18\x05 \x03(\x05B\x19\xc2H\x16\n" + + "\x14\n" + + "\fenum.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\x9e\x04\n" + + "\rRepeatedRules\x12\xa8\x01\n" + + "\tmin_items\x18\x01 \x01(\x04B\x8a\x01\xc2H\x86\x01\n" + + "\x83\x01\n" + + "\x12repeated.min_items\x1amuint(this.size()) < rules.min_items ? 'value must contain at least %d item(s)'.format([rules.min_items]) : ''R\bminItems\x12\xac\x01\n" + + "\tmax_items\x18\x02 \x01(\x04B\x8e\x01\xc2H\x8a\x01\n" + + "\x87\x01\n" + + "\x12repeated.max_items\x1aquint(this.size()) > rules.max_items ? 'value must contain no more than %s item(s)'.format([rules.max_items]) : ''R\bmaxItems\x12x\n" + + "\x06unique\x18\x03 \x01(\bB`\xc2H]\n" + + "[\n" + + "\x0frepeated.unique\x12(repeated value must contain unique items\x1a\x1e!rules.unique || this.unique()R\x06unique\x12.\n" + + "\x05items\x18\x04 \x01(\v2\x18.buf.validate.FieldRulesR\x05items*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xac\x03\n" + + "\bMapRules\x12\x99\x01\n" + + "\tmin_pairs\x18\x01 \x01(\x04B|\xc2Hy\n" + + "w\n" + + "\rmap.min_pairs\x1afuint(this.size()) < rules.min_pairs ? 'map must be at least %d entries'.format([rules.min_pairs]) : ''R\bminPairs\x12\x98\x01\n" + + "\tmax_pairs\x18\x02 \x01(\x04B{\xc2Hx\n" + + "v\n" + + "\rmap.max_pairs\x1aeuint(this.size()) > rules.max_pairs ? 'map must be at most %d entries'.format([rules.max_pairs]) : ''R\bmaxPairs\x12,\n" + + "\x04keys\x18\x04 \x01(\v2\x18.buf.validate.FieldRulesR\x04keys\x120\n" + + "\x06values\x18\x05 \x01(\v2\x18.buf.validate.FieldRulesR\x06values*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"1\n" + + "\bAnyRules\x12\x0e\n" + + "\x02in\x18\x02 \x03(\tR\x02in\x12\x15\n" + + "\x06not_in\x18\x03 \x03(\tR\x05notIn\"\xc6\x17\n" + + "\rDurationRules\x12\xa8\x01\n" + + "\x05const\x18\x02 \x01(\v2\x19.google.protobuf.DurationBw\xc2Ht\n" + + "r\n" + + "\x0eduration.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\xac\x01\n" + + "\x02lt\x18\x03 \x01(\v2\x19.google.protobuf.DurationB\x7f\xc2H|\n" + + "z\n" + + "\vduration.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xbf\x01\n" + + "\x03lte\x18\x04 \x01(\v2\x19.google.protobuf.DurationB\x8f\x01\xc2H\x8b\x01\n" + + "\x88\x01\n" + + "\fduration.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12\xc5\a\n" + + "\x02gt\x18\x05 \x01(\v2\x19.google.protobuf.DurationB\x97\a\xc2H\x93\a\n" + + "}\n" + + "\vduration.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb6\x01\n" + + "\x0eduration.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbe\x01\n" + + "\x18duration.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc6\x01\n" + + "\x0fduration.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xce\x01\n" + + "\x19duration.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\x92\b\n" + + "\x03gte\x18\x06 \x01(\v2\x19.google.protobuf.DurationB\xe2\a\xc2H\xde\a\n" + + "\x8b\x01\n" + + "\fduration.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc5\x01\n" + + "\x0fduration.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xcd\x01\n" + + "\x19duration.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd5\x01\n" + + "\x10duration.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xdd\x01\n" + + "\x1aduration.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12\xa1\x01\n" + + "\x02in\x18\a \x03(\v2\x19.google.protobuf.DurationBv\xc2Hs\n" + + "q\n" + + "\vduration.in\x1ab!(this in getField(rules, 'in')) ? 'value must be in list %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\x9b\x01\n" + + "\x06not_in\x18\b \x03(\v2\x19.google.protobuf.DurationBi\xc2Hf\n" + + "d\n" + + "\x0fduration.not_in\x1aQthis in rules.not_in ? 'value must not be in list %s'.format([rules.not_in]) : ''R\x05notIn\x12R\n" + + "\aexample\x18\t \x03(\v2\x19.google.protobuf.DurationB\x1d\xc2H\x1a\n" + + "\x18\n" + + "\x10duration.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"\x98\x06\n" + + "\x0eFieldMaskRules\x12\xc6\x01\n" + + "\x05const\x18\x01 \x01(\v2\x1a.google.protobuf.FieldMaskB\x93\x01\xc2H\x8f\x01\n" + + "\x8c\x01\n" + + "\x10field_mask.const\x1axthis.paths != getField(rules, 'const').paths ? 'value must equal paths %s'.format([getField(rules, 'const').paths]) : ''R\x05const\x12\xdd\x01\n" + + "\x02in\x18\x02 \x03(\tB\xcc\x01\xc2H\xc8\x01\n" + + "\xc5\x01\n" + + "\rfield_mask.in\x1a\xb3\x01!this.paths.all(p, p in getField(rules, 'in') || getField(rules, 'in').exists(f, p.startsWith(f+'.'))) ? 'value must only contain paths in %s'.format([getField(rules, 'in')]) : ''R\x02in\x12\xfa\x01\n" + + "\x06not_in\x18\x03 \x03(\tB\xe2\x01\xc2H\xde\x01\n" + + "\xdb\x01\n" + + "\x11field_mask.not_in\x1a\xc5\x01!this.paths.all(p, !(p in getField(rules, 'not_in') || getField(rules, 'not_in').exists(f, p.startsWith(f+'.')))) ? 'value must not contain any paths in %s'.format([getField(rules, 'not_in')]) : ''R\x05notIn\x12U\n" + + "\aexample\x18\x04 \x03(\v2\x1a.google.protobuf.FieldMaskB\x1f\xc2H\x1c\n" + + "\x1a\n" + + "\x12field_mask.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02\"\xca\x18\n" + + "\x0eTimestampRules\x12\xaa\x01\n" + + "\x05const\x18\x02 \x01(\v2\x1a.google.protobuf.TimestampBx\xc2Hu\n" + + "s\n" + + "\x0ftimestamp.const\x1a`this != getField(rules, 'const') ? 'value must equal %s'.format([getField(rules, 'const')]) : ''R\x05const\x12\xaf\x01\n" + + "\x02lt\x18\x03 \x01(\v2\x1a.google.protobuf.TimestampB\x80\x01\xc2H}\n" + + "{\n" + + "\ftimestamp.lt\x1ak!has(rules.gte) && !has(rules.gt) && this >= rules.lt? 'value must be less than %s'.format([rules.lt]) : ''H\x00R\x02lt\x12\xc1\x01\n" + + "\x03lte\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampB\x90\x01\xc2H\x8c\x01\n" + + "\x89\x01\n" + + "\rtimestamp.lte\x1ax!has(rules.gte) && !has(rules.gt) && this > rules.lte? 'value must be less than or equal to %s'.format([rules.lte]) : ''H\x00R\x03lte\x12s\n" + + "\x06lt_now\x18\a \x01(\bBZ\xc2HW\n" + + "U\n" + + "\x10timestamp.lt_now\x1aA(rules.lt_now && this > now) ? 'value must be less than now' : ''H\x00R\x05ltNow\x12\xcb\a\n" + + "\x02gt\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampB\x9c\a\xc2H\x98\a\n" + + "~\n" + + "\ftimestamp.gt\x1an!has(rules.lt) && !has(rules.lte) && this <= rules.gt? 'value must be greater than %s'.format([rules.gt]) : ''\n" + + "\xb7\x01\n" + + "\x0ftimestamp.gt_lt\x1a\xa3\x01has(rules.lt) && rules.lt >= rules.gt && (this >= rules.lt || this <= rules.gt)? 'value must be greater than %s and less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xbf\x01\n" + + "\x19timestamp.gt_lt_exclusive\x1a\xa1\x01has(rules.lt) && rules.lt < rules.gt && (rules.lt <= this && this <= rules.gt)? 'value must be greater than %s or less than %s'.format([rules.gt, rules.lt]) : ''\n" + + "\xc7\x01\n" + + "\x10timestamp.gt_lte\x1a\xb2\x01has(rules.lte) && rules.lte >= rules.gt && (this > rules.lte || this <= rules.gt)? 'value must be greater than %s and less than or equal to %s'.format([rules.gt, rules.lte]) : ''\n" + + "\xcf\x01\n" + + "\x1atimestamp.gt_lte_exclusive\x1a\xb0\x01has(rules.lte) && rules.lte < rules.gt && (rules.lte < this && this <= rules.gt)? 'value must be greater than %s or less than or equal to %s'.format([rules.gt, rules.lte]) : ''H\x01R\x02gt\x12\x98\b\n" + + "\x03gte\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampB\xe7\a\xc2H\xe3\a\n" + + "\x8c\x01\n" + + "\rtimestamp.gte\x1a{!has(rules.lt) && !has(rules.lte) && this < rules.gte? 'value must be greater than or equal to %s'.format([rules.gte]) : ''\n" + + "\xc6\x01\n" + + "\x10timestamp.gte_lt\x1a\xb1\x01has(rules.lt) && rules.lt >= rules.gte && (this >= rules.lt || this < rules.gte)? 'value must be greater than or equal to %s and less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xce\x01\n" + + "\x1atimestamp.gte_lt_exclusive\x1a\xaf\x01has(rules.lt) && rules.lt < rules.gte && (rules.lt <= this && this < rules.gte)? 'value must be greater than or equal to %s or less than %s'.format([rules.gte, rules.lt]) : ''\n" + + "\xd6\x01\n" + + "\x11timestamp.gte_lte\x1a\xc0\x01has(rules.lte) && rules.lte >= rules.gte && (this > rules.lte || this < rules.gte)? 'value must be greater than or equal to %s and less than or equal to %s'.format([rules.gte, rules.lte]) : ''\n" + + "\xde\x01\n" + + "\x1btimestamp.gte_lte_exclusive\x1a\xbe\x01has(rules.lte) && rules.lte < rules.gte && (rules.lte < this && this < rules.gte)? 'value must be greater than or equal to %s or less than or equal to %s'.format([rules.gte, rules.lte]) : ''H\x01R\x03gte\x12v\n" + + "\x06gt_now\x18\b \x01(\bB]\xc2HZ\n" + + "X\n" + + "\x10timestamp.gt_now\x1aD(rules.gt_now && this < now) ? 'value must be greater than now' : ''H\x01R\x05gtNow\x12\xc0\x01\n" + + "\x06within\x18\t \x01(\v2\x19.google.protobuf.DurationB\x8c\x01\xc2H\x88\x01\n" + + "\x85\x01\n" + + "\x10timestamp.within\x1aqthis < now-rules.within || this > now+rules.within ? 'value must be within %s of now'.format([rules.within]) : ''R\x06within\x12T\n" + + "\aexample\x18\n" + + " \x03(\v2\x1a.google.protobuf.TimestampB\x1e\xc2H\x1b\n" + + "\x19\n" + + "\x11timestamp.example\x1a\x04trueR\aexample*\t\b\xe8\a\x10\x80\x80\x80\x80\x02B\v\n" + + "\tless_thanB\x0e\n" + + "\fgreater_than\"E\n" + + "\n" + + "Violations\x127\n" + + "\n" + + "violations\x18\x01 \x03(\v2\x17.buf.validate.ViolationR\n" + + "violations\"\xc5\x01\n" + + "\tViolation\x12-\n" + + "\x05field\x18\x05 \x01(\v2\x17.buf.validate.FieldPathR\x05field\x12+\n" + + "\x04rule\x18\x06 \x01(\v2\x17.buf.validate.FieldPathR\x04rule\x12\x17\n" + + "\arule_id\x18\x02 \x01(\tR\x06ruleId\x12\x18\n" + + "\amessage\x18\x03 \x01(\tR\amessage\x12\x17\n" + + "\afor_key\x18\x04 \x01(\bR\x06forKeyJ\x04\b\x01\x10\x02R\n" + + "field_path\"G\n" + + "\tFieldPath\x12:\n" + + "\belements\x18\x01 \x03(\v2\x1e.buf.validate.FieldPathElementR\belements\"\xcc\x03\n" + + "\x10FieldPathElement\x12!\n" + + "\ffield_number\x18\x01 \x01(\x05R\vfieldNumber\x12\x1d\n" + + "\n" + + "field_name\x18\x02 \x01(\tR\tfieldName\x12I\n" + + "\n" + + "field_type\x18\x03 \x01(\x0e2*.google.protobuf.FieldDescriptorProto.TypeR\tfieldType\x12E\n" + + "\bkey_type\x18\x04 \x01(\x0e2*.google.protobuf.FieldDescriptorProto.TypeR\akeyType\x12I\n" + + "\n" + + "value_type\x18\x05 \x01(\x0e2*.google.protobuf.FieldDescriptorProto.TypeR\tvalueType\x12\x16\n" + + "\x05index\x18\x06 \x01(\x04H\x00R\x05index\x12\x1b\n" + + "\bbool_key\x18\a \x01(\bH\x00R\aboolKey\x12\x19\n" + + "\aint_key\x18\b \x01(\x03H\x00R\x06intKey\x12\x1b\n" + + "\buint_key\x18\t \x01(\x04H\x00R\auintKey\x12\x1f\n" + + "\n" + + "string_key\x18\n" + + " \x01(\tH\x00R\tstringKeyB\v\n" + + "\tsubscript*\xa1\x01\n" + + "\x06Ignore\x12\x16\n" + + "\x12IGNORE_UNSPECIFIED\x10\x00\x12\x18\n" + + "\x14IGNORE_IF_ZERO_VALUE\x10\x01\x12\x11\n" + + "\rIGNORE_ALWAYS\x10\x03\"\x04\b\x02\x10\x02*\fIGNORE_EMPTY*\x0eIGNORE_DEFAULT*\x17IGNORE_IF_DEFAULT_VALUE*\x15IGNORE_IF_UNPOPULATED*n\n" + + "\n" + + "KnownRegex\x12\x1b\n" + + "\x17KNOWN_REGEX_UNSPECIFIED\x10\x00\x12 \n" + + "\x1cKNOWN_REGEX_HTTP_HEADER_NAME\x10\x01\x12!\n" + + "\x1dKNOWN_REGEX_HTTP_HEADER_VALUE\x10\x02:V\n" + + "\amessage\x12\x1f.google.protobuf.MessageOptions\x18\x87\t \x01(\v2\x1a.buf.validate.MessageRulesR\amessage:N\n" + + "\x05oneof\x12\x1d.google.protobuf.OneofOptions\x18\x87\t \x01(\v2\x18.buf.validate.OneofRulesR\x05oneof:N\n" + + "\x05field\x12\x1d.google.protobuf.FieldOptions\x18\x87\t \x01(\v2\x18.buf.validate.FieldRulesR\x05field:]\n" + + "\n" + + "predefined\x12\x1d.google.protobuf.FieldOptions\x18\x88\t \x01(\v2\x1d.buf.validate.PredefinedRulesR\n" + + "predefinedB\xbb\x01\n" + + "\x10com.buf.validateB\rValidateProtoP\x01ZGbuf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate\xa2\x02\x03BVX\xaa\x02\fBuf.Validate\xca\x02\fBuf\\Validate\xe2\x02\x18Buf\\Validate\\GPBMetadata\xea\x02\rBuf::Validate" + +var ( + file_buf_validate_validate_proto_rawDescOnce sync.Once + file_buf_validate_validate_proto_rawDescData []byte +) + +func file_buf_validate_validate_proto_rawDescGZIP() []byte { + file_buf_validate_validate_proto_rawDescOnce.Do(func() { + file_buf_validate_validate_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_buf_validate_validate_proto_rawDesc), len(file_buf_validate_validate_proto_rawDesc))) + }) + return file_buf_validate_validate_proto_rawDescData +} + +var file_buf_validate_validate_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_buf_validate_validate_proto_msgTypes = make([]protoimpl.MessageInfo, 32) +var file_buf_validate_validate_proto_goTypes = []any{ + (Ignore)(0), // 0: buf.validate.Ignore + (KnownRegex)(0), // 1: buf.validate.KnownRegex + (*Rule)(nil), // 2: buf.validate.Rule + (*MessageRules)(nil), // 3: buf.validate.MessageRules + (*MessageOneofRule)(nil), // 4: buf.validate.MessageOneofRule + (*OneofRules)(nil), // 5: buf.validate.OneofRules + (*FieldRules)(nil), // 6: buf.validate.FieldRules + (*PredefinedRules)(nil), // 7: buf.validate.PredefinedRules + (*FloatRules)(nil), // 8: buf.validate.FloatRules + (*DoubleRules)(nil), // 9: buf.validate.DoubleRules + (*Int32Rules)(nil), // 10: buf.validate.Int32Rules + (*Int64Rules)(nil), // 11: buf.validate.Int64Rules + (*UInt32Rules)(nil), // 12: buf.validate.UInt32Rules + (*UInt64Rules)(nil), // 13: buf.validate.UInt64Rules + (*SInt32Rules)(nil), // 14: buf.validate.SInt32Rules + (*SInt64Rules)(nil), // 15: buf.validate.SInt64Rules + (*Fixed32Rules)(nil), // 16: buf.validate.Fixed32Rules + (*Fixed64Rules)(nil), // 17: buf.validate.Fixed64Rules + (*SFixed32Rules)(nil), // 18: buf.validate.SFixed32Rules + (*SFixed64Rules)(nil), // 19: buf.validate.SFixed64Rules + (*BoolRules)(nil), // 20: buf.validate.BoolRules + (*StringRules)(nil), // 21: buf.validate.StringRules + (*BytesRules)(nil), // 22: buf.validate.BytesRules + (*EnumRules)(nil), // 23: buf.validate.EnumRules + (*RepeatedRules)(nil), // 24: buf.validate.RepeatedRules + (*MapRules)(nil), // 25: buf.validate.MapRules + (*AnyRules)(nil), // 26: buf.validate.AnyRules + (*DurationRules)(nil), // 27: buf.validate.DurationRules + (*FieldMaskRules)(nil), // 28: buf.validate.FieldMaskRules + (*TimestampRules)(nil), // 29: buf.validate.TimestampRules + (*Violations)(nil), // 30: buf.validate.Violations + (*Violation)(nil), // 31: buf.validate.Violation + (*FieldPath)(nil), // 32: buf.validate.FieldPath + (*FieldPathElement)(nil), // 33: buf.validate.FieldPathElement + (*durationpb.Duration)(nil), // 34: google.protobuf.Duration + (*fieldmaskpb.FieldMask)(nil), // 35: google.protobuf.FieldMask + (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp + (descriptorpb.FieldDescriptorProto_Type)(0), // 37: google.protobuf.FieldDescriptorProto.Type + (*descriptorpb.MessageOptions)(nil), // 38: google.protobuf.MessageOptions + (*descriptorpb.OneofOptions)(nil), // 39: google.protobuf.OneofOptions + (*descriptorpb.FieldOptions)(nil), // 40: google.protobuf.FieldOptions +} +var file_buf_validate_validate_proto_depIdxs = []int32{ + 2, // 0: buf.validate.MessageRules.cel:type_name -> buf.validate.Rule + 4, // 1: buf.validate.MessageRules.oneof:type_name -> buf.validate.MessageOneofRule + 2, // 2: buf.validate.FieldRules.cel:type_name -> buf.validate.Rule + 0, // 3: buf.validate.FieldRules.ignore:type_name -> buf.validate.Ignore + 8, // 4: buf.validate.FieldRules.float:type_name -> buf.validate.FloatRules + 9, // 5: buf.validate.FieldRules.double:type_name -> buf.validate.DoubleRules + 10, // 6: buf.validate.FieldRules.int32:type_name -> buf.validate.Int32Rules + 11, // 7: buf.validate.FieldRules.int64:type_name -> buf.validate.Int64Rules + 12, // 8: buf.validate.FieldRules.uint32:type_name -> buf.validate.UInt32Rules + 13, // 9: buf.validate.FieldRules.uint64:type_name -> buf.validate.UInt64Rules + 14, // 10: buf.validate.FieldRules.sint32:type_name -> buf.validate.SInt32Rules + 15, // 11: buf.validate.FieldRules.sint64:type_name -> buf.validate.SInt64Rules + 16, // 12: buf.validate.FieldRules.fixed32:type_name -> buf.validate.Fixed32Rules + 17, // 13: buf.validate.FieldRules.fixed64:type_name -> buf.validate.Fixed64Rules + 18, // 14: buf.validate.FieldRules.sfixed32:type_name -> buf.validate.SFixed32Rules + 19, // 15: buf.validate.FieldRules.sfixed64:type_name -> buf.validate.SFixed64Rules + 20, // 16: buf.validate.FieldRules.bool:type_name -> buf.validate.BoolRules + 21, // 17: buf.validate.FieldRules.string:type_name -> buf.validate.StringRules + 22, // 18: buf.validate.FieldRules.bytes:type_name -> buf.validate.BytesRules + 23, // 19: buf.validate.FieldRules.enum:type_name -> buf.validate.EnumRules + 24, // 20: buf.validate.FieldRules.repeated:type_name -> buf.validate.RepeatedRules + 25, // 21: buf.validate.FieldRules.map:type_name -> buf.validate.MapRules + 26, // 22: buf.validate.FieldRules.any:type_name -> buf.validate.AnyRules + 27, // 23: buf.validate.FieldRules.duration:type_name -> buf.validate.DurationRules + 28, // 24: buf.validate.FieldRules.field_mask:type_name -> buf.validate.FieldMaskRules + 29, // 25: buf.validate.FieldRules.timestamp:type_name -> buf.validate.TimestampRules + 2, // 26: buf.validate.PredefinedRules.cel:type_name -> buf.validate.Rule + 1, // 27: buf.validate.StringRules.well_known_regex:type_name -> buf.validate.KnownRegex + 6, // 28: buf.validate.RepeatedRules.items:type_name -> buf.validate.FieldRules + 6, // 29: buf.validate.MapRules.keys:type_name -> buf.validate.FieldRules + 6, // 30: buf.validate.MapRules.values:type_name -> buf.validate.FieldRules + 34, // 31: buf.validate.DurationRules.const:type_name -> google.protobuf.Duration + 34, // 32: buf.validate.DurationRules.lt:type_name -> google.protobuf.Duration + 34, // 33: buf.validate.DurationRules.lte:type_name -> google.protobuf.Duration + 34, // 34: buf.validate.DurationRules.gt:type_name -> google.protobuf.Duration + 34, // 35: buf.validate.DurationRules.gte:type_name -> google.protobuf.Duration + 34, // 36: buf.validate.DurationRules.in:type_name -> google.protobuf.Duration + 34, // 37: buf.validate.DurationRules.not_in:type_name -> google.protobuf.Duration + 34, // 38: buf.validate.DurationRules.example:type_name -> google.protobuf.Duration + 35, // 39: buf.validate.FieldMaskRules.const:type_name -> google.protobuf.FieldMask + 35, // 40: buf.validate.FieldMaskRules.example:type_name -> google.protobuf.FieldMask + 36, // 41: buf.validate.TimestampRules.const:type_name -> google.protobuf.Timestamp + 36, // 42: buf.validate.TimestampRules.lt:type_name -> google.protobuf.Timestamp + 36, // 43: buf.validate.TimestampRules.lte:type_name -> google.protobuf.Timestamp + 36, // 44: buf.validate.TimestampRules.gt:type_name -> google.protobuf.Timestamp + 36, // 45: buf.validate.TimestampRules.gte:type_name -> google.protobuf.Timestamp + 34, // 46: buf.validate.TimestampRules.within:type_name -> google.protobuf.Duration + 36, // 47: buf.validate.TimestampRules.example:type_name -> google.protobuf.Timestamp + 31, // 48: buf.validate.Violations.violations:type_name -> buf.validate.Violation + 32, // 49: buf.validate.Violation.field:type_name -> buf.validate.FieldPath + 32, // 50: buf.validate.Violation.rule:type_name -> buf.validate.FieldPath + 33, // 51: buf.validate.FieldPath.elements:type_name -> buf.validate.FieldPathElement + 37, // 52: buf.validate.FieldPathElement.field_type:type_name -> google.protobuf.FieldDescriptorProto.Type + 37, // 53: buf.validate.FieldPathElement.key_type:type_name -> google.protobuf.FieldDescriptorProto.Type + 37, // 54: buf.validate.FieldPathElement.value_type:type_name -> google.protobuf.FieldDescriptorProto.Type + 38, // 55: buf.validate.message:extendee -> google.protobuf.MessageOptions + 39, // 56: buf.validate.oneof:extendee -> google.protobuf.OneofOptions + 40, // 57: buf.validate.field:extendee -> google.protobuf.FieldOptions + 40, // 58: buf.validate.predefined:extendee -> google.protobuf.FieldOptions + 3, // 59: buf.validate.message:type_name -> buf.validate.MessageRules + 5, // 60: buf.validate.oneof:type_name -> buf.validate.OneofRules + 6, // 61: buf.validate.field:type_name -> buf.validate.FieldRules + 7, // 62: buf.validate.predefined:type_name -> buf.validate.PredefinedRules + 63, // [63:63] is the sub-list for method output_type + 63, // [63:63] is the sub-list for method input_type + 59, // [59:63] is the sub-list for extension type_name + 55, // [55:59] is the sub-list for extension extendee + 0, // [0:55] is the sub-list for field type_name +} + +func init() { file_buf_validate_validate_proto_init() } +func file_buf_validate_validate_proto_init() { + if File_buf_validate_validate_proto != nil { + return + } + file_buf_validate_validate_proto_msgTypes[4].OneofWrappers = []any{ + (*FieldRules_Float)(nil), + (*FieldRules_Double)(nil), + (*FieldRules_Int32)(nil), + (*FieldRules_Int64)(nil), + (*FieldRules_Uint32)(nil), + (*FieldRules_Uint64)(nil), + (*FieldRules_Sint32)(nil), + (*FieldRules_Sint64)(nil), + (*FieldRules_Fixed32)(nil), + (*FieldRules_Fixed64)(nil), + (*FieldRules_Sfixed32)(nil), + (*FieldRules_Sfixed64)(nil), + (*FieldRules_Bool)(nil), + (*FieldRules_String_)(nil), + (*FieldRules_Bytes)(nil), + (*FieldRules_Enum)(nil), + (*FieldRules_Repeated)(nil), + (*FieldRules_Map)(nil), + (*FieldRules_Any)(nil), + (*FieldRules_Duration)(nil), + (*FieldRules_FieldMask)(nil), + (*FieldRules_Timestamp)(nil), + } + file_buf_validate_validate_proto_msgTypes[6].OneofWrappers = []any{ + (*FloatRules_Lt)(nil), + (*FloatRules_Lte)(nil), + (*FloatRules_Gt)(nil), + (*FloatRules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[7].OneofWrappers = []any{ + (*DoubleRules_Lt)(nil), + (*DoubleRules_Lte)(nil), + (*DoubleRules_Gt)(nil), + (*DoubleRules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[8].OneofWrappers = []any{ + (*Int32Rules_Lt)(nil), + (*Int32Rules_Lte)(nil), + (*Int32Rules_Gt)(nil), + (*Int32Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[9].OneofWrappers = []any{ + (*Int64Rules_Lt)(nil), + (*Int64Rules_Lte)(nil), + (*Int64Rules_Gt)(nil), + (*Int64Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[10].OneofWrappers = []any{ + (*UInt32Rules_Lt)(nil), + (*UInt32Rules_Lte)(nil), + (*UInt32Rules_Gt)(nil), + (*UInt32Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[11].OneofWrappers = []any{ + (*UInt64Rules_Lt)(nil), + (*UInt64Rules_Lte)(nil), + (*UInt64Rules_Gt)(nil), + (*UInt64Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[12].OneofWrappers = []any{ + (*SInt32Rules_Lt)(nil), + (*SInt32Rules_Lte)(nil), + (*SInt32Rules_Gt)(nil), + (*SInt32Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[13].OneofWrappers = []any{ + (*SInt64Rules_Lt)(nil), + (*SInt64Rules_Lte)(nil), + (*SInt64Rules_Gt)(nil), + (*SInt64Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[14].OneofWrappers = []any{ + (*Fixed32Rules_Lt)(nil), + (*Fixed32Rules_Lte)(nil), + (*Fixed32Rules_Gt)(nil), + (*Fixed32Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[15].OneofWrappers = []any{ + (*Fixed64Rules_Lt)(nil), + (*Fixed64Rules_Lte)(nil), + (*Fixed64Rules_Gt)(nil), + (*Fixed64Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[16].OneofWrappers = []any{ + (*SFixed32Rules_Lt)(nil), + (*SFixed32Rules_Lte)(nil), + (*SFixed32Rules_Gt)(nil), + (*SFixed32Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[17].OneofWrappers = []any{ + (*SFixed64Rules_Lt)(nil), + (*SFixed64Rules_Lte)(nil), + (*SFixed64Rules_Gt)(nil), + (*SFixed64Rules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[19].OneofWrappers = []any{ + (*StringRules_Email)(nil), + (*StringRules_Hostname)(nil), + (*StringRules_Ip)(nil), + (*StringRules_Ipv4)(nil), + (*StringRules_Ipv6)(nil), + (*StringRules_Uri)(nil), + (*StringRules_UriRef)(nil), + (*StringRules_Address)(nil), + (*StringRules_Uuid)(nil), + (*StringRules_Tuuid)(nil), + (*StringRules_IpWithPrefixlen)(nil), + (*StringRules_Ipv4WithPrefixlen)(nil), + (*StringRules_Ipv6WithPrefixlen)(nil), + (*StringRules_IpPrefix)(nil), + (*StringRules_Ipv4Prefix)(nil), + (*StringRules_Ipv6Prefix)(nil), + (*StringRules_HostAndPort)(nil), + (*StringRules_Ulid)(nil), + (*StringRules_WellKnownRegex)(nil), + } + file_buf_validate_validate_proto_msgTypes[20].OneofWrappers = []any{ + (*BytesRules_Ip)(nil), + (*BytesRules_Ipv4)(nil), + (*BytesRules_Ipv6)(nil), + (*BytesRules_Uuid)(nil), + } + file_buf_validate_validate_proto_msgTypes[25].OneofWrappers = []any{ + (*DurationRules_Lt)(nil), + (*DurationRules_Lte)(nil), + (*DurationRules_Gt)(nil), + (*DurationRules_Gte)(nil), + } + file_buf_validate_validate_proto_msgTypes[27].OneofWrappers = []any{ + (*TimestampRules_Lt)(nil), + (*TimestampRules_Lte)(nil), + (*TimestampRules_LtNow)(nil), + (*TimestampRules_Gt)(nil), + (*TimestampRules_Gte)(nil), + (*TimestampRules_GtNow)(nil), + } + file_buf_validate_validate_proto_msgTypes[31].OneofWrappers = []any{ + (*FieldPathElement_Index)(nil), + (*FieldPathElement_BoolKey)(nil), + (*FieldPathElement_IntKey)(nil), + (*FieldPathElement_UintKey)(nil), + (*FieldPathElement_StringKey)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_buf_validate_validate_proto_rawDesc), len(file_buf_validate_validate_proto_rawDesc)), + NumEnums: 2, + NumMessages: 32, + NumExtensions: 4, + NumServices: 0, + }, + GoTypes: file_buf_validate_validate_proto_goTypes, + DependencyIndexes: file_buf_validate_validate_proto_depIdxs, + EnumInfos: file_buf_validate_validate_proto_enumTypes, + MessageInfos: file_buf_validate_validate_proto_msgTypes, + ExtensionInfos: file_buf_validate_validate_proto_extTypes, + }.Build() + File_buf_validate_validate_proto = out.File + file_buf_validate_validate_proto_goTypes = nil + file_buf_validate_validate_proto_depIdxs = nil +} diff --git a/proto/compassv1beta1/compassv1beta1connect/service.connect.go b/proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go similarity index 60% rename from proto/compassv1beta1/compassv1beta1connect/service.connect.go rename to proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go index 87d50674..4d604b3a 100644 --- a/proto/compassv1beta1/compassv1beta1connect/service.connect.go +++ b/proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go @@ -8,7 +8,7 @@ import ( connect "connectrpc.com/connect" context "context" errors "errors" - compassv1beta1 "github.com/raystack/compass/proto/compassv1beta1" + v1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" http "net/http" strings "strings" ) @@ -166,53 +166,53 @@ const ( // CompassServiceClient is a client for the raystack.compass.v1beta1.CompassService service. type CompassServiceClient interface { // Domain: Discussion - GetAllDiscussions(context.Context, *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) - CreateDiscussion(context.Context, *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) - GetDiscussion(context.Context, *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) - PatchDiscussion(context.Context, *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) - CreateComment(context.Context, *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) - GetAllComments(context.Context, *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) - GetComment(context.Context, *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) - UpdateComment(context.Context, *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) - DeleteComment(context.Context, *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) + GetAllDiscussions(context.Context, *connect.Request[v1beta1.GetAllDiscussionsRequest]) (*connect.Response[v1beta1.GetAllDiscussionsResponse], error) + CreateDiscussion(context.Context, *connect.Request[v1beta1.CreateDiscussionRequest]) (*connect.Response[v1beta1.CreateDiscussionResponse], error) + GetDiscussion(context.Context, *connect.Request[v1beta1.GetDiscussionRequest]) (*connect.Response[v1beta1.GetDiscussionResponse], error) + PatchDiscussion(context.Context, *connect.Request[v1beta1.PatchDiscussionRequest]) (*connect.Response[v1beta1.PatchDiscussionResponse], error) + CreateComment(context.Context, *connect.Request[v1beta1.CreateCommentRequest]) (*connect.Response[v1beta1.CreateCommentResponse], error) + GetAllComments(context.Context, *connect.Request[v1beta1.GetAllCommentsRequest]) (*connect.Response[v1beta1.GetAllCommentsResponse], error) + GetComment(context.Context, *connect.Request[v1beta1.GetCommentRequest]) (*connect.Response[v1beta1.GetCommentResponse], error) + UpdateComment(context.Context, *connect.Request[v1beta1.UpdateCommentRequest]) (*connect.Response[v1beta1.UpdateCommentResponse], error) + DeleteComment(context.Context, *connect.Request[v1beta1.DeleteCommentRequest]) (*connect.Response[v1beta1.DeleteCommentResponse], error) // Domain: Asset - SearchAssets(context.Context, *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) - SuggestAssets(context.Context, *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) - GroupAssets(context.Context, *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) - GetGraph(context.Context, *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) - GetAllTypes(context.Context, *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) - GetAllAssets(context.Context, *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) - GetAssetByID(context.Context, *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) - UpsertAsset(context.Context, *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) - UpsertPatchAsset(context.Context, *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) - DeleteAsset(context.Context, *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) - GetAssetStargazers(context.Context, *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) - GetAssetVersionHistory(context.Context, *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) - GetAssetByVersion(context.Context, *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) - CreateAssetProbe(context.Context, *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) + SearchAssets(context.Context, *connect.Request[v1beta1.SearchAssetsRequest]) (*connect.Response[v1beta1.SearchAssetsResponse], error) + SuggestAssets(context.Context, *connect.Request[v1beta1.SuggestAssetsRequest]) (*connect.Response[v1beta1.SuggestAssetsResponse], error) + GroupAssets(context.Context, *connect.Request[v1beta1.GroupAssetsRequest]) (*connect.Response[v1beta1.GroupAssetsResponse], error) + GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) + GetAllTypes(context.Context, *connect.Request[v1beta1.GetAllTypesRequest]) (*connect.Response[v1beta1.GetAllTypesResponse], error) + GetAllAssets(context.Context, *connect.Request[v1beta1.GetAllAssetsRequest]) (*connect.Response[v1beta1.GetAllAssetsResponse], error) + GetAssetByID(context.Context, *connect.Request[v1beta1.GetAssetByIDRequest]) (*connect.Response[v1beta1.GetAssetByIDResponse], error) + UpsertAsset(context.Context, *connect.Request[v1beta1.UpsertAssetRequest]) (*connect.Response[v1beta1.UpsertAssetResponse], error) + UpsertPatchAsset(context.Context, *connect.Request[v1beta1.UpsertPatchAssetRequest]) (*connect.Response[v1beta1.UpsertPatchAssetResponse], error) + DeleteAsset(context.Context, *connect.Request[v1beta1.DeleteAssetRequest]) (*connect.Response[v1beta1.DeleteAssetResponse], error) + GetAssetStargazers(context.Context, *connect.Request[v1beta1.GetAssetStargazersRequest]) (*connect.Response[v1beta1.GetAssetStargazersResponse], error) + GetAssetVersionHistory(context.Context, *connect.Request[v1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[v1beta1.GetAssetVersionHistoryResponse], error) + GetAssetByVersion(context.Context, *connect.Request[v1beta1.GetAssetByVersionRequest]) (*connect.Response[v1beta1.GetAssetByVersionResponse], error) + CreateAssetProbe(context.Context, *connect.Request[v1beta1.CreateAssetProbeRequest]) (*connect.Response[v1beta1.CreateAssetProbeResponse], error) // Domain: User * Star - GetUserStarredAssets(context.Context, *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) - GetMyStarredAssets(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) - GetMyStarredAsset(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) - StarAsset(context.Context, *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) - UnstarAsset(context.Context, *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) - GetMyDiscussions(context.Context, *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) + GetUserStarredAssets(context.Context, *connect.Request[v1beta1.GetUserStarredAssetsRequest]) (*connect.Response[v1beta1.GetUserStarredAssetsResponse], error) + GetMyStarredAssets(context.Context, *connect.Request[v1beta1.GetMyStarredAssetsRequest]) (*connect.Response[v1beta1.GetMyStarredAssetsResponse], error) + GetMyStarredAsset(context.Context, *connect.Request[v1beta1.GetMyStarredAssetRequest]) (*connect.Response[v1beta1.GetMyStarredAssetResponse], error) + StarAsset(context.Context, *connect.Request[v1beta1.StarAssetRequest]) (*connect.Response[v1beta1.StarAssetResponse], error) + UnstarAsset(context.Context, *connect.Request[v1beta1.UnstarAssetRequest]) (*connect.Response[v1beta1.UnstarAssetResponse], error) + GetMyDiscussions(context.Context, *connect.Request[v1beta1.GetMyDiscussionsRequest]) (*connect.Response[v1beta1.GetMyDiscussionsResponse], error) // Domain: Tag Templates - CreateTagAsset(context.Context, *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) - GetTagByAssetAndTemplate(context.Context, *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) - UpdateTagAsset(context.Context, *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) - DeleteTagAsset(context.Context, *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) - GetAllTagsByAsset(context.Context, *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) - GetAllTagTemplates(context.Context, *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) - CreateTagTemplate(context.Context, *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) - GetTagTemplate(context.Context, *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) - UpdateTagTemplate(context.Context, *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) - DeleteTagTemplate(context.Context, *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) + CreateTagAsset(context.Context, *connect.Request[v1beta1.CreateTagAssetRequest]) (*connect.Response[v1beta1.CreateTagAssetResponse], error) + GetTagByAssetAndTemplate(context.Context, *connect.Request[v1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[v1beta1.GetTagByAssetAndTemplateResponse], error) + UpdateTagAsset(context.Context, *connect.Request[v1beta1.UpdateTagAssetRequest]) (*connect.Response[v1beta1.UpdateTagAssetResponse], error) + DeleteTagAsset(context.Context, *connect.Request[v1beta1.DeleteTagAssetRequest]) (*connect.Response[v1beta1.DeleteTagAssetResponse], error) + GetAllTagsByAsset(context.Context, *connect.Request[v1beta1.GetAllTagsByAssetRequest]) (*connect.Response[v1beta1.GetAllTagsByAssetResponse], error) + GetAllTagTemplates(context.Context, *connect.Request[v1beta1.GetAllTagTemplatesRequest]) (*connect.Response[v1beta1.GetAllTagTemplatesResponse], error) + CreateTagTemplate(context.Context, *connect.Request[v1beta1.CreateTagTemplateRequest]) (*connect.Response[v1beta1.CreateTagTemplateResponse], error) + GetTagTemplate(context.Context, *connect.Request[v1beta1.GetTagTemplateRequest]) (*connect.Response[v1beta1.GetTagTemplateResponse], error) + UpdateTagTemplate(context.Context, *connect.Request[v1beta1.UpdateTagTemplateRequest]) (*connect.Response[v1beta1.UpdateTagTemplateResponse], error) + DeleteTagTemplate(context.Context, *connect.Request[v1beta1.DeleteTagTemplateRequest]) (*connect.Response[v1beta1.DeleteTagTemplateResponse], error) // Domain: Namespace - CreateNamespace(context.Context, *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) - GetNamespace(context.Context, *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) - UpdateNamespace(context.Context, *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) - ListNamespaces(context.Context, *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) + CreateNamespace(context.Context, *connect.Request[v1beta1.CreateNamespaceRequest]) (*connect.Response[v1beta1.CreateNamespaceResponse], error) + GetNamespace(context.Context, *connect.Request[v1beta1.GetNamespaceRequest]) (*connect.Response[v1beta1.GetNamespaceResponse], error) + UpdateNamespace(context.Context, *connect.Request[v1beta1.UpdateNamespaceRequest]) (*connect.Response[v1beta1.UpdateNamespaceResponse], error) + ListNamespaces(context.Context, *connect.Request[v1beta1.ListNamespacesRequest]) (*connect.Response[v1beta1.ListNamespacesResponse], error) } // NewCompassServiceClient constructs a client for the raystack.compass.v1beta1.CompassService @@ -224,261 +224,261 @@ type CompassServiceClient interface { // http://api.acme.com or https://acme.com/grpc). func NewCompassServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) CompassServiceClient { baseURL = strings.TrimRight(baseURL, "/") - compassServiceMethods := compassv1beta1.File_raystack_compass_v1beta1_service_proto.Services().ByName("CompassService").Methods() + compassServiceMethods := v1beta1.File_raystack_compass_v1beta1_service_proto.Services().ByName("CompassService").Methods() return &compassServiceClient{ - getAllDiscussions: connect.NewClient[compassv1beta1.GetAllDiscussionsRequest, compassv1beta1.GetAllDiscussionsResponse]( + getAllDiscussions: connect.NewClient[v1beta1.GetAllDiscussionsRequest, v1beta1.GetAllDiscussionsResponse]( httpClient, baseURL+CompassServiceGetAllDiscussionsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllDiscussions")), connect.WithClientOptions(opts...), ), - createDiscussion: connect.NewClient[compassv1beta1.CreateDiscussionRequest, compassv1beta1.CreateDiscussionResponse]( + createDiscussion: connect.NewClient[v1beta1.CreateDiscussionRequest, v1beta1.CreateDiscussionResponse]( httpClient, baseURL+CompassServiceCreateDiscussionProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateDiscussion")), connect.WithClientOptions(opts...), ), - getDiscussion: connect.NewClient[compassv1beta1.GetDiscussionRequest, compassv1beta1.GetDiscussionResponse]( + getDiscussion: connect.NewClient[v1beta1.GetDiscussionRequest, v1beta1.GetDiscussionResponse]( httpClient, baseURL+CompassServiceGetDiscussionProcedure, connect.WithSchema(compassServiceMethods.ByName("GetDiscussion")), connect.WithClientOptions(opts...), ), - patchDiscussion: connect.NewClient[compassv1beta1.PatchDiscussionRequest, compassv1beta1.PatchDiscussionResponse]( + patchDiscussion: connect.NewClient[v1beta1.PatchDiscussionRequest, v1beta1.PatchDiscussionResponse]( httpClient, baseURL+CompassServicePatchDiscussionProcedure, connect.WithSchema(compassServiceMethods.ByName("PatchDiscussion")), connect.WithClientOptions(opts...), ), - createComment: connect.NewClient[compassv1beta1.CreateCommentRequest, compassv1beta1.CreateCommentResponse]( + createComment: connect.NewClient[v1beta1.CreateCommentRequest, v1beta1.CreateCommentResponse]( httpClient, baseURL+CompassServiceCreateCommentProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateComment")), connect.WithClientOptions(opts...), ), - getAllComments: connect.NewClient[compassv1beta1.GetAllCommentsRequest, compassv1beta1.GetAllCommentsResponse]( + getAllComments: connect.NewClient[v1beta1.GetAllCommentsRequest, v1beta1.GetAllCommentsResponse]( httpClient, baseURL+CompassServiceGetAllCommentsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllComments")), connect.WithClientOptions(opts...), ), - getComment: connect.NewClient[compassv1beta1.GetCommentRequest, compassv1beta1.GetCommentResponse]( + getComment: connect.NewClient[v1beta1.GetCommentRequest, v1beta1.GetCommentResponse]( httpClient, baseURL+CompassServiceGetCommentProcedure, connect.WithSchema(compassServiceMethods.ByName("GetComment")), connect.WithClientOptions(opts...), ), - updateComment: connect.NewClient[compassv1beta1.UpdateCommentRequest, compassv1beta1.UpdateCommentResponse]( + updateComment: connect.NewClient[v1beta1.UpdateCommentRequest, v1beta1.UpdateCommentResponse]( httpClient, baseURL+CompassServiceUpdateCommentProcedure, connect.WithSchema(compassServiceMethods.ByName("UpdateComment")), connect.WithClientOptions(opts...), ), - deleteComment: connect.NewClient[compassv1beta1.DeleteCommentRequest, compassv1beta1.DeleteCommentResponse]( + deleteComment: connect.NewClient[v1beta1.DeleteCommentRequest, v1beta1.DeleteCommentResponse]( httpClient, baseURL+CompassServiceDeleteCommentProcedure, connect.WithSchema(compassServiceMethods.ByName("DeleteComment")), connect.WithClientOptions(opts...), ), - searchAssets: connect.NewClient[compassv1beta1.SearchAssetsRequest, compassv1beta1.SearchAssetsResponse]( + searchAssets: connect.NewClient[v1beta1.SearchAssetsRequest, v1beta1.SearchAssetsResponse]( httpClient, baseURL+CompassServiceSearchAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("SearchAssets")), connect.WithClientOptions(opts...), ), - suggestAssets: connect.NewClient[compassv1beta1.SuggestAssetsRequest, compassv1beta1.SuggestAssetsResponse]( + suggestAssets: connect.NewClient[v1beta1.SuggestAssetsRequest, v1beta1.SuggestAssetsResponse]( httpClient, baseURL+CompassServiceSuggestAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("SuggestAssets")), connect.WithClientOptions(opts...), ), - groupAssets: connect.NewClient[compassv1beta1.GroupAssetsRequest, compassv1beta1.GroupAssetsResponse]( + groupAssets: connect.NewClient[v1beta1.GroupAssetsRequest, v1beta1.GroupAssetsResponse]( httpClient, baseURL+CompassServiceGroupAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("GroupAssets")), connect.WithClientOptions(opts...), ), - getGraph: connect.NewClient[compassv1beta1.GetGraphRequest, compassv1beta1.GetGraphResponse]( + getGraph: connect.NewClient[v1beta1.GetGraphRequest, v1beta1.GetGraphResponse]( httpClient, baseURL+CompassServiceGetGraphProcedure, connect.WithSchema(compassServiceMethods.ByName("GetGraph")), connect.WithClientOptions(opts...), ), - getAllTypes: connect.NewClient[compassv1beta1.GetAllTypesRequest, compassv1beta1.GetAllTypesResponse]( + getAllTypes: connect.NewClient[v1beta1.GetAllTypesRequest, v1beta1.GetAllTypesResponse]( httpClient, baseURL+CompassServiceGetAllTypesProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllTypes")), connect.WithClientOptions(opts...), ), - getAllAssets: connect.NewClient[compassv1beta1.GetAllAssetsRequest, compassv1beta1.GetAllAssetsResponse]( + getAllAssets: connect.NewClient[v1beta1.GetAllAssetsRequest, v1beta1.GetAllAssetsResponse]( httpClient, baseURL+CompassServiceGetAllAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllAssets")), connect.WithClientOptions(opts...), ), - getAssetByID: connect.NewClient[compassv1beta1.GetAssetByIDRequest, compassv1beta1.GetAssetByIDResponse]( + getAssetByID: connect.NewClient[v1beta1.GetAssetByIDRequest, v1beta1.GetAssetByIDResponse]( httpClient, baseURL+CompassServiceGetAssetByIDProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAssetByID")), connect.WithClientOptions(opts...), ), - upsertAsset: connect.NewClient[compassv1beta1.UpsertAssetRequest, compassv1beta1.UpsertAssetResponse]( + upsertAsset: connect.NewClient[v1beta1.UpsertAssetRequest, v1beta1.UpsertAssetResponse]( httpClient, baseURL+CompassServiceUpsertAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("UpsertAsset")), connect.WithClientOptions(opts...), ), - upsertPatchAsset: connect.NewClient[compassv1beta1.UpsertPatchAssetRequest, compassv1beta1.UpsertPatchAssetResponse]( + upsertPatchAsset: connect.NewClient[v1beta1.UpsertPatchAssetRequest, v1beta1.UpsertPatchAssetResponse]( httpClient, baseURL+CompassServiceUpsertPatchAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("UpsertPatchAsset")), connect.WithClientOptions(opts...), ), - deleteAsset: connect.NewClient[compassv1beta1.DeleteAssetRequest, compassv1beta1.DeleteAssetResponse]( + deleteAsset: connect.NewClient[v1beta1.DeleteAssetRequest, v1beta1.DeleteAssetResponse]( httpClient, baseURL+CompassServiceDeleteAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("DeleteAsset")), connect.WithClientOptions(opts...), ), - getAssetStargazers: connect.NewClient[compassv1beta1.GetAssetStargazersRequest, compassv1beta1.GetAssetStargazersResponse]( + getAssetStargazers: connect.NewClient[v1beta1.GetAssetStargazersRequest, v1beta1.GetAssetStargazersResponse]( httpClient, baseURL+CompassServiceGetAssetStargazersProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAssetStargazers")), connect.WithClientOptions(opts...), ), - getAssetVersionHistory: connect.NewClient[compassv1beta1.GetAssetVersionHistoryRequest, compassv1beta1.GetAssetVersionHistoryResponse]( + getAssetVersionHistory: connect.NewClient[v1beta1.GetAssetVersionHistoryRequest, v1beta1.GetAssetVersionHistoryResponse]( httpClient, baseURL+CompassServiceGetAssetVersionHistoryProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAssetVersionHistory")), connect.WithClientOptions(opts...), ), - getAssetByVersion: connect.NewClient[compassv1beta1.GetAssetByVersionRequest, compassv1beta1.GetAssetByVersionResponse]( + getAssetByVersion: connect.NewClient[v1beta1.GetAssetByVersionRequest, v1beta1.GetAssetByVersionResponse]( httpClient, baseURL+CompassServiceGetAssetByVersionProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAssetByVersion")), connect.WithClientOptions(opts...), ), - createAssetProbe: connect.NewClient[compassv1beta1.CreateAssetProbeRequest, compassv1beta1.CreateAssetProbeResponse]( + createAssetProbe: connect.NewClient[v1beta1.CreateAssetProbeRequest, v1beta1.CreateAssetProbeResponse]( httpClient, baseURL+CompassServiceCreateAssetProbeProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateAssetProbe")), connect.WithClientOptions(opts...), ), - getUserStarredAssets: connect.NewClient[compassv1beta1.GetUserStarredAssetsRequest, compassv1beta1.GetUserStarredAssetsResponse]( + getUserStarredAssets: connect.NewClient[v1beta1.GetUserStarredAssetsRequest, v1beta1.GetUserStarredAssetsResponse]( httpClient, baseURL+CompassServiceGetUserStarredAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetUserStarredAssets")), connect.WithClientOptions(opts...), ), - getMyStarredAssets: connect.NewClient[compassv1beta1.GetMyStarredAssetsRequest, compassv1beta1.GetMyStarredAssetsResponse]( + getMyStarredAssets: connect.NewClient[v1beta1.GetMyStarredAssetsRequest, v1beta1.GetMyStarredAssetsResponse]( httpClient, baseURL+CompassServiceGetMyStarredAssetsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetMyStarredAssets")), connect.WithClientOptions(opts...), ), - getMyStarredAsset: connect.NewClient[compassv1beta1.GetMyStarredAssetRequest, compassv1beta1.GetMyStarredAssetResponse]( + getMyStarredAsset: connect.NewClient[v1beta1.GetMyStarredAssetRequest, v1beta1.GetMyStarredAssetResponse]( httpClient, baseURL+CompassServiceGetMyStarredAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("GetMyStarredAsset")), connect.WithClientOptions(opts...), ), - starAsset: connect.NewClient[compassv1beta1.StarAssetRequest, compassv1beta1.StarAssetResponse]( + starAsset: connect.NewClient[v1beta1.StarAssetRequest, v1beta1.StarAssetResponse]( httpClient, baseURL+CompassServiceStarAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("StarAsset")), connect.WithClientOptions(opts...), ), - unstarAsset: connect.NewClient[compassv1beta1.UnstarAssetRequest, compassv1beta1.UnstarAssetResponse]( + unstarAsset: connect.NewClient[v1beta1.UnstarAssetRequest, v1beta1.UnstarAssetResponse]( httpClient, baseURL+CompassServiceUnstarAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("UnstarAsset")), connect.WithClientOptions(opts...), ), - getMyDiscussions: connect.NewClient[compassv1beta1.GetMyDiscussionsRequest, compassv1beta1.GetMyDiscussionsResponse]( + getMyDiscussions: connect.NewClient[v1beta1.GetMyDiscussionsRequest, v1beta1.GetMyDiscussionsResponse]( httpClient, baseURL+CompassServiceGetMyDiscussionsProcedure, connect.WithSchema(compassServiceMethods.ByName("GetMyDiscussions")), connect.WithClientOptions(opts...), ), - createTagAsset: connect.NewClient[compassv1beta1.CreateTagAssetRequest, compassv1beta1.CreateTagAssetResponse]( + createTagAsset: connect.NewClient[v1beta1.CreateTagAssetRequest, v1beta1.CreateTagAssetResponse]( httpClient, baseURL+CompassServiceCreateTagAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateTagAsset")), connect.WithClientOptions(opts...), ), - getTagByAssetAndTemplate: connect.NewClient[compassv1beta1.GetTagByAssetAndTemplateRequest, compassv1beta1.GetTagByAssetAndTemplateResponse]( + getTagByAssetAndTemplate: connect.NewClient[v1beta1.GetTagByAssetAndTemplateRequest, v1beta1.GetTagByAssetAndTemplateResponse]( httpClient, baseURL+CompassServiceGetTagByAssetAndTemplateProcedure, connect.WithSchema(compassServiceMethods.ByName("GetTagByAssetAndTemplate")), connect.WithClientOptions(opts...), ), - updateTagAsset: connect.NewClient[compassv1beta1.UpdateTagAssetRequest, compassv1beta1.UpdateTagAssetResponse]( + updateTagAsset: connect.NewClient[v1beta1.UpdateTagAssetRequest, v1beta1.UpdateTagAssetResponse]( httpClient, baseURL+CompassServiceUpdateTagAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("UpdateTagAsset")), connect.WithClientOptions(opts...), ), - deleteTagAsset: connect.NewClient[compassv1beta1.DeleteTagAssetRequest, compassv1beta1.DeleteTagAssetResponse]( + deleteTagAsset: connect.NewClient[v1beta1.DeleteTagAssetRequest, v1beta1.DeleteTagAssetResponse]( httpClient, baseURL+CompassServiceDeleteTagAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("DeleteTagAsset")), connect.WithClientOptions(opts...), ), - getAllTagsByAsset: connect.NewClient[compassv1beta1.GetAllTagsByAssetRequest, compassv1beta1.GetAllTagsByAssetResponse]( + getAllTagsByAsset: connect.NewClient[v1beta1.GetAllTagsByAssetRequest, v1beta1.GetAllTagsByAssetResponse]( httpClient, baseURL+CompassServiceGetAllTagsByAssetProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllTagsByAsset")), connect.WithClientOptions(opts...), ), - getAllTagTemplates: connect.NewClient[compassv1beta1.GetAllTagTemplatesRequest, compassv1beta1.GetAllTagTemplatesResponse]( + getAllTagTemplates: connect.NewClient[v1beta1.GetAllTagTemplatesRequest, v1beta1.GetAllTagTemplatesResponse]( httpClient, baseURL+CompassServiceGetAllTagTemplatesProcedure, connect.WithSchema(compassServiceMethods.ByName("GetAllTagTemplates")), connect.WithClientOptions(opts...), ), - createTagTemplate: connect.NewClient[compassv1beta1.CreateTagTemplateRequest, compassv1beta1.CreateTagTemplateResponse]( + createTagTemplate: connect.NewClient[v1beta1.CreateTagTemplateRequest, v1beta1.CreateTagTemplateResponse]( httpClient, baseURL+CompassServiceCreateTagTemplateProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateTagTemplate")), connect.WithClientOptions(opts...), ), - getTagTemplate: connect.NewClient[compassv1beta1.GetTagTemplateRequest, compassv1beta1.GetTagTemplateResponse]( + getTagTemplate: connect.NewClient[v1beta1.GetTagTemplateRequest, v1beta1.GetTagTemplateResponse]( httpClient, baseURL+CompassServiceGetTagTemplateProcedure, connect.WithSchema(compassServiceMethods.ByName("GetTagTemplate")), connect.WithClientOptions(opts...), ), - updateTagTemplate: connect.NewClient[compassv1beta1.UpdateTagTemplateRequest, compassv1beta1.UpdateTagTemplateResponse]( + updateTagTemplate: connect.NewClient[v1beta1.UpdateTagTemplateRequest, v1beta1.UpdateTagTemplateResponse]( httpClient, baseURL+CompassServiceUpdateTagTemplateProcedure, connect.WithSchema(compassServiceMethods.ByName("UpdateTagTemplate")), connect.WithClientOptions(opts...), ), - deleteTagTemplate: connect.NewClient[compassv1beta1.DeleteTagTemplateRequest, compassv1beta1.DeleteTagTemplateResponse]( + deleteTagTemplate: connect.NewClient[v1beta1.DeleteTagTemplateRequest, v1beta1.DeleteTagTemplateResponse]( httpClient, baseURL+CompassServiceDeleteTagTemplateProcedure, connect.WithSchema(compassServiceMethods.ByName("DeleteTagTemplate")), connect.WithClientOptions(opts...), ), - createNamespace: connect.NewClient[compassv1beta1.CreateNamespaceRequest, compassv1beta1.CreateNamespaceResponse]( + createNamespace: connect.NewClient[v1beta1.CreateNamespaceRequest, v1beta1.CreateNamespaceResponse]( httpClient, baseURL+CompassServiceCreateNamespaceProcedure, connect.WithSchema(compassServiceMethods.ByName("CreateNamespace")), connect.WithClientOptions(opts...), ), - getNamespace: connect.NewClient[compassv1beta1.GetNamespaceRequest, compassv1beta1.GetNamespaceResponse]( + getNamespace: connect.NewClient[v1beta1.GetNamespaceRequest, v1beta1.GetNamespaceResponse]( httpClient, baseURL+CompassServiceGetNamespaceProcedure, connect.WithSchema(compassServiceMethods.ByName("GetNamespace")), connect.WithClientOptions(opts...), ), - updateNamespace: connect.NewClient[compassv1beta1.UpdateNamespaceRequest, compassv1beta1.UpdateNamespaceResponse]( + updateNamespace: connect.NewClient[v1beta1.UpdateNamespaceRequest, v1beta1.UpdateNamespaceResponse]( httpClient, baseURL+CompassServiceUpdateNamespaceProcedure, connect.WithSchema(compassServiceMethods.ByName("UpdateNamespace")), connect.WithClientOptions(opts...), ), - listNamespaces: connect.NewClient[compassv1beta1.ListNamespacesRequest, compassv1beta1.ListNamespacesResponse]( + listNamespaces: connect.NewClient[v1beta1.ListNamespacesRequest, v1beta1.ListNamespacesResponse]( httpClient, baseURL+CompassServiceListNamespacesProcedure, connect.WithSchema(compassServiceMethods.ByName("ListNamespaces")), @@ -489,263 +489,263 @@ func NewCompassServiceClient(httpClient connect.HTTPClient, baseURL string, opts // compassServiceClient implements CompassServiceClient. type compassServiceClient struct { - getAllDiscussions *connect.Client[compassv1beta1.GetAllDiscussionsRequest, compassv1beta1.GetAllDiscussionsResponse] - createDiscussion *connect.Client[compassv1beta1.CreateDiscussionRequest, compassv1beta1.CreateDiscussionResponse] - getDiscussion *connect.Client[compassv1beta1.GetDiscussionRequest, compassv1beta1.GetDiscussionResponse] - patchDiscussion *connect.Client[compassv1beta1.PatchDiscussionRequest, compassv1beta1.PatchDiscussionResponse] - createComment *connect.Client[compassv1beta1.CreateCommentRequest, compassv1beta1.CreateCommentResponse] - getAllComments *connect.Client[compassv1beta1.GetAllCommentsRequest, compassv1beta1.GetAllCommentsResponse] - getComment *connect.Client[compassv1beta1.GetCommentRequest, compassv1beta1.GetCommentResponse] - updateComment *connect.Client[compassv1beta1.UpdateCommentRequest, compassv1beta1.UpdateCommentResponse] - deleteComment *connect.Client[compassv1beta1.DeleteCommentRequest, compassv1beta1.DeleteCommentResponse] - searchAssets *connect.Client[compassv1beta1.SearchAssetsRequest, compassv1beta1.SearchAssetsResponse] - suggestAssets *connect.Client[compassv1beta1.SuggestAssetsRequest, compassv1beta1.SuggestAssetsResponse] - groupAssets *connect.Client[compassv1beta1.GroupAssetsRequest, compassv1beta1.GroupAssetsResponse] - getGraph *connect.Client[compassv1beta1.GetGraphRequest, compassv1beta1.GetGraphResponse] - getAllTypes *connect.Client[compassv1beta1.GetAllTypesRequest, compassv1beta1.GetAllTypesResponse] - getAllAssets *connect.Client[compassv1beta1.GetAllAssetsRequest, compassv1beta1.GetAllAssetsResponse] - getAssetByID *connect.Client[compassv1beta1.GetAssetByIDRequest, compassv1beta1.GetAssetByIDResponse] - upsertAsset *connect.Client[compassv1beta1.UpsertAssetRequest, compassv1beta1.UpsertAssetResponse] - upsertPatchAsset *connect.Client[compassv1beta1.UpsertPatchAssetRequest, compassv1beta1.UpsertPatchAssetResponse] - deleteAsset *connect.Client[compassv1beta1.DeleteAssetRequest, compassv1beta1.DeleteAssetResponse] - getAssetStargazers *connect.Client[compassv1beta1.GetAssetStargazersRequest, compassv1beta1.GetAssetStargazersResponse] - getAssetVersionHistory *connect.Client[compassv1beta1.GetAssetVersionHistoryRequest, compassv1beta1.GetAssetVersionHistoryResponse] - getAssetByVersion *connect.Client[compassv1beta1.GetAssetByVersionRequest, compassv1beta1.GetAssetByVersionResponse] - createAssetProbe *connect.Client[compassv1beta1.CreateAssetProbeRequest, compassv1beta1.CreateAssetProbeResponse] - getUserStarredAssets *connect.Client[compassv1beta1.GetUserStarredAssetsRequest, compassv1beta1.GetUserStarredAssetsResponse] - getMyStarredAssets *connect.Client[compassv1beta1.GetMyStarredAssetsRequest, compassv1beta1.GetMyStarredAssetsResponse] - getMyStarredAsset *connect.Client[compassv1beta1.GetMyStarredAssetRequest, compassv1beta1.GetMyStarredAssetResponse] - starAsset *connect.Client[compassv1beta1.StarAssetRequest, compassv1beta1.StarAssetResponse] - unstarAsset *connect.Client[compassv1beta1.UnstarAssetRequest, compassv1beta1.UnstarAssetResponse] - getMyDiscussions *connect.Client[compassv1beta1.GetMyDiscussionsRequest, compassv1beta1.GetMyDiscussionsResponse] - createTagAsset *connect.Client[compassv1beta1.CreateTagAssetRequest, compassv1beta1.CreateTagAssetResponse] - getTagByAssetAndTemplate *connect.Client[compassv1beta1.GetTagByAssetAndTemplateRequest, compassv1beta1.GetTagByAssetAndTemplateResponse] - updateTagAsset *connect.Client[compassv1beta1.UpdateTagAssetRequest, compassv1beta1.UpdateTagAssetResponse] - deleteTagAsset *connect.Client[compassv1beta1.DeleteTagAssetRequest, compassv1beta1.DeleteTagAssetResponse] - getAllTagsByAsset *connect.Client[compassv1beta1.GetAllTagsByAssetRequest, compassv1beta1.GetAllTagsByAssetResponse] - getAllTagTemplates *connect.Client[compassv1beta1.GetAllTagTemplatesRequest, compassv1beta1.GetAllTagTemplatesResponse] - createTagTemplate *connect.Client[compassv1beta1.CreateTagTemplateRequest, compassv1beta1.CreateTagTemplateResponse] - getTagTemplate *connect.Client[compassv1beta1.GetTagTemplateRequest, compassv1beta1.GetTagTemplateResponse] - updateTagTemplate *connect.Client[compassv1beta1.UpdateTagTemplateRequest, compassv1beta1.UpdateTagTemplateResponse] - deleteTagTemplate *connect.Client[compassv1beta1.DeleteTagTemplateRequest, compassv1beta1.DeleteTagTemplateResponse] - createNamespace *connect.Client[compassv1beta1.CreateNamespaceRequest, compassv1beta1.CreateNamespaceResponse] - getNamespace *connect.Client[compassv1beta1.GetNamespaceRequest, compassv1beta1.GetNamespaceResponse] - updateNamespace *connect.Client[compassv1beta1.UpdateNamespaceRequest, compassv1beta1.UpdateNamespaceResponse] - listNamespaces *connect.Client[compassv1beta1.ListNamespacesRequest, compassv1beta1.ListNamespacesResponse] + getAllDiscussions *connect.Client[v1beta1.GetAllDiscussionsRequest, v1beta1.GetAllDiscussionsResponse] + createDiscussion *connect.Client[v1beta1.CreateDiscussionRequest, v1beta1.CreateDiscussionResponse] + getDiscussion *connect.Client[v1beta1.GetDiscussionRequest, v1beta1.GetDiscussionResponse] + patchDiscussion *connect.Client[v1beta1.PatchDiscussionRequest, v1beta1.PatchDiscussionResponse] + createComment *connect.Client[v1beta1.CreateCommentRequest, v1beta1.CreateCommentResponse] + getAllComments *connect.Client[v1beta1.GetAllCommentsRequest, v1beta1.GetAllCommentsResponse] + getComment *connect.Client[v1beta1.GetCommentRequest, v1beta1.GetCommentResponse] + updateComment *connect.Client[v1beta1.UpdateCommentRequest, v1beta1.UpdateCommentResponse] + deleteComment *connect.Client[v1beta1.DeleteCommentRequest, v1beta1.DeleteCommentResponse] + searchAssets *connect.Client[v1beta1.SearchAssetsRequest, v1beta1.SearchAssetsResponse] + suggestAssets *connect.Client[v1beta1.SuggestAssetsRequest, v1beta1.SuggestAssetsResponse] + groupAssets *connect.Client[v1beta1.GroupAssetsRequest, v1beta1.GroupAssetsResponse] + getGraph *connect.Client[v1beta1.GetGraphRequest, v1beta1.GetGraphResponse] + getAllTypes *connect.Client[v1beta1.GetAllTypesRequest, v1beta1.GetAllTypesResponse] + getAllAssets *connect.Client[v1beta1.GetAllAssetsRequest, v1beta1.GetAllAssetsResponse] + getAssetByID *connect.Client[v1beta1.GetAssetByIDRequest, v1beta1.GetAssetByIDResponse] + upsertAsset *connect.Client[v1beta1.UpsertAssetRequest, v1beta1.UpsertAssetResponse] + upsertPatchAsset *connect.Client[v1beta1.UpsertPatchAssetRequest, v1beta1.UpsertPatchAssetResponse] + deleteAsset *connect.Client[v1beta1.DeleteAssetRequest, v1beta1.DeleteAssetResponse] + getAssetStargazers *connect.Client[v1beta1.GetAssetStargazersRequest, v1beta1.GetAssetStargazersResponse] + getAssetVersionHistory *connect.Client[v1beta1.GetAssetVersionHistoryRequest, v1beta1.GetAssetVersionHistoryResponse] + getAssetByVersion *connect.Client[v1beta1.GetAssetByVersionRequest, v1beta1.GetAssetByVersionResponse] + createAssetProbe *connect.Client[v1beta1.CreateAssetProbeRequest, v1beta1.CreateAssetProbeResponse] + getUserStarredAssets *connect.Client[v1beta1.GetUserStarredAssetsRequest, v1beta1.GetUserStarredAssetsResponse] + getMyStarredAssets *connect.Client[v1beta1.GetMyStarredAssetsRequest, v1beta1.GetMyStarredAssetsResponse] + getMyStarredAsset *connect.Client[v1beta1.GetMyStarredAssetRequest, v1beta1.GetMyStarredAssetResponse] + starAsset *connect.Client[v1beta1.StarAssetRequest, v1beta1.StarAssetResponse] + unstarAsset *connect.Client[v1beta1.UnstarAssetRequest, v1beta1.UnstarAssetResponse] + getMyDiscussions *connect.Client[v1beta1.GetMyDiscussionsRequest, v1beta1.GetMyDiscussionsResponse] + createTagAsset *connect.Client[v1beta1.CreateTagAssetRequest, v1beta1.CreateTagAssetResponse] + getTagByAssetAndTemplate *connect.Client[v1beta1.GetTagByAssetAndTemplateRequest, v1beta1.GetTagByAssetAndTemplateResponse] + updateTagAsset *connect.Client[v1beta1.UpdateTagAssetRequest, v1beta1.UpdateTagAssetResponse] + deleteTagAsset *connect.Client[v1beta1.DeleteTagAssetRequest, v1beta1.DeleteTagAssetResponse] + getAllTagsByAsset *connect.Client[v1beta1.GetAllTagsByAssetRequest, v1beta1.GetAllTagsByAssetResponse] + getAllTagTemplates *connect.Client[v1beta1.GetAllTagTemplatesRequest, v1beta1.GetAllTagTemplatesResponse] + createTagTemplate *connect.Client[v1beta1.CreateTagTemplateRequest, v1beta1.CreateTagTemplateResponse] + getTagTemplate *connect.Client[v1beta1.GetTagTemplateRequest, v1beta1.GetTagTemplateResponse] + updateTagTemplate *connect.Client[v1beta1.UpdateTagTemplateRequest, v1beta1.UpdateTagTemplateResponse] + deleteTagTemplate *connect.Client[v1beta1.DeleteTagTemplateRequest, v1beta1.DeleteTagTemplateResponse] + createNamespace *connect.Client[v1beta1.CreateNamespaceRequest, v1beta1.CreateNamespaceResponse] + getNamespace *connect.Client[v1beta1.GetNamespaceRequest, v1beta1.GetNamespaceResponse] + updateNamespace *connect.Client[v1beta1.UpdateNamespaceRequest, v1beta1.UpdateNamespaceResponse] + listNamespaces *connect.Client[v1beta1.ListNamespacesRequest, v1beta1.ListNamespacesResponse] } // GetAllDiscussions calls raystack.compass.v1beta1.CompassService.GetAllDiscussions. -func (c *compassServiceClient) GetAllDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) { +func (c *compassServiceClient) GetAllDiscussions(ctx context.Context, req *connect.Request[v1beta1.GetAllDiscussionsRequest]) (*connect.Response[v1beta1.GetAllDiscussionsResponse], error) { return c.getAllDiscussions.CallUnary(ctx, req) } // CreateDiscussion calls raystack.compass.v1beta1.CompassService.CreateDiscussion. -func (c *compassServiceClient) CreateDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) { +func (c *compassServiceClient) CreateDiscussion(ctx context.Context, req *connect.Request[v1beta1.CreateDiscussionRequest]) (*connect.Response[v1beta1.CreateDiscussionResponse], error) { return c.createDiscussion.CallUnary(ctx, req) } // GetDiscussion calls raystack.compass.v1beta1.CompassService.GetDiscussion. -func (c *compassServiceClient) GetDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) { +func (c *compassServiceClient) GetDiscussion(ctx context.Context, req *connect.Request[v1beta1.GetDiscussionRequest]) (*connect.Response[v1beta1.GetDiscussionResponse], error) { return c.getDiscussion.CallUnary(ctx, req) } // PatchDiscussion calls raystack.compass.v1beta1.CompassService.PatchDiscussion. -func (c *compassServiceClient) PatchDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) { +func (c *compassServiceClient) PatchDiscussion(ctx context.Context, req *connect.Request[v1beta1.PatchDiscussionRequest]) (*connect.Response[v1beta1.PatchDiscussionResponse], error) { return c.patchDiscussion.CallUnary(ctx, req) } // CreateComment calls raystack.compass.v1beta1.CompassService.CreateComment. -func (c *compassServiceClient) CreateComment(ctx context.Context, req *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) { +func (c *compassServiceClient) CreateComment(ctx context.Context, req *connect.Request[v1beta1.CreateCommentRequest]) (*connect.Response[v1beta1.CreateCommentResponse], error) { return c.createComment.CallUnary(ctx, req) } // GetAllComments calls raystack.compass.v1beta1.CompassService.GetAllComments. -func (c *compassServiceClient) GetAllComments(ctx context.Context, req *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) { +func (c *compassServiceClient) GetAllComments(ctx context.Context, req *connect.Request[v1beta1.GetAllCommentsRequest]) (*connect.Response[v1beta1.GetAllCommentsResponse], error) { return c.getAllComments.CallUnary(ctx, req) } // GetComment calls raystack.compass.v1beta1.CompassService.GetComment. -func (c *compassServiceClient) GetComment(ctx context.Context, req *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) { +func (c *compassServiceClient) GetComment(ctx context.Context, req *connect.Request[v1beta1.GetCommentRequest]) (*connect.Response[v1beta1.GetCommentResponse], error) { return c.getComment.CallUnary(ctx, req) } // UpdateComment calls raystack.compass.v1beta1.CompassService.UpdateComment. -func (c *compassServiceClient) UpdateComment(ctx context.Context, req *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) { +func (c *compassServiceClient) UpdateComment(ctx context.Context, req *connect.Request[v1beta1.UpdateCommentRequest]) (*connect.Response[v1beta1.UpdateCommentResponse], error) { return c.updateComment.CallUnary(ctx, req) } // DeleteComment calls raystack.compass.v1beta1.CompassService.DeleteComment. -func (c *compassServiceClient) DeleteComment(ctx context.Context, req *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) { +func (c *compassServiceClient) DeleteComment(ctx context.Context, req *connect.Request[v1beta1.DeleteCommentRequest]) (*connect.Response[v1beta1.DeleteCommentResponse], error) { return c.deleteComment.CallUnary(ctx, req) } // SearchAssets calls raystack.compass.v1beta1.CompassService.SearchAssets. -func (c *compassServiceClient) SearchAssets(ctx context.Context, req *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { +func (c *compassServiceClient) SearchAssets(ctx context.Context, req *connect.Request[v1beta1.SearchAssetsRequest]) (*connect.Response[v1beta1.SearchAssetsResponse], error) { return c.searchAssets.CallUnary(ctx, req) } // SuggestAssets calls raystack.compass.v1beta1.CompassService.SuggestAssets. -func (c *compassServiceClient) SuggestAssets(ctx context.Context, req *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) { +func (c *compassServiceClient) SuggestAssets(ctx context.Context, req *connect.Request[v1beta1.SuggestAssetsRequest]) (*connect.Response[v1beta1.SuggestAssetsResponse], error) { return c.suggestAssets.CallUnary(ctx, req) } // GroupAssets calls raystack.compass.v1beta1.CompassService.GroupAssets. -func (c *compassServiceClient) GroupAssets(ctx context.Context, req *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) { +func (c *compassServiceClient) GroupAssets(ctx context.Context, req *connect.Request[v1beta1.GroupAssetsRequest]) (*connect.Response[v1beta1.GroupAssetsResponse], error) { return c.groupAssets.CallUnary(ctx, req) } // GetGraph calls raystack.compass.v1beta1.CompassService.GetGraph. -func (c *compassServiceClient) GetGraph(ctx context.Context, req *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) { +func (c *compassServiceClient) GetGraph(ctx context.Context, req *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) { return c.getGraph.CallUnary(ctx, req) } // GetAllTypes calls raystack.compass.v1beta1.CompassService.GetAllTypes. -func (c *compassServiceClient) GetAllTypes(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { +func (c *compassServiceClient) GetAllTypes(ctx context.Context, req *connect.Request[v1beta1.GetAllTypesRequest]) (*connect.Response[v1beta1.GetAllTypesResponse], error) { return c.getAllTypes.CallUnary(ctx, req) } // GetAllAssets calls raystack.compass.v1beta1.CompassService.GetAllAssets. -func (c *compassServiceClient) GetAllAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) { +func (c *compassServiceClient) GetAllAssets(ctx context.Context, req *connect.Request[v1beta1.GetAllAssetsRequest]) (*connect.Response[v1beta1.GetAllAssetsResponse], error) { return c.getAllAssets.CallUnary(ctx, req) } // GetAssetByID calls raystack.compass.v1beta1.CompassService.GetAssetByID. -func (c *compassServiceClient) GetAssetByID(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) { +func (c *compassServiceClient) GetAssetByID(ctx context.Context, req *connect.Request[v1beta1.GetAssetByIDRequest]) (*connect.Response[v1beta1.GetAssetByIDResponse], error) { return c.getAssetByID.CallUnary(ctx, req) } // UpsertAsset calls raystack.compass.v1beta1.CompassService.UpsertAsset. -func (c *compassServiceClient) UpsertAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) { +func (c *compassServiceClient) UpsertAsset(ctx context.Context, req *connect.Request[v1beta1.UpsertAssetRequest]) (*connect.Response[v1beta1.UpsertAssetResponse], error) { return c.upsertAsset.CallUnary(ctx, req) } // UpsertPatchAsset calls raystack.compass.v1beta1.CompassService.UpsertPatchAsset. -func (c *compassServiceClient) UpsertPatchAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) { +func (c *compassServiceClient) UpsertPatchAsset(ctx context.Context, req *connect.Request[v1beta1.UpsertPatchAssetRequest]) (*connect.Response[v1beta1.UpsertPatchAssetResponse], error) { return c.upsertPatchAsset.CallUnary(ctx, req) } // DeleteAsset calls raystack.compass.v1beta1.CompassService.DeleteAsset. -func (c *compassServiceClient) DeleteAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) { +func (c *compassServiceClient) DeleteAsset(ctx context.Context, req *connect.Request[v1beta1.DeleteAssetRequest]) (*connect.Response[v1beta1.DeleteAssetResponse], error) { return c.deleteAsset.CallUnary(ctx, req) } // GetAssetStargazers calls raystack.compass.v1beta1.CompassService.GetAssetStargazers. -func (c *compassServiceClient) GetAssetStargazers(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) { +func (c *compassServiceClient) GetAssetStargazers(ctx context.Context, req *connect.Request[v1beta1.GetAssetStargazersRequest]) (*connect.Response[v1beta1.GetAssetStargazersResponse], error) { return c.getAssetStargazers.CallUnary(ctx, req) } // GetAssetVersionHistory calls raystack.compass.v1beta1.CompassService.GetAssetVersionHistory. -func (c *compassServiceClient) GetAssetVersionHistory(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) { +func (c *compassServiceClient) GetAssetVersionHistory(ctx context.Context, req *connect.Request[v1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[v1beta1.GetAssetVersionHistoryResponse], error) { return c.getAssetVersionHistory.CallUnary(ctx, req) } // GetAssetByVersion calls raystack.compass.v1beta1.CompassService.GetAssetByVersion. -func (c *compassServiceClient) GetAssetByVersion(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) { +func (c *compassServiceClient) GetAssetByVersion(ctx context.Context, req *connect.Request[v1beta1.GetAssetByVersionRequest]) (*connect.Response[v1beta1.GetAssetByVersionResponse], error) { return c.getAssetByVersion.CallUnary(ctx, req) } // CreateAssetProbe calls raystack.compass.v1beta1.CompassService.CreateAssetProbe. -func (c *compassServiceClient) CreateAssetProbe(ctx context.Context, req *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) { +func (c *compassServiceClient) CreateAssetProbe(ctx context.Context, req *connect.Request[v1beta1.CreateAssetProbeRequest]) (*connect.Response[v1beta1.CreateAssetProbeResponse], error) { return c.createAssetProbe.CallUnary(ctx, req) } // GetUserStarredAssets calls raystack.compass.v1beta1.CompassService.GetUserStarredAssets. -func (c *compassServiceClient) GetUserStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) { +func (c *compassServiceClient) GetUserStarredAssets(ctx context.Context, req *connect.Request[v1beta1.GetUserStarredAssetsRequest]) (*connect.Response[v1beta1.GetUserStarredAssetsResponse], error) { return c.getUserStarredAssets.CallUnary(ctx, req) } // GetMyStarredAssets calls raystack.compass.v1beta1.CompassService.GetMyStarredAssets. -func (c *compassServiceClient) GetMyStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) { +func (c *compassServiceClient) GetMyStarredAssets(ctx context.Context, req *connect.Request[v1beta1.GetMyStarredAssetsRequest]) (*connect.Response[v1beta1.GetMyStarredAssetsResponse], error) { return c.getMyStarredAssets.CallUnary(ctx, req) } // GetMyStarredAsset calls raystack.compass.v1beta1.CompassService.GetMyStarredAsset. -func (c *compassServiceClient) GetMyStarredAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) { +func (c *compassServiceClient) GetMyStarredAsset(ctx context.Context, req *connect.Request[v1beta1.GetMyStarredAssetRequest]) (*connect.Response[v1beta1.GetMyStarredAssetResponse], error) { return c.getMyStarredAsset.CallUnary(ctx, req) } // StarAsset calls raystack.compass.v1beta1.CompassService.StarAsset. -func (c *compassServiceClient) StarAsset(ctx context.Context, req *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) { +func (c *compassServiceClient) StarAsset(ctx context.Context, req *connect.Request[v1beta1.StarAssetRequest]) (*connect.Response[v1beta1.StarAssetResponse], error) { return c.starAsset.CallUnary(ctx, req) } // UnstarAsset calls raystack.compass.v1beta1.CompassService.UnstarAsset. -func (c *compassServiceClient) UnstarAsset(ctx context.Context, req *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) { +func (c *compassServiceClient) UnstarAsset(ctx context.Context, req *connect.Request[v1beta1.UnstarAssetRequest]) (*connect.Response[v1beta1.UnstarAssetResponse], error) { return c.unstarAsset.CallUnary(ctx, req) } // GetMyDiscussions calls raystack.compass.v1beta1.CompassService.GetMyDiscussions. -func (c *compassServiceClient) GetMyDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) { +func (c *compassServiceClient) GetMyDiscussions(ctx context.Context, req *connect.Request[v1beta1.GetMyDiscussionsRequest]) (*connect.Response[v1beta1.GetMyDiscussionsResponse], error) { return c.getMyDiscussions.CallUnary(ctx, req) } // CreateTagAsset calls raystack.compass.v1beta1.CompassService.CreateTagAsset. -func (c *compassServiceClient) CreateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) { +func (c *compassServiceClient) CreateTagAsset(ctx context.Context, req *connect.Request[v1beta1.CreateTagAssetRequest]) (*connect.Response[v1beta1.CreateTagAssetResponse], error) { return c.createTagAsset.CallUnary(ctx, req) } // GetTagByAssetAndTemplate calls raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate. -func (c *compassServiceClient) GetTagByAssetAndTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) { +func (c *compassServiceClient) GetTagByAssetAndTemplate(ctx context.Context, req *connect.Request[v1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[v1beta1.GetTagByAssetAndTemplateResponse], error) { return c.getTagByAssetAndTemplate.CallUnary(ctx, req) } // UpdateTagAsset calls raystack.compass.v1beta1.CompassService.UpdateTagAsset. -func (c *compassServiceClient) UpdateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) { +func (c *compassServiceClient) UpdateTagAsset(ctx context.Context, req *connect.Request[v1beta1.UpdateTagAssetRequest]) (*connect.Response[v1beta1.UpdateTagAssetResponse], error) { return c.updateTagAsset.CallUnary(ctx, req) } // DeleteTagAsset calls raystack.compass.v1beta1.CompassService.DeleteTagAsset. -func (c *compassServiceClient) DeleteTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) { +func (c *compassServiceClient) DeleteTagAsset(ctx context.Context, req *connect.Request[v1beta1.DeleteTagAssetRequest]) (*connect.Response[v1beta1.DeleteTagAssetResponse], error) { return c.deleteTagAsset.CallUnary(ctx, req) } // GetAllTagsByAsset calls raystack.compass.v1beta1.CompassService.GetAllTagsByAsset. -func (c *compassServiceClient) GetAllTagsByAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) { +func (c *compassServiceClient) GetAllTagsByAsset(ctx context.Context, req *connect.Request[v1beta1.GetAllTagsByAssetRequest]) (*connect.Response[v1beta1.GetAllTagsByAssetResponse], error) { return c.getAllTagsByAsset.CallUnary(ctx, req) } // GetAllTagTemplates calls raystack.compass.v1beta1.CompassService.GetAllTagTemplates. -func (c *compassServiceClient) GetAllTagTemplates(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) { +func (c *compassServiceClient) GetAllTagTemplates(ctx context.Context, req *connect.Request[v1beta1.GetAllTagTemplatesRequest]) (*connect.Response[v1beta1.GetAllTagTemplatesResponse], error) { return c.getAllTagTemplates.CallUnary(ctx, req) } // CreateTagTemplate calls raystack.compass.v1beta1.CompassService.CreateTagTemplate. -func (c *compassServiceClient) CreateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) { +func (c *compassServiceClient) CreateTagTemplate(ctx context.Context, req *connect.Request[v1beta1.CreateTagTemplateRequest]) (*connect.Response[v1beta1.CreateTagTemplateResponse], error) { return c.createTagTemplate.CallUnary(ctx, req) } // GetTagTemplate calls raystack.compass.v1beta1.CompassService.GetTagTemplate. -func (c *compassServiceClient) GetTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) { +func (c *compassServiceClient) GetTagTemplate(ctx context.Context, req *connect.Request[v1beta1.GetTagTemplateRequest]) (*connect.Response[v1beta1.GetTagTemplateResponse], error) { return c.getTagTemplate.CallUnary(ctx, req) } // UpdateTagTemplate calls raystack.compass.v1beta1.CompassService.UpdateTagTemplate. -func (c *compassServiceClient) UpdateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) { +func (c *compassServiceClient) UpdateTagTemplate(ctx context.Context, req *connect.Request[v1beta1.UpdateTagTemplateRequest]) (*connect.Response[v1beta1.UpdateTagTemplateResponse], error) { return c.updateTagTemplate.CallUnary(ctx, req) } // DeleteTagTemplate calls raystack.compass.v1beta1.CompassService.DeleteTagTemplate. -func (c *compassServiceClient) DeleteTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) { +func (c *compassServiceClient) DeleteTagTemplate(ctx context.Context, req *connect.Request[v1beta1.DeleteTagTemplateRequest]) (*connect.Response[v1beta1.DeleteTagTemplateResponse], error) { return c.deleteTagTemplate.CallUnary(ctx, req) } // CreateNamespace calls raystack.compass.v1beta1.CompassService.CreateNamespace. -func (c *compassServiceClient) CreateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) { +func (c *compassServiceClient) CreateNamespace(ctx context.Context, req *connect.Request[v1beta1.CreateNamespaceRequest]) (*connect.Response[v1beta1.CreateNamespaceResponse], error) { return c.createNamespace.CallUnary(ctx, req) } // GetNamespace calls raystack.compass.v1beta1.CompassService.GetNamespace. -func (c *compassServiceClient) GetNamespace(ctx context.Context, req *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) { +func (c *compassServiceClient) GetNamespace(ctx context.Context, req *connect.Request[v1beta1.GetNamespaceRequest]) (*connect.Response[v1beta1.GetNamespaceResponse], error) { return c.getNamespace.CallUnary(ctx, req) } // UpdateNamespace calls raystack.compass.v1beta1.CompassService.UpdateNamespace. -func (c *compassServiceClient) UpdateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) { +func (c *compassServiceClient) UpdateNamespace(ctx context.Context, req *connect.Request[v1beta1.UpdateNamespaceRequest]) (*connect.Response[v1beta1.UpdateNamespaceResponse], error) { return c.updateNamespace.CallUnary(ctx, req) } // ListNamespaces calls raystack.compass.v1beta1.CompassService.ListNamespaces. -func (c *compassServiceClient) ListNamespaces(ctx context.Context, req *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) { +func (c *compassServiceClient) ListNamespaces(ctx context.Context, req *connect.Request[v1beta1.ListNamespacesRequest]) (*connect.Response[v1beta1.ListNamespacesResponse], error) { return c.listNamespaces.CallUnary(ctx, req) } @@ -753,53 +753,53 @@ func (c *compassServiceClient) ListNamespaces(ctx context.Context, req *connect. // service. type CompassServiceHandler interface { // Domain: Discussion - GetAllDiscussions(context.Context, *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) - CreateDiscussion(context.Context, *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) - GetDiscussion(context.Context, *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) - PatchDiscussion(context.Context, *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) - CreateComment(context.Context, *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) - GetAllComments(context.Context, *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) - GetComment(context.Context, *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) - UpdateComment(context.Context, *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) - DeleteComment(context.Context, *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) + GetAllDiscussions(context.Context, *connect.Request[v1beta1.GetAllDiscussionsRequest]) (*connect.Response[v1beta1.GetAllDiscussionsResponse], error) + CreateDiscussion(context.Context, *connect.Request[v1beta1.CreateDiscussionRequest]) (*connect.Response[v1beta1.CreateDiscussionResponse], error) + GetDiscussion(context.Context, *connect.Request[v1beta1.GetDiscussionRequest]) (*connect.Response[v1beta1.GetDiscussionResponse], error) + PatchDiscussion(context.Context, *connect.Request[v1beta1.PatchDiscussionRequest]) (*connect.Response[v1beta1.PatchDiscussionResponse], error) + CreateComment(context.Context, *connect.Request[v1beta1.CreateCommentRequest]) (*connect.Response[v1beta1.CreateCommentResponse], error) + GetAllComments(context.Context, *connect.Request[v1beta1.GetAllCommentsRequest]) (*connect.Response[v1beta1.GetAllCommentsResponse], error) + GetComment(context.Context, *connect.Request[v1beta1.GetCommentRequest]) (*connect.Response[v1beta1.GetCommentResponse], error) + UpdateComment(context.Context, *connect.Request[v1beta1.UpdateCommentRequest]) (*connect.Response[v1beta1.UpdateCommentResponse], error) + DeleteComment(context.Context, *connect.Request[v1beta1.DeleteCommentRequest]) (*connect.Response[v1beta1.DeleteCommentResponse], error) // Domain: Asset - SearchAssets(context.Context, *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) - SuggestAssets(context.Context, *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) - GroupAssets(context.Context, *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) - GetGraph(context.Context, *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) - GetAllTypes(context.Context, *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) - GetAllAssets(context.Context, *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) - GetAssetByID(context.Context, *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) - UpsertAsset(context.Context, *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) - UpsertPatchAsset(context.Context, *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) - DeleteAsset(context.Context, *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) - GetAssetStargazers(context.Context, *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) - GetAssetVersionHistory(context.Context, *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) - GetAssetByVersion(context.Context, *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) - CreateAssetProbe(context.Context, *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) + SearchAssets(context.Context, *connect.Request[v1beta1.SearchAssetsRequest]) (*connect.Response[v1beta1.SearchAssetsResponse], error) + SuggestAssets(context.Context, *connect.Request[v1beta1.SuggestAssetsRequest]) (*connect.Response[v1beta1.SuggestAssetsResponse], error) + GroupAssets(context.Context, *connect.Request[v1beta1.GroupAssetsRequest]) (*connect.Response[v1beta1.GroupAssetsResponse], error) + GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) + GetAllTypes(context.Context, *connect.Request[v1beta1.GetAllTypesRequest]) (*connect.Response[v1beta1.GetAllTypesResponse], error) + GetAllAssets(context.Context, *connect.Request[v1beta1.GetAllAssetsRequest]) (*connect.Response[v1beta1.GetAllAssetsResponse], error) + GetAssetByID(context.Context, *connect.Request[v1beta1.GetAssetByIDRequest]) (*connect.Response[v1beta1.GetAssetByIDResponse], error) + UpsertAsset(context.Context, *connect.Request[v1beta1.UpsertAssetRequest]) (*connect.Response[v1beta1.UpsertAssetResponse], error) + UpsertPatchAsset(context.Context, *connect.Request[v1beta1.UpsertPatchAssetRequest]) (*connect.Response[v1beta1.UpsertPatchAssetResponse], error) + DeleteAsset(context.Context, *connect.Request[v1beta1.DeleteAssetRequest]) (*connect.Response[v1beta1.DeleteAssetResponse], error) + GetAssetStargazers(context.Context, *connect.Request[v1beta1.GetAssetStargazersRequest]) (*connect.Response[v1beta1.GetAssetStargazersResponse], error) + GetAssetVersionHistory(context.Context, *connect.Request[v1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[v1beta1.GetAssetVersionHistoryResponse], error) + GetAssetByVersion(context.Context, *connect.Request[v1beta1.GetAssetByVersionRequest]) (*connect.Response[v1beta1.GetAssetByVersionResponse], error) + CreateAssetProbe(context.Context, *connect.Request[v1beta1.CreateAssetProbeRequest]) (*connect.Response[v1beta1.CreateAssetProbeResponse], error) // Domain: User * Star - GetUserStarredAssets(context.Context, *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) - GetMyStarredAssets(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) - GetMyStarredAsset(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) - StarAsset(context.Context, *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) - UnstarAsset(context.Context, *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) - GetMyDiscussions(context.Context, *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) + GetUserStarredAssets(context.Context, *connect.Request[v1beta1.GetUserStarredAssetsRequest]) (*connect.Response[v1beta1.GetUserStarredAssetsResponse], error) + GetMyStarredAssets(context.Context, *connect.Request[v1beta1.GetMyStarredAssetsRequest]) (*connect.Response[v1beta1.GetMyStarredAssetsResponse], error) + GetMyStarredAsset(context.Context, *connect.Request[v1beta1.GetMyStarredAssetRequest]) (*connect.Response[v1beta1.GetMyStarredAssetResponse], error) + StarAsset(context.Context, *connect.Request[v1beta1.StarAssetRequest]) (*connect.Response[v1beta1.StarAssetResponse], error) + UnstarAsset(context.Context, *connect.Request[v1beta1.UnstarAssetRequest]) (*connect.Response[v1beta1.UnstarAssetResponse], error) + GetMyDiscussions(context.Context, *connect.Request[v1beta1.GetMyDiscussionsRequest]) (*connect.Response[v1beta1.GetMyDiscussionsResponse], error) // Domain: Tag Templates - CreateTagAsset(context.Context, *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) - GetTagByAssetAndTemplate(context.Context, *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) - UpdateTagAsset(context.Context, *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) - DeleteTagAsset(context.Context, *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) - GetAllTagsByAsset(context.Context, *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) - GetAllTagTemplates(context.Context, *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) - CreateTagTemplate(context.Context, *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) - GetTagTemplate(context.Context, *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) - UpdateTagTemplate(context.Context, *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) - DeleteTagTemplate(context.Context, *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) + CreateTagAsset(context.Context, *connect.Request[v1beta1.CreateTagAssetRequest]) (*connect.Response[v1beta1.CreateTagAssetResponse], error) + GetTagByAssetAndTemplate(context.Context, *connect.Request[v1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[v1beta1.GetTagByAssetAndTemplateResponse], error) + UpdateTagAsset(context.Context, *connect.Request[v1beta1.UpdateTagAssetRequest]) (*connect.Response[v1beta1.UpdateTagAssetResponse], error) + DeleteTagAsset(context.Context, *connect.Request[v1beta1.DeleteTagAssetRequest]) (*connect.Response[v1beta1.DeleteTagAssetResponse], error) + GetAllTagsByAsset(context.Context, *connect.Request[v1beta1.GetAllTagsByAssetRequest]) (*connect.Response[v1beta1.GetAllTagsByAssetResponse], error) + GetAllTagTemplates(context.Context, *connect.Request[v1beta1.GetAllTagTemplatesRequest]) (*connect.Response[v1beta1.GetAllTagTemplatesResponse], error) + CreateTagTemplate(context.Context, *connect.Request[v1beta1.CreateTagTemplateRequest]) (*connect.Response[v1beta1.CreateTagTemplateResponse], error) + GetTagTemplate(context.Context, *connect.Request[v1beta1.GetTagTemplateRequest]) (*connect.Response[v1beta1.GetTagTemplateResponse], error) + UpdateTagTemplate(context.Context, *connect.Request[v1beta1.UpdateTagTemplateRequest]) (*connect.Response[v1beta1.UpdateTagTemplateResponse], error) + DeleteTagTemplate(context.Context, *connect.Request[v1beta1.DeleteTagTemplateRequest]) (*connect.Response[v1beta1.DeleteTagTemplateResponse], error) // Domain: Namespace - CreateNamespace(context.Context, *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) - GetNamespace(context.Context, *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) - UpdateNamespace(context.Context, *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) - ListNamespaces(context.Context, *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) + CreateNamespace(context.Context, *connect.Request[v1beta1.CreateNamespaceRequest]) (*connect.Response[v1beta1.CreateNamespaceResponse], error) + GetNamespace(context.Context, *connect.Request[v1beta1.GetNamespaceRequest]) (*connect.Response[v1beta1.GetNamespaceResponse], error) + UpdateNamespace(context.Context, *connect.Request[v1beta1.UpdateNamespaceRequest]) (*connect.Response[v1beta1.UpdateNamespaceResponse], error) + ListNamespaces(context.Context, *connect.Request[v1beta1.ListNamespacesRequest]) (*connect.Response[v1beta1.ListNamespacesResponse], error) } // NewCompassServiceHandler builds an HTTP handler from the service implementation. It returns the @@ -808,7 +808,7 @@ type CompassServiceHandler interface { // By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf // and JSON codecs. They also support gzip compression. func NewCompassServiceHandler(svc CompassServiceHandler, opts ...connect.HandlerOption) (string, http.Handler) { - compassServiceMethods := compassv1beta1.File_raystack_compass_v1beta1_service_proto.Services().ByName("CompassService").Methods() + compassServiceMethods := v1beta1.File_raystack_compass_v1beta1_service_proto.Services().ByName("CompassService").Methods() compassServiceGetAllDiscussionsHandler := connect.NewUnaryHandler( CompassServiceGetAllDiscussionsProcedure, svc.GetAllDiscussions, @@ -1164,174 +1164,174 @@ func NewCompassServiceHandler(svc CompassServiceHandler, opts ...connect.Handler // UnimplementedCompassServiceHandler returns CodeUnimplemented from all methods. type UnimplementedCompassServiceHandler struct{} -func (UnimplementedCompassServiceHandler) GetAllDiscussions(context.Context, *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllDiscussions(context.Context, *connect.Request[v1beta1.GetAllDiscussionsRequest]) (*connect.Response[v1beta1.GetAllDiscussionsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllDiscussions is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateDiscussion(context.Context, *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) { +func (UnimplementedCompassServiceHandler) CreateDiscussion(context.Context, *connect.Request[v1beta1.CreateDiscussionRequest]) (*connect.Response[v1beta1.CreateDiscussionResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateDiscussion is not implemented")) } -func (UnimplementedCompassServiceHandler) GetDiscussion(context.Context, *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) { +func (UnimplementedCompassServiceHandler) GetDiscussion(context.Context, *connect.Request[v1beta1.GetDiscussionRequest]) (*connect.Response[v1beta1.GetDiscussionResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetDiscussion is not implemented")) } -func (UnimplementedCompassServiceHandler) PatchDiscussion(context.Context, *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) { +func (UnimplementedCompassServiceHandler) PatchDiscussion(context.Context, *connect.Request[v1beta1.PatchDiscussionRequest]) (*connect.Response[v1beta1.PatchDiscussionResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.PatchDiscussion is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateComment(context.Context, *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) { +func (UnimplementedCompassServiceHandler) CreateComment(context.Context, *connect.Request[v1beta1.CreateCommentRequest]) (*connect.Response[v1beta1.CreateCommentResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateComment is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAllComments(context.Context, *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllComments(context.Context, *connect.Request[v1beta1.GetAllCommentsRequest]) (*connect.Response[v1beta1.GetAllCommentsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllComments is not implemented")) } -func (UnimplementedCompassServiceHandler) GetComment(context.Context, *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) { +func (UnimplementedCompassServiceHandler) GetComment(context.Context, *connect.Request[v1beta1.GetCommentRequest]) (*connect.Response[v1beta1.GetCommentResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetComment is not implemented")) } -func (UnimplementedCompassServiceHandler) UpdateComment(context.Context, *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) { +func (UnimplementedCompassServiceHandler) UpdateComment(context.Context, *connect.Request[v1beta1.UpdateCommentRequest]) (*connect.Response[v1beta1.UpdateCommentResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpdateComment is not implemented")) } -func (UnimplementedCompassServiceHandler) DeleteComment(context.Context, *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) { +func (UnimplementedCompassServiceHandler) DeleteComment(context.Context, *connect.Request[v1beta1.DeleteCommentRequest]) (*connect.Response[v1beta1.DeleteCommentResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.DeleteComment is not implemented")) } -func (UnimplementedCompassServiceHandler) SearchAssets(context.Context, *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) SearchAssets(context.Context, *connect.Request[v1beta1.SearchAssetsRequest]) (*connect.Response[v1beta1.SearchAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.SearchAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) SuggestAssets(context.Context, *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) SuggestAssets(context.Context, *connect.Request[v1beta1.SuggestAssetsRequest]) (*connect.Response[v1beta1.SuggestAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.SuggestAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) GroupAssets(context.Context, *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) GroupAssets(context.Context, *connect.Request[v1beta1.GroupAssetsRequest]) (*connect.Response[v1beta1.GroupAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GroupAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) GetGraph(context.Context, *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) { +func (UnimplementedCompassServiceHandler) GetGraph(context.Context, *connect.Request[v1beta1.GetGraphRequest]) (*connect.Response[v1beta1.GetGraphResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetGraph is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAllTypes(context.Context, *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllTypes(context.Context, *connect.Request[v1beta1.GetAllTypesRequest]) (*connect.Response[v1beta1.GetAllTypesResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllTypes is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAllAssets(context.Context, *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllAssets(context.Context, *connect.Request[v1beta1.GetAllAssetsRequest]) (*connect.Response[v1beta1.GetAllAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAssetByID(context.Context, *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) { +func (UnimplementedCompassServiceHandler) GetAssetByID(context.Context, *connect.Request[v1beta1.GetAssetByIDRequest]) (*connect.Response[v1beta1.GetAssetByIDResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAssetByID is not implemented")) } -func (UnimplementedCompassServiceHandler) UpsertAsset(context.Context, *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) { +func (UnimplementedCompassServiceHandler) UpsertAsset(context.Context, *connect.Request[v1beta1.UpsertAssetRequest]) (*connect.Response[v1beta1.UpsertAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpsertAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) UpsertPatchAsset(context.Context, *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) { +func (UnimplementedCompassServiceHandler) UpsertPatchAsset(context.Context, *connect.Request[v1beta1.UpsertPatchAssetRequest]) (*connect.Response[v1beta1.UpsertPatchAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpsertPatchAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) DeleteAsset(context.Context, *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) { +func (UnimplementedCompassServiceHandler) DeleteAsset(context.Context, *connect.Request[v1beta1.DeleteAssetRequest]) (*connect.Response[v1beta1.DeleteAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.DeleteAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAssetStargazers(context.Context, *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) { +func (UnimplementedCompassServiceHandler) GetAssetStargazers(context.Context, *connect.Request[v1beta1.GetAssetStargazersRequest]) (*connect.Response[v1beta1.GetAssetStargazersResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAssetStargazers is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAssetVersionHistory(context.Context, *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) { +func (UnimplementedCompassServiceHandler) GetAssetVersionHistory(context.Context, *connect.Request[v1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[v1beta1.GetAssetVersionHistoryResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAssetVersionHistory is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAssetByVersion(context.Context, *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) { +func (UnimplementedCompassServiceHandler) GetAssetByVersion(context.Context, *connect.Request[v1beta1.GetAssetByVersionRequest]) (*connect.Response[v1beta1.GetAssetByVersionResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAssetByVersion is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateAssetProbe(context.Context, *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) { +func (UnimplementedCompassServiceHandler) CreateAssetProbe(context.Context, *connect.Request[v1beta1.CreateAssetProbeRequest]) (*connect.Response[v1beta1.CreateAssetProbeResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateAssetProbe is not implemented")) } -func (UnimplementedCompassServiceHandler) GetUserStarredAssets(context.Context, *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) GetUserStarredAssets(context.Context, *connect.Request[v1beta1.GetUserStarredAssetsRequest]) (*connect.Response[v1beta1.GetUserStarredAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetUserStarredAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) GetMyStarredAssets(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) { +func (UnimplementedCompassServiceHandler) GetMyStarredAssets(context.Context, *connect.Request[v1beta1.GetMyStarredAssetsRequest]) (*connect.Response[v1beta1.GetMyStarredAssetsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetMyStarredAssets is not implemented")) } -func (UnimplementedCompassServiceHandler) GetMyStarredAsset(context.Context, *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) { +func (UnimplementedCompassServiceHandler) GetMyStarredAsset(context.Context, *connect.Request[v1beta1.GetMyStarredAssetRequest]) (*connect.Response[v1beta1.GetMyStarredAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetMyStarredAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) StarAsset(context.Context, *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) { +func (UnimplementedCompassServiceHandler) StarAsset(context.Context, *connect.Request[v1beta1.StarAssetRequest]) (*connect.Response[v1beta1.StarAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.StarAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) UnstarAsset(context.Context, *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) { +func (UnimplementedCompassServiceHandler) UnstarAsset(context.Context, *connect.Request[v1beta1.UnstarAssetRequest]) (*connect.Response[v1beta1.UnstarAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UnstarAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) GetMyDiscussions(context.Context, *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) { +func (UnimplementedCompassServiceHandler) GetMyDiscussions(context.Context, *connect.Request[v1beta1.GetMyDiscussionsRequest]) (*connect.Response[v1beta1.GetMyDiscussionsResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetMyDiscussions is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateTagAsset(context.Context, *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) { +func (UnimplementedCompassServiceHandler) CreateTagAsset(context.Context, *connect.Request[v1beta1.CreateTagAssetRequest]) (*connect.Response[v1beta1.CreateTagAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateTagAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) GetTagByAssetAndTemplate(context.Context, *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) { +func (UnimplementedCompassServiceHandler) GetTagByAssetAndTemplate(context.Context, *connect.Request[v1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[v1beta1.GetTagByAssetAndTemplateResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate is not implemented")) } -func (UnimplementedCompassServiceHandler) UpdateTagAsset(context.Context, *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) { +func (UnimplementedCompassServiceHandler) UpdateTagAsset(context.Context, *connect.Request[v1beta1.UpdateTagAssetRequest]) (*connect.Response[v1beta1.UpdateTagAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpdateTagAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) DeleteTagAsset(context.Context, *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) { +func (UnimplementedCompassServiceHandler) DeleteTagAsset(context.Context, *connect.Request[v1beta1.DeleteTagAssetRequest]) (*connect.Response[v1beta1.DeleteTagAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.DeleteTagAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAllTagsByAsset(context.Context, *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllTagsByAsset(context.Context, *connect.Request[v1beta1.GetAllTagsByAssetRequest]) (*connect.Response[v1beta1.GetAllTagsByAssetResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllTagsByAsset is not implemented")) } -func (UnimplementedCompassServiceHandler) GetAllTagTemplates(context.Context, *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) { +func (UnimplementedCompassServiceHandler) GetAllTagTemplates(context.Context, *connect.Request[v1beta1.GetAllTagTemplatesRequest]) (*connect.Response[v1beta1.GetAllTagTemplatesResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetAllTagTemplates is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateTagTemplate(context.Context, *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) { +func (UnimplementedCompassServiceHandler) CreateTagTemplate(context.Context, *connect.Request[v1beta1.CreateTagTemplateRequest]) (*connect.Response[v1beta1.CreateTagTemplateResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateTagTemplate is not implemented")) } -func (UnimplementedCompassServiceHandler) GetTagTemplate(context.Context, *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) { +func (UnimplementedCompassServiceHandler) GetTagTemplate(context.Context, *connect.Request[v1beta1.GetTagTemplateRequest]) (*connect.Response[v1beta1.GetTagTemplateResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetTagTemplate is not implemented")) } -func (UnimplementedCompassServiceHandler) UpdateTagTemplate(context.Context, *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) { +func (UnimplementedCompassServiceHandler) UpdateTagTemplate(context.Context, *connect.Request[v1beta1.UpdateTagTemplateRequest]) (*connect.Response[v1beta1.UpdateTagTemplateResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpdateTagTemplate is not implemented")) } -func (UnimplementedCompassServiceHandler) DeleteTagTemplate(context.Context, *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) { +func (UnimplementedCompassServiceHandler) DeleteTagTemplate(context.Context, *connect.Request[v1beta1.DeleteTagTemplateRequest]) (*connect.Response[v1beta1.DeleteTagTemplateResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.DeleteTagTemplate is not implemented")) } -func (UnimplementedCompassServiceHandler) CreateNamespace(context.Context, *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) { +func (UnimplementedCompassServiceHandler) CreateNamespace(context.Context, *connect.Request[v1beta1.CreateNamespaceRequest]) (*connect.Response[v1beta1.CreateNamespaceResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.CreateNamespace is not implemented")) } -func (UnimplementedCompassServiceHandler) GetNamespace(context.Context, *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) { +func (UnimplementedCompassServiceHandler) GetNamespace(context.Context, *connect.Request[v1beta1.GetNamespaceRequest]) (*connect.Response[v1beta1.GetNamespaceResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.GetNamespace is not implemented")) } -func (UnimplementedCompassServiceHandler) UpdateNamespace(context.Context, *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) { +func (UnimplementedCompassServiceHandler) UpdateNamespace(context.Context, *connect.Request[v1beta1.UpdateNamespaceRequest]) (*connect.Response[v1beta1.UpdateNamespaceResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.UpdateNamespace is not implemented")) } -func (UnimplementedCompassServiceHandler) ListNamespaces(context.Context, *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) { +func (UnimplementedCompassServiceHandler) ListNamespaces(context.Context, *connect.Request[v1beta1.ListNamespacesRequest]) (*connect.Response[v1beta1.ListNamespacesResponse], error) { return nil, connect.NewError(connect.CodeUnimplemented, errors.New("raystack.compass.v1beta1.CompassService.ListNamespaces is not implemented")) } diff --git a/proto/gen/raystack/compass/v1beta1/service.pb.go b/proto/gen/raystack/compass/v1beta1/service.pb.go new file mode 100644 index 00000000..0738531c --- /dev/null +++ b/proto/gen/raystack/compass/v1beta1/service.pb.go @@ -0,0 +1,7287 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.36.11 +// protoc (unknown) +// source: raystack/compass/v1beta1/service.proto + +package compassv1beta1 + +import ( + _ "buf.build/gen/go/bufbuild/protovalidate/protocolbuffers/go/buf/validate" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + structpb "google.golang.org/protobuf/types/known/structpb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" + reflect "reflect" + sync "sync" + unsafe "unsafe" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GetAllDiscussionsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` + Assignee string `protobuf:"bytes,4,opt,name=assignee,proto3" json:"assignee,omitempty"` + Asset string `protobuf:"bytes,5,opt,name=asset,proto3" json:"asset,omitempty"` + Labels string `protobuf:"bytes,6,opt,name=labels,proto3" json:"labels,omitempty"` + Sort string `protobuf:"bytes,7,opt,name=sort,proto3" json:"sort,omitempty"` + Direction string `protobuf:"bytes,8,opt,name=direction,proto3" json:"direction,omitempty"` + Size uint32 `protobuf:"varint,9,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,10,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllDiscussionsRequest) Reset() { + *x = GetAllDiscussionsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllDiscussionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllDiscussionsRequest) ProtoMessage() {} + +func (x *GetAllDiscussionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllDiscussionsRequest.ProtoReflect.Descriptor instead. +func (*GetAllDiscussionsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{0} +} + +func (x *GetAllDiscussionsRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetAssignee() string { + if x != nil { + return x.Assignee + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetLabels() string { + if x != nil { + return x.Labels + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetSort() string { + if x != nil { + return x.Sort + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetDirection() string { + if x != nil { + return x.Direction + } + return "" +} + +func (x *GetAllDiscussionsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetAllDiscussionsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetAllDiscussionsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Discussion `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllDiscussionsResponse) Reset() { + *x = GetAllDiscussionsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllDiscussionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllDiscussionsResponse) ProtoMessage() {} + +func (x *GetAllDiscussionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllDiscussionsResponse.ProtoReflect.Descriptor instead. +func (*GetAllDiscussionsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{1} +} + +func (x *GetAllDiscussionsResponse) GetData() []*Discussion { + if x != nil { + return x.Data + } + return nil +} + +type CreateDiscussionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` + Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` + Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDiscussionRequest) Reset() { + *x = CreateDiscussionRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDiscussionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDiscussionRequest) ProtoMessage() {} + +func (x *CreateDiscussionRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDiscussionRequest.ProtoReflect.Descriptor instead. +func (*CreateDiscussionRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{2} +} + +func (x *CreateDiscussionRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *CreateDiscussionRequest) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *CreateDiscussionRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *CreateDiscussionRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *CreateDiscussionRequest) GetLabels() []string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *CreateDiscussionRequest) GetAssets() []string { + if x != nil { + return x.Assets + } + return nil +} + +func (x *CreateDiscussionRequest) GetAssignees() []string { + if x != nil { + return x.Assignees + } + return nil +} + +type CreateDiscussionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateDiscussionResponse) Reset() { + *x = CreateDiscussionResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateDiscussionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateDiscussionResponse) ProtoMessage() {} + +func (x *CreateDiscussionResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[3] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateDiscussionResponse.ProtoReflect.Descriptor instead. +func (*CreateDiscussionResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{3} +} + +func (x *CreateDiscussionResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetDiscussionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDiscussionRequest) Reset() { + *x = GetDiscussionRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDiscussionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDiscussionRequest) ProtoMessage() {} + +func (x *GetDiscussionRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[4] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDiscussionRequest.ProtoReflect.Descriptor instead. +func (*GetDiscussionRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{4} +} + +func (x *GetDiscussionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetDiscussionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Discussion `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetDiscussionResponse) Reset() { + *x = GetDiscussionResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetDiscussionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetDiscussionResponse) ProtoMessage() {} + +func (x *GetDiscussionResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[5] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetDiscussionResponse.ProtoReflect.Descriptor instead. +func (*GetDiscussionResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{5} +} + +func (x *GetDiscussionResponse) GetData() *Discussion { + if x != nil { + return x.Data + } + return nil +} + +type PatchDiscussionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` + Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` + Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PatchDiscussionRequest) Reset() { + *x = PatchDiscussionRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PatchDiscussionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PatchDiscussionRequest) ProtoMessage() {} + +func (x *PatchDiscussionRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[6] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PatchDiscussionRequest.ProtoReflect.Descriptor instead. +func (*PatchDiscussionRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{6} +} + +func (x *PatchDiscussionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *PatchDiscussionRequest) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *PatchDiscussionRequest) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *PatchDiscussionRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *PatchDiscussionRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *PatchDiscussionRequest) GetLabels() []string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *PatchDiscussionRequest) GetAssets() []string { + if x != nil { + return x.Assets + } + return nil +} + +func (x *PatchDiscussionRequest) GetAssignees() []string { + if x != nil { + return x.Assignees + } + return nil +} + +type CreateCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateCommentRequest) Reset() { + *x = CreateCommentRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCommentRequest) ProtoMessage() {} + +func (x *CreateCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[7] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateCommentRequest.ProtoReflect.Descriptor instead. +func (*CreateCommentRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{7} +} + +func (x *CreateCommentRequest) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *CreateCommentRequest) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +type PatchDiscussionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *PatchDiscussionResponse) Reset() { + *x = PatchDiscussionResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *PatchDiscussionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PatchDiscussionResponse) ProtoMessage() {} + +func (x *PatchDiscussionResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[8] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PatchDiscussionResponse.ProtoReflect.Descriptor instead. +func (*PatchDiscussionResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{8} +} + +type CreateCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateCommentResponse) Reset() { + *x = CreateCommentResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateCommentResponse) ProtoMessage() {} + +func (x *CreateCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[9] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateCommentResponse.ProtoReflect.Descriptor instead. +func (*CreateCommentResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{9} +} + +func (x *CreateCommentResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetAllCommentsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Sort string `protobuf:"bytes,2,opt,name=sort,proto3" json:"sort,omitempty"` + Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` + Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,5,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllCommentsRequest) Reset() { + *x = GetAllCommentsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllCommentsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllCommentsRequest) ProtoMessage() {} + +func (x *GetAllCommentsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[10] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllCommentsRequest.ProtoReflect.Descriptor instead. +func (*GetAllCommentsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{10} +} + +func (x *GetAllCommentsRequest) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *GetAllCommentsRequest) GetSort() string { + if x != nil { + return x.Sort + } + return "" +} + +func (x *GetAllCommentsRequest) GetDirection() string { + if x != nil { + return x.Direction + } + return "" +} + +func (x *GetAllCommentsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetAllCommentsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetAllCommentsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Comment `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllCommentsResponse) Reset() { + *x = GetAllCommentsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllCommentsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllCommentsResponse) ProtoMessage() {} + +func (x *GetAllCommentsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[11] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllCommentsResponse.ProtoReflect.Descriptor instead. +func (*GetAllCommentsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{11} +} + +func (x *GetAllCommentsResponse) GetData() []*Comment { + if x != nil { + return x.Data + } + return nil +} + +type GetCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCommentRequest) Reset() { + *x = GetCommentRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCommentRequest) ProtoMessage() {} + +func (x *GetCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[12] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCommentRequest.ProtoReflect.Descriptor instead. +func (*GetCommentRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{12} +} + +func (x *GetCommentRequest) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *GetCommentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Comment `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetCommentResponse) Reset() { + *x = GetCommentResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetCommentResponse) ProtoMessage() {} + +func (x *GetCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[13] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetCommentResponse.ProtoReflect.Descriptor instead. +func (*GetCommentResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{13} +} + +func (x *GetCommentResponse) GetData() *Comment { + if x != nil { + return x.Data + } + return nil +} + +type UpdateCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateCommentRequest) Reset() { + *x = UpdateCommentRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateCommentRequest) ProtoMessage() {} + +func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[14] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead. +func (*UpdateCommentRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{14} +} + +func (x *UpdateCommentRequest) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *UpdateCommentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *UpdateCommentRequest) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +type UpdateCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateCommentResponse) Reset() { + *x = UpdateCommentResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateCommentResponse) ProtoMessage() {} + +func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[15] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateCommentResponse.ProtoReflect.Descriptor instead. +func (*UpdateCommentResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{15} +} + +type DeleteCommentRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + DiscussionId string `protobuf:"bytes,1,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteCommentRequest) Reset() { + *x = DeleteCommentRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteCommentRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCommentRequest) ProtoMessage() {} + +func (x *DeleteCommentRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[16] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteCommentRequest.ProtoReflect.Descriptor instead. +func (*DeleteCommentRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{16} +} + +func (x *DeleteCommentRequest) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *DeleteCommentRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type DeleteCommentResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteCommentResponse) Reset() { + *x = DeleteCommentResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteCommentResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteCommentResponse) ProtoMessage() {} + +func (x *DeleteCommentResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[17] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteCommentResponse.ProtoReflect.Descriptor instead. +func (*DeleteCommentResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{17} +} + +type SearchAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + Rankby string `protobuf:"bytes,2,opt,name=rankby,proto3" json:"rankby,omitempty"` + Size uint32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"` + Filter map[string]string `protobuf:"bytes,4,rep,name=filter,proto3" json:"filter,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Query map[string]string `protobuf:"bytes,5,rep,name=query,proto3" json:"query,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + IncludeFields []string `protobuf:"bytes,6,rep,name=include_fields,json=includeFields,proto3" json:"include_fields,omitempty"` + Offset uint32 `protobuf:"varint,7,opt,name=offset,proto3" json:"offset,omitempty"` + Flags *SearchFlags `protobuf:"bytes,8,opt,name=flags,proto3" json:"flags,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchAssetsRequest) Reset() { + *x = SearchAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchAssetsRequest) ProtoMessage() {} + +func (x *SearchAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[18] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SearchAssetsRequest.ProtoReflect.Descriptor instead. +func (*SearchAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{18} +} + +func (x *SearchAssetsRequest) GetText() string { + if x != nil { + return x.Text + } + return "" +} + +func (x *SearchAssetsRequest) GetRankby() string { + if x != nil { + return x.Rankby + } + return "" +} + +func (x *SearchAssetsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *SearchAssetsRequest) GetFilter() map[string]string { + if x != nil { + return x.Filter + } + return nil +} + +func (x *SearchAssetsRequest) GetQuery() map[string]string { + if x != nil { + return x.Query + } + return nil +} + +func (x *SearchAssetsRequest) GetIncludeFields() []string { + if x != nil { + return x.IncludeFields + } + return nil +} + +func (x *SearchAssetsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *SearchAssetsRequest) GetFlags() *SearchFlags { + if x != nil { + return x.Flags + } + return nil +} + +type SearchFlags struct { + state protoimpl.MessageState `protogen:"open.v1"` + IsColumnSearch bool `protobuf:"varint,1,opt,name=is_column_search,json=isColumnSearch,proto3" json:"is_column_search,omitempty"` + DisableFuzzy bool `protobuf:"varint,2,opt,name=disable_fuzzy,json=disableFuzzy,proto3" json:"disable_fuzzy,omitempty"` + EnableHighlight bool `protobuf:"varint,3,opt,name=enable_highlight,json=enableHighlight,proto3" json:"enable_highlight,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchFlags) Reset() { + *x = SearchFlags{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[19] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchFlags) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchFlags) ProtoMessage() {} + +func (x *SearchFlags) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[19] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SearchFlags.ProtoReflect.Descriptor instead. +func (*SearchFlags) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{19} +} + +func (x *SearchFlags) GetIsColumnSearch() bool { + if x != nil { + return x.IsColumnSearch + } + return false +} + +func (x *SearchFlags) GetDisableFuzzy() bool { + if x != nil { + return x.DisableFuzzy + } + return false +} + +func (x *SearchFlags) GetEnableHighlight() bool { + if x != nil { + return x.EnableHighlight + } + return false +} + +type SearchAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SearchAssetsResponse) Reset() { + *x = SearchAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[20] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SearchAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SearchAssetsResponse) ProtoMessage() {} + +func (x *SearchAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[20] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SearchAssetsResponse.ProtoReflect.Descriptor instead. +func (*SearchAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{20} +} + +func (x *SearchAssetsResponse) GetData() []*Asset { + if x != nil { + return x.Data + } + return nil +} + +type SuggestAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SuggestAssetsRequest) Reset() { + *x = SuggestAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SuggestAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SuggestAssetsRequest) ProtoMessage() {} + +func (x *SuggestAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[21] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SuggestAssetsRequest.ProtoReflect.Descriptor instead. +func (*SuggestAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{21} +} + +func (x *SuggestAssetsRequest) GetText() string { + if x != nil { + return x.Text + } + return "" +} + +type SuggestAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []string `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *SuggestAssetsResponse) Reset() { + *x = SuggestAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SuggestAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SuggestAssetsResponse) ProtoMessage() {} + +func (x *SuggestAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[22] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SuggestAssetsResponse.ProtoReflect.Descriptor instead. +func (*SuggestAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{22} +} + +func (x *SuggestAssetsResponse) GetData() []string { + if x != nil { + return x.Data + } + return nil +} + +type GroupAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Groupby []string `protobuf:"bytes,1,rep,name=groupby,proto3" json:"groupby,omitempty"` + Filter map[string]string `protobuf:"bytes,2,rep,name=filter,proto3" json:"filter,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + IncludeFields []string `protobuf:"bytes,3,rep,name=include_fields,json=includeFields,proto3" json:"include_fields,omitempty"` + Size uint32 `protobuf:"varint,4,opt,name=size,proto3" json:"size,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupAssetsRequest) Reset() { + *x = GroupAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupAssetsRequest) ProtoMessage() {} + +func (x *GroupAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[23] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GroupAssetsRequest.ProtoReflect.Descriptor instead. +func (*GroupAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{23} +} + +func (x *GroupAssetsRequest) GetGroupby() []string { + if x != nil { + return x.Groupby + } + return nil +} + +func (x *GroupAssetsRequest) GetFilter() map[string]string { + if x != nil { + return x.Filter + } + return nil +} + +func (x *GroupAssetsRequest) GetIncludeFields() []string { + if x != nil { + return x.IncludeFields + } + return nil +} + +func (x *GroupAssetsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +type GroupAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetGroups []*AssetGroup `protobuf:"bytes,1,rep,name=asset_groups,json=assetGroups,proto3" json:"asset_groups,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupAssetsResponse) Reset() { + *x = GroupAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupAssetsResponse) ProtoMessage() {} + +func (x *GroupAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[24] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GroupAssetsResponse.ProtoReflect.Descriptor instead. +func (*GroupAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{24} +} + +func (x *GroupAssetsResponse) GetAssetGroups() []*AssetGroup { + if x != nil { + return x.AssetGroups + } + return nil +} + +type AssetGroup struct { + state protoimpl.MessageState `protogen:"open.v1"` + GroupFields []*GroupField `protobuf:"bytes,1,rep,name=group_fields,json=groupFields,proto3" json:"group_fields,omitempty"` + Assets []*Asset `protobuf:"bytes,2,rep,name=assets,proto3" json:"assets,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *AssetGroup) Reset() { + *x = AssetGroup{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AssetGroup) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AssetGroup) ProtoMessage() {} + +func (x *AssetGroup) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[25] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AssetGroup.ProtoReflect.Descriptor instead. +func (*AssetGroup) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{25} +} + +func (x *AssetGroup) GetGroupFields() []*GroupField { + if x != nil { + return x.GroupFields + } + return nil +} + +func (x *AssetGroup) GetAssets() []*Asset { + if x != nil { + return x.Assets + } + return nil +} + +type GroupField struct { + state protoimpl.MessageState `protogen:"open.v1"` + GroupKey string `protobuf:"bytes,1,opt,name=group_key,json=groupKey,proto3" json:"group_key,omitempty"` + GroupValue string `protobuf:"bytes,2,opt,name=group_value,json=groupValue,proto3" json:"group_value,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GroupField) Reset() { + *x = GroupField{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GroupField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GroupField) ProtoMessage() {} + +func (x *GroupField) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[26] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GroupField.ProtoReflect.Descriptor instead. +func (*GroupField) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{26} +} + +func (x *GroupField) GetGroupKey() string { + if x != nil { + return x.GroupKey + } + return "" +} + +func (x *GroupField) GetGroupValue() string { + if x != nil { + return x.GroupValue + } + return "" +} + +type GetGraphRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + Level uint32 `protobuf:"varint,2,opt,name=level,proto3" json:"level,omitempty"` + Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` + WithAttributes *bool `protobuf:"varint,4,opt,name=with_attributes,json=withAttributes,proto3,oneof" json:"with_attributes,omitempty"` + IncludeDeleted bool `protobuf:"varint,5,opt,name=include_deleted,json=includeDeleted,proto3" json:"include_deleted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGraphRequest) Reset() { + *x = GetGraphRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGraphRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGraphRequest) ProtoMessage() {} + +func (x *GetGraphRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[27] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetGraphRequest.ProtoReflect.Descriptor instead. +func (*GetGraphRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{27} +} + +func (x *GetGraphRequest) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *GetGraphRequest) GetLevel() uint32 { + if x != nil { + return x.Level + } + return 0 +} + +func (x *GetGraphRequest) GetDirection() string { + if x != nil { + return x.Direction + } + return "" +} + +func (x *GetGraphRequest) GetWithAttributes() bool { + if x != nil && x.WithAttributes != nil { + return *x.WithAttributes + } + return false +} + +func (x *GetGraphRequest) GetIncludeDeleted() bool { + if x != nil { + return x.IncludeDeleted + } + return false +} + +type GetGraphResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + // Edges in the graph. + Data []*LineageEdge `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + // Key is the asset URN. Node attributes, if present, will be returned for + // source and target nodes in the LineageEdge. + NodeAttrs map[string]*GetGraphResponse_NodeAttributes `protobuf:"bytes,2,rep,name=node_attrs,json=nodeAttrs,proto3" json:"node_attrs,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGraphResponse) Reset() { + *x = GetGraphResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGraphResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGraphResponse) ProtoMessage() {} + +func (x *GetGraphResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[28] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetGraphResponse.ProtoReflect.Descriptor instead. +func (*GetGraphResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28} +} + +func (x *GetGraphResponse) GetData() []*LineageEdge { + if x != nil { + return x.Data + } + return nil +} + +func (x *GetGraphResponse) GetNodeAttrs() map[string]*GetGraphResponse_NodeAttributes { + if x != nil { + return x.NodeAttrs + } + return nil +} + +type GetAllTypesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` + QFields string `protobuf:"bytes,2,opt,name=q_fields,json=qFields,proto3" json:"q_fields,omitempty"` + Types string `protobuf:"bytes,3,opt,name=types,proto3" json:"types,omitempty"` + Services string `protobuf:"bytes,4,opt,name=services,proto3" json:"services,omitempty"` + Data map[string]string `protobuf:"bytes,5,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTypesRequest) Reset() { + *x = GetAllTypesRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[29] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTypesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTypesRequest) ProtoMessage() {} + +func (x *GetAllTypesRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[29] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTypesRequest.ProtoReflect.Descriptor instead. +func (*GetAllTypesRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{29} +} + +func (x *GetAllTypesRequest) GetQ() string { + if x != nil { + return x.Q + } + return "" +} + +func (x *GetAllTypesRequest) GetQFields() string { + if x != nil { + return x.QFields + } + return "" +} + +func (x *GetAllTypesRequest) GetTypes() string { + if x != nil { + return x.Types + } + return "" +} + +func (x *GetAllTypesRequest) GetServices() string { + if x != nil { + return x.Services + } + return "" +} + +func (x *GetAllTypesRequest) GetData() map[string]string { + if x != nil { + return x.Data + } + return nil +} + +type GetAllTypesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Type `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTypesResponse) Reset() { + *x = GetAllTypesResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[30] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTypesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTypesResponse) ProtoMessage() {} + +func (x *GetAllTypesResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[30] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTypesResponse.ProtoReflect.Descriptor instead. +func (*GetAllTypesResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{30} +} + +func (x *GetAllTypesResponse) GetData() []*Type { + if x != nil { + return x.Data + } + return nil +} + +type GetAllAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Q string `protobuf:"bytes,1,opt,name=q,proto3" json:"q,omitempty"` + QFields string `protobuf:"bytes,2,opt,name=q_fields,json=qFields,proto3" json:"q_fields,omitempty"` + Types string `protobuf:"bytes,3,opt,name=types,proto3" json:"types,omitempty"` + Services string `protobuf:"bytes,4,opt,name=services,proto3" json:"services,omitempty"` + Sort string `protobuf:"bytes,5,opt,name=sort,proto3" json:"sort,omitempty"` + Direction string `protobuf:"bytes,6,opt,name=direction,proto3" json:"direction,omitempty"` + Data map[string]string `protobuf:"bytes,7,rep,name=data,proto3" json:"data,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"` + WithTotal bool `protobuf:"varint,10,opt,name=with_total,json=withTotal,proto3" json:"with_total,omitempty"` + IsDeleted bool `protobuf:"varint,11,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllAssetsRequest) Reset() { + *x = GetAllAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[31] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllAssetsRequest) ProtoMessage() {} + +func (x *GetAllAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[31] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllAssetsRequest.ProtoReflect.Descriptor instead. +func (*GetAllAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{31} +} + +func (x *GetAllAssetsRequest) GetQ() string { + if x != nil { + return x.Q + } + return "" +} + +func (x *GetAllAssetsRequest) GetQFields() string { + if x != nil { + return x.QFields + } + return "" +} + +func (x *GetAllAssetsRequest) GetTypes() string { + if x != nil { + return x.Types + } + return "" +} + +func (x *GetAllAssetsRequest) GetServices() string { + if x != nil { + return x.Services + } + return "" +} + +func (x *GetAllAssetsRequest) GetSort() string { + if x != nil { + return x.Sort + } + return "" +} + +func (x *GetAllAssetsRequest) GetDirection() string { + if x != nil { + return x.Direction + } + return "" +} + +func (x *GetAllAssetsRequest) GetData() map[string]string { + if x != nil { + return x.Data + } + return nil +} + +func (x *GetAllAssetsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetAllAssetsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +func (x *GetAllAssetsRequest) GetWithTotal() bool { + if x != nil { + return x.WithTotal + } + return false +} + +func (x *GetAllAssetsRequest) GetIsDeleted() bool { + if x != nil { + return x.IsDeleted + } + return false +} + +type GetAllAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + Total uint32 `protobuf:"varint,2,opt,name=total,proto3" json:"total,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllAssetsResponse) Reset() { + *x = GetAllAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[32] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllAssetsResponse) ProtoMessage() {} + +func (x *GetAllAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[32] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllAssetsResponse.ProtoReflect.Descriptor instead. +func (*GetAllAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{32} +} + +func (x *GetAllAssetsResponse) GetData() []*Asset { + if x != nil { + return x.Data + } + return nil +} + +func (x *GetAllAssetsResponse) GetTotal() uint32 { + if x != nil { + return x.Total + } + return 0 +} + +type GetAssetByIDRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetByIDRequest) Reset() { + *x = GetAssetByIDRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[33] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetByIDRequest) ProtoMessage() {} + +func (x *GetAssetByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[33] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetByIDRequest.ProtoReflect.Descriptor instead. +func (*GetAssetByIDRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{33} +} + +func (x *GetAssetByIDRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetAssetByIDResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetByIDResponse) Reset() { + *x = GetAssetByIDResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[34] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetByIDResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetByIDResponse) ProtoMessage() {} + +func (x *GetAssetByIDResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[34] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetByIDResponse.ProtoReflect.Descriptor instead. +func (*GetAssetByIDResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{34} +} + +func (x *GetAssetByIDResponse) GetData() *Asset { + if x != nil { + return x.Data + } + return nil +} + +type UpsertAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Asset *UpsertAssetRequest_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Upstreams []*LineageNode `protobuf:"bytes,2,rep,name=upstreams,proto3" json:"upstreams,omitempty"` + Downstreams []*LineageNode `protobuf:"bytes,3,rep,name=downstreams,proto3" json:"downstreams,omitempty"` + UpdateOnly bool `protobuf:"varint,4,opt,name=update_only,json=updateOnly,proto3" json:"update_only,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertAssetRequest) Reset() { + *x = UpsertAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[35] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertAssetRequest) ProtoMessage() {} + +func (x *UpsertAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[35] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertAssetRequest.ProtoReflect.Descriptor instead. +func (*UpsertAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{35} +} + +func (x *UpsertAssetRequest) GetAsset() *UpsertAssetRequest_Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *UpsertAssetRequest) GetUpstreams() []*LineageNode { + if x != nil { + return x.Upstreams + } + return nil +} + +func (x *UpsertAssetRequest) GetDownstreams() []*LineageNode { + if x != nil { + return x.Downstreams + } + return nil +} + +func (x *UpsertAssetRequest) GetUpdateOnly() bool { + if x != nil { + return x.UpdateOnly + } + return false +} + +type UpsertAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertAssetResponse) Reset() { + *x = UpsertAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[36] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertAssetResponse) ProtoMessage() {} + +func (x *UpsertAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[36] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertAssetResponse.ProtoReflect.Descriptor instead. +func (*UpsertAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{36} +} + +func (x *UpsertAssetResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type UpsertPatchAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Asset *UpsertPatchAssetRequest_Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` + Upstreams []*LineageNode `protobuf:"bytes,2,rep,name=upstreams,proto3" json:"upstreams,omitempty"` + Downstreams []*LineageNode `protobuf:"bytes,3,rep,name=downstreams,proto3" json:"downstreams,omitempty"` + // overwrite_lineage determines whether the asset's lineage should be + // overwritten with the upstreams and downstreams specified in the request. + // Currently, it is only applicable when both upstreams and downstreams are + // empty/not specified. + OverwriteLineage bool `protobuf:"varint,4,opt,name=overwrite_lineage,json=overwriteLineage,proto3" json:"overwrite_lineage,omitempty"` + UpdateOnly bool `protobuf:"varint,5,opt,name=update_only,json=updateOnly,proto3" json:"update_only,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertPatchAssetRequest) Reset() { + *x = UpsertPatchAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[37] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertPatchAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertPatchAssetRequest) ProtoMessage() {} + +func (x *UpsertPatchAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[37] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertPatchAssetRequest.ProtoReflect.Descriptor instead. +func (*UpsertPatchAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{37} +} + +func (x *UpsertPatchAssetRequest) GetAsset() *UpsertPatchAssetRequest_Asset { + if x != nil { + return x.Asset + } + return nil +} + +func (x *UpsertPatchAssetRequest) GetUpstreams() []*LineageNode { + if x != nil { + return x.Upstreams + } + return nil +} + +func (x *UpsertPatchAssetRequest) GetDownstreams() []*LineageNode { + if x != nil { + return x.Downstreams + } + return nil +} + +func (x *UpsertPatchAssetRequest) GetOverwriteLineage() bool { + if x != nil { + return x.OverwriteLineage + } + return false +} + +func (x *UpsertPatchAssetRequest) GetUpdateOnly() bool { + if x != nil { + return x.UpdateOnly + } + return false +} + +type UpsertPatchAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertPatchAssetResponse) Reset() { + *x = UpsertPatchAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[38] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertPatchAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertPatchAssetResponse) ProtoMessage() {} + +func (x *UpsertPatchAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[38] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertPatchAssetResponse.ProtoReflect.Descriptor instead. +func (*UpsertPatchAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{38} +} + +func (x *UpsertPatchAssetResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type DeleteAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteAssetRequest) Reset() { + *x = DeleteAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[39] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteAssetRequest) ProtoMessage() {} + +func (x *DeleteAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[39] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteAssetRequest.ProtoReflect.Descriptor instead. +func (*DeleteAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{39} +} + +func (x *DeleteAssetRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type DeleteAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteAssetResponse) Reset() { + *x = DeleteAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[40] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteAssetResponse) ProtoMessage() {} + +func (x *DeleteAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[40] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteAssetResponse.ProtoReflect.Descriptor instead. +func (*DeleteAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{40} +} + +type GetAssetStargazersRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetStargazersRequest) Reset() { + *x = GetAssetStargazersRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[41] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetStargazersRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetStargazersRequest) ProtoMessage() {} + +func (x *GetAssetStargazersRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[41] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetStargazersRequest.ProtoReflect.Descriptor instead. +func (*GetAssetStargazersRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{41} +} + +func (x *GetAssetStargazersRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *GetAssetStargazersRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetAssetStargazersRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetAssetStargazersResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*User `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetStargazersResponse) Reset() { + *x = GetAssetStargazersResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[42] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetStargazersResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetStargazersResponse) ProtoMessage() {} + +func (x *GetAssetStargazersResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[42] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetStargazersResponse.ProtoReflect.Descriptor instead. +func (*GetAssetStargazersResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{42} +} + +func (x *GetAssetStargazersResponse) GetData() []*User { + if x != nil { + return x.Data + } + return nil +} + +type GetAssetVersionHistoryRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetVersionHistoryRequest) Reset() { + *x = GetAssetVersionHistoryRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[43] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetVersionHistoryRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetVersionHistoryRequest) ProtoMessage() {} + +func (x *GetAssetVersionHistoryRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[43] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetVersionHistoryRequest.ProtoReflect.Descriptor instead. +func (*GetAssetVersionHistoryRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{43} +} + +func (x *GetAssetVersionHistoryRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *GetAssetVersionHistoryRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetAssetVersionHistoryRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetAssetVersionHistoryResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetVersionHistoryResponse) Reset() { + *x = GetAssetVersionHistoryResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[44] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetVersionHistoryResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetVersionHistoryResponse) ProtoMessage() {} + +func (x *GetAssetVersionHistoryResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[44] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetVersionHistoryResponse.ProtoReflect.Descriptor instead. +func (*GetAssetVersionHistoryResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{44} +} + +func (x *GetAssetVersionHistoryResponse) GetData() []*Asset { + if x != nil { + return x.Data + } + return nil +} + +type GetAssetByVersionRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetByVersionRequest) Reset() { + *x = GetAssetByVersionRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[45] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetByVersionRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetByVersionRequest) ProtoMessage() {} + +func (x *GetAssetByVersionRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[45] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetByVersionRequest.ProtoReflect.Descriptor instead. +func (*GetAssetByVersionRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{45} +} + +func (x *GetAssetByVersionRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *GetAssetByVersionRequest) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +type GetAssetByVersionResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAssetByVersionResponse) Reset() { + *x = GetAssetByVersionResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[46] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAssetByVersionResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAssetByVersionResponse) ProtoMessage() {} + +func (x *GetAssetByVersionResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[46] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAssetByVersionResponse.ProtoReflect.Descriptor instead. +func (*GetAssetByVersionResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{46} +} + +func (x *GetAssetByVersionResponse) GetData() *Asset { + if x != nil { + return x.Data + } + return nil +} + +type CreateAssetProbeRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetUrn string `protobuf:"bytes,1,opt,name=asset_urn,json=assetUrn,proto3" json:"asset_urn,omitempty"` + Probe *CreateAssetProbeRequest_Probe `protobuf:"bytes,2,opt,name=probe,proto3" json:"probe,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAssetProbeRequest) Reset() { + *x = CreateAssetProbeRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[47] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAssetProbeRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAssetProbeRequest) ProtoMessage() {} + +func (x *CreateAssetProbeRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[47] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAssetProbeRequest.ProtoReflect.Descriptor instead. +func (*CreateAssetProbeRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{47} +} + +func (x *CreateAssetProbeRequest) GetAssetUrn() string { + if x != nil { + return x.AssetUrn + } + return "" +} + +func (x *CreateAssetProbeRequest) GetProbe() *CreateAssetProbeRequest_Probe { + if x != nil { + return x.Probe + } + return nil +} + +type CreateAssetProbeResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAssetProbeResponse) Reset() { + *x = CreateAssetProbeResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[48] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAssetProbeResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAssetProbeResponse) ProtoMessage() {} + +func (x *CreateAssetProbeResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[48] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAssetProbeResponse.ProtoReflect.Descriptor instead. +func (*CreateAssetProbeResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{48} +} + +func (x *CreateAssetProbeResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetUserStarredAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` + Size uint32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserStarredAssetsRequest) Reset() { + *x = GetUserStarredAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[49] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserStarredAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserStarredAssetsRequest) ProtoMessage() {} + +func (x *GetUserStarredAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[49] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserStarredAssetsRequest.ProtoReflect.Descriptor instead. +func (*GetUserStarredAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{49} +} + +func (x *GetUserStarredAssetsRequest) GetUserId() string { + if x != nil { + return x.UserId + } + return "" +} + +func (x *GetUserStarredAssetsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetUserStarredAssetsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetUserStarredAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetUserStarredAssetsResponse) Reset() { + *x = GetUserStarredAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[50] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetUserStarredAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetUserStarredAssetsResponse) ProtoMessage() {} + +func (x *GetUserStarredAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[50] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetUserStarredAssetsResponse.ProtoReflect.Descriptor instead. +func (*GetUserStarredAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{50} +} + +func (x *GetUserStarredAssetsResponse) GetData() []*Asset { + if x != nil { + return x.Data + } + return nil +} + +type GetMyStarredAssetsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Size uint32 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,2,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyStarredAssetsRequest) Reset() { + *x = GetMyStarredAssetsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[51] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyStarredAssetsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyStarredAssetsRequest) ProtoMessage() {} + +func (x *GetMyStarredAssetsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[51] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyStarredAssetsRequest.ProtoReflect.Descriptor instead. +func (*GetMyStarredAssetsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{51} +} + +func (x *GetMyStarredAssetsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetMyStarredAssetsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetMyStarredAssetsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Asset `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyStarredAssetsResponse) Reset() { + *x = GetMyStarredAssetsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[52] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyStarredAssetsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyStarredAssetsResponse) ProtoMessage() {} + +func (x *GetMyStarredAssetsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[52] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyStarredAssetsResponse.ProtoReflect.Descriptor instead. +func (*GetMyStarredAssetsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{52} +} + +func (x *GetMyStarredAssetsResponse) GetData() []*Asset { + if x != nil { + return x.Data + } + return nil +} + +type GetMyStarredAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyStarredAssetRequest) Reset() { + *x = GetMyStarredAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyStarredAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyStarredAssetRequest) ProtoMessage() {} + +func (x *GetMyStarredAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[53] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyStarredAssetRequest.ProtoReflect.Descriptor instead. +func (*GetMyStarredAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{53} +} + +func (x *GetMyStarredAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +type GetMyStarredAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Asset `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyStarredAssetResponse) Reset() { + *x = GetMyStarredAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyStarredAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyStarredAssetResponse) ProtoMessage() {} + +func (x *GetMyStarredAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[54] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyStarredAssetResponse.ProtoReflect.Descriptor instead. +func (*GetMyStarredAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{54} +} + +func (x *GetMyStarredAssetResponse) GetData() *Asset { + if x != nil { + return x.Data + } + return nil +} + +type StarAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StarAssetRequest) Reset() { + *x = StarAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StarAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StarAssetRequest) ProtoMessage() {} + +func (x *StarAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[55] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StarAssetRequest.ProtoReflect.Descriptor instead. +func (*StarAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{55} +} + +func (x *StarAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +type StarAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *StarAssetResponse) Reset() { + *x = StarAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *StarAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StarAssetResponse) ProtoMessage() {} + +func (x *StarAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[56] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StarAssetResponse.ProtoReflect.Descriptor instead. +func (*StarAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{56} +} + +func (x *StarAssetResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type UnstarAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnstarAssetRequest) Reset() { + *x = UnstarAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[57] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnstarAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnstarAssetRequest) ProtoMessage() {} + +func (x *UnstarAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[57] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnstarAssetRequest.ProtoReflect.Descriptor instead. +func (*UnstarAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{57} +} + +func (x *UnstarAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +type UnstarAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UnstarAssetResponse) Reset() { + *x = UnstarAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[58] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UnstarAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UnstarAssetResponse) ProtoMessage() {} + +func (x *UnstarAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[58] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UnstarAssetResponse.ProtoReflect.Descriptor instead. +func (*UnstarAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{58} +} + +type GetMyDiscussionsRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Asset string `protobuf:"bytes,4,opt,name=asset,proto3" json:"asset,omitempty"` + Labels string `protobuf:"bytes,5,opt,name=labels,proto3" json:"labels,omitempty"` + Sort string `protobuf:"bytes,6,opt,name=sort,proto3" json:"sort,omitempty"` + Direction string `protobuf:"bytes,7,opt,name=direction,proto3" json:"direction,omitempty"` + Size uint32 `protobuf:"varint,8,opt,name=size,proto3" json:"size,omitempty"` + Offset uint32 `protobuf:"varint,9,opt,name=offset,proto3" json:"offset,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyDiscussionsRequest) Reset() { + *x = GetMyDiscussionsRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[59] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyDiscussionsRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyDiscussionsRequest) ProtoMessage() {} + +func (x *GetMyDiscussionsRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[59] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyDiscussionsRequest.ProtoReflect.Descriptor instead. +func (*GetMyDiscussionsRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{59} +} + +func (x *GetMyDiscussionsRequest) GetFilter() string { + if x != nil { + return x.Filter + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetAsset() string { + if x != nil { + return x.Asset + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetLabels() string { + if x != nil { + return x.Labels + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetSort() string { + if x != nil { + return x.Sort + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetDirection() string { + if x != nil { + return x.Direction + } + return "" +} + +func (x *GetMyDiscussionsRequest) GetSize() uint32 { + if x != nil { + return x.Size + } + return 0 +} + +func (x *GetMyDiscussionsRequest) GetOffset() uint32 { + if x != nil { + return x.Offset + } + return 0 +} + +type GetMyDiscussionsResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Discussion `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetMyDiscussionsResponse) Reset() { + *x = GetMyDiscussionsResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[60] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetMyDiscussionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetMyDiscussionsResponse) ProtoMessage() {} + +func (x *GetMyDiscussionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[60] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetMyDiscussionsResponse.ProtoReflect.Descriptor instead. +func (*GetMyDiscussionsResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{60} +} + +func (x *GetMyDiscussionsResponse) GetData() []*Discussion { + if x != nil { + return x.Data + } + return nil +} + +type CreateTagAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // required + TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` // required + TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` // required + TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` + TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTagAssetRequest) Reset() { + *x = CreateTagAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[61] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTagAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTagAssetRequest) ProtoMessage() {} + +func (x *CreateTagAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[61] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTagAssetRequest.ProtoReflect.Descriptor instead. +func (*CreateTagAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{61} +} + +func (x *CreateTagAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *CreateTagAssetRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +func (x *CreateTagAssetRequest) GetTagValues() []*TagValue { + if x != nil { + return x.TagValues + } + return nil +} + +func (x *CreateTagAssetRequest) GetTemplateDisplayName() string { + if x != nil { + return x.TemplateDisplayName + } + return "" +} + +func (x *CreateTagAssetRequest) GetTemplateDescription() string { + if x != nil { + return x.TemplateDescription + } + return "" +} + +type CreateTagAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTagAssetResponse) Reset() { + *x = CreateTagAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[62] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTagAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTagAssetResponse) ProtoMessage() {} + +func (x *CreateTagAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[62] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTagAssetResponse.ProtoReflect.Descriptor instead. +func (*CreateTagAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{62} +} + +func (x *CreateTagAssetResponse) GetData() *Tag { + if x != nil { + return x.Data + } + return nil +} + +type GetTagByAssetAndTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + TemplateUrn string `protobuf:"bytes,3,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTagByAssetAndTemplateRequest) Reset() { + *x = GetTagByAssetAndTemplateRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[63] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTagByAssetAndTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTagByAssetAndTemplateRequest) ProtoMessage() {} + +func (x *GetTagByAssetAndTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[63] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTagByAssetAndTemplateRequest.ProtoReflect.Descriptor instead. +func (*GetTagByAssetAndTemplateRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{63} +} + +func (x *GetTagByAssetAndTemplateRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *GetTagByAssetAndTemplateRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +type GetTagByAssetAndTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTagByAssetAndTemplateResponse) Reset() { + *x = GetTagByAssetAndTemplateResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[64] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTagByAssetAndTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTagByAssetAndTemplateResponse) ProtoMessage() {} + +func (x *GetTagByAssetAndTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[64] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTagByAssetAndTemplateResponse.ProtoReflect.Descriptor instead. +func (*GetTagByAssetAndTemplateResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{64} +} + +func (x *GetTagByAssetAndTemplateResponse) GetData() *Tag { + if x != nil { + return x.Data + } + return nil +} + +type UpdateTagAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` // required + TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` // required + TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` + TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTagAssetRequest) Reset() { + *x = UpdateTagAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[65] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTagAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTagAssetRequest) ProtoMessage() {} + +func (x *UpdateTagAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[65] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTagAssetRequest.ProtoReflect.Descriptor instead. +func (*UpdateTagAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{65} +} + +func (x *UpdateTagAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *UpdateTagAssetRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +func (x *UpdateTagAssetRequest) GetTagValues() []*TagValue { + if x != nil { + return x.TagValues + } + return nil +} + +func (x *UpdateTagAssetRequest) GetTemplateDisplayName() string { + if x != nil { + return x.TemplateDisplayName + } + return "" +} + +func (x *UpdateTagAssetRequest) GetTemplateDescription() string { + if x != nil { + return x.TemplateDescription + } + return "" +} + +type UpdateTagAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *Tag `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTagAssetResponse) Reset() { + *x = UpdateTagAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[66] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTagAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTagAssetResponse) ProtoMessage() {} + +func (x *UpdateTagAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[66] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTagAssetResponse.ProtoReflect.Descriptor instead. +func (*UpdateTagAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{66} +} + +func (x *UpdateTagAssetResponse) GetData() *Tag { + if x != nil { + return x.Data + } + return nil +} + +type DeleteTagAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTagAssetRequest) Reset() { + *x = DeleteTagAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[67] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTagAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTagAssetRequest) ProtoMessage() {} + +func (x *DeleteTagAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[67] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTagAssetRequest.ProtoReflect.Descriptor instead. +func (*DeleteTagAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{67} +} + +func (x *DeleteTagAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *DeleteTagAssetRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +type DeleteTagAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTagAssetResponse) Reset() { + *x = DeleteTagAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[68] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTagAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTagAssetResponse) ProtoMessage() {} + +func (x *DeleteTagAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[68] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTagAssetResponse.ProtoReflect.Descriptor instead. +func (*DeleteTagAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{68} +} + +type GetAllTagsByAssetRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTagsByAssetRequest) Reset() { + *x = GetAllTagsByAssetRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[69] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTagsByAssetRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTagsByAssetRequest) ProtoMessage() {} + +func (x *GetAllTagsByAssetRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[69] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTagsByAssetRequest.ProtoReflect.Descriptor instead. +func (*GetAllTagsByAssetRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{69} +} + +func (x *GetAllTagsByAssetRequest) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +type GetAllTagsByAssetResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*Tag `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTagsByAssetResponse) Reset() { + *x = GetAllTagsByAssetResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[70] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTagsByAssetResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTagsByAssetResponse) ProtoMessage() {} + +func (x *GetAllTagsByAssetResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[70] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTagsByAssetResponse.ProtoReflect.Descriptor instead. +func (*GetAllTagsByAssetResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{70} +} + +func (x *GetAllTagsByAssetResponse) GetData() []*Tag { + if x != nil { + return x.Data + } + return nil +} + +type GetAllTagTemplatesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTagTemplatesRequest) Reset() { + *x = GetAllTagTemplatesRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[71] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTagTemplatesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTagTemplatesRequest) ProtoMessage() {} + +func (x *GetAllTagTemplatesRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[71] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTagTemplatesRequest.ProtoReflect.Descriptor instead. +func (*GetAllTagTemplatesRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{71} +} + +func (x *GetAllTagTemplatesRequest) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +type GetAllTagTemplatesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data []*TagTemplate `protobuf:"bytes,1,rep,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetAllTagTemplatesResponse) Reset() { + *x = GetAllTagTemplatesResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[72] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetAllTagTemplatesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetAllTagTemplatesResponse) ProtoMessage() {} + +func (x *GetAllTagTemplatesResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[72] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetAllTagTemplatesResponse.ProtoReflect.Descriptor instead. +func (*GetAllTagTemplatesResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{72} +} + +func (x *GetAllTagTemplatesResponse) GetData() []*TagTemplate { + if x != nil { + return x.Data + } + return nil +} + +type CreateTagTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` // required + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // required + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // required + Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` // required + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTagTemplateRequest) Reset() { + *x = CreateTagTemplateRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[73] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTagTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTagTemplateRequest) ProtoMessage() {} + +func (x *CreateTagTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[73] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTagTemplateRequest.ProtoReflect.Descriptor instead. +func (*CreateTagTemplateRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{73} +} + +func (x *CreateTagTemplateRequest) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *CreateTagTemplateRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *CreateTagTemplateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *CreateTagTemplateRequest) GetFields() []*TagTemplateField { + if x != nil { + return x.Fields + } + return nil +} + +type CreateTagTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateTagTemplateResponse) Reset() { + *x = CreateTagTemplateResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[74] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateTagTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateTagTemplateResponse) ProtoMessage() {} + +func (x *CreateTagTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[74] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateTagTemplateResponse.ProtoReflect.Descriptor instead. +func (*CreateTagTemplateResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{74} +} + +func (x *CreateTagTemplateResponse) GetData() *TagTemplate { + if x != nil { + return x.Data + } + return nil +} + +type GetTagTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTagTemplateRequest) Reset() { + *x = GetTagTemplateRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[75] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTagTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTagTemplateRequest) ProtoMessage() {} + +func (x *GetTagTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[75] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTagTemplateRequest.ProtoReflect.Descriptor instead. +func (*GetTagTemplateRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{75} +} + +func (x *GetTagTemplateRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +type GetTagTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetTagTemplateResponse) Reset() { + *x = GetTagTemplateResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[76] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetTagTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetTagTemplateResponse) ProtoMessage() {} + +func (x *GetTagTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[76] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetTagTemplateResponse.ProtoReflect.Descriptor instead. +func (*GetTagTemplateResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{76} +} + +func (x *GetTagTemplateResponse) GetData() *TagTemplate { + if x != nil { + return x.Data + } + return nil +} + +type UpdateTagTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` // required + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // required + Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` // required + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTagTemplateRequest) Reset() { + *x = UpdateTagTemplateRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[77] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTagTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTagTemplateRequest) ProtoMessage() {} + +func (x *UpdateTagTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[77] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTagTemplateRequest.ProtoReflect.Descriptor instead. +func (*UpdateTagTemplateRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{77} +} + +func (x *UpdateTagTemplateRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +func (x *UpdateTagTemplateRequest) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *UpdateTagTemplateRequest) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpdateTagTemplateRequest) GetFields() []*TagTemplateField { + if x != nil { + return x.Fields + } + return nil +} + +type UpdateTagTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Data *TagTemplate `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateTagTemplateResponse) Reset() { + *x = UpdateTagTemplateResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[78] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateTagTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateTagTemplateResponse) ProtoMessage() {} + +func (x *UpdateTagTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[78] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateTagTemplateResponse.ProtoReflect.Descriptor instead. +func (*UpdateTagTemplateResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{78} +} + +func (x *UpdateTagTemplateResponse) GetData() *TagTemplate { + if x != nil { + return x.Data + } + return nil +} + +type DeleteTagTemplateRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + TemplateUrn string `protobuf:"bytes,1,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTagTemplateRequest) Reset() { + *x = DeleteTagTemplateRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[79] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTagTemplateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTagTemplateRequest) ProtoMessage() {} + +func (x *DeleteTagTemplateRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[79] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTagTemplateRequest.ProtoReflect.Descriptor instead. +func (*DeleteTagTemplateRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{79} +} + +func (x *DeleteTagTemplateRequest) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +type DeleteTagTemplateResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *DeleteTagTemplateResponse) Reset() { + *x = DeleteTagTemplateResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[80] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *DeleteTagTemplateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteTagTemplateResponse) ProtoMessage() {} + +func (x *DeleteTagTemplateResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[80] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteTagTemplateResponse.ProtoReflect.Descriptor instead. +func (*DeleteTagTemplateResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{80} +} + +type CreateNamespaceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Metadata *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNamespaceRequest) Reset() { + *x = CreateNamespaceRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[81] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNamespaceRequest) ProtoMessage() {} + +func (x *CreateNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[81] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNamespaceRequest.ProtoReflect.Descriptor instead. +func (*CreateNamespaceRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{81} +} + +func (x *CreateNamespaceRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *CreateNamespaceRequest) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *CreateNamespaceRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *CreateNamespaceRequest) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +type CreateNamespaceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateNamespaceResponse) Reset() { + *x = CreateNamespaceResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[82] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateNamespaceResponse) ProtoMessage() {} + +func (x *CreateNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[82] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateNamespaceResponse.ProtoReflect.Descriptor instead. +func (*CreateNamespaceResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{82} +} + +func (x *CreateNamespaceResponse) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetNamespaceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // set either id or name + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNamespaceRequest) Reset() { + *x = GetNamespaceRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[83] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNamespaceRequest) ProtoMessage() {} + +func (x *GetNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[83] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetNamespaceRequest.ProtoReflect.Descriptor instead. +func (*GetNamespaceRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{83} +} + +func (x *GetNamespaceRequest) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +type GetNamespaceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespace *Namespace `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetNamespaceResponse) Reset() { + *x = GetNamespaceResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[84] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetNamespaceResponse) ProtoMessage() {} + +func (x *GetNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[84] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetNamespaceResponse.ProtoReflect.Descriptor instead. +func (*GetNamespaceResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{84} +} + +func (x *GetNamespaceResponse) GetNamespace() *Namespace { + if x != nil { + return x.Namespace + } + return nil +} + +type UpdateNamespaceRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + // set either id or name + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + State string `protobuf:"bytes,2,opt,name=state,proto3" json:"state,omitempty"` + Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNamespaceRequest) Reset() { + *x = UpdateNamespaceRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[85] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNamespaceRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNamespaceRequest) ProtoMessage() {} + +func (x *UpdateNamespaceRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[85] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateNamespaceRequest.ProtoReflect.Descriptor instead. +func (*UpdateNamespaceRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{85} +} + +func (x *UpdateNamespaceRequest) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *UpdateNamespaceRequest) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *UpdateNamespaceRequest) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +type UpdateNamespaceResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpdateNamespaceResponse) Reset() { + *x = UpdateNamespaceResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[86] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpdateNamespaceResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpdateNamespaceResponse) ProtoMessage() {} + +func (x *UpdateNamespaceResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[86] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpdateNamespaceResponse.ProtoReflect.Descriptor instead. +func (*UpdateNamespaceResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{86} +} + +type ListNamespacesRequest struct { + state protoimpl.MessageState `protogen:"open.v1"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNamespacesRequest) Reset() { + *x = ListNamespacesRequest{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[87] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNamespacesRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNamespacesRequest) ProtoMessage() {} + +func (x *ListNamespacesRequest) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[87] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNamespacesRequest.ProtoReflect.Descriptor instead. +func (*ListNamespacesRequest) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{87} +} + +type ListNamespacesResponse struct { + state protoimpl.MessageState `protogen:"open.v1"` + Namespaces []*Namespace `protobuf:"bytes,1,rep,name=namespaces,proto3" json:"namespaces,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *ListNamespacesResponse) Reset() { + *x = ListNamespacesResponse{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[88] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ListNamespacesResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ListNamespacesResponse) ProtoMessage() {} + +func (x *ListNamespacesResponse) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[88] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ListNamespacesResponse.ProtoReflect.Descriptor instead. +func (*ListNamespacesResponse) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{88} +} + +func (x *ListNamespacesResponse) GetNamespaces() []*Namespace { + if x != nil { + return x.Namespaces + } + return nil +} + +type User struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Uuid string `protobuf:"bytes,2,opt,name=uuid,proto3" json:"uuid,omitempty"` + Email string `protobuf:"bytes,3,opt,name=email,proto3" json:"email,omitempty"` + Provider string `protobuf:"bytes,4,opt,name=provider,proto3" json:"provider,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *User) Reset() { + *x = User{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[89] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *User) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*User) ProtoMessage() {} + +func (x *User) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[89] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use User.ProtoReflect.Descriptor instead. +func (*User) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{89} +} + +func (x *User) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *User) GetUuid() string { + if x != nil { + return x.Uuid + } + return "" +} + +func (x *User) GetEmail() string { + if x != nil { + return x.Email + } + return "" +} + +func (x *User) GetProvider() string { + if x != nil { + return x.Provider + } + return "" +} + +func (x *User) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *User) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type Change struct { + state protoimpl.MessageState `protogen:"open.v1"` + Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` + Path []string `protobuf:"bytes,2,rep,name=path,proto3" json:"path,omitempty"` + From *structpb.Value `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"` + To *structpb.Value `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Change) Reset() { + *x = Change{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[90] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Change) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Change) ProtoMessage() {} + +func (x *Change) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[90] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Change.ProtoReflect.Descriptor instead. +func (*Change) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{90} +} + +func (x *Change) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *Change) GetPath() []string { + if x != nil { + return x.Path + } + return nil +} + +func (x *Change) GetFrom() *structpb.Value { + if x != nil { + return x.From + } + return nil +} + +func (x *Change) GetTo() *structpb.Value { + if x != nil { + return x.To + } + return nil +} + +type Asset struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` + Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` + Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"` + Data *structpb.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` + Labels map[string]string `protobuf:"bytes,8,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Owners []*User `protobuf:"bytes,9,rep,name=owners,proto3" json:"owners,omitempty"` + Version string `protobuf:"bytes,10,opt,name=version,proto3" json:"version,omitempty"` + UpdatedBy *User `protobuf:"bytes,11,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + Changelog []*Change `protobuf:"bytes,12,rep,name=changelog,proto3" json:"changelog,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + Url string `protobuf:"bytes,15,opt,name=url,proto3" json:"url,omitempty"` + Probes []*Probe `protobuf:"bytes,16,rep,name=probes,proto3" json:"probes,omitempty"` + IsDeleted bool `protobuf:"varint,17,opt,name=is_deleted,json=isDeleted,proto3" json:"is_deleted,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Asset) Reset() { + *x = Asset{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[91] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Asset) ProtoMessage() {} + +func (x *Asset) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[91] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Asset.ProtoReflect.Descriptor instead. +func (*Asset) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{91} +} + +func (x *Asset) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Asset) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *Asset) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *Asset) GetService() string { + if x != nil { + return x.Service + } + return "" +} + +func (x *Asset) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Asset) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *Asset) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +func (x *Asset) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Asset) GetOwners() []*User { + if x != nil { + return x.Owners + } + return nil +} + +func (x *Asset) GetVersion() string { + if x != nil { + return x.Version + } + return "" +} + +func (x *Asset) GetUpdatedBy() *User { + if x != nil { + return x.UpdatedBy + } + return nil +} + +func (x *Asset) GetChangelog() []*Change { + if x != nil { + return x.Changelog + } + return nil +} + +func (x *Asset) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Asset) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +func (x *Asset) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +func (x *Asset) GetProbes() []*Probe { + if x != nil { + return x.Probes + } + return nil +} + +func (x *Asset) GetIsDeleted() bool { + if x != nil { + return x.IsDeleted + } + return false +} + +type Probe struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + AssetUrn string `protobuf:"bytes,2,opt,name=asset_urn,json=assetUrn,proto3" json:"asset_urn,omitempty"` + Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"` + StatusReason string `protobuf:"bytes,4,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` + Metadata *structpb.Struct `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Probe) Reset() { + *x = Probe{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[92] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Probe) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Probe) ProtoMessage() {} + +func (x *Probe) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[92] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Probe.ProtoReflect.Descriptor instead. +func (*Probe) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{92} +} + +func (x *Probe) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Probe) GetAssetUrn() string { + if x != nil { + return x.AssetUrn + } + return "" +} + +func (x *Probe) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Probe) GetStatusReason() string { + if x != nil { + return x.StatusReason + } + return "" +} + +func (x *Probe) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Probe) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *Probe) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +type Discussion struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"` + State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state,omitempty"` + Labels []string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty"` + Assets []string `protobuf:"bytes,7,rep,name=assets,proto3" json:"assets,omitempty"` + Assignees []string `protobuf:"bytes,8,rep,name=assignees,proto3" json:"assignees,omitempty"` + Owner *User `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Discussion) Reset() { + *x = Discussion{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[93] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Discussion) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Discussion) ProtoMessage() {} + +func (x *Discussion) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[93] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Discussion.ProtoReflect.Descriptor instead. +func (*Discussion) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{93} +} + +func (x *Discussion) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Discussion) GetTitle() string { + if x != nil { + return x.Title + } + return "" +} + +func (x *Discussion) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *Discussion) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *Discussion) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *Discussion) GetLabels() []string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *Discussion) GetAssets() []string { + if x != nil { + return x.Assets + } + return nil +} + +func (x *Discussion) GetAssignees() []string { + if x != nil { + return x.Assignees + } + return nil +} + +func (x *Discussion) GetOwner() *User { + if x != nil { + return x.Owner + } + return nil +} + +func (x *Discussion) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Discussion) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type Comment struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + DiscussionId string `protobuf:"bytes,2,opt,name=discussion_id,json=discussionId,proto3" json:"discussion_id,omitempty"` + Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` + Owner *User `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` + UpdatedBy *User `protobuf:"bytes,5,opt,name=updated_by,json=updatedBy,proto3" json:"updated_by,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Comment) Reset() { + *x = Comment{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[94] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Comment) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Comment) ProtoMessage() {} + +func (x *Comment) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[94] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Comment.ProtoReflect.Descriptor instead. +func (*Comment) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{94} +} + +func (x *Comment) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Comment) GetDiscussionId() string { + if x != nil { + return x.DiscussionId + } + return "" +} + +func (x *Comment) GetBody() string { + if x != nil { + return x.Body + } + return "" +} + +func (x *Comment) GetOwner() *User { + if x != nil { + return x.Owner + } + return nil +} + +func (x *Comment) GetUpdatedBy() *User { + if x != nil { + return x.UpdatedBy + } + return nil +} + +func (x *Comment) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *Comment) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type LineageEdge struct { + state protoimpl.MessageState `protogen:"open.v1"` + Source string `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"` + Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"` + Prop *structpb.Struct `protobuf:"bytes,3,opt,name=prop,proto3" json:"prop,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LineageEdge) Reset() { + *x = LineageEdge{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[95] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LineageEdge) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LineageEdge) ProtoMessage() {} + +func (x *LineageEdge) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[95] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LineageEdge.ProtoReflect.Descriptor instead. +func (*LineageEdge) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{95} +} + +func (x *LineageEdge) GetSource() string { + if x != nil { + return x.Source + } + return "" +} + +func (x *LineageEdge) GetTarget() string { + if x != nil { + return x.Target + } + return "" +} + +func (x *LineageEdge) GetProp() *structpb.Struct { + if x != nil { + return x.Prop + } + return nil +} + +type LineageNode struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + // Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + // Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. + Service string `protobuf:"bytes,3,opt,name=service,proto3" json:"service,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *LineageNode) Reset() { + *x = LineageNode{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[96] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LineageNode) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LineageNode) ProtoMessage() {} + +func (x *LineageNode) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[96] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LineageNode.ProtoReflect.Descriptor instead. +func (*LineageNode) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{96} +} + +func (x *LineageNode) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +// Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. +func (x *LineageNode) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +// Deprecated: Marked as deprecated in raystack/compass/v1beta1/service.proto. +func (x *LineageNode) GetService() string { + if x != nil { + return x.Service + } + return "" +} + +type Tag struct { + state protoimpl.MessageState `protogen:"open.v1"` + AssetId string `protobuf:"bytes,1,opt,name=asset_id,json=assetId,proto3" json:"asset_id,omitempty"` + TemplateUrn string `protobuf:"bytes,2,opt,name=template_urn,json=templateUrn,proto3" json:"template_urn,omitempty"` + TagValues []*TagValue `protobuf:"bytes,3,rep,name=tag_values,json=tagValues,proto3" json:"tag_values,omitempty"` + TemplateDisplayName string `protobuf:"bytes,4,opt,name=template_display_name,json=templateDisplayName,proto3" json:"template_display_name,omitempty"` + TemplateDescription string `protobuf:"bytes,5,opt,name=template_description,json=templateDescription,proto3" json:"template_description,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Tag) Reset() { + *x = Tag{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[97] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Tag) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Tag) ProtoMessage() {} + +func (x *Tag) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[97] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Tag.ProtoReflect.Descriptor instead. +func (*Tag) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{97} +} + +func (x *Tag) GetAssetId() string { + if x != nil { + return x.AssetId + } + return "" +} + +func (x *Tag) GetTemplateUrn() string { + if x != nil { + return x.TemplateUrn + } + return "" +} + +func (x *Tag) GetTagValues() []*TagValue { + if x != nil { + return x.TagValues + } + return nil +} + +func (x *Tag) GetTemplateDisplayName() string { + if x != nil { + return x.TemplateDisplayName + } + return "" +} + +func (x *Tag) GetTemplateDescription() string { + if x != nil { + return x.TemplateDescription + } + return "" +} + +type TagValue struct { + state protoimpl.MessageState `protogen:"open.v1"` + FieldId uint32 `protobuf:"varint,1,opt,name=field_id,json=fieldId,proto3" json:"field_id,omitempty"` + FieldValue *structpb.Value `protobuf:"bytes,2,opt,name=field_value,json=fieldValue,proto3" json:"field_value,omitempty"` + FieldUrn string `protobuf:"bytes,3,opt,name=field_urn,json=fieldUrn,proto3" json:"field_urn,omitempty"` + FieldDisplayName string `protobuf:"bytes,4,opt,name=field_display_name,json=fieldDisplayName,proto3" json:"field_display_name,omitempty"` + FieldDescription string `protobuf:"bytes,5,opt,name=field_description,json=fieldDescription,proto3" json:"field_description,omitempty"` + FieldDataType string `protobuf:"bytes,6,opt,name=field_data_type,json=fieldDataType,proto3" json:"field_data_type,omitempty"` + FieldOptions []string `protobuf:"bytes,7,rep,name=field_options,json=fieldOptions,proto3" json:"field_options,omitempty"` + FieldRequired bool `protobuf:"varint,8,opt,name=field_required,json=fieldRequired,proto3" json:"field_required,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TagValue) Reset() { + *x = TagValue{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[98] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TagValue) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagValue) ProtoMessage() {} + +func (x *TagValue) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[98] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagValue.ProtoReflect.Descriptor instead. +func (*TagValue) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{98} +} + +func (x *TagValue) GetFieldId() uint32 { + if x != nil { + return x.FieldId + } + return 0 +} + +func (x *TagValue) GetFieldValue() *structpb.Value { + if x != nil { + return x.FieldValue + } + return nil +} + +func (x *TagValue) GetFieldUrn() string { + if x != nil { + return x.FieldUrn + } + return "" +} + +func (x *TagValue) GetFieldDisplayName() string { + if x != nil { + return x.FieldDisplayName + } + return "" +} + +func (x *TagValue) GetFieldDescription() string { + if x != nil { + return x.FieldDescription + } + return "" +} + +func (x *TagValue) GetFieldDataType() string { + if x != nil { + return x.FieldDataType + } + return "" +} + +func (x *TagValue) GetFieldOptions() []string { + if x != nil { + return x.FieldOptions + } + return nil +} + +func (x *TagValue) GetFieldRequired() bool { + if x != nil { + return x.FieldRequired + } + return false +} + +func (x *TagValue) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *TagValue) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type TagTemplate struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` + Fields []*TagTemplateField `protobuf:"bytes,4,rep,name=fields,proto3" json:"fields,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TagTemplate) Reset() { + *x = TagTemplate{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[99] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TagTemplate) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagTemplate) ProtoMessage() {} + +func (x *TagTemplate) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[99] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagTemplate.ProtoReflect.Descriptor instead. +func (*TagTemplate) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{99} +} + +func (x *TagTemplate) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *TagTemplate) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *TagTemplate) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *TagTemplate) GetFields() []*TagTemplateField { + if x != nil { + return x.Fields + } + return nil +} + +func (x *TagTemplate) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *TagTemplate) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type TagTemplateField struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` + Urn string `protobuf:"bytes,2,opt,name=urn,proto3" json:"urn,omitempty"` + DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"` + Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` + DataType string `protobuf:"bytes,5,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty"` + Options []string `protobuf:"bytes,6,rep,name=options,proto3" json:"options,omitempty"` + Required bool `protobuf:"varint,7,opt,name=required,proto3" json:"required,omitempty"` + CreatedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` + UpdatedAt *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *TagTemplateField) Reset() { + *x = TagTemplateField{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[100] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TagTemplateField) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TagTemplateField) ProtoMessage() {} + +func (x *TagTemplateField) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[100] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TagTemplateField.ProtoReflect.Descriptor instead. +func (*TagTemplateField) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{100} +} + +func (x *TagTemplateField) GetId() uint32 { + if x != nil { + return x.Id + } + return 0 +} + +func (x *TagTemplateField) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *TagTemplateField) GetDisplayName() string { + if x != nil { + return x.DisplayName + } + return "" +} + +func (x *TagTemplateField) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *TagTemplateField) GetDataType() string { + if x != nil { + return x.DataType + } + return "" +} + +func (x *TagTemplateField) GetOptions() []string { + if x != nil { + return x.Options + } + return nil +} + +func (x *TagTemplateField) GetRequired() bool { + if x != nil { + return x.Required + } + return false +} + +func (x *TagTemplateField) GetCreatedAt() *timestamppb.Timestamp { + if x != nil { + return x.CreatedAt + } + return nil +} + +func (x *TagTemplateField) GetUpdatedAt() *timestamppb.Timestamp { + if x != nil { + return x.UpdatedAt + } + return nil +} + +type Type struct { + state protoimpl.MessageState `protogen:"open.v1"` + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Count uint32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Type) Reset() { + *x = Type{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[101] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Type) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Type) ProtoMessage() {} + +func (x *Type) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[101] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Type.ProtoReflect.Descriptor instead. +func (*Type) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{101} +} + +func (x *Type) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Type) GetCount() uint32 { + if x != nil { + return x.Count + } + return 0 +} + +type Namespace struct { + state protoimpl.MessageState `protogen:"open.v1"` + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` + State string `protobuf:"bytes,3,opt,name=state,proto3" json:"state,omitempty"` + Metadata *structpb.Struct `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *Namespace) Reset() { + *x = Namespace{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[102] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Namespace) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Namespace) ProtoMessage() {} + +func (x *Namespace) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[102] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Namespace.ProtoReflect.Descriptor instead. +func (*Namespace) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{102} +} + +func (x *Namespace) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *Namespace) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Namespace) GetState() string { + if x != nil { + return x.State + } + return "" +} + +func (x *Namespace) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +type GetGraphResponse_ProbesInfo struct { + state protoimpl.MessageState `protogen:"open.v1"` + Latest *Probe `protobuf:"bytes,1,opt,name=latest,proto3" json:"latest,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGraphResponse_ProbesInfo) Reset() { + *x = GetGraphResponse_ProbesInfo{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[106] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGraphResponse_ProbesInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGraphResponse_ProbesInfo) ProtoMessage() {} + +func (x *GetGraphResponse_ProbesInfo) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[106] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetGraphResponse_ProbesInfo.ProtoReflect.Descriptor instead. +func (*GetGraphResponse_ProbesInfo) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28, 0} +} + +func (x *GetGraphResponse_ProbesInfo) GetLatest() *Probe { + if x != nil { + return x.Latest + } + return nil +} + +type GetGraphResponse_NodeAttributes struct { + state protoimpl.MessageState `protogen:"open.v1"` + Probes *GetGraphResponse_ProbesInfo `protobuf:"bytes,1,opt,name=probes,proto3" json:"probes,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *GetGraphResponse_NodeAttributes) Reset() { + *x = GetGraphResponse_NodeAttributes{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[107] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GetGraphResponse_NodeAttributes) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetGraphResponse_NodeAttributes) ProtoMessage() {} + +func (x *GetGraphResponse_NodeAttributes) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[107] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetGraphResponse_NodeAttributes.ProtoReflect.Descriptor instead. +func (*GetGraphResponse_NodeAttributes) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{28, 1} +} + +func (x *GetGraphResponse_NodeAttributes) GetProbes() *GetGraphResponse_ProbesInfo { + if x != nil { + return x.Probes + } + return nil +} + +type UpsertAssetRequest_Asset struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` + Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Owners []*User `protobuf:"bytes,8,rep,name=owners,proto3" json:"owners,omitempty"` + Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertAssetRequest_Asset) Reset() { + *x = UpsertAssetRequest_Asset{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[111] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertAssetRequest_Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertAssetRequest_Asset) ProtoMessage() {} + +func (x *UpsertAssetRequest_Asset) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[111] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertAssetRequest_Asset.ProtoReflect.Descriptor instead. +func (*UpsertAssetRequest_Asset) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{35, 0} +} + +func (x *UpsertAssetRequest_Asset) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *UpsertAssetRequest_Asset) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *UpsertAssetRequest_Asset) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *UpsertAssetRequest_Asset) GetService() string { + if x != nil { + return x.Service + } + return "" +} + +func (x *UpsertAssetRequest_Asset) GetDescription() string { + if x != nil { + return x.Description + } + return "" +} + +func (x *UpsertAssetRequest_Asset) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +func (x *UpsertAssetRequest_Asset) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *UpsertAssetRequest_Asset) GetOwners() []*User { + if x != nil { + return x.Owners + } + return nil +} + +func (x *UpsertAssetRequest_Asset) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +type UpsertPatchAssetRequest_Asset struct { + state protoimpl.MessageState `protogen:"open.v1"` + Urn string `protobuf:"bytes,1,opt,name=urn,proto3" json:"urn,omitempty"` + Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` + Name *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` + Service string `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` + Description *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` + Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"` + Labels map[string]string `protobuf:"bytes,7,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` + Owners []*User `protobuf:"bytes,8,rep,name=owners,proto3" json:"owners,omitempty"` + Url string `protobuf:"bytes,9,opt,name=url,proto3" json:"url,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *UpsertPatchAssetRequest_Asset) Reset() { + *x = UpsertPatchAssetRequest_Asset{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[113] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UpsertPatchAssetRequest_Asset) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UpsertPatchAssetRequest_Asset) ProtoMessage() {} + +func (x *UpsertPatchAssetRequest_Asset) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[113] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UpsertPatchAssetRequest_Asset.ProtoReflect.Descriptor instead. +func (*UpsertPatchAssetRequest_Asset) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{37, 0} +} + +func (x *UpsertPatchAssetRequest_Asset) GetUrn() string { + if x != nil { + return x.Urn + } + return "" +} + +func (x *UpsertPatchAssetRequest_Asset) GetType() string { + if x != nil { + return x.Type + } + return "" +} + +func (x *UpsertPatchAssetRequest_Asset) GetName() *wrapperspb.StringValue { + if x != nil { + return x.Name + } + return nil +} + +func (x *UpsertPatchAssetRequest_Asset) GetService() string { + if x != nil { + return x.Service + } + return "" +} + +func (x *UpsertPatchAssetRequest_Asset) GetDescription() *wrapperspb.StringValue { + if x != nil { + return x.Description + } + return nil +} + +func (x *UpsertPatchAssetRequest_Asset) GetData() *structpb.Struct { + if x != nil { + return x.Data + } + return nil +} + +func (x *UpsertPatchAssetRequest_Asset) GetLabels() map[string]string { + if x != nil { + return x.Labels + } + return nil +} + +func (x *UpsertPatchAssetRequest_Asset) GetOwners() []*User { + if x != nil { + return x.Owners + } + return nil +} + +func (x *UpsertPatchAssetRequest_Asset) GetUrl() string { + if x != nil { + return x.Url + } + return "" +} + +type CreateAssetProbeRequest_Probe struct { + state protoimpl.MessageState `protogen:"open.v1"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` + StatusReason string `protobuf:"bytes,2,opt,name=status_reason,json=statusReason,proto3" json:"status_reason,omitempty"` + Metadata *structpb.Struct `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` + Timestamp *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` + unknownFields protoimpl.UnknownFields + sizeCache protoimpl.SizeCache +} + +func (x *CreateAssetProbeRequest_Probe) Reset() { + *x = CreateAssetProbeRequest_Probe{} + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[115] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CreateAssetProbeRequest_Probe) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CreateAssetProbeRequest_Probe) ProtoMessage() {} + +func (x *CreateAssetProbeRequest_Probe) ProtoReflect() protoreflect.Message { + mi := &file_raystack_compass_v1beta1_service_proto_msgTypes[115] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CreateAssetProbeRequest_Probe.ProtoReflect.Descriptor instead. +func (*CreateAssetProbeRequest_Probe) Descriptor() ([]byte, []int) { + return file_raystack_compass_v1beta1_service_proto_rawDescGZIP(), []int{47, 0} +} + +func (x *CreateAssetProbeRequest_Probe) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *CreateAssetProbeRequest_Probe) GetStatusReason() string { + if x != nil { + return x.StatusReason + } + return "" +} + +func (x *CreateAssetProbeRequest_Probe) GetMetadata() *structpb.Struct { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *CreateAssetProbeRequest_Probe) GetTimestamp() *timestamppb.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (x *CreateAssetProbeRequest_Probe) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +var File_raystack_compass_v1beta1_service_proto protoreflect.FileDescriptor + +const file_raystack_compass_v1beta1_service_proto_rawDesc = "" + + "\n" + + "&raystack/compass/v1beta1/service.proto\x12\x18raystack.compass.v1beta1\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bbuf/validate/validate.proto\"\x94\x02\n" + + "\x18GetAllDiscussionsRequest\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12\x14\n" + + "\x05state\x18\x02 \x01(\tR\x05state\x12\x14\n" + + "\x05owner\x18\x03 \x01(\tR\x05owner\x12\x1a\n" + + "\bassignee\x18\x04 \x01(\tR\bassignee\x12\x14\n" + + "\x05asset\x18\x05 \x01(\tR\x05asset\x12\x16\n" + + "\x06labels\x18\x06 \x01(\tR\x06labels\x12\x12\n" + + "\x04sort\x18\a \x01(\tR\x04sort\x12\x1c\n" + + "\tdirection\x18\b \x01(\tR\tdirection\x12\x1b\n" + + "\x04size\x18\t \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\n" + + " \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"U\n" + + "\x19GetAllDiscussionsResponse\x128\n" + + "\x04data\x18\x01 \x03(\v2$.raystack.compass.v1beta1.DiscussionR\x04data\"\xeb\x01\n" + + "\x17CreateDiscussionRequest\x12\x1d\n" + + "\x05title\x18\x02 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x05title\x12\x1b\n" + + "\x04body\x18\x03 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x04body\x12\x12\n" + + "\x04type\x18\x04 \x01(\tR\x04type\x12\x14\n" + + "\x05state\x18\x05 \x01(\tR\x05state\x12 \n" + + "\x06labels\x18\x06 \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\x06labels\x12 \n" + + "\x06assets\x18\a \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\x06assets\x12&\n" + + "\tassignees\x18\b \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\tassignees\"*\n" + + "\x18CreateDiscussionResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"&\n" + + "\x14GetDiscussionRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"Q\n" + + "\x15GetDiscussionResponse\x128\n" + + "\x04data\x18\x01 \x01(\v2$.raystack.compass.v1beta1.DiscussionR\x04data\"\xe8\x01\n" + + "\x16PatchDiscussionRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x12\n" + + "\x04body\x18\x03 \x01(\tR\x04body\x12\x12\n" + + "\x04type\x18\x04 \x01(\tR\x04type\x12\x14\n" + + "\x05state\x18\x05 \x01(\tR\x05state\x12 \n" + + "\x06labels\x18\x06 \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\x06labels\x12 \n" + + "\x06assets\x18\a \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\x06assets\x12&\n" + + "\tassignees\x18\b \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\tassignees\"X\n" + + "\x14CreateCommentRequest\x12#\n" + + "\rdiscussion_id\x18\x01 \x01(\tR\fdiscussionId\x12\x1b\n" + + "\x04body\x18\x02 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x04body\"\x19\n" + + "\x17PatchDiscussionResponse\"'\n" + + "\x15CreateCommentResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\xac\x01\n" + + "\x15GetAllCommentsRequest\x12#\n" + + "\rdiscussion_id\x18\x01 \x01(\tR\fdiscussionId\x12\x12\n" + + "\x04sort\x18\x02 \x01(\tR\x04sort\x12\x1c\n" + + "\tdirection\x18\x03 \x01(\tR\tdirection\x12\x1b\n" + + "\x04size\x18\x04 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\x05 \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"O\n" + + "\x16GetAllCommentsResponse\x125\n" + + "\x04data\x18\x01 \x03(\v2!.raystack.compass.v1beta1.CommentR\x04data\"H\n" + + "\x11GetCommentRequest\x12#\n" + + "\rdiscussion_id\x18\x01 \x01(\tR\fdiscussionId\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\"K\n" + + "\x12GetCommentResponse\x125\n" + + "\x04data\x18\x01 \x01(\v2!.raystack.compass.v1beta1.CommentR\x04data\"h\n" + + "\x14UpdateCommentRequest\x12#\n" + + "\rdiscussion_id\x18\x01 \x01(\tR\fdiscussionId\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\x12\x1b\n" + + "\x04body\x18\x03 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x04body\"\x17\n" + + "\x15UpdateCommentResponse\"K\n" + + "\x14DeleteCommentRequest\x12#\n" + + "\rdiscussion_id\x18\x01 \x01(\tR\fdiscussionId\x12\x0e\n" + + "\x02id\x18\x02 \x01(\tR\x02id\"\x17\n" + + "\x15DeleteCommentResponse\"\x85\x04\n" + + "\x13SearchAssetsRequest\x12\x12\n" + + "\x04text\x18\x01 \x01(\tR\x04text\x12\x16\n" + + "\x06rankby\x18\x02 \x01(\tR\x06rankby\x12\x1b\n" + + "\x04size\x18\x03 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12Q\n" + + "\x06filter\x18\x04 \x03(\v29.raystack.compass.v1beta1.SearchAssetsRequest.FilterEntryR\x06filter\x12N\n" + + "\x05query\x18\x05 \x03(\v28.raystack.compass.v1beta1.SearchAssetsRequest.QueryEntryR\x05query\x12/\n" + + "\x0einclude_fields\x18\x06 \x03(\tB\b\xbaH\x05\x92\x01\x02\x18\x01R\rincludeFields\x12\x1f\n" + + "\x06offset\x18\a \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\x12;\n" + + "\x05flags\x18\b \x01(\v2%.raystack.compass.v1beta1.SearchFlagsR\x05flags\x1a9\n" + + "\vFilterEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\x1a8\n" + + "\n" + + "QueryEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x87\x01\n" + + "\vSearchFlags\x12(\n" + + "\x10is_column_search\x18\x01 \x01(\bR\x0eisColumnSearch\x12#\n" + + "\rdisable_fuzzy\x18\x02 \x01(\bR\fdisableFuzzy\x12)\n" + + "\x10enable_highlight\x18\x03 \x01(\bR\x0fenableHighlight\"K\n" + + "\x14SearchAssetsResponse\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"*\n" + + "\x14SuggestAssetsRequest\x12\x12\n" + + "\x04text\x18\x01 \x01(\tR\x04text\"+\n" + + "\x15SuggestAssetsResponse\x12\x12\n" + + "\x04data\x18\x01 \x03(\tR\x04data\"\x89\x02\n" + + "\x12GroupAssetsRequest\x12\"\n" + + "\agroupby\x18\x01 \x03(\tB\b\xbaH\x05\x92\x01\x02\b\x01R\agroupby\x12P\n" + + "\x06filter\x18\x02 \x03(\v28.raystack.compass.v1beta1.GroupAssetsRequest.FilterEntryR\x06filter\x12%\n" + + "\x0einclude_fields\x18\x03 \x03(\tR\rincludeFields\x12\x1b\n" + + "\x04size\x18\x04 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x1a9\n" + + "\vFilterEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"^\n" + + "\x13GroupAssetsResponse\x12G\n" + + "\fasset_groups\x18\x01 \x03(\v2$.raystack.compass.v1beta1.AssetGroupR\vassetGroups\"\x8e\x01\n" + + "\n" + + "AssetGroup\x12G\n" + + "\fgroup_fields\x18\x01 \x03(\v2$.raystack.compass.v1beta1.GroupFieldR\vgroupFields\x127\n" + + "\x06assets\x18\x02 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x06assets\"J\n" + + "\n" + + "GroupField\x12\x1b\n" + + "\tgroup_key\x18\x01 \x01(\tR\bgroupKey\x12\x1f\n" + + "\vgroup_value\x18\x02 \x01(\tR\n" + + "groupValue\"\xe1\x01\n" + + "\x0fGetGraphRequest\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12\x14\n" + + "\x05level\x18\x02 \x01(\rR\x05level\x12;\n" + + "\tdirection\x18\x03 \x01(\tB\x1d\xbaH\x1ar\x18R\bupstreamR\n" + + "downstreamR\x00R\tdirection\x12,\n" + + "\x0fwith_attributes\x18\x04 \x01(\bH\x00R\x0ewithAttributes\x88\x01\x01\x12'\n" + + "\x0finclude_deleted\x18\x05 \x01(\bR\x0eincludeDeletedB\x12\n" + + "\x10_with_attributes\"\xc8\x03\n" + + "\x10GetGraphResponse\x129\n" + + "\x04data\x18\x01 \x03(\v2%.raystack.compass.v1beta1.LineageEdgeR\x04data\x12X\n" + + "\n" + + "node_attrs\x18\x02 \x03(\v29.raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntryR\tnodeAttrs\x1aE\n" + + "\n" + + "ProbesInfo\x127\n" + + "\x06latest\x18\x01 \x01(\v2\x1f.raystack.compass.v1beta1.ProbeR\x06latest\x1a_\n" + + "\x0eNodeAttributes\x12M\n" + + "\x06probes\x18\x01 \x01(\v25.raystack.compass.v1beta1.GetGraphResponse.ProbesInfoR\x06probes\x1aw\n" + + "\x0eNodeAttrsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12O\n" + + "\x05value\x18\x02 \x01(\v29.raystack.compass.v1beta1.GetGraphResponse.NodeAttributesR\x05value:\x028\x01\"\xf4\x01\n" + + "\x12GetAllTypesRequest\x12\f\n" + + "\x01q\x18\x01 \x01(\tR\x01q\x12\x19\n" + + "\bq_fields\x18\x02 \x01(\tR\aqFields\x12\x14\n" + + "\x05types\x18\x03 \x01(\tR\x05types\x12\x1a\n" + + "\bservices\x18\x04 \x01(\tR\bservices\x12J\n" + + "\x04data\x18\x05 \x03(\v26.raystack.compass.v1beta1.GetAllTypesRequest.DataEntryR\x04data\x1a7\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"I\n" + + "\x13GetAllTypesResponse\x122\n" + + "\x04data\x18\x01 \x03(\v2\x1e.raystack.compass.v1beta1.TypeR\x04data\"\xa4\x03\n" + + "\x13GetAllAssetsRequest\x12\f\n" + + "\x01q\x18\x01 \x01(\tR\x01q\x12\x19\n" + + "\bq_fields\x18\x02 \x01(\tR\aqFields\x12\x14\n" + + "\x05types\x18\x03 \x01(\tR\x05types\x12\x1a\n" + + "\bservices\x18\x04 \x01(\tR\bservices\x12\x12\n" + + "\x04sort\x18\x05 \x01(\tR\x04sort\x12\x1c\n" + + "\tdirection\x18\x06 \x01(\tR\tdirection\x12K\n" + + "\x04data\x18\a \x03(\v27.raystack.compass.v1beta1.GetAllAssetsRequest.DataEntryR\x04data\x12\x1b\n" + + "\x04size\x18\b \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\t \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\x12\x1d\n" + + "\n" + + "with_total\x18\n" + + " \x01(\bR\twithTotal\x12\x1d\n" + + "\n" + + "is_deleted\x18\v \x01(\bR\tisDeleted\x1a7\n" + + "\tDataEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"a\n" + + "\x14GetAllAssetsResponse\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\x12\x14\n" + + "\x05total\x18\x02 \x01(\rR\x05total\"%\n" + + "\x13GetAssetByIDRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"K\n" + + "\x14GetAssetByIDResponse\x123\n" + + "\x04data\x18\x01 \x01(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"\x97\x05\n" + + "\x12UpsertAssetRequest\x12H\n" + + "\x05asset\x18\x01 \x01(\v22.raystack.compass.v1beta1.UpsertAssetRequest.AssetR\x05asset\x12C\n" + + "\tupstreams\x18\x02 \x03(\v2%.raystack.compass.v1beta1.LineageNodeR\tupstreams\x12G\n" + + "\vdownstreams\x18\x03 \x03(\v2%.raystack.compass.v1beta1.LineageNodeR\vdownstreams\x12\x1f\n" + + "\vupdate_only\x18\x04 \x01(\bR\n" + + "updateOnly\x1a\x87\x03\n" + + "\x05Asset\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\x12\x12\n" + + "\x04name\x18\x03 \x01(\tR\x04name\x12\x18\n" + + "\aservice\x18\x04 \x01(\tR\aservice\x12 \n" + + "\vdescription\x18\x05 \x01(\tR\vdescription\x12+\n" + + "\x04data\x18\x06 \x01(\v2\x17.google.protobuf.StructR\x04data\x12V\n" + + "\x06labels\x18\a \x03(\v2>.raystack.compass.v1beta1.UpsertAssetRequest.Asset.LabelsEntryR\x06labels\x126\n" + + "\x06owners\x18\b \x03(\v2\x1e.raystack.compass.v1beta1.UserR\x06owners\x12\x10\n" + + "\x03url\x18\t \x01(\tR\x03url\x1a9\n" + + "\vLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"%\n" + + "\x13UpsertAssetResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\x8f\x06\n" + + "\x17UpsertPatchAssetRequest\x12M\n" + + "\x05asset\x18\x01 \x01(\v27.raystack.compass.v1beta1.UpsertPatchAssetRequest.AssetR\x05asset\x12C\n" + + "\tupstreams\x18\x02 \x03(\v2%.raystack.compass.v1beta1.LineageNodeR\tupstreams\x12G\n" + + "\vdownstreams\x18\x03 \x03(\v2%.raystack.compass.v1beta1.LineageNodeR\vdownstreams\x12+\n" + + "\x11overwrite_lineage\x18\x04 \x01(\bR\x10overwriteLineage\x12\x1f\n" + + "\vupdate_only\x18\x05 \x01(\bR\n" + + "updateOnly\x1a\xc8\x03\n" + + "\x05Asset\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\x120\n" + + "\x04name\x18\x03 \x01(\v2\x1c.google.protobuf.StringValueR\x04name\x12\x18\n" + + "\aservice\x18\x04 \x01(\tR\aservice\x12>\n" + + "\vdescription\x18\x05 \x01(\v2\x1c.google.protobuf.StringValueR\vdescription\x12+\n" + + "\x04data\x18\x06 \x01(\v2\x17.google.protobuf.StructR\x04data\x12[\n" + + "\x06labels\x18\a \x03(\v2C.raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.LabelsEntryR\x06labels\x126\n" + + "\x06owners\x18\b \x03(\v2\x1e.raystack.compass.v1beta1.UserR\x06owners\x12\x10\n" + + "\x03url\x18\t \x01(\tR\x03url\x1a9\n" + + "\vLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"*\n" + + "\x18UpsertPatchAssetResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"$\n" + + "\x12DeleteAssetRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"\x15\n" + + "\x13DeleteAssetResponse\"i\n" + + "\x19GetAssetStargazersRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + + "\x04size\x18\x02 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\x03 \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"P\n" + + "\x1aGetAssetStargazersResponse\x122\n" + + "\x04data\x18\x01 \x03(\v2\x1e.raystack.compass.v1beta1.UserR\x04data\"m\n" + + "\x1dGetAssetVersionHistoryRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + + "\x04size\x18\x02 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\x03 \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"U\n" + + "\x1eGetAssetVersionHistoryResponse\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"D\n" + + "\x18GetAssetByVersionRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x18\n" + + "\aversion\x18\x02 \x01(\tR\aversion\"P\n" + + "\x19GetAssetByVersionResponse\x123\n" + + "\x04data\x18\x01 \x01(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"\xdd\x02\n" + + "\x17CreateAssetProbeRequest\x12$\n" + + "\tasset_urn\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\bassetUrn\x12M\n" + + "\x05probe\x18\x02 \x01(\v27.raystack.compass.v1beta1.CreateAssetProbeRequest.ProbeR\x05probe\x1a\xcc\x01\n" + + "\x05Probe\x12\x1f\n" + + "\x06status\x18\x01 \x01(\tB\a\xbaH\x04r\x02\x10\x01R\x06status\x12#\n" + + "\rstatus_reason\x18\x02 \x01(\tR\fstatusReason\x123\n" + + "\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x128\n" + + "\ttimestamp\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x12\x0e\n" + + "\x02id\x18\x05 \x01(\tR\x02id\"*\n" + + "\x18CreateAssetProbeResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"t\n" + + "\x1bGetUserStarredAssetsRequest\x12\x17\n" + + "\auser_id\x18\x01 \x01(\tR\x06userId\x12\x1b\n" + + "\x04size\x18\x02 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\x03 \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"S\n" + + "\x1cGetUserStarredAssetsResponse\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"Y\n" + + "\x19GetMyStarredAssetsRequest\x12\x1b\n" + + "\x04size\x18\x01 \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\x02 \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"Q\n" + + "\x1aGetMyStarredAssetsResponse\x123\n" + + "\x04data\x18\x01 \x03(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"5\n" + + "\x18GetMyStarredAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\"P\n" + + "\x19GetMyStarredAssetResponse\x123\n" + + "\x04data\x18\x01 \x01(\v2\x1f.raystack.compass.v1beta1.AssetR\x04data\"-\n" + + "\x10StarAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\"#\n" + + "\x11StarAssetResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"/\n" + + "\x12UnstarAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\"\x15\n" + + "\x13UnstarAssetResponse\"\xf9\x01\n" + + "\x17GetMyDiscussionsRequest\x12\x16\n" + + "\x06filter\x18\x01 \x01(\tR\x06filter\x12\x12\n" + + "\x04type\x18\x02 \x01(\tR\x04type\x12\x14\n" + + "\x05state\x18\x03 \x01(\tR\x05state\x12\x14\n" + + "\x05asset\x18\x04 \x01(\tR\x05asset\x12\x16\n" + + "\x06labels\x18\x05 \x01(\tR\x06labels\x12\x12\n" + + "\x04sort\x18\x06 \x01(\tR\x04sort\x12\x1c\n" + + "\tdirection\x18\a \x01(\tR\tdirection\x12\x1b\n" + + "\x04size\x18\b \x01(\rB\a\xbaH\x04*\x02(\x00R\x04size\x12\x1f\n" + + "\x06offset\x18\t \x01(\rB\a\xbaH\x04*\x02(\x00R\x06offset\"T\n" + + "\x18GetMyDiscussionsResponse\x128\n" + + "\x04data\x18\x01 \x03(\v2$.raystack.compass.v1beta1.DiscussionR\x04data\"\xff\x01\n" + + "\x15CreateTagAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\x12!\n" + + "\ftemplate_urn\x18\x02 \x01(\tR\vtemplateUrn\x12A\n" + + "\n" + + "tag_values\x18\x03 \x03(\v2\".raystack.compass.v1beta1.TagValueR\ttagValues\x122\n" + + "\x15template_display_name\x18\x04 \x01(\tR\x13templateDisplayName\x121\n" + + "\x14template_description\x18\x05 \x01(\tR\x13templateDescription\"K\n" + + "\x16CreateTagAssetResponse\x121\n" + + "\x04data\x18\x01 \x01(\v2\x1d.raystack.compass.v1beta1.TagR\x04data\"_\n" + + "\x1fGetTagByAssetAndTemplateRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\x12!\n" + + "\ftemplate_urn\x18\x03 \x01(\tR\vtemplateUrn\"U\n" + + " GetTagByAssetAndTemplateResponse\x121\n" + + "\x04data\x18\x01 \x01(\v2\x1d.raystack.compass.v1beta1.TagR\x04data\"\xff\x01\n" + + "\x15UpdateTagAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\x12!\n" + + "\ftemplate_urn\x18\x02 \x01(\tR\vtemplateUrn\x12A\n" + + "\n" + + "tag_values\x18\x03 \x03(\v2\".raystack.compass.v1beta1.TagValueR\ttagValues\x122\n" + + "\x15template_display_name\x18\x04 \x01(\tR\x13templateDisplayName\x121\n" + + "\x14template_description\x18\x05 \x01(\tR\x13templateDescription\"K\n" + + "\x16UpdateTagAssetResponse\x121\n" + + "\x04data\x18\x01 \x01(\v2\x1d.raystack.compass.v1beta1.TagR\x04data\"U\n" + + "\x15DeleteTagAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\x12!\n" + + "\ftemplate_urn\x18\x02 \x01(\tR\vtemplateUrn\"\x18\n" + + "\x16DeleteTagAssetResponse\"5\n" + + "\x18GetAllTagsByAssetRequest\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\"N\n" + + "\x19GetAllTagsByAssetResponse\x121\n" + + "\x04data\x18\x01 \x03(\v2\x1d.raystack.compass.v1beta1.TagR\x04data\"-\n" + + "\x19GetAllTagTemplatesRequest\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\"W\n" + + "\x1aGetAllTagTemplatesResponse\x129\n" + + "\x04data\x18\x01 \x03(\v2%.raystack.compass.v1beta1.TagTemplateR\x04data\"\xb5\x01\n" + + "\x18CreateTagTemplateRequest\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12B\n" + + "\x06fields\x18\x04 \x03(\v2*.raystack.compass.v1beta1.TagTemplateFieldR\x06fields\"V\n" + + "\x19CreateTagTemplateResponse\x129\n" + + "\x04data\x18\x01 \x01(\v2%.raystack.compass.v1beta1.TagTemplateR\x04data\":\n" + + "\x15GetTagTemplateRequest\x12!\n" + + "\ftemplate_urn\x18\x01 \x01(\tR\vtemplateUrn\"S\n" + + "\x16GetTagTemplateResponse\x129\n" + + "\x04data\x18\x01 \x01(\v2%.raystack.compass.v1beta1.TagTemplateR\x04data\"\xc6\x01\n" + + "\x18UpdateTagTemplateRequest\x12!\n" + + "\ftemplate_urn\x18\x01 \x01(\tR\vtemplateUrn\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12B\n" + + "\x06fields\x18\x04 \x03(\v2*.raystack.compass.v1beta1.TagTemplateFieldR\x06fields\"V\n" + + "\x19UpdateTagTemplateResponse\x129\n" + + "\x04data\x18\x01 \x01(\v2%.raystack.compass.v1beta1.TagTemplateR\x04data\"=\n" + + "\x18DeleteTagTemplateRequest\x12!\n" + + "\ftemplate_urn\x18\x01 \x01(\tR\vtemplateUrn\"\x1b\n" + + "\x19DeleteTagTemplateResponse\"\x90\x01\n" + + "\x16CreateNamespaceRequest\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + + "\x04name\x18\x02 \x01(\tB\a\xbaH\x04r\x02\x10\x03R\x04name\x12\x14\n" + + "\x05state\x18\x03 \x01(\tR\x05state\x123\n" + + "\bmetadata\x18\x04 \x01(\v2\x17.google.protobuf.StructR\bmetadata\")\n" + + "\x17CreateNamespaceResponse\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\"'\n" + + "\x13GetNamespaceRequest\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\"Y\n" + + "\x14GetNamespaceResponse\x12A\n" + + "\tnamespace\x18\x01 \x01(\v2#.raystack.compass.v1beta1.NamespaceR\tnamespace\"u\n" + + "\x16UpdateNamespaceRequest\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12\x14\n" + + "\x05state\x18\x02 \x01(\tR\x05state\x123\n" + + "\bmetadata\x18\x03 \x01(\v2\x17.google.protobuf.StructR\bmetadata\"\x19\n" + + "\x17UpdateNamespaceResponse\"\x17\n" + + "\x15ListNamespacesRequest\"]\n" + + "\x16ListNamespacesResponse\x12C\n" + + "\n" + + "namespaces\x18\x01 \x03(\v2#.raystack.compass.v1beta1.NamespaceR\n" + + "namespaces\"\xd2\x01\n" + + "\x04User\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x12\n" + + "\x04uuid\x18\x02 \x01(\tR\x04uuid\x12\x14\n" + + "\x05email\x18\x03 \x01(\tR\x05email\x12\x1a\n" + + "\bprovider\x18\x04 \x01(\tR\bprovider\x129\n" + + "\n" + + "created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x84\x01\n" + + "\x06Change\x12\x12\n" + + "\x04type\x18\x01 \x01(\tR\x04type\x12\x12\n" + + "\x04path\x18\x02 \x03(\tR\x04path\x12*\n" + + "\x04from\x18\x03 \x01(\v2\x16.google.protobuf.ValueR\x04from\x12&\n" + + "\x02to\x18\x04 \x01(\v2\x16.google.protobuf.ValueR\x02to\"\xeb\x05\n" + + "\x05Asset\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x10\n" + + "\x03urn\x18\x02 \x01(\tR\x03urn\x12\x12\n" + + "\x04type\x18\x03 \x01(\tR\x04type\x12\x18\n" + + "\aservice\x18\x04 \x01(\tR\aservice\x12\x12\n" + + "\x04name\x18\x05 \x01(\tR\x04name\x12 \n" + + "\vdescription\x18\x06 \x01(\tR\vdescription\x12+\n" + + "\x04data\x18\a \x01(\v2\x17.google.protobuf.StructR\x04data\x12C\n" + + "\x06labels\x18\b \x03(\v2+.raystack.compass.v1beta1.Asset.LabelsEntryR\x06labels\x126\n" + + "\x06owners\x18\t \x03(\v2\x1e.raystack.compass.v1beta1.UserR\x06owners\x12\x18\n" + + "\aversion\x18\n" + + " \x01(\tR\aversion\x12=\n" + + "\n" + + "updated_by\x18\v \x01(\v2\x1e.raystack.compass.v1beta1.UserR\tupdatedBy\x12>\n" + + "\tchangelog\x18\f \x03(\v2 .raystack.compass.v1beta1.ChangeR\tchangelog\x129\n" + + "\n" + + "created_at\x18\r \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\x0e \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\x12\x10\n" + + "\x03url\x18\x0f \x01(\tR\x03url\x127\n" + + "\x06probes\x18\x10 \x03(\v2\x1f.raystack.compass.v1beta1.ProbeR\x06probes\x12\x1d\n" + + "\n" + + "is_deleted\x18\x11 \x01(\bR\tisDeleted\x1a9\n" + + "\vLabelsEntry\x12\x10\n" + + "\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" + + "\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\"\x9b\x02\n" + + "\x05Probe\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + + "\tasset_urn\x18\x02 \x01(\tR\bassetUrn\x12\x16\n" + + "\x06status\x18\x03 \x01(\tR\x06status\x12#\n" + + "\rstatus_reason\x18\x04 \x01(\tR\fstatusReason\x123\n" + + "\bmetadata\x18\x05 \x01(\v2\x17.google.protobuf.StructR\bmetadata\x128\n" + + "\ttimestamp\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\ttimestamp\x129\n" + + "\n" + + "created_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\"\xea\x02\n" + + "\n" + + "Discussion\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x14\n" + + "\x05title\x18\x02 \x01(\tR\x05title\x12\x12\n" + + "\x04body\x18\x03 \x01(\tR\x04body\x12\x12\n" + + "\x04type\x18\x04 \x01(\tR\x04type\x12\x14\n" + + "\x05state\x18\x05 \x01(\tR\x05state\x12\x16\n" + + "\x06labels\x18\x06 \x03(\tR\x06labels\x12\x16\n" + + "\x06assets\x18\a \x03(\tR\x06assets\x12\x1c\n" + + "\tassignees\x18\b \x03(\tR\tassignees\x124\n" + + "\x05owner\x18\t \x01(\v2\x1e.raystack.compass.v1beta1.UserR\x05owner\x129\n" + + "\n" + + "created_at\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\v \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xbd\x02\n" + + "\aComment\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12#\n" + + "\rdiscussion_id\x18\x02 \x01(\tR\fdiscussionId\x12\x12\n" + + "\x04body\x18\x03 \x01(\tR\x04body\x124\n" + + "\x05owner\x18\x04 \x01(\v2\x1e.raystack.compass.v1beta1.UserR\x05owner\x12=\n" + + "\n" + + "updated_by\x18\x05 \x01(\v2\x1e.raystack.compass.v1beta1.UserR\tupdatedBy\x129\n" + + "\n" + + "created_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\a \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"j\n" + + "\vLineageEdge\x12\x16\n" + + "\x06source\x18\x01 \x01(\tR\x06source\x12\x16\n" + + "\x06target\x18\x02 \x01(\tR\x06target\x12+\n" + + "\x04prop\x18\x03 \x01(\v2\x17.google.protobuf.StructR\x04prop\"U\n" + + "\vLineageNode\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12\x16\n" + + "\x04type\x18\x02 \x01(\tB\x02\x18\x01R\x04type\x12\x1c\n" + + "\aservice\x18\x03 \x01(\tB\x02\x18\x01R\aservice\"\xed\x01\n" + + "\x03Tag\x12\x19\n" + + "\basset_id\x18\x01 \x01(\tR\aassetId\x12!\n" + + "\ftemplate_urn\x18\x02 \x01(\tR\vtemplateUrn\x12A\n" + + "\n" + + "tag_values\x18\x03 \x03(\v2\".raystack.compass.v1beta1.TagValueR\ttagValues\x122\n" + + "\x15template_display_name\x18\x04 \x01(\tR\x13templateDisplayName\x121\n" + + "\x14template_description\x18\x05 \x01(\tR\x13templateDescription\"\xc0\x03\n" + + "\bTagValue\x12\x19\n" + + "\bfield_id\x18\x01 \x01(\rR\afieldId\x127\n" + + "\vfield_value\x18\x02 \x01(\v2\x16.google.protobuf.ValueR\n" + + "fieldValue\x12\x1b\n" + + "\tfield_urn\x18\x03 \x01(\tR\bfieldUrn\x12,\n" + + "\x12field_display_name\x18\x04 \x01(\tR\x10fieldDisplayName\x12+\n" + + "\x11field_description\x18\x05 \x01(\tR\x10fieldDescription\x12&\n" + + "\x0ffield_data_type\x18\x06 \x01(\tR\rfieldDataType\x12#\n" + + "\rfield_options\x18\a \x03(\tR\ffieldOptions\x12%\n" + + "\x0efield_required\x18\b \x01(\bR\rfieldRequired\x129\n" + + "\n" + + "created_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\n" + + " \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\x9e\x02\n" + + "\vTagTemplate\x12\x10\n" + + "\x03urn\x18\x01 \x01(\tR\x03urn\x12!\n" + + "\fdisplay_name\x18\x02 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x03 \x01(\tR\vdescription\x12B\n" + + "\x06fields\x18\x04 \x03(\v2*.raystack.compass.v1beta1.TagTemplateFieldR\x06fields\x129\n" + + "\n" + + "created_at\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\x06 \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"\xc2\x02\n" + + "\x10TagTemplateField\x12\x0e\n" + + "\x02id\x18\x01 \x01(\rR\x02id\x12\x10\n" + + "\x03urn\x18\x02 \x01(\tR\x03urn\x12!\n" + + "\fdisplay_name\x18\x03 \x01(\tR\vdisplayName\x12 \n" + + "\vdescription\x18\x04 \x01(\tR\vdescription\x12\x1b\n" + + "\tdata_type\x18\x05 \x01(\tR\bdataType\x12\x18\n" + + "\aoptions\x18\x06 \x03(\tR\aoptions\x12\x1a\n" + + "\brequired\x18\a \x01(\bR\brequired\x129\n" + + "\n" + + "created_at\x18\b \x01(\v2\x1a.google.protobuf.TimestampR\tcreatedAt\x129\n" + + "\n" + + "updated_at\x18\t \x01(\v2\x1a.google.protobuf.TimestampR\tupdatedAt\"0\n" + + "\x04Type\x12\x12\n" + + "\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" + + "\x05count\x18\x02 \x01(\rR\x05count\"\x83\x01\n" + + "\tNamespace\x12\x0e\n" + + "\x02id\x18\x01 \x01(\tR\x02id\x12\x1b\n" + + "\x04name\x18\x02 \x01(\tB\a\xbaH\x04r\x02\x10\x03R\x04name\x12\x14\n" + + "\x05state\x18\x03 \x01(\tR\x05state\x123\n" + + "\bmetadata\x18\x04 \x01(\v2\x17.google.protobuf.StructR\bmetadata2\xde(\n" + + "\x0eCompassService\x12~\n" + + "\x11GetAllDiscussions\x122.raystack.compass.v1beta1.GetAllDiscussionsRequest\x1a3.raystack.compass.v1beta1.GetAllDiscussionsResponse\"\x00\x12{\n" + + "\x10CreateDiscussion\x121.raystack.compass.v1beta1.CreateDiscussionRequest\x1a2.raystack.compass.v1beta1.CreateDiscussionResponse\"\x00\x12r\n" + + "\rGetDiscussion\x12..raystack.compass.v1beta1.GetDiscussionRequest\x1a/.raystack.compass.v1beta1.GetDiscussionResponse\"\x00\x12x\n" + + "\x0fPatchDiscussion\x120.raystack.compass.v1beta1.PatchDiscussionRequest\x1a1.raystack.compass.v1beta1.PatchDiscussionResponse\"\x00\x12r\n" + + "\rCreateComment\x12..raystack.compass.v1beta1.CreateCommentRequest\x1a/.raystack.compass.v1beta1.CreateCommentResponse\"\x00\x12u\n" + + "\x0eGetAllComments\x12/.raystack.compass.v1beta1.GetAllCommentsRequest\x1a0.raystack.compass.v1beta1.GetAllCommentsResponse\"\x00\x12i\n" + + "\n" + + "GetComment\x12+.raystack.compass.v1beta1.GetCommentRequest\x1a,.raystack.compass.v1beta1.GetCommentResponse\"\x00\x12r\n" + + "\rUpdateComment\x12..raystack.compass.v1beta1.UpdateCommentRequest\x1a/.raystack.compass.v1beta1.UpdateCommentResponse\"\x00\x12r\n" + + "\rDeleteComment\x12..raystack.compass.v1beta1.DeleteCommentRequest\x1a/.raystack.compass.v1beta1.DeleteCommentResponse\"\x00\x12o\n" + + "\fSearchAssets\x12-.raystack.compass.v1beta1.SearchAssetsRequest\x1a..raystack.compass.v1beta1.SearchAssetsResponse\"\x00\x12r\n" + + "\rSuggestAssets\x12..raystack.compass.v1beta1.SuggestAssetsRequest\x1a/.raystack.compass.v1beta1.SuggestAssetsResponse\"\x00\x12l\n" + + "\vGroupAssets\x12,.raystack.compass.v1beta1.GroupAssetsRequest\x1a-.raystack.compass.v1beta1.GroupAssetsResponse\"\x00\x12c\n" + + "\bGetGraph\x12).raystack.compass.v1beta1.GetGraphRequest\x1a*.raystack.compass.v1beta1.GetGraphResponse\"\x00\x12l\n" + + "\vGetAllTypes\x12,.raystack.compass.v1beta1.GetAllTypesRequest\x1a-.raystack.compass.v1beta1.GetAllTypesResponse\"\x00\x12o\n" + + "\fGetAllAssets\x12-.raystack.compass.v1beta1.GetAllAssetsRequest\x1a..raystack.compass.v1beta1.GetAllAssetsResponse\"\x00\x12o\n" + + "\fGetAssetByID\x12-.raystack.compass.v1beta1.GetAssetByIDRequest\x1a..raystack.compass.v1beta1.GetAssetByIDResponse\"\x00\x12l\n" + + "\vUpsertAsset\x12,.raystack.compass.v1beta1.UpsertAssetRequest\x1a-.raystack.compass.v1beta1.UpsertAssetResponse\"\x00\x12{\n" + + "\x10UpsertPatchAsset\x121.raystack.compass.v1beta1.UpsertPatchAssetRequest\x1a2.raystack.compass.v1beta1.UpsertPatchAssetResponse\"\x00\x12l\n" + + "\vDeleteAsset\x12,.raystack.compass.v1beta1.DeleteAssetRequest\x1a-.raystack.compass.v1beta1.DeleteAssetResponse\"\x00\x12\x81\x01\n" + + "\x12GetAssetStargazers\x123.raystack.compass.v1beta1.GetAssetStargazersRequest\x1a4.raystack.compass.v1beta1.GetAssetStargazersResponse\"\x00\x12\x8d\x01\n" + + "\x16GetAssetVersionHistory\x127.raystack.compass.v1beta1.GetAssetVersionHistoryRequest\x1a8.raystack.compass.v1beta1.GetAssetVersionHistoryResponse\"\x00\x12~\n" + + "\x11GetAssetByVersion\x122.raystack.compass.v1beta1.GetAssetByVersionRequest\x1a3.raystack.compass.v1beta1.GetAssetByVersionResponse\"\x00\x12{\n" + + "\x10CreateAssetProbe\x121.raystack.compass.v1beta1.CreateAssetProbeRequest\x1a2.raystack.compass.v1beta1.CreateAssetProbeResponse\"\x00\x12\x87\x01\n" + + "\x14GetUserStarredAssets\x125.raystack.compass.v1beta1.GetUserStarredAssetsRequest\x1a6.raystack.compass.v1beta1.GetUserStarredAssetsResponse\"\x00\x12\x81\x01\n" + + "\x12GetMyStarredAssets\x123.raystack.compass.v1beta1.GetMyStarredAssetsRequest\x1a4.raystack.compass.v1beta1.GetMyStarredAssetsResponse\"\x00\x12~\n" + + "\x11GetMyStarredAsset\x122.raystack.compass.v1beta1.GetMyStarredAssetRequest\x1a3.raystack.compass.v1beta1.GetMyStarredAssetResponse\"\x00\x12f\n" + + "\tStarAsset\x12*.raystack.compass.v1beta1.StarAssetRequest\x1a+.raystack.compass.v1beta1.StarAssetResponse\"\x00\x12l\n" + + "\vUnstarAsset\x12,.raystack.compass.v1beta1.UnstarAssetRequest\x1a-.raystack.compass.v1beta1.UnstarAssetResponse\"\x00\x12{\n" + + "\x10GetMyDiscussions\x121.raystack.compass.v1beta1.GetMyDiscussionsRequest\x1a2.raystack.compass.v1beta1.GetMyDiscussionsResponse\"\x00\x12u\n" + + "\x0eCreateTagAsset\x12/.raystack.compass.v1beta1.CreateTagAssetRequest\x1a0.raystack.compass.v1beta1.CreateTagAssetResponse\"\x00\x12\x93\x01\n" + + "\x18GetTagByAssetAndTemplate\x129.raystack.compass.v1beta1.GetTagByAssetAndTemplateRequest\x1a:.raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse\"\x00\x12u\n" + + "\x0eUpdateTagAsset\x12/.raystack.compass.v1beta1.UpdateTagAssetRequest\x1a0.raystack.compass.v1beta1.UpdateTagAssetResponse\"\x00\x12u\n" + + "\x0eDeleteTagAsset\x12/.raystack.compass.v1beta1.DeleteTagAssetRequest\x1a0.raystack.compass.v1beta1.DeleteTagAssetResponse\"\x00\x12~\n" + + "\x11GetAllTagsByAsset\x122.raystack.compass.v1beta1.GetAllTagsByAssetRequest\x1a3.raystack.compass.v1beta1.GetAllTagsByAssetResponse\"\x00\x12\x81\x01\n" + + "\x12GetAllTagTemplates\x123.raystack.compass.v1beta1.GetAllTagTemplatesRequest\x1a4.raystack.compass.v1beta1.GetAllTagTemplatesResponse\"\x00\x12~\n" + + "\x11CreateTagTemplate\x122.raystack.compass.v1beta1.CreateTagTemplateRequest\x1a3.raystack.compass.v1beta1.CreateTagTemplateResponse\"\x00\x12u\n" + + "\x0eGetTagTemplate\x12/.raystack.compass.v1beta1.GetTagTemplateRequest\x1a0.raystack.compass.v1beta1.GetTagTemplateResponse\"\x00\x12~\n" + + "\x11UpdateTagTemplate\x122.raystack.compass.v1beta1.UpdateTagTemplateRequest\x1a3.raystack.compass.v1beta1.UpdateTagTemplateResponse\"\x00\x12~\n" + + "\x11DeleteTagTemplate\x122.raystack.compass.v1beta1.DeleteTagTemplateRequest\x1a3.raystack.compass.v1beta1.DeleteTagTemplateResponse\"\x00\x12x\n" + + "\x0fCreateNamespace\x120.raystack.compass.v1beta1.CreateNamespaceRequest\x1a1.raystack.compass.v1beta1.CreateNamespaceResponse\"\x00\x12o\n" + + "\fGetNamespace\x12-.raystack.compass.v1beta1.GetNamespaceRequest\x1a..raystack.compass.v1beta1.GetNamespaceResponse\"\x00\x12x\n" + + "\x0fUpdateNamespace\x120.raystack.compass.v1beta1.UpdateNamespaceRequest\x1a1.raystack.compass.v1beta1.UpdateNamespaceResponse\"\x00\x12u\n" + + "\x0eListNamespaces\x12/.raystack.compass.v1beta1.ListNamespacesRequest\x1a0.raystack.compass.v1beta1.ListNamespacesResponse\"\x00B\xfd\x01\n" + + "\x1ccom.raystack.compass.v1beta1B\fServiceProtoP\x01ZMgithub.com/raystack/compass/proto/gen/raystack/compass/v1beta1;compassv1beta1\xa2\x02\x03RCX\xaa\x02\x18Raystack.Compass.V1beta1\xca\x02\x18Raystack\\Compass\\V1beta1\xe2\x02$Raystack\\Compass\\V1beta1\\GPBMetadata\xea\x02\x1aRaystack::Compass::V1beta1b\x06proto3" + +var ( + file_raystack_compass_v1beta1_service_proto_rawDescOnce sync.Once + file_raystack_compass_v1beta1_service_proto_rawDescData []byte +) + +func file_raystack_compass_v1beta1_service_proto_rawDescGZIP() []byte { + file_raystack_compass_v1beta1_service_proto_rawDescOnce.Do(func() { + file_raystack_compass_v1beta1_service_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_raystack_compass_v1beta1_service_proto_rawDesc), len(file_raystack_compass_v1beta1_service_proto_rawDesc))) + }) + return file_raystack_compass_v1beta1_service_proto_rawDescData +} + +var file_raystack_compass_v1beta1_service_proto_msgTypes = make([]protoimpl.MessageInfo, 117) +var file_raystack_compass_v1beta1_service_proto_goTypes = []any{ + (*GetAllDiscussionsRequest)(nil), // 0: raystack.compass.v1beta1.GetAllDiscussionsRequest + (*GetAllDiscussionsResponse)(nil), // 1: raystack.compass.v1beta1.GetAllDiscussionsResponse + (*CreateDiscussionRequest)(nil), // 2: raystack.compass.v1beta1.CreateDiscussionRequest + (*CreateDiscussionResponse)(nil), // 3: raystack.compass.v1beta1.CreateDiscussionResponse + (*GetDiscussionRequest)(nil), // 4: raystack.compass.v1beta1.GetDiscussionRequest + (*GetDiscussionResponse)(nil), // 5: raystack.compass.v1beta1.GetDiscussionResponse + (*PatchDiscussionRequest)(nil), // 6: raystack.compass.v1beta1.PatchDiscussionRequest + (*CreateCommentRequest)(nil), // 7: raystack.compass.v1beta1.CreateCommentRequest + (*PatchDiscussionResponse)(nil), // 8: raystack.compass.v1beta1.PatchDiscussionResponse + (*CreateCommentResponse)(nil), // 9: raystack.compass.v1beta1.CreateCommentResponse + (*GetAllCommentsRequest)(nil), // 10: raystack.compass.v1beta1.GetAllCommentsRequest + (*GetAllCommentsResponse)(nil), // 11: raystack.compass.v1beta1.GetAllCommentsResponse + (*GetCommentRequest)(nil), // 12: raystack.compass.v1beta1.GetCommentRequest + (*GetCommentResponse)(nil), // 13: raystack.compass.v1beta1.GetCommentResponse + (*UpdateCommentRequest)(nil), // 14: raystack.compass.v1beta1.UpdateCommentRequest + (*UpdateCommentResponse)(nil), // 15: raystack.compass.v1beta1.UpdateCommentResponse + (*DeleteCommentRequest)(nil), // 16: raystack.compass.v1beta1.DeleteCommentRequest + (*DeleteCommentResponse)(nil), // 17: raystack.compass.v1beta1.DeleteCommentResponse + (*SearchAssetsRequest)(nil), // 18: raystack.compass.v1beta1.SearchAssetsRequest + (*SearchFlags)(nil), // 19: raystack.compass.v1beta1.SearchFlags + (*SearchAssetsResponse)(nil), // 20: raystack.compass.v1beta1.SearchAssetsResponse + (*SuggestAssetsRequest)(nil), // 21: raystack.compass.v1beta1.SuggestAssetsRequest + (*SuggestAssetsResponse)(nil), // 22: raystack.compass.v1beta1.SuggestAssetsResponse + (*GroupAssetsRequest)(nil), // 23: raystack.compass.v1beta1.GroupAssetsRequest + (*GroupAssetsResponse)(nil), // 24: raystack.compass.v1beta1.GroupAssetsResponse + (*AssetGroup)(nil), // 25: raystack.compass.v1beta1.AssetGroup + (*GroupField)(nil), // 26: raystack.compass.v1beta1.GroupField + (*GetGraphRequest)(nil), // 27: raystack.compass.v1beta1.GetGraphRequest + (*GetGraphResponse)(nil), // 28: raystack.compass.v1beta1.GetGraphResponse + (*GetAllTypesRequest)(nil), // 29: raystack.compass.v1beta1.GetAllTypesRequest + (*GetAllTypesResponse)(nil), // 30: raystack.compass.v1beta1.GetAllTypesResponse + (*GetAllAssetsRequest)(nil), // 31: raystack.compass.v1beta1.GetAllAssetsRequest + (*GetAllAssetsResponse)(nil), // 32: raystack.compass.v1beta1.GetAllAssetsResponse + (*GetAssetByIDRequest)(nil), // 33: raystack.compass.v1beta1.GetAssetByIDRequest + (*GetAssetByIDResponse)(nil), // 34: raystack.compass.v1beta1.GetAssetByIDResponse + (*UpsertAssetRequest)(nil), // 35: raystack.compass.v1beta1.UpsertAssetRequest + (*UpsertAssetResponse)(nil), // 36: raystack.compass.v1beta1.UpsertAssetResponse + (*UpsertPatchAssetRequest)(nil), // 37: raystack.compass.v1beta1.UpsertPatchAssetRequest + (*UpsertPatchAssetResponse)(nil), // 38: raystack.compass.v1beta1.UpsertPatchAssetResponse + (*DeleteAssetRequest)(nil), // 39: raystack.compass.v1beta1.DeleteAssetRequest + (*DeleteAssetResponse)(nil), // 40: raystack.compass.v1beta1.DeleteAssetResponse + (*GetAssetStargazersRequest)(nil), // 41: raystack.compass.v1beta1.GetAssetStargazersRequest + (*GetAssetStargazersResponse)(nil), // 42: raystack.compass.v1beta1.GetAssetStargazersResponse + (*GetAssetVersionHistoryRequest)(nil), // 43: raystack.compass.v1beta1.GetAssetVersionHistoryRequest + (*GetAssetVersionHistoryResponse)(nil), // 44: raystack.compass.v1beta1.GetAssetVersionHistoryResponse + (*GetAssetByVersionRequest)(nil), // 45: raystack.compass.v1beta1.GetAssetByVersionRequest + (*GetAssetByVersionResponse)(nil), // 46: raystack.compass.v1beta1.GetAssetByVersionResponse + (*CreateAssetProbeRequest)(nil), // 47: raystack.compass.v1beta1.CreateAssetProbeRequest + (*CreateAssetProbeResponse)(nil), // 48: raystack.compass.v1beta1.CreateAssetProbeResponse + (*GetUserStarredAssetsRequest)(nil), // 49: raystack.compass.v1beta1.GetUserStarredAssetsRequest + (*GetUserStarredAssetsResponse)(nil), // 50: raystack.compass.v1beta1.GetUserStarredAssetsResponse + (*GetMyStarredAssetsRequest)(nil), // 51: raystack.compass.v1beta1.GetMyStarredAssetsRequest + (*GetMyStarredAssetsResponse)(nil), // 52: raystack.compass.v1beta1.GetMyStarredAssetsResponse + (*GetMyStarredAssetRequest)(nil), // 53: raystack.compass.v1beta1.GetMyStarredAssetRequest + (*GetMyStarredAssetResponse)(nil), // 54: raystack.compass.v1beta1.GetMyStarredAssetResponse + (*StarAssetRequest)(nil), // 55: raystack.compass.v1beta1.StarAssetRequest + (*StarAssetResponse)(nil), // 56: raystack.compass.v1beta1.StarAssetResponse + (*UnstarAssetRequest)(nil), // 57: raystack.compass.v1beta1.UnstarAssetRequest + (*UnstarAssetResponse)(nil), // 58: raystack.compass.v1beta1.UnstarAssetResponse + (*GetMyDiscussionsRequest)(nil), // 59: raystack.compass.v1beta1.GetMyDiscussionsRequest + (*GetMyDiscussionsResponse)(nil), // 60: raystack.compass.v1beta1.GetMyDiscussionsResponse + (*CreateTagAssetRequest)(nil), // 61: raystack.compass.v1beta1.CreateTagAssetRequest + (*CreateTagAssetResponse)(nil), // 62: raystack.compass.v1beta1.CreateTagAssetResponse + (*GetTagByAssetAndTemplateRequest)(nil), // 63: raystack.compass.v1beta1.GetTagByAssetAndTemplateRequest + (*GetTagByAssetAndTemplateResponse)(nil), // 64: raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse + (*UpdateTagAssetRequest)(nil), // 65: raystack.compass.v1beta1.UpdateTagAssetRequest + (*UpdateTagAssetResponse)(nil), // 66: raystack.compass.v1beta1.UpdateTagAssetResponse + (*DeleteTagAssetRequest)(nil), // 67: raystack.compass.v1beta1.DeleteTagAssetRequest + (*DeleteTagAssetResponse)(nil), // 68: raystack.compass.v1beta1.DeleteTagAssetResponse + (*GetAllTagsByAssetRequest)(nil), // 69: raystack.compass.v1beta1.GetAllTagsByAssetRequest + (*GetAllTagsByAssetResponse)(nil), // 70: raystack.compass.v1beta1.GetAllTagsByAssetResponse + (*GetAllTagTemplatesRequest)(nil), // 71: raystack.compass.v1beta1.GetAllTagTemplatesRequest + (*GetAllTagTemplatesResponse)(nil), // 72: raystack.compass.v1beta1.GetAllTagTemplatesResponse + (*CreateTagTemplateRequest)(nil), // 73: raystack.compass.v1beta1.CreateTagTemplateRequest + (*CreateTagTemplateResponse)(nil), // 74: raystack.compass.v1beta1.CreateTagTemplateResponse + (*GetTagTemplateRequest)(nil), // 75: raystack.compass.v1beta1.GetTagTemplateRequest + (*GetTagTemplateResponse)(nil), // 76: raystack.compass.v1beta1.GetTagTemplateResponse + (*UpdateTagTemplateRequest)(nil), // 77: raystack.compass.v1beta1.UpdateTagTemplateRequest + (*UpdateTagTemplateResponse)(nil), // 78: raystack.compass.v1beta1.UpdateTagTemplateResponse + (*DeleteTagTemplateRequest)(nil), // 79: raystack.compass.v1beta1.DeleteTagTemplateRequest + (*DeleteTagTemplateResponse)(nil), // 80: raystack.compass.v1beta1.DeleteTagTemplateResponse + (*CreateNamespaceRequest)(nil), // 81: raystack.compass.v1beta1.CreateNamespaceRequest + (*CreateNamespaceResponse)(nil), // 82: raystack.compass.v1beta1.CreateNamespaceResponse + (*GetNamespaceRequest)(nil), // 83: raystack.compass.v1beta1.GetNamespaceRequest + (*GetNamespaceResponse)(nil), // 84: raystack.compass.v1beta1.GetNamespaceResponse + (*UpdateNamespaceRequest)(nil), // 85: raystack.compass.v1beta1.UpdateNamespaceRequest + (*UpdateNamespaceResponse)(nil), // 86: raystack.compass.v1beta1.UpdateNamespaceResponse + (*ListNamespacesRequest)(nil), // 87: raystack.compass.v1beta1.ListNamespacesRequest + (*ListNamespacesResponse)(nil), // 88: raystack.compass.v1beta1.ListNamespacesResponse + (*User)(nil), // 89: raystack.compass.v1beta1.User + (*Change)(nil), // 90: raystack.compass.v1beta1.Change + (*Asset)(nil), // 91: raystack.compass.v1beta1.Asset + (*Probe)(nil), // 92: raystack.compass.v1beta1.Probe + (*Discussion)(nil), // 93: raystack.compass.v1beta1.Discussion + (*Comment)(nil), // 94: raystack.compass.v1beta1.Comment + (*LineageEdge)(nil), // 95: raystack.compass.v1beta1.LineageEdge + (*LineageNode)(nil), // 96: raystack.compass.v1beta1.LineageNode + (*Tag)(nil), // 97: raystack.compass.v1beta1.Tag + (*TagValue)(nil), // 98: raystack.compass.v1beta1.TagValue + (*TagTemplate)(nil), // 99: raystack.compass.v1beta1.TagTemplate + (*TagTemplateField)(nil), // 100: raystack.compass.v1beta1.TagTemplateField + (*Type)(nil), // 101: raystack.compass.v1beta1.Type + (*Namespace)(nil), // 102: raystack.compass.v1beta1.Namespace + nil, // 103: raystack.compass.v1beta1.SearchAssetsRequest.FilterEntry + nil, // 104: raystack.compass.v1beta1.SearchAssetsRequest.QueryEntry + nil, // 105: raystack.compass.v1beta1.GroupAssetsRequest.FilterEntry + (*GetGraphResponse_ProbesInfo)(nil), // 106: raystack.compass.v1beta1.GetGraphResponse.ProbesInfo + (*GetGraphResponse_NodeAttributes)(nil), // 107: raystack.compass.v1beta1.GetGraphResponse.NodeAttributes + nil, // 108: raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry + nil, // 109: raystack.compass.v1beta1.GetAllTypesRequest.DataEntry + nil, // 110: raystack.compass.v1beta1.GetAllAssetsRequest.DataEntry + (*UpsertAssetRequest_Asset)(nil), // 111: raystack.compass.v1beta1.UpsertAssetRequest.Asset + nil, // 112: raystack.compass.v1beta1.UpsertAssetRequest.Asset.LabelsEntry + (*UpsertPatchAssetRequest_Asset)(nil), // 113: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset + nil, // 114: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.LabelsEntry + (*CreateAssetProbeRequest_Probe)(nil), // 115: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe + nil, // 116: raystack.compass.v1beta1.Asset.LabelsEntry + (*structpb.Struct)(nil), // 117: google.protobuf.Struct + (*timestamppb.Timestamp)(nil), // 118: google.protobuf.Timestamp + (*structpb.Value)(nil), // 119: google.protobuf.Value + (*wrapperspb.StringValue)(nil), // 120: google.protobuf.StringValue +} +var file_raystack_compass_v1beta1_service_proto_depIdxs = []int32{ + 93, // 0: raystack.compass.v1beta1.GetAllDiscussionsResponse.data:type_name -> raystack.compass.v1beta1.Discussion + 93, // 1: raystack.compass.v1beta1.GetDiscussionResponse.data:type_name -> raystack.compass.v1beta1.Discussion + 94, // 2: raystack.compass.v1beta1.GetAllCommentsResponse.data:type_name -> raystack.compass.v1beta1.Comment + 94, // 3: raystack.compass.v1beta1.GetCommentResponse.data:type_name -> raystack.compass.v1beta1.Comment + 103, // 4: raystack.compass.v1beta1.SearchAssetsRequest.filter:type_name -> raystack.compass.v1beta1.SearchAssetsRequest.FilterEntry + 104, // 5: raystack.compass.v1beta1.SearchAssetsRequest.query:type_name -> raystack.compass.v1beta1.SearchAssetsRequest.QueryEntry + 19, // 6: raystack.compass.v1beta1.SearchAssetsRequest.flags:type_name -> raystack.compass.v1beta1.SearchFlags + 91, // 7: raystack.compass.v1beta1.SearchAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset + 105, // 8: raystack.compass.v1beta1.GroupAssetsRequest.filter:type_name -> raystack.compass.v1beta1.GroupAssetsRequest.FilterEntry + 25, // 9: raystack.compass.v1beta1.GroupAssetsResponse.asset_groups:type_name -> raystack.compass.v1beta1.AssetGroup + 26, // 10: raystack.compass.v1beta1.AssetGroup.group_fields:type_name -> raystack.compass.v1beta1.GroupField + 91, // 11: raystack.compass.v1beta1.AssetGroup.assets:type_name -> raystack.compass.v1beta1.Asset + 95, // 12: raystack.compass.v1beta1.GetGraphResponse.data:type_name -> raystack.compass.v1beta1.LineageEdge + 108, // 13: raystack.compass.v1beta1.GetGraphResponse.node_attrs:type_name -> raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry + 109, // 14: raystack.compass.v1beta1.GetAllTypesRequest.data:type_name -> raystack.compass.v1beta1.GetAllTypesRequest.DataEntry + 101, // 15: raystack.compass.v1beta1.GetAllTypesResponse.data:type_name -> raystack.compass.v1beta1.Type + 110, // 16: raystack.compass.v1beta1.GetAllAssetsRequest.data:type_name -> raystack.compass.v1beta1.GetAllAssetsRequest.DataEntry + 91, // 17: raystack.compass.v1beta1.GetAllAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset + 91, // 18: raystack.compass.v1beta1.GetAssetByIDResponse.data:type_name -> raystack.compass.v1beta1.Asset + 111, // 19: raystack.compass.v1beta1.UpsertAssetRequest.asset:type_name -> raystack.compass.v1beta1.UpsertAssetRequest.Asset + 96, // 20: raystack.compass.v1beta1.UpsertAssetRequest.upstreams:type_name -> raystack.compass.v1beta1.LineageNode + 96, // 21: raystack.compass.v1beta1.UpsertAssetRequest.downstreams:type_name -> raystack.compass.v1beta1.LineageNode + 113, // 22: raystack.compass.v1beta1.UpsertPatchAssetRequest.asset:type_name -> raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset + 96, // 23: raystack.compass.v1beta1.UpsertPatchAssetRequest.upstreams:type_name -> raystack.compass.v1beta1.LineageNode + 96, // 24: raystack.compass.v1beta1.UpsertPatchAssetRequest.downstreams:type_name -> raystack.compass.v1beta1.LineageNode + 89, // 25: raystack.compass.v1beta1.GetAssetStargazersResponse.data:type_name -> raystack.compass.v1beta1.User + 91, // 26: raystack.compass.v1beta1.GetAssetVersionHistoryResponse.data:type_name -> raystack.compass.v1beta1.Asset + 91, // 27: raystack.compass.v1beta1.GetAssetByVersionResponse.data:type_name -> raystack.compass.v1beta1.Asset + 115, // 28: raystack.compass.v1beta1.CreateAssetProbeRequest.probe:type_name -> raystack.compass.v1beta1.CreateAssetProbeRequest.Probe + 91, // 29: raystack.compass.v1beta1.GetUserStarredAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset + 91, // 30: raystack.compass.v1beta1.GetMyStarredAssetsResponse.data:type_name -> raystack.compass.v1beta1.Asset + 91, // 31: raystack.compass.v1beta1.GetMyStarredAssetResponse.data:type_name -> raystack.compass.v1beta1.Asset + 93, // 32: raystack.compass.v1beta1.GetMyDiscussionsResponse.data:type_name -> raystack.compass.v1beta1.Discussion + 98, // 33: raystack.compass.v1beta1.CreateTagAssetRequest.tag_values:type_name -> raystack.compass.v1beta1.TagValue + 97, // 34: raystack.compass.v1beta1.CreateTagAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag + 97, // 35: raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse.data:type_name -> raystack.compass.v1beta1.Tag + 98, // 36: raystack.compass.v1beta1.UpdateTagAssetRequest.tag_values:type_name -> raystack.compass.v1beta1.TagValue + 97, // 37: raystack.compass.v1beta1.UpdateTagAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag + 97, // 38: raystack.compass.v1beta1.GetAllTagsByAssetResponse.data:type_name -> raystack.compass.v1beta1.Tag + 99, // 39: raystack.compass.v1beta1.GetAllTagTemplatesResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate + 100, // 40: raystack.compass.v1beta1.CreateTagTemplateRequest.fields:type_name -> raystack.compass.v1beta1.TagTemplateField + 99, // 41: raystack.compass.v1beta1.CreateTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate + 99, // 42: raystack.compass.v1beta1.GetTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate + 100, // 43: raystack.compass.v1beta1.UpdateTagTemplateRequest.fields:type_name -> raystack.compass.v1beta1.TagTemplateField + 99, // 44: raystack.compass.v1beta1.UpdateTagTemplateResponse.data:type_name -> raystack.compass.v1beta1.TagTemplate + 117, // 45: raystack.compass.v1beta1.CreateNamespaceRequest.metadata:type_name -> google.protobuf.Struct + 102, // 46: raystack.compass.v1beta1.GetNamespaceResponse.namespace:type_name -> raystack.compass.v1beta1.Namespace + 117, // 47: raystack.compass.v1beta1.UpdateNamespaceRequest.metadata:type_name -> google.protobuf.Struct + 102, // 48: raystack.compass.v1beta1.ListNamespacesResponse.namespaces:type_name -> raystack.compass.v1beta1.Namespace + 118, // 49: raystack.compass.v1beta1.User.created_at:type_name -> google.protobuf.Timestamp + 118, // 50: raystack.compass.v1beta1.User.updated_at:type_name -> google.protobuf.Timestamp + 119, // 51: raystack.compass.v1beta1.Change.from:type_name -> google.protobuf.Value + 119, // 52: raystack.compass.v1beta1.Change.to:type_name -> google.protobuf.Value + 117, // 53: raystack.compass.v1beta1.Asset.data:type_name -> google.protobuf.Struct + 116, // 54: raystack.compass.v1beta1.Asset.labels:type_name -> raystack.compass.v1beta1.Asset.LabelsEntry + 89, // 55: raystack.compass.v1beta1.Asset.owners:type_name -> raystack.compass.v1beta1.User + 89, // 56: raystack.compass.v1beta1.Asset.updated_by:type_name -> raystack.compass.v1beta1.User + 90, // 57: raystack.compass.v1beta1.Asset.changelog:type_name -> raystack.compass.v1beta1.Change + 118, // 58: raystack.compass.v1beta1.Asset.created_at:type_name -> google.protobuf.Timestamp + 118, // 59: raystack.compass.v1beta1.Asset.updated_at:type_name -> google.protobuf.Timestamp + 92, // 60: raystack.compass.v1beta1.Asset.probes:type_name -> raystack.compass.v1beta1.Probe + 117, // 61: raystack.compass.v1beta1.Probe.metadata:type_name -> google.protobuf.Struct + 118, // 62: raystack.compass.v1beta1.Probe.timestamp:type_name -> google.protobuf.Timestamp + 118, // 63: raystack.compass.v1beta1.Probe.created_at:type_name -> google.protobuf.Timestamp + 89, // 64: raystack.compass.v1beta1.Discussion.owner:type_name -> raystack.compass.v1beta1.User + 118, // 65: raystack.compass.v1beta1.Discussion.created_at:type_name -> google.protobuf.Timestamp + 118, // 66: raystack.compass.v1beta1.Discussion.updated_at:type_name -> google.protobuf.Timestamp + 89, // 67: raystack.compass.v1beta1.Comment.owner:type_name -> raystack.compass.v1beta1.User + 89, // 68: raystack.compass.v1beta1.Comment.updated_by:type_name -> raystack.compass.v1beta1.User + 118, // 69: raystack.compass.v1beta1.Comment.created_at:type_name -> google.protobuf.Timestamp + 118, // 70: raystack.compass.v1beta1.Comment.updated_at:type_name -> google.protobuf.Timestamp + 117, // 71: raystack.compass.v1beta1.LineageEdge.prop:type_name -> google.protobuf.Struct + 98, // 72: raystack.compass.v1beta1.Tag.tag_values:type_name -> raystack.compass.v1beta1.TagValue + 119, // 73: raystack.compass.v1beta1.TagValue.field_value:type_name -> google.protobuf.Value + 118, // 74: raystack.compass.v1beta1.TagValue.created_at:type_name -> google.protobuf.Timestamp + 118, // 75: raystack.compass.v1beta1.TagValue.updated_at:type_name -> google.protobuf.Timestamp + 100, // 76: raystack.compass.v1beta1.TagTemplate.fields:type_name -> raystack.compass.v1beta1.TagTemplateField + 118, // 77: raystack.compass.v1beta1.TagTemplate.created_at:type_name -> google.protobuf.Timestamp + 118, // 78: raystack.compass.v1beta1.TagTemplate.updated_at:type_name -> google.protobuf.Timestamp + 118, // 79: raystack.compass.v1beta1.TagTemplateField.created_at:type_name -> google.protobuf.Timestamp + 118, // 80: raystack.compass.v1beta1.TagTemplateField.updated_at:type_name -> google.protobuf.Timestamp + 117, // 81: raystack.compass.v1beta1.Namespace.metadata:type_name -> google.protobuf.Struct + 92, // 82: raystack.compass.v1beta1.GetGraphResponse.ProbesInfo.latest:type_name -> raystack.compass.v1beta1.Probe + 106, // 83: raystack.compass.v1beta1.GetGraphResponse.NodeAttributes.probes:type_name -> raystack.compass.v1beta1.GetGraphResponse.ProbesInfo + 107, // 84: raystack.compass.v1beta1.GetGraphResponse.NodeAttrsEntry.value:type_name -> raystack.compass.v1beta1.GetGraphResponse.NodeAttributes + 117, // 85: raystack.compass.v1beta1.UpsertAssetRequest.Asset.data:type_name -> google.protobuf.Struct + 112, // 86: raystack.compass.v1beta1.UpsertAssetRequest.Asset.labels:type_name -> raystack.compass.v1beta1.UpsertAssetRequest.Asset.LabelsEntry + 89, // 87: raystack.compass.v1beta1.UpsertAssetRequest.Asset.owners:type_name -> raystack.compass.v1beta1.User + 120, // 88: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.name:type_name -> google.protobuf.StringValue + 120, // 89: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.description:type_name -> google.protobuf.StringValue + 117, // 90: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.data:type_name -> google.protobuf.Struct + 114, // 91: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.labels:type_name -> raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.LabelsEntry + 89, // 92: raystack.compass.v1beta1.UpsertPatchAssetRequest.Asset.owners:type_name -> raystack.compass.v1beta1.User + 117, // 93: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe.metadata:type_name -> google.protobuf.Struct + 118, // 94: raystack.compass.v1beta1.CreateAssetProbeRequest.Probe.timestamp:type_name -> google.protobuf.Timestamp + 0, // 95: raystack.compass.v1beta1.CompassService.GetAllDiscussions:input_type -> raystack.compass.v1beta1.GetAllDiscussionsRequest + 2, // 96: raystack.compass.v1beta1.CompassService.CreateDiscussion:input_type -> raystack.compass.v1beta1.CreateDiscussionRequest + 4, // 97: raystack.compass.v1beta1.CompassService.GetDiscussion:input_type -> raystack.compass.v1beta1.GetDiscussionRequest + 6, // 98: raystack.compass.v1beta1.CompassService.PatchDiscussion:input_type -> raystack.compass.v1beta1.PatchDiscussionRequest + 7, // 99: raystack.compass.v1beta1.CompassService.CreateComment:input_type -> raystack.compass.v1beta1.CreateCommentRequest + 10, // 100: raystack.compass.v1beta1.CompassService.GetAllComments:input_type -> raystack.compass.v1beta1.GetAllCommentsRequest + 12, // 101: raystack.compass.v1beta1.CompassService.GetComment:input_type -> raystack.compass.v1beta1.GetCommentRequest + 14, // 102: raystack.compass.v1beta1.CompassService.UpdateComment:input_type -> raystack.compass.v1beta1.UpdateCommentRequest + 16, // 103: raystack.compass.v1beta1.CompassService.DeleteComment:input_type -> raystack.compass.v1beta1.DeleteCommentRequest + 18, // 104: raystack.compass.v1beta1.CompassService.SearchAssets:input_type -> raystack.compass.v1beta1.SearchAssetsRequest + 21, // 105: raystack.compass.v1beta1.CompassService.SuggestAssets:input_type -> raystack.compass.v1beta1.SuggestAssetsRequest + 23, // 106: raystack.compass.v1beta1.CompassService.GroupAssets:input_type -> raystack.compass.v1beta1.GroupAssetsRequest + 27, // 107: raystack.compass.v1beta1.CompassService.GetGraph:input_type -> raystack.compass.v1beta1.GetGraphRequest + 29, // 108: raystack.compass.v1beta1.CompassService.GetAllTypes:input_type -> raystack.compass.v1beta1.GetAllTypesRequest + 31, // 109: raystack.compass.v1beta1.CompassService.GetAllAssets:input_type -> raystack.compass.v1beta1.GetAllAssetsRequest + 33, // 110: raystack.compass.v1beta1.CompassService.GetAssetByID:input_type -> raystack.compass.v1beta1.GetAssetByIDRequest + 35, // 111: raystack.compass.v1beta1.CompassService.UpsertAsset:input_type -> raystack.compass.v1beta1.UpsertAssetRequest + 37, // 112: raystack.compass.v1beta1.CompassService.UpsertPatchAsset:input_type -> raystack.compass.v1beta1.UpsertPatchAssetRequest + 39, // 113: raystack.compass.v1beta1.CompassService.DeleteAsset:input_type -> raystack.compass.v1beta1.DeleteAssetRequest + 41, // 114: raystack.compass.v1beta1.CompassService.GetAssetStargazers:input_type -> raystack.compass.v1beta1.GetAssetStargazersRequest + 43, // 115: raystack.compass.v1beta1.CompassService.GetAssetVersionHistory:input_type -> raystack.compass.v1beta1.GetAssetVersionHistoryRequest + 45, // 116: raystack.compass.v1beta1.CompassService.GetAssetByVersion:input_type -> raystack.compass.v1beta1.GetAssetByVersionRequest + 47, // 117: raystack.compass.v1beta1.CompassService.CreateAssetProbe:input_type -> raystack.compass.v1beta1.CreateAssetProbeRequest + 49, // 118: raystack.compass.v1beta1.CompassService.GetUserStarredAssets:input_type -> raystack.compass.v1beta1.GetUserStarredAssetsRequest + 51, // 119: raystack.compass.v1beta1.CompassService.GetMyStarredAssets:input_type -> raystack.compass.v1beta1.GetMyStarredAssetsRequest + 53, // 120: raystack.compass.v1beta1.CompassService.GetMyStarredAsset:input_type -> raystack.compass.v1beta1.GetMyStarredAssetRequest + 55, // 121: raystack.compass.v1beta1.CompassService.StarAsset:input_type -> raystack.compass.v1beta1.StarAssetRequest + 57, // 122: raystack.compass.v1beta1.CompassService.UnstarAsset:input_type -> raystack.compass.v1beta1.UnstarAssetRequest + 59, // 123: raystack.compass.v1beta1.CompassService.GetMyDiscussions:input_type -> raystack.compass.v1beta1.GetMyDiscussionsRequest + 61, // 124: raystack.compass.v1beta1.CompassService.CreateTagAsset:input_type -> raystack.compass.v1beta1.CreateTagAssetRequest + 63, // 125: raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate:input_type -> raystack.compass.v1beta1.GetTagByAssetAndTemplateRequest + 65, // 126: raystack.compass.v1beta1.CompassService.UpdateTagAsset:input_type -> raystack.compass.v1beta1.UpdateTagAssetRequest + 67, // 127: raystack.compass.v1beta1.CompassService.DeleteTagAsset:input_type -> raystack.compass.v1beta1.DeleteTagAssetRequest + 69, // 128: raystack.compass.v1beta1.CompassService.GetAllTagsByAsset:input_type -> raystack.compass.v1beta1.GetAllTagsByAssetRequest + 71, // 129: raystack.compass.v1beta1.CompassService.GetAllTagTemplates:input_type -> raystack.compass.v1beta1.GetAllTagTemplatesRequest + 73, // 130: raystack.compass.v1beta1.CompassService.CreateTagTemplate:input_type -> raystack.compass.v1beta1.CreateTagTemplateRequest + 75, // 131: raystack.compass.v1beta1.CompassService.GetTagTemplate:input_type -> raystack.compass.v1beta1.GetTagTemplateRequest + 77, // 132: raystack.compass.v1beta1.CompassService.UpdateTagTemplate:input_type -> raystack.compass.v1beta1.UpdateTagTemplateRequest + 79, // 133: raystack.compass.v1beta1.CompassService.DeleteTagTemplate:input_type -> raystack.compass.v1beta1.DeleteTagTemplateRequest + 81, // 134: raystack.compass.v1beta1.CompassService.CreateNamespace:input_type -> raystack.compass.v1beta1.CreateNamespaceRequest + 83, // 135: raystack.compass.v1beta1.CompassService.GetNamespace:input_type -> raystack.compass.v1beta1.GetNamespaceRequest + 85, // 136: raystack.compass.v1beta1.CompassService.UpdateNamespace:input_type -> raystack.compass.v1beta1.UpdateNamespaceRequest + 87, // 137: raystack.compass.v1beta1.CompassService.ListNamespaces:input_type -> raystack.compass.v1beta1.ListNamespacesRequest + 1, // 138: raystack.compass.v1beta1.CompassService.GetAllDiscussions:output_type -> raystack.compass.v1beta1.GetAllDiscussionsResponse + 3, // 139: raystack.compass.v1beta1.CompassService.CreateDiscussion:output_type -> raystack.compass.v1beta1.CreateDiscussionResponse + 5, // 140: raystack.compass.v1beta1.CompassService.GetDiscussion:output_type -> raystack.compass.v1beta1.GetDiscussionResponse + 8, // 141: raystack.compass.v1beta1.CompassService.PatchDiscussion:output_type -> raystack.compass.v1beta1.PatchDiscussionResponse + 9, // 142: raystack.compass.v1beta1.CompassService.CreateComment:output_type -> raystack.compass.v1beta1.CreateCommentResponse + 11, // 143: raystack.compass.v1beta1.CompassService.GetAllComments:output_type -> raystack.compass.v1beta1.GetAllCommentsResponse + 13, // 144: raystack.compass.v1beta1.CompassService.GetComment:output_type -> raystack.compass.v1beta1.GetCommentResponse + 15, // 145: raystack.compass.v1beta1.CompassService.UpdateComment:output_type -> raystack.compass.v1beta1.UpdateCommentResponse + 17, // 146: raystack.compass.v1beta1.CompassService.DeleteComment:output_type -> raystack.compass.v1beta1.DeleteCommentResponse + 20, // 147: raystack.compass.v1beta1.CompassService.SearchAssets:output_type -> raystack.compass.v1beta1.SearchAssetsResponse + 22, // 148: raystack.compass.v1beta1.CompassService.SuggestAssets:output_type -> raystack.compass.v1beta1.SuggestAssetsResponse + 24, // 149: raystack.compass.v1beta1.CompassService.GroupAssets:output_type -> raystack.compass.v1beta1.GroupAssetsResponse + 28, // 150: raystack.compass.v1beta1.CompassService.GetGraph:output_type -> raystack.compass.v1beta1.GetGraphResponse + 30, // 151: raystack.compass.v1beta1.CompassService.GetAllTypes:output_type -> raystack.compass.v1beta1.GetAllTypesResponse + 32, // 152: raystack.compass.v1beta1.CompassService.GetAllAssets:output_type -> raystack.compass.v1beta1.GetAllAssetsResponse + 34, // 153: raystack.compass.v1beta1.CompassService.GetAssetByID:output_type -> raystack.compass.v1beta1.GetAssetByIDResponse + 36, // 154: raystack.compass.v1beta1.CompassService.UpsertAsset:output_type -> raystack.compass.v1beta1.UpsertAssetResponse + 38, // 155: raystack.compass.v1beta1.CompassService.UpsertPatchAsset:output_type -> raystack.compass.v1beta1.UpsertPatchAssetResponse + 40, // 156: raystack.compass.v1beta1.CompassService.DeleteAsset:output_type -> raystack.compass.v1beta1.DeleteAssetResponse + 42, // 157: raystack.compass.v1beta1.CompassService.GetAssetStargazers:output_type -> raystack.compass.v1beta1.GetAssetStargazersResponse + 44, // 158: raystack.compass.v1beta1.CompassService.GetAssetVersionHistory:output_type -> raystack.compass.v1beta1.GetAssetVersionHistoryResponse + 46, // 159: raystack.compass.v1beta1.CompassService.GetAssetByVersion:output_type -> raystack.compass.v1beta1.GetAssetByVersionResponse + 48, // 160: raystack.compass.v1beta1.CompassService.CreateAssetProbe:output_type -> raystack.compass.v1beta1.CreateAssetProbeResponse + 50, // 161: raystack.compass.v1beta1.CompassService.GetUserStarredAssets:output_type -> raystack.compass.v1beta1.GetUserStarredAssetsResponse + 52, // 162: raystack.compass.v1beta1.CompassService.GetMyStarredAssets:output_type -> raystack.compass.v1beta1.GetMyStarredAssetsResponse + 54, // 163: raystack.compass.v1beta1.CompassService.GetMyStarredAsset:output_type -> raystack.compass.v1beta1.GetMyStarredAssetResponse + 56, // 164: raystack.compass.v1beta1.CompassService.StarAsset:output_type -> raystack.compass.v1beta1.StarAssetResponse + 58, // 165: raystack.compass.v1beta1.CompassService.UnstarAsset:output_type -> raystack.compass.v1beta1.UnstarAssetResponse + 60, // 166: raystack.compass.v1beta1.CompassService.GetMyDiscussions:output_type -> raystack.compass.v1beta1.GetMyDiscussionsResponse + 62, // 167: raystack.compass.v1beta1.CompassService.CreateTagAsset:output_type -> raystack.compass.v1beta1.CreateTagAssetResponse + 64, // 168: raystack.compass.v1beta1.CompassService.GetTagByAssetAndTemplate:output_type -> raystack.compass.v1beta1.GetTagByAssetAndTemplateResponse + 66, // 169: raystack.compass.v1beta1.CompassService.UpdateTagAsset:output_type -> raystack.compass.v1beta1.UpdateTagAssetResponse + 68, // 170: raystack.compass.v1beta1.CompassService.DeleteTagAsset:output_type -> raystack.compass.v1beta1.DeleteTagAssetResponse + 70, // 171: raystack.compass.v1beta1.CompassService.GetAllTagsByAsset:output_type -> raystack.compass.v1beta1.GetAllTagsByAssetResponse + 72, // 172: raystack.compass.v1beta1.CompassService.GetAllTagTemplates:output_type -> raystack.compass.v1beta1.GetAllTagTemplatesResponse + 74, // 173: raystack.compass.v1beta1.CompassService.CreateTagTemplate:output_type -> raystack.compass.v1beta1.CreateTagTemplateResponse + 76, // 174: raystack.compass.v1beta1.CompassService.GetTagTemplate:output_type -> raystack.compass.v1beta1.GetTagTemplateResponse + 78, // 175: raystack.compass.v1beta1.CompassService.UpdateTagTemplate:output_type -> raystack.compass.v1beta1.UpdateTagTemplateResponse + 80, // 176: raystack.compass.v1beta1.CompassService.DeleteTagTemplate:output_type -> raystack.compass.v1beta1.DeleteTagTemplateResponse + 82, // 177: raystack.compass.v1beta1.CompassService.CreateNamespace:output_type -> raystack.compass.v1beta1.CreateNamespaceResponse + 84, // 178: raystack.compass.v1beta1.CompassService.GetNamespace:output_type -> raystack.compass.v1beta1.GetNamespaceResponse + 86, // 179: raystack.compass.v1beta1.CompassService.UpdateNamespace:output_type -> raystack.compass.v1beta1.UpdateNamespaceResponse + 88, // 180: raystack.compass.v1beta1.CompassService.ListNamespaces:output_type -> raystack.compass.v1beta1.ListNamespacesResponse + 138, // [138:181] is the sub-list for method output_type + 95, // [95:138] is the sub-list for method input_type + 95, // [95:95] is the sub-list for extension type_name + 95, // [95:95] is the sub-list for extension extendee + 0, // [0:95] is the sub-list for field type_name +} + +func init() { file_raystack_compass_v1beta1_service_proto_init() } +func file_raystack_compass_v1beta1_service_proto_init() { + if File_raystack_compass_v1beta1_service_proto != nil { + return + } + file_raystack_compass_v1beta1_service_proto_msgTypes[27].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: unsafe.Slice(unsafe.StringData(file_raystack_compass_v1beta1_service_proto_rawDesc), len(file_raystack_compass_v1beta1_service_proto_rawDesc)), + NumEnums: 0, + NumMessages: 117, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_raystack_compass_v1beta1_service_proto_goTypes, + DependencyIndexes: file_raystack_compass_v1beta1_service_proto_depIdxs, + MessageInfos: file_raystack_compass_v1beta1_service_proto_msgTypes, + }.Build() + File_raystack_compass_v1beta1_service_proto = out.File + file_raystack_compass_v1beta1_service_proto_goTypes = nil + file_raystack_compass_v1beta1_service_proto_depIdxs = nil +} diff --git a/internal/store/elasticsearch/discovery_repository.go b/store/elasticsearch/discovery_repository.go similarity index 100% rename from internal/store/elasticsearch/discovery_repository.go rename to store/elasticsearch/discovery_repository.go diff --git a/internal/store/elasticsearch/discovery_repository_test.go b/store/elasticsearch/discovery_repository_test.go similarity index 99% rename from internal/store/elasticsearch/discovery_repository_test.go rename to store/elasticsearch/discovery_repository_test.go index b8d044d9..34287433 100644 --- a/internal/store/elasticsearch/discovery_repository_test.go +++ b/store/elasticsearch/discovery_repository_test.go @@ -10,7 +10,7 @@ import ( "time" "github.com/raystack/compass/core/asset" - store "github.com/raystack/compass/internal/store/elasticsearch" + store "github.com/raystack/compass/store/elasticsearch" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/store/elasticsearch/discovery_search_repository.go b/store/elasticsearch/discovery_search_repository.go similarity index 100% rename from internal/store/elasticsearch/discovery_search_repository.go rename to store/elasticsearch/discovery_search_repository.go diff --git a/internal/store/elasticsearch/discovery_search_repository_test.go b/store/elasticsearch/discovery_search_repository_test.go similarity index 99% rename from internal/store/elasticsearch/discovery_search_repository_test.go rename to store/elasticsearch/discovery_search_repository_test.go index 286220d0..bb4883cf 100644 --- a/internal/store/elasticsearch/discovery_search_repository_test.go +++ b/store/elasticsearch/discovery_search_repository_test.go @@ -9,7 +9,7 @@ import ( "testing" "github.com/raystack/compass/core/asset" - store "github.com/raystack/compass/internal/store/elasticsearch" + store "github.com/raystack/compass/store/elasticsearch" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/store/elasticsearch/es.go b/store/elasticsearch/es.go similarity index 98% rename from internal/store/elasticsearch/es.go rename to store/elasticsearch/es.go index b72177a0..860c1117 100644 --- a/internal/store/elasticsearch/es.go +++ b/store/elasticsearch/es.go @@ -12,7 +12,6 @@ import ( "github.com/elastic/go-elasticsearch/v8" "github.com/elastic/go-elasticsearch/v8/esapi" "github.com/google/uuid" - "github.com/newrelic/go-agent/v3/integrations/nrelasticsearch-v7" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/namespace" log "github.com/raystack/salt/observability/logger" @@ -151,7 +150,6 @@ func NewClient(logger log.Logger, config Config, opts ...ClientOption) (*Client, brokers := strings.Split(config.Brokers, ",") esCfg := elasticsearch.Config{ Addresses: brokers, - Transport: nrelasticsearch.NewRoundTripper(nil), // Retry on 429 TooManyRequests statuses as well RetryOnStatus: []int{502, 503, 504, 429}, MaxRetries: 3, diff --git a/internal/store/elasticsearch/es_test.go b/store/elasticsearch/es_test.go similarity index 98% rename from internal/store/elasticsearch/es_test.go rename to store/elasticsearch/es_test.go index 5c45ca68..ba5fba24 100644 --- a/internal/store/elasticsearch/es_test.go +++ b/store/elasticsearch/es_test.go @@ -11,7 +11,7 @@ import ( "github.com/elastic/go-elasticsearch/v8/esapi" "github.com/elastic/go-elasticsearch/v8" - store "github.com/raystack/compass/internal/store/elasticsearch" + store "github.com/raystack/compass/store/elasticsearch" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" diff --git a/internal/store/elasticsearch/init_test.go b/store/elasticsearch/init_test.go similarity index 88% rename from internal/store/elasticsearch/init_test.go rename to store/elasticsearch/init_test.go index 2c98f63b..92a89808 100644 --- a/internal/store/elasticsearch/init_test.go +++ b/store/elasticsearch/init_test.go @@ -5,7 +5,7 @@ import ( "os" "testing" - "github.com/raystack/compass/internal/store/elasticsearch/testutil" + "github.com/raystack/compass/store/elasticsearch/testutil" ) var ( diff --git a/internal/store/elasticsearch/options.go b/store/elasticsearch/options.go similarity index 100% rename from internal/store/elasticsearch/options.go rename to store/elasticsearch/options.go diff --git a/internal/store/elasticsearch/schema.go b/store/elasticsearch/schema.go similarity index 100% rename from internal/store/elasticsearch/schema.go rename to store/elasticsearch/schema.go diff --git a/internal/store/elasticsearch/testdata/search-test-fixture.json b/store/elasticsearch/testdata/search-test-fixture.json similarity index 100% rename from internal/store/elasticsearch/testdata/search-test-fixture.json rename to store/elasticsearch/testdata/search-test-fixture.json diff --git a/internal/store/elasticsearch/testdata/suggest-test-fixture.json b/store/elasticsearch/testdata/suggest-test-fixture.json similarity index 100% rename from internal/store/elasticsearch/testdata/suggest-test-fixture.json rename to store/elasticsearch/testdata/suggest-test-fixture.json diff --git a/internal/store/elasticsearch/testutil/elastic_search.go b/store/elasticsearch/testutil/elastic_search.go similarity index 100% rename from internal/store/elasticsearch/testutil/elastic_search.go rename to store/elasticsearch/testutil/elastic_search.go diff --git a/internal/store/postgres/asset_model.go b/store/postgres/asset_model.go similarity index 100% rename from internal/store/postgres/asset_model.go rename to store/postgres/asset_model.go diff --git a/internal/store/postgres/asset_model_test.go b/store/postgres/asset_model_test.go similarity index 90% rename from internal/store/postgres/asset_model_test.go rename to store/postgres/asset_model_test.go index 5f040481..24ac7a20 100644 --- a/internal/store/postgres/asset_model_test.go +++ b/store/postgres/asset_model_test.go @@ -3,7 +3,7 @@ package postgres_test import ( "testing" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" "github.com/stretchr/testify/assert" ) diff --git a/internal/store/postgres/asset_repository.go b/store/postgres/asset_repository.go similarity index 100% rename from internal/store/postgres/asset_repository.go rename to store/postgres/asset_repository.go diff --git a/internal/store/postgres/asset_repository_test.go b/store/postgres/asset_repository_test.go similarity index 99% rename from internal/store/postgres/asset_repository_test.go rename to store/postgres/asset_repository_test.go index 30b1fff8..031d2a39 100644 --- a/internal/store/postgres/asset_repository_test.go +++ b/store/postgres/asset_repository_test.go @@ -11,7 +11,7 @@ import ( "time" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" _ "embed" @@ -20,7 +20,7 @@ import ( "github.com/google/uuid" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/r3labs/diff/v3" @@ -60,7 +60,7 @@ func (r *AssetRepositoryTestSuite) SetupSuite() { State: namespace.DedicatedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.userRepo, err = postgres.NewUserRepository(r.client) if err != nil { r.T().Fatal(err) diff --git a/internal/store/postgres/config.go b/store/postgres/config.go similarity index 100% rename from internal/store/postgres/config.go rename to store/postgres/config.go diff --git a/internal/store/postgres/discussion_comment_repository.go b/store/postgres/discussion_comment_repository.go similarity index 100% rename from internal/store/postgres/discussion_comment_repository.go rename to store/postgres/discussion_comment_repository.go diff --git a/internal/store/postgres/discussion_comment_repository_test.go b/store/postgres/discussion_comment_repository_test.go similarity index 100% rename from internal/store/postgres/discussion_comment_repository_test.go rename to store/postgres/discussion_comment_repository_test.go diff --git a/internal/store/postgres/discussion_model.go b/store/postgres/discussion_model.go similarity index 100% rename from internal/store/postgres/discussion_model.go rename to store/postgres/discussion_model.go diff --git a/internal/store/postgres/discussion_repository.go b/store/postgres/discussion_repository.go similarity index 100% rename from internal/store/postgres/discussion_repository.go rename to store/postgres/discussion_repository.go diff --git a/internal/store/postgres/discussion_repository_test.go b/store/postgres/discussion_repository_test.go similarity index 98% rename from internal/store/postgres/discussion_repository_test.go rename to store/postgres/discussion_repository_test.go index 3fc7ad7e..74023f8b 100644 --- a/internal/store/postgres/discussion_repository_test.go +++ b/store/postgres/discussion_repository_test.go @@ -5,13 +5,13 @@ import ( "fmt" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -39,7 +39,7 @@ func (r *DiscussionRepositoryTestSuite) SetupSuite() { State: namespace.DedicatedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) logger := log.NewLogrus() r.client, r.pool, r.resource, err = newTestClient(logger) diff --git a/internal/store/postgres/errors.go b/store/postgres/errors.go similarity index 100% rename from internal/store/postgres/errors.go rename to store/postgres/errors.go diff --git a/internal/store/postgres/lineage_model.go b/store/postgres/lineage_model.go similarity index 100% rename from internal/store/postgres/lineage_model.go rename to store/postgres/lineage_model.go diff --git a/internal/store/postgres/lineage_repository.go b/store/postgres/lineage_repository.go similarity index 100% rename from internal/store/postgres/lineage_repository.go rename to store/postgres/lineage_repository.go diff --git a/internal/store/postgres/lineage_repository_test.go b/store/postgres/lineage_repository_test.go similarity index 96% rename from internal/store/postgres/lineage_repository_test.go rename to store/postgres/lineage_repository_test.go index c1d4d469..d223ca23 100644 --- a/internal/store/postgres/lineage_repository_test.go +++ b/store/postgres/lineage_repository_test.go @@ -5,11 +5,11 @@ import ( "fmt" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "github.com/raystack/compass/core/asset" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -40,7 +40,7 @@ func (r *LineageRepositoryTestSuite) SetupSuite() { State: namespace.SharedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.repository, err = postgres.NewLineageRepository(r.client) if err != nil { diff --git a/internal/store/postgres/migrations/000001_create_tags_templates_fields_table.down.sql b/store/postgres/migrations/000001_create_tags_templates_fields_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000001_create_tags_templates_fields_table.down.sql rename to store/postgres/migrations/000001_create_tags_templates_fields_table.down.sql diff --git a/internal/store/postgres/migrations/000001_create_tags_templates_fields_table.up.sql b/store/postgres/migrations/000001_create_tags_templates_fields_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000001_create_tags_templates_fields_table.up.sql rename to store/postgres/migrations/000001_create_tags_templates_fields_table.up.sql diff --git a/internal/store/postgres/migrations/000002_create_users_table.down.sql b/store/postgres/migrations/000002_create_users_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000002_create_users_table.down.sql rename to store/postgres/migrations/000002_create_users_table.down.sql diff --git a/internal/store/postgres/migrations/000002_create_users_table.up.sql b/store/postgres/migrations/000002_create_users_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000002_create_users_table.up.sql rename to store/postgres/migrations/000002_create_users_table.up.sql diff --git a/internal/store/postgres/migrations/000003_create_assets_table.down.sql b/store/postgres/migrations/000003_create_assets_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000003_create_assets_table.down.sql rename to store/postgres/migrations/000003_create_assets_table.down.sql diff --git a/internal/store/postgres/migrations/000003_create_assets_table.up.sql b/store/postgres/migrations/000003_create_assets_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000003_create_assets_table.up.sql rename to store/postgres/migrations/000003_create_assets_table.up.sql diff --git a/internal/store/postgres/migrations/000004_create_stars_table.down.sql b/store/postgres/migrations/000004_create_stars_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000004_create_stars_table.down.sql rename to store/postgres/migrations/000004_create_stars_table.down.sql diff --git a/internal/store/postgres/migrations/000004_create_stars_table.up.sql b/store/postgres/migrations/000004_create_stars_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000004_create_stars_table.up.sql rename to store/postgres/migrations/000004_create_stars_table.up.sql diff --git a/internal/store/postgres/migrations/000005_create_assets_versions_table.down.sql b/store/postgres/migrations/000005_create_assets_versions_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000005_create_assets_versions_table.down.sql rename to store/postgres/migrations/000005_create_assets_versions_table.down.sql diff --git a/internal/store/postgres/migrations/000005_create_assets_versions_table.up.sql b/store/postgres/migrations/000005_create_assets_versions_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000005_create_assets_versions_table.up.sql rename to store/postgres/migrations/000005_create_assets_versions_table.up.sql diff --git a/internal/store/postgres/migrations/000006_create_lineage_graph_table.down.sql b/store/postgres/migrations/000006_create_lineage_graph_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000006_create_lineage_graph_table.down.sql rename to store/postgres/migrations/000006_create_lineage_graph_table.down.sql diff --git a/internal/store/postgres/migrations/000006_create_lineage_graph_table.up.sql b/store/postgres/migrations/000006_create_lineage_graph_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000006_create_lineage_graph_table.up.sql rename to store/postgres/migrations/000006_create_lineage_graph_table.up.sql diff --git a/internal/store/postgres/migrations/000007_create_discussions_table.down.sql b/store/postgres/migrations/000007_create_discussions_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000007_create_discussions_table.down.sql rename to store/postgres/migrations/000007_create_discussions_table.down.sql diff --git a/internal/store/postgres/migrations/000007_create_discussions_table.up.sql b/store/postgres/migrations/000007_create_discussions_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000007_create_discussions_table.up.sql rename to store/postgres/migrations/000007_create_discussions_table.up.sql diff --git a/internal/store/postgres/migrations/000008_create_comments_table.down.sql b/store/postgres/migrations/000008_create_comments_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000008_create_comments_table.down.sql rename to store/postgres/migrations/000008_create_comments_table.down.sql diff --git a/internal/store/postgres/migrations/000008_create_comments_table.up.sql b/store/postgres/migrations/000008_create_comments_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000008_create_comments_table.up.sql rename to store/postgres/migrations/000008_create_comments_table.up.sql diff --git a/internal/store/postgres/migrations/000009_update_tags_templates_assetid.down.sql b/store/postgres/migrations/000009_update_tags_templates_assetid.down.sql similarity index 100% rename from internal/store/postgres/migrations/000009_update_tags_templates_assetid.down.sql rename to store/postgres/migrations/000009_update_tags_templates_assetid.down.sql diff --git a/internal/store/postgres/migrations/000009_update_tags_templates_assetid.up.sql b/store/postgres/migrations/000009_update_tags_templates_assetid.up.sql similarity index 100% rename from internal/store/postgres/migrations/000009_update_tags_templates_assetid.up.sql rename to store/postgres/migrations/000009_update_tags_templates_assetid.up.sql diff --git a/internal/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.down.sql b/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.down.sql similarity index 100% rename from internal/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.down.sql rename to store/postgres/migrations/000010_drop_assets_idx_urn_type_service.down.sql diff --git a/internal/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.up.sql b/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.up.sql similarity index 100% rename from internal/store/postgres/migrations/000010_drop_assets_idx_urn_type_service.up.sql rename to store/postgres/migrations/000010_drop_assets_idx_urn_type_service.up.sql diff --git a/internal/store/postgres/migrations/000011_create_idx_assets_urn.down.sql b/store/postgres/migrations/000011_create_idx_assets_urn.down.sql similarity index 100% rename from internal/store/postgres/migrations/000011_create_idx_assets_urn.down.sql rename to store/postgres/migrations/000011_create_idx_assets_urn.down.sql diff --git a/internal/store/postgres/migrations/000011_create_idx_assets_urn.up.sql b/store/postgres/migrations/000011_create_idx_assets_urn.up.sql similarity index 100% rename from internal/store/postgres/migrations/000011_create_idx_assets_urn.up.sql rename to store/postgres/migrations/000011_create_idx_assets_urn.up.sql diff --git a/internal/store/postgres/migrations/000012_create_asset_probes_table.down.sql b/store/postgres/migrations/000012_create_asset_probes_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000012_create_asset_probes_table.down.sql rename to store/postgres/migrations/000012_create_asset_probes_table.down.sql diff --git a/internal/store/postgres/migrations/000012_create_asset_probes_table.up.sql b/store/postgres/migrations/000012_create_asset_probes_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000012_create_asset_probes_table.up.sql rename to store/postgres/migrations/000012_create_asset_probes_table.up.sql diff --git a/internal/store/postgres/migrations/000013_alter_assets_table.down.sql b/store/postgres/migrations/000013_alter_assets_table.down.sql similarity index 100% rename from internal/store/postgres/migrations/000013_alter_assets_table.down.sql rename to store/postgres/migrations/000013_alter_assets_table.down.sql diff --git a/internal/store/postgres/migrations/000013_alter_assets_table.up.sql b/store/postgres/migrations/000013_alter_assets_table.up.sql similarity index 100% rename from internal/store/postgres/migrations/000013_alter_assets_table.up.sql rename to store/postgres/migrations/000013_alter_assets_table.up.sql diff --git a/internal/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.down.sql b/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.down.sql similarity index 100% rename from internal/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.down.sql rename to store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.down.sql diff --git a/internal/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.up.sql b/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.up.sql similarity index 100% rename from internal/store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.up.sql rename to store/postgres/migrations/000014_create_namespace_table_and_add_namespace_in_tables.up.sql diff --git a/internal/store/postgres/migrations/000015_enable_row_level_security_all_tables.down.sql b/store/postgres/migrations/000015_enable_row_level_security_all_tables.down.sql similarity index 100% rename from internal/store/postgres/migrations/000015_enable_row_level_security_all_tables.down.sql rename to store/postgres/migrations/000015_enable_row_level_security_all_tables.down.sql diff --git a/internal/store/postgres/migrations/000015_enable_row_level_security_all_tables.up.sql b/store/postgres/migrations/000015_enable_row_level_security_all_tables.up.sql similarity index 100% rename from internal/store/postgres/migrations/000015_enable_row_level_security_all_tables.up.sql rename to store/postgres/migrations/000015_enable_row_level_security_all_tables.up.sql diff --git a/internal/store/postgres/migrations/000016_update_assets_versions.down.sql b/store/postgres/migrations/000016_update_assets_versions.down.sql similarity index 100% rename from internal/store/postgres/migrations/000016_update_assets_versions.down.sql rename to store/postgres/migrations/000016_update_assets_versions.down.sql diff --git a/internal/store/postgres/migrations/000016_update_assets_versions.up.sql b/store/postgres/migrations/000016_update_assets_versions.up.sql similarity index 100% rename from internal/store/postgres/migrations/000016_update_assets_versions.up.sql rename to store/postgres/migrations/000016_update_assets_versions.up.sql diff --git a/internal/store/postgres/migrations/000017_add_soft_deletion.down.sql b/store/postgres/migrations/000017_add_soft_deletion.down.sql similarity index 100% rename from internal/store/postgres/migrations/000017_add_soft_deletion.down.sql rename to store/postgres/migrations/000017_add_soft_deletion.down.sql diff --git a/internal/store/postgres/migrations/000017_add_soft_deletion.up.sql b/store/postgres/migrations/000017_add_soft_deletion.up.sql similarity index 100% rename from internal/store/postgres/migrations/000017_add_soft_deletion.up.sql rename to store/postgres/migrations/000017_add_soft_deletion.up.sql diff --git a/internal/store/postgres/migrations/000018_index_asset_probes.down.sql b/store/postgres/migrations/000018_index_asset_probes.down.sql similarity index 100% rename from internal/store/postgres/migrations/000018_index_asset_probes.down.sql rename to store/postgres/migrations/000018_index_asset_probes.down.sql diff --git a/internal/store/postgres/migrations/000018_index_asset_probes.up.sql b/store/postgres/migrations/000018_index_asset_probes.up.sql similarity index 100% rename from internal/store/postgres/migrations/000018_index_asset_probes.up.sql rename to store/postgres/migrations/000018_index_asset_probes.up.sql diff --git a/internal/store/postgres/namespace_model.go b/store/postgres/namespace_model.go similarity index 100% rename from internal/store/postgres/namespace_model.go rename to store/postgres/namespace_model.go diff --git a/internal/store/postgres/namespace_repository.go b/store/postgres/namespace_repository.go similarity index 100% rename from internal/store/postgres/namespace_repository.go rename to store/postgres/namespace_repository.go diff --git a/internal/store/postgres/namespace_repository_test.go b/store/postgres/namespace_repository_test.go similarity index 98% rename from internal/store/postgres/namespace_repository_test.go rename to store/postgres/namespace_repository_test.go index 179b7488..6a44e4cc 100644 --- a/internal/store/postgres/namespace_repository_test.go +++ b/store/postgres/namespace_repository_test.go @@ -4,7 +4,7 @@ import ( "context" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" diff --git a/internal/store/postgres/postgres.go b/store/postgres/postgres.go similarity index 98% rename from internal/store/postgres/postgres.go rename to store/postgres/postgres.go index 35862a15..17796300 100644 --- a/internal/store/postgres/postgres.go +++ b/store/postgres/postgres.go @@ -14,7 +14,7 @@ import ( "github.com/jackc/pgx/v5/pgconn" _ "github.com/jackc/pgx/v5/stdlib" "github.com/jmoiron/sqlx" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" // Register database postgres _ "github.com/golang-migrate/migrate/v4/database/postgres" @@ -262,5 +262,5 @@ func isValidUUID(u string) bool { } func namespaceFromContext(ctx context.Context) uuid.UUID { - return interceptor.FetchNamespaceFromContext(ctx).ID + return middleware.FetchNamespaceFromContext(ctx).ID } diff --git a/internal/store/postgres/postgres_test.go b/store/postgres/postgres_test.go similarity index 99% rename from internal/store/postgres/postgres_test.go rename to store/postgres/postgres_test.go index cde5d1bc..56f732fd 100644 --- a/internal/store/postgres/postgres_test.go +++ b/store/postgres/postgres_test.go @@ -11,7 +11,7 @@ import ( _ "github.com/jackc/pgx/v5/stdlib" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/ory/dockertest/v3/docker" diff --git a/internal/store/postgres/star_repository.go b/store/postgres/star_repository.go similarity index 100% rename from internal/store/postgres/star_repository.go rename to store/postgres/star_repository.go diff --git a/internal/store/postgres/star_repository_test.go b/store/postgres/star_repository_test.go similarity index 98% rename from internal/store/postgres/star_repository_test.go rename to store/postgres/star_repository_test.go index a5cc9375..7d15b1ff 100644 --- a/internal/store/postgres/star_repository_test.go +++ b/store/postgres/star_repository_test.go @@ -4,12 +4,12 @@ import ( "context" "fmt" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "github.com/google/uuid" "github.com/raystack/compass/core/star" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -42,7 +42,7 @@ func (r *StarRepositoryTestSuite) SetupSuite() { r.T().Fatal(err) } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.repository, err = postgres.NewStarRepository(r.client) if err != nil { r.T().Fatal(err) diff --git a/internal/store/postgres/tag_model.go b/store/postgres/tag_model.go similarity index 100% rename from internal/store/postgres/tag_model.go rename to store/postgres/tag_model.go diff --git a/internal/store/postgres/tag_model_test.go b/store/postgres/tag_model_test.go similarity index 100% rename from internal/store/postgres/tag_model_test.go rename to store/postgres/tag_model_test.go diff --git a/internal/store/postgres/tag_repository.go b/store/postgres/tag_repository.go similarity index 100% rename from internal/store/postgres/tag_repository.go rename to store/postgres/tag_repository.go diff --git a/internal/store/postgres/tag_repository_test.go b/store/postgres/tag_repository_test.go similarity index 98% rename from internal/store/postgres/tag_repository_test.go rename to store/postgres/tag_repository_test.go index d76d2bec..4fbc9173 100644 --- a/internal/store/postgres/tag_repository_test.go +++ b/store/postgres/tag_repository_test.go @@ -4,13 +4,13 @@ import ( "context" "fmt" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "sort" "testing" "github.com/google/uuid" "github.com/raystack/compass/core/tag" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -43,7 +43,7 @@ func (r *TagRepositoryTestSuite) SetupSuite() { State: namespace.SharedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.repository, err = postgres.NewTagRepository(r.client) if err != nil { r.T().Fatal(err) diff --git a/internal/store/postgres/tag_template_repository.go b/store/postgres/tag_template_repository.go similarity index 100% rename from internal/store/postgres/tag_template_repository.go rename to store/postgres/tag_template_repository.go diff --git a/internal/store/postgres/tag_template_repository_test.go b/store/postgres/tag_template_repository_test.go similarity index 98% rename from internal/store/postgres/tag_template_repository_test.go rename to store/postgres/tag_template_repository_test.go index 0ac97d13..863a556b 100644 --- a/internal/store/postgres/tag_template_repository_test.go +++ b/store/postgres/tag_template_repository_test.go @@ -5,12 +5,12 @@ import ( "encoding/json" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "time" "github.com/raystack/compass/core/tag" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -40,7 +40,7 @@ func (r *TagTemplateRepositoryTestSuite) SetupSuite() { State: namespace.SharedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.repository, err = postgres.NewTagTemplateRepository(r.client) if err != nil { r.T().Fatal(err) diff --git a/internal/store/postgres/testdata/mock-asset-data.json b/store/postgres/testdata/mock-asset-data.json similarity index 100% rename from internal/store/postgres/testdata/mock-asset-data.json rename to store/postgres/testdata/mock-asset-data.json diff --git a/internal/store/postgres/testdata/mock-probes-data.json b/store/postgres/testdata/mock-probes-data.json similarity index 100% rename from internal/store/postgres/testdata/mock-probes-data.json rename to store/postgres/testdata/mock-probes-data.json diff --git a/internal/store/postgres/user_model.go b/store/postgres/user_model.go similarity index 100% rename from internal/store/postgres/user_model.go rename to store/postgres/user_model.go diff --git a/internal/store/postgres/user_model_test.go b/store/postgres/user_model_test.go similarity index 100% rename from internal/store/postgres/user_model_test.go rename to store/postgres/user_model_test.go diff --git a/internal/store/postgres/user_repository.go b/store/postgres/user_repository.go similarity index 100% rename from internal/store/postgres/user_repository.go rename to store/postgres/user_repository.go diff --git a/internal/store/postgres/user_repository_test.go b/store/postgres/user_repository_test.go similarity index 97% rename from internal/store/postgres/user_repository_test.go rename to store/postgres/user_repository_test.go index 076a2a14..027afc37 100644 --- a/internal/store/postgres/user_repository_test.go +++ b/store/postgres/user_repository_test.go @@ -4,13 +4,13 @@ import ( "context" "fmt" "github.com/raystack/compass/core/namespace" - "github.com/raystack/compass/pkg/server/interceptor" + "github.com/raystack/compass/internal/middleware" "testing" "github.com/google/uuid" "github.com/jmoiron/sqlx" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/internal/store/postgres" + "github.com/raystack/compass/store/postgres" log "github.com/raystack/salt/observability/logger" "github.com/ory/dockertest/v3" "github.com/stretchr/testify/suite" @@ -40,7 +40,7 @@ func (r *UserRepositoryTestSuite) SetupSuite() { State: namespace.SharedState, Metadata: nil, } - r.ctx = interceptor.BuildContextWithNamespace(context.Background(), r.ns) + r.ctx = middleware.BuildContextWithNamespace(context.Background(), r.ns) r.repository, err = postgres.NewUserRepository(r.client) if err != nil { r.T().Fatal(err) From 3cd0e7991f9644a1e9a1d4513a4c6d3caf66b84b Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Sat, 28 Mar 2026 00:25:22 -0500 Subject: [PATCH 2/5] refactor: flatten handler package, remove v1beta1 subdirectory Move handler files from handler/v1beta1/ to handler/ and rename package from handlersv1beta1 to handler. --- handler/{v1beta1 => }/asset.go | 2 +- handler/{v1beta1 => }/asset_test.go | 4 ++-- handler/{v1beta1 => }/comment.go | 2 +- handler/{v1beta1 => }/comment_test.go | 4 ++-- handler/{v1beta1 => }/discussion.go | 2 +- handler/{v1beta1 => }/discussion_test.go | 4 ++-- handler/{v1beta1 => }/lineage.go | 2 +- handler/{v1beta1 => }/lineage_test.go | 4 ++-- handler/{v1beta1 => }/mocks/asset_service.go | 0 .../{v1beta1 => }/mocks/discussion_service.go | 0 .../{v1beta1 => }/mocks/namespace_service.go | 0 handler/{v1beta1 => }/mocks/star_service.go | 0 handler/{v1beta1 => }/mocks/tag_service.go | 0 .../mocks/tag_template_service.go | 0 handler/{v1beta1 => }/mocks/user_service.go | 0 handler/{v1beta1 => }/namespace.go | 2 +- handler/{v1beta1 => }/namespace_test.go | 4 ++-- handler/{v1beta1 => }/option.go | 2 +- handler/{v1beta1 => }/search.go | 2 +- handler/{v1beta1 => }/search_test.go | 4 ++-- handler/{v1beta1 => }/server.go | 2 +- handler/{v1beta1 => }/star.go | 2 +- handler/{v1beta1 => }/tag.go | 2 +- handler/{v1beta1 => }/tag_template.go | 2 +- handler/{v1beta1 => }/tag_template_test.go | 4 ++-- handler/{v1beta1 => }/tag_test.go | 4 ++-- handler/{v1beta1 => }/type.go | 2 +- handler/{v1beta1 => }/type_test.go | 4 ++-- handler/{v1beta1 => }/user.go | 2 +- handler/{v1beta1 => }/user_test.go | 4 ++-- internal/server/server.go | 18 +++++++++--------- 31 files changed, 42 insertions(+), 42 deletions(-) rename handler/{v1beta1 => }/asset.go (99%) rename handler/{v1beta1 => }/asset_test.go (99%) rename handler/{v1beta1 => }/comment.go (99%) rename handler/{v1beta1 => }/comment_test.go (99%) rename handler/{v1beta1 => }/discussion.go (99%) rename handler/{v1beta1 => }/discussion_test.go (99%) rename handler/{v1beta1 => }/lineage.go (99%) rename handler/{v1beta1 => }/lineage_test.go (97%) rename handler/{v1beta1 => }/mocks/asset_service.go (100%) rename handler/{v1beta1 => }/mocks/discussion_service.go (100%) rename handler/{v1beta1 => }/mocks/namespace_service.go (100%) rename handler/{v1beta1 => }/mocks/star_service.go (100%) rename handler/{v1beta1 => }/mocks/tag_service.go (100%) rename handler/{v1beta1 => }/mocks/tag_template_service.go (100%) rename handler/{v1beta1 => }/mocks/user_service.go (100%) rename handler/{v1beta1 => }/namespace.go (99%) rename handler/{v1beta1 => }/namespace_test.go (99%) rename handler/{v1beta1 => }/option.go (55%) rename handler/{v1beta1 => }/search.go (99%) rename handler/{v1beta1 => }/search_test.go (99%) rename handler/{v1beta1 => }/server.go (98%) rename handler/{v1beta1 => }/star.go (96%) rename handler/{v1beta1 => }/tag.go (99%) rename handler/{v1beta1 => }/tag_template.go (99%) rename handler/{v1beta1 => }/tag_template_test.go (99%) rename handler/{v1beta1 => }/tag_test.go (99%) rename handler/{v1beta1 => }/type.go (98%) rename handler/{v1beta1 => }/type_test.go (98%) rename handler/{v1beta1 => }/user.go (99%) rename handler/{v1beta1 => }/user_test.go (99%) diff --git a/handler/v1beta1/asset.go b/handler/asset.go similarity index 99% rename from handler/v1beta1/asset.go rename to handler/asset.go index 69156291..8ce36e6e 100644 --- a/handler/v1beta1/asset.go +++ b/handler/asset.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=AssetService -r --case underscore --with-expecter --structname AssetService --filename asset_service.go --output=./mocks import ( diff --git a/handler/v1beta1/asset_test.go b/handler/asset_test.go similarity index 99% rename from handler/v1beta1/asset_test.go rename to handler/asset_test.go index 3511149f..f4a7629b 100644 --- a/handler/v1beta1/asset_test.go +++ b/handler/asset_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/comment.go b/handler/comment.go similarity index 99% rename from handler/v1beta1/comment.go rename to handler/comment.go index 003008a7..b782dadc 100644 --- a/handler/v1beta1/comment.go +++ b/handler/comment.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" diff --git a/handler/v1beta1/comment_test.go b/handler/comment_test.go similarity index 99% rename from handler/v1beta1/comment_test.go rename to handler/comment_test.go index 1e5950ce..201f61b6 100644 --- a/handler/v1beta1/comment_test.go +++ b/handler/comment_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/discussion.go b/handler/discussion.go similarity index 99% rename from handler/v1beta1/discussion.go rename to handler/discussion.go index 6f9adf59..a0580d38 100644 --- a/handler/v1beta1/discussion.go +++ b/handler/discussion.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=DiscussionService -r --case underscore --with-expecter --structname DiscussionService --filename discussion_service.go --output=./mocks import ( diff --git a/handler/v1beta1/discussion_test.go b/handler/discussion_test.go similarity index 99% rename from handler/v1beta1/discussion_test.go rename to handler/discussion_test.go index 662a2769..f88f99c6 100644 --- a/handler/v1beta1/discussion_test.go +++ b/handler/discussion_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/lineage.go b/handler/lineage.go similarity index 99% rename from handler/v1beta1/lineage.go rename to handler/lineage.go index 0d929149..632ecce8 100644 --- a/handler/v1beta1/lineage.go +++ b/handler/lineage.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" diff --git a/handler/v1beta1/lineage_test.go b/handler/lineage_test.go similarity index 97% rename from handler/v1beta1/lineage_test.go rename to handler/lineage_test.go index 973548de..2bb049e7 100644 --- a/handler/v1beta1/lineage_test.go +++ b/handler/lineage_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -11,7 +11,7 @@ import ( "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/mocks/asset_service.go b/handler/mocks/asset_service.go similarity index 100% rename from handler/v1beta1/mocks/asset_service.go rename to handler/mocks/asset_service.go diff --git a/handler/v1beta1/mocks/discussion_service.go b/handler/mocks/discussion_service.go similarity index 100% rename from handler/v1beta1/mocks/discussion_service.go rename to handler/mocks/discussion_service.go diff --git a/handler/v1beta1/mocks/namespace_service.go b/handler/mocks/namespace_service.go similarity index 100% rename from handler/v1beta1/mocks/namespace_service.go rename to handler/mocks/namespace_service.go diff --git a/handler/v1beta1/mocks/star_service.go b/handler/mocks/star_service.go similarity index 100% rename from handler/v1beta1/mocks/star_service.go rename to handler/mocks/star_service.go diff --git a/handler/v1beta1/mocks/tag_service.go b/handler/mocks/tag_service.go similarity index 100% rename from handler/v1beta1/mocks/tag_service.go rename to handler/mocks/tag_service.go diff --git a/handler/v1beta1/mocks/tag_template_service.go b/handler/mocks/tag_template_service.go similarity index 100% rename from handler/v1beta1/mocks/tag_template_service.go rename to handler/mocks/tag_template_service.go diff --git a/handler/v1beta1/mocks/user_service.go b/handler/mocks/user_service.go similarity index 100% rename from handler/v1beta1/mocks/user_service.go rename to handler/mocks/user_service.go diff --git a/handler/v1beta1/namespace.go b/handler/namespace.go similarity index 99% rename from handler/v1beta1/namespace.go rename to handler/namespace.go index 2c592dd3..f6a9344d 100644 --- a/handler/v1beta1/namespace.go +++ b/handler/namespace.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=NamespaceService -r --case underscore --with-expecter --structname NamespaceService --filename namespace_service.go --output=./mocks diff --git a/handler/v1beta1/namespace_test.go b/handler/namespace_test.go similarity index 99% rename from handler/v1beta1/namespace_test.go rename to handler/namespace_test.go index 92f9df77..7d09cb84 100644 --- a/handler/v1beta1/namespace_test.go +++ b/handler/namespace_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -9,7 +9,7 @@ import ( "github.com/google/uuid" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" diff --git a/handler/v1beta1/option.go b/handler/option.go similarity index 55% rename from handler/v1beta1/option.go rename to handler/option.go index 0e7a19c1..fcfee97a 100644 --- a/handler/v1beta1/option.go +++ b/handler/option.go @@ -1,3 +1,3 @@ -package handlersv1beta1 +package handler type Option func(*APIServer) diff --git a/handler/v1beta1/search.go b/handler/search.go similarity index 99% rename from handler/v1beta1/search.go rename to handler/search.go index b1db4845..4c12ef8c 100644 --- a/handler/v1beta1/search.go +++ b/handler/search.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" diff --git a/handler/v1beta1/search_test.go b/handler/search_test.go similarity index 99% rename from handler/v1beta1/search_test.go rename to handler/search_test.go index ab60498d..5cc5285d 100644 --- a/handler/v1beta1/search_test.go +++ b/handler/search_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -12,7 +12,7 @@ import ( "github.com/google/uuid" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" diff --git a/handler/v1beta1/server.go b/handler/server.go similarity index 98% rename from handler/v1beta1/server.go rename to handler/server.go index 840ac89c..62bde4f4 100644 --- a/handler/v1beta1/server.go +++ b/handler/server.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" diff --git a/handler/v1beta1/star.go b/handler/star.go similarity index 96% rename from handler/v1beta1/star.go rename to handler/star.go index 20c212a3..273d8ce1 100644 --- a/handler/v1beta1/star.go +++ b/handler/star.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=StarService -r --case underscore --with-expecter --structname StarService --filename star_service.go --output=./mocks import ( diff --git a/handler/v1beta1/tag.go b/handler/tag.go similarity index 99% rename from handler/v1beta1/tag.go rename to handler/tag.go index cf1a3d98..e62640b0 100644 --- a/handler/v1beta1/tag.go +++ b/handler/tag.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=TagService -r --case underscore --with-expecter --structname TagService --filename tag_service.go --output=./mocks import ( diff --git a/handler/v1beta1/tag_template.go b/handler/tag_template.go similarity index 99% rename from handler/v1beta1/tag_template.go rename to handler/tag_template.go index 1066e0e7..c5c1a114 100644 --- a/handler/v1beta1/tag_template.go +++ b/handler/tag_template.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=TagTemplateService -r --case underscore --with-expecter --structname TagTemplateService --filename tag_template_service.go --output=./mocks import ( diff --git a/handler/v1beta1/tag_template_test.go b/handler/tag_template_test.go similarity index 99% rename from handler/v1beta1/tag_template_test.go rename to handler/tag_template_test.go index 133eba91..586b945b 100644 --- a/handler/v1beta1/tag_template_test.go +++ b/handler/tag_template_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/tag_test.go b/handler/tag_test.go similarity index 99% rename from handler/v1beta1/tag_test.go rename to handler/tag_test.go index ec2121e3..63d226c4 100644 --- a/handler/v1beta1/tag_test.go +++ b/handler/tag_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/type.go b/handler/type.go similarity index 98% rename from handler/v1beta1/type.go rename to handler/type.go index 53ac5578..1f8d9a15 100644 --- a/handler/v1beta1/type.go +++ b/handler/type.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" diff --git a/handler/v1beta1/type_test.go b/handler/type_test.go similarity index 98% rename from handler/v1beta1/type_test.go rename to handler/type_test.go index 0713f0c1..f55edeb2 100644 --- a/handler/v1beta1/type_test.go +++ b/handler/type_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -12,7 +12,7 @@ import ( "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/v1beta1/user.go b/handler/user.go similarity index 99% rename from handler/v1beta1/user.go rename to handler/user.go index a0a3a6cd..64ee5870 100644 --- a/handler/v1beta1/user.go +++ b/handler/user.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler //go:generate mockery --name=UserService -r --case underscore --with-expecter --structname UserService --filename user_service.go --output=./mocks import ( diff --git a/handler/v1beta1/user_test.go b/handler/user_test.go similarity index 99% rename from handler/v1beta1/user_test.go rename to handler/user_test.go index 915cbe7c..a3811ef8 100644 --- a/handler/v1beta1/user_test.go +++ b/handler/user_test.go @@ -1,4 +1,4 @@ -package handlersv1beta1 +package handler import ( "context" @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" - "github.com/raystack/compass/handler/v1beta1/mocks" + "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/internal/server/server.go b/internal/server/server.go index e414e768..37967192 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -14,7 +14,7 @@ import ( "connectrpc.com/validate" "github.com/raystack/compass/internal/config" "github.com/rs/cors" - handlersv1beta1 "github.com/raystack/compass/handler/v1beta1" + "github.com/raystack/compass/handler" "github.com/raystack/compass/internal/middleware" "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1/compassv1beta1connect" log "github.com/raystack/salt/observability/logger" @@ -26,15 +26,15 @@ func Serve( ctx context.Context, cfg config.ServerConfig, logger *log.Logrus, - namespaceService handlersv1beta1.NamespaceService, - assetService handlersv1beta1.AssetService, - starService handlersv1beta1.StarService, - discussionService handlersv1beta1.DiscussionService, - tagService handlersv1beta1.TagService, - tagTemplateService handlersv1beta1.TagTemplateService, - userService handlersv1beta1.UserService, + namespaceService handler.NamespaceService, + assetService handler.AssetService, + starService handler.StarService, + discussionService handler.DiscussionService, + tagService handler.TagService, + tagTemplateService handler.TagTemplateService, + userService handler.UserService, ) error { - v1beta1Handler := handlersv1beta1.NewAPIServer( + v1beta1Handler := handler.NewAPIServer( logger, namespaceService, assetService, From 013b9d8de18a8145e4854ab1da6f8edaf02e2af7 Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Sat, 28 Mar 2026 00:27:19 -0500 Subject: [PATCH 3/5] refactor: move proto/gen to top-level gen directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the proto/ wrapper directory — generated code now lives directly at gen/ (gen/raystack/compass/v1beta1/, gen/buf/validate/). --- buf.gen.yaml | 8 ++++---- cli/assets.go | 2 +- cli/discussions.go | 2 +- cli/lineage.go | 2 +- cli/namespace.go | 2 +- cli/search.go | 2 +- {proto/gen => gen}/buf/validate/validate.pb.go | 0 .../v1beta1/compassv1beta1connect/service.connect.go | 2 +- {proto/gen => gen}/raystack/compass/v1beta1/service.pb.go | 4 ++-- handler/asset.go | 2 +- handler/asset_test.go | 2 +- handler/comment.go | 2 +- handler/comment_test.go | 2 +- handler/discussion.go | 2 +- handler/discussion_test.go | 2 +- handler/lineage.go | 2 +- handler/lineage_test.go | 2 +- handler/namespace.go | 2 +- handler/namespace_test.go | 2 +- handler/search.go | 2 +- handler/search_test.go | 2 +- handler/tag.go | 2 +- handler/tag_template.go | 2 +- handler/tag_template_test.go | 2 +- handler/tag_test.go | 2 +- handler/type.go | 2 +- handler/type_test.go | 2 +- handler/user.go | 2 +- handler/user_test.go | 2 +- internal/client/client.go | 2 +- internal/server/server.go | 2 +- 31 files changed, 34 insertions(+), 34 deletions(-) rename {proto/gen => gen}/buf/validate/validate.pb.go (100%) rename {proto/gen => gen}/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go (99%) rename {proto/gen => gen}/raystack/compass/v1beta1/service.pb.go (99%) diff --git a/buf.gen.yaml b/buf.gen.yaml index 44fe00be..2e96c2d7 100644 --- a/buf.gen.yaml +++ b/buf.gen.yaml @@ -1,7 +1,7 @@ version: v2 # Proto source lives in the proton repo (../proton). # After running `buf generate`, remove unwanted generated files: -# find proto/gen/raystack -mindepth 1 -maxdepth 1 ! -name compass -exec rm -rf {} + +# find gen/raystack -mindepth 1 -maxdepth 1 ! -name compass -exec rm -rf {} + inputs: - directory: ../proton - module: buf.build/bufbuild/protovalidate @@ -10,13 +10,13 @@ managed: override: - file_option: go_package path: raystack/compass/v1beta1/service.proto - value: github.com/raystack/compass/proto/gen/raystack/compass/v1beta1;compassv1beta1 + value: github.com/raystack/compass/gen/raystack/compass/v1beta1;compassv1beta1 plugins: - remote: buf.build/protocolbuffers/go:v1.36.11 - out: proto/gen + out: gen opt: - paths=source_relative - remote: buf.build/connectrpc/go:v1.18.1 - out: proto/gen + out: gen opt: - paths=source_relative diff --git a/cli/assets.go b/cli/assets.go index b81cd463..5f5ce635 100644 --- a/cli/assets.go +++ b/cli/assets.go @@ -7,7 +7,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/discussions.go b/cli/discussions.go index 0241b93f..f8943011 100644 --- a/cli/discussions.go +++ b/cli/discussions.go @@ -7,7 +7,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/lineage.go b/cli/lineage.go index bf7356ea..7f148682 100644 --- a/cli/lineage.go +++ b/cli/lineage.go @@ -6,7 +6,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/namespace.go b/cli/namespace.go index 3d6393be..d389d919 100644 --- a/cli/namespace.go +++ b/cli/namespace.go @@ -9,7 +9,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/cli/search.go b/cli/search.go index e91baab7..f2f52c57 100644 --- a/cli/search.go +++ b/cli/search.go @@ -6,7 +6,7 @@ import ( "github.com/MakeNowJust/heredoc" "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/internal/client" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "github.com/raystack/salt/cli/printer" "github.com/spf13/cobra" ) diff --git a/proto/gen/buf/validate/validate.pb.go b/gen/buf/validate/validate.pb.go similarity index 100% rename from proto/gen/buf/validate/validate.pb.go rename to gen/buf/validate/validate.pb.go diff --git a/proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go b/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go similarity index 99% rename from proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go rename to gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go index 4d604b3a..2ac86626 100644 --- a/proto/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go +++ b/gen/raystack/compass/v1beta1/compassv1beta1connect/service.connect.go @@ -8,7 +8,7 @@ import ( connect "connectrpc.com/connect" context "context" errors "errors" - v1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + v1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" http "net/http" strings "strings" ) diff --git a/proto/gen/raystack/compass/v1beta1/service.pb.go b/gen/raystack/compass/v1beta1/service.pb.go similarity index 99% rename from proto/gen/raystack/compass/v1beta1/service.pb.go rename to gen/raystack/compass/v1beta1/service.pb.go index 0738531c..c7b20a30 100644 --- a/proto/gen/raystack/compass/v1beta1/service.pb.go +++ b/gen/raystack/compass/v1beta1/service.pb.go @@ -6933,8 +6933,8 @@ const file_raystack_compass_v1beta1_service_proto_rawDesc = "" + "\x0fCreateNamespace\x120.raystack.compass.v1beta1.CreateNamespaceRequest\x1a1.raystack.compass.v1beta1.CreateNamespaceResponse\"\x00\x12o\n" + "\fGetNamespace\x12-.raystack.compass.v1beta1.GetNamespaceRequest\x1a..raystack.compass.v1beta1.GetNamespaceResponse\"\x00\x12x\n" + "\x0fUpdateNamespace\x120.raystack.compass.v1beta1.UpdateNamespaceRequest\x1a1.raystack.compass.v1beta1.UpdateNamespaceResponse\"\x00\x12u\n" + - "\x0eListNamespaces\x12/.raystack.compass.v1beta1.ListNamespacesRequest\x1a0.raystack.compass.v1beta1.ListNamespacesResponse\"\x00B\xfd\x01\n" + - "\x1ccom.raystack.compass.v1beta1B\fServiceProtoP\x01ZMgithub.com/raystack/compass/proto/gen/raystack/compass/v1beta1;compassv1beta1\xa2\x02\x03RCX\xaa\x02\x18Raystack.Compass.V1beta1\xca\x02\x18Raystack\\Compass\\V1beta1\xe2\x02$Raystack\\Compass\\V1beta1\\GPBMetadata\xea\x02\x1aRaystack::Compass::V1beta1b\x06proto3" + "\x0eListNamespaces\x12/.raystack.compass.v1beta1.ListNamespacesRequest\x1a0.raystack.compass.v1beta1.ListNamespacesResponse\"\x00B\xf7\x01\n" + + "\x1ccom.raystack.compass.v1beta1B\fServiceProtoP\x01ZGgithub.com/raystack/compass/gen/raystack/compass/v1beta1;compassv1beta1\xa2\x02\x03RCX\xaa\x02\x18Raystack.Compass.V1beta1\xca\x02\x18Raystack\\Compass\\V1beta1\xe2\x02$Raystack\\Compass\\V1beta1\\GPBMetadata\xea\x02\x1aRaystack::Compass::V1beta1b\x06proto3" var ( file_raystack_compass_v1beta1_service_proto_rawDescOnce sync.Once diff --git a/handler/asset.go b/handler/asset.go index 8ce36e6e..8f4b1c14 100644 --- a/handler/asset.go +++ b/handler/asset.go @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/star" "github.com/raystack/compass/core/user" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/asset_test.go b/handler/asset_test.go index f4a7629b..fea33e78 100644 --- a/handler/asset_test.go +++ b/handler/asset_test.go @@ -18,7 +18,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" "github.com/stretchr/testify/require" diff --git a/handler/comment.go b/handler/comment.go index b782dadc..54f2bec6 100644 --- a/handler/comment.go +++ b/handler/comment.go @@ -10,7 +10,7 @@ import ( "github.com/raystack/compass/core/discussion" "github.com/raystack/compass/core/user" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/comment_test.go b/handler/comment_test.go index 201f61b6..b69e1078 100644 --- a/handler/comment_test.go +++ b/handler/comment_test.go @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" diff --git a/handler/discussion.go b/handler/discussion.go index a0580d38..6e641297 100644 --- a/handler/discussion.go +++ b/handler/discussion.go @@ -12,7 +12,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/discussion_test.go b/handler/discussion_test.go index f88f99c6..7ba3d8d4 100644 --- a/handler/discussion_test.go +++ b/handler/discussion_test.go @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/handler/lineage.go b/handler/lineage.go index 632ecce8..f875aaf4 100644 --- a/handler/lineage.go +++ b/handler/lineage.go @@ -8,7 +8,7 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/handler/lineage_test.go b/handler/lineage_test.go index 2bb049e7..9fdd18e4 100644 --- a/handler/lineage_test.go +++ b/handler/lineage_test.go @@ -13,7 +13,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/namespace.go b/handler/namespace.go index f6a9344d..b5de4960 100644 --- a/handler/namespace.go +++ b/handler/namespace.go @@ -9,7 +9,7 @@ import ( "connectrpc.com/connect" "github.com/google/uuid" "github.com/raystack/compass/core/namespace" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" ) diff --git a/handler/namespace_test.go b/handler/namespace_test.go index 7d09cb84..b024de18 100644 --- a/handler/namespace_test.go +++ b/handler/namespace_test.go @@ -10,7 +10,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/mock" diff --git a/handler/search.go b/handler/search.go index 4c12ef8c..c0e5475e 100644 --- a/handler/search.go +++ b/handler/search.go @@ -8,7 +8,7 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" ) func (server *APIServer) SearchAssets(ctx context.Context, req *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { diff --git a/handler/search_test.go b/handler/search_test.go index 5cc5285d..b4d67d5e 100644 --- a/handler/search_test.go +++ b/handler/search_test.go @@ -13,7 +13,7 @@ import ( "github.com/raystack/compass/core/asset" "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "github.com/stretchr/testify/mock" diff --git a/handler/tag.go b/handler/tag.go index e62640b0..3b5d968c 100644 --- a/handler/tag.go +++ b/handler/tag.go @@ -11,7 +11,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/structpb" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/tag_template.go b/handler/tag_template.go index c5c1a114..7f39ac9b 100644 --- a/handler/tag_template.go +++ b/handler/tag_template.go @@ -11,7 +11,7 @@ import ( "github.com/raystack/compass/core/namespace" "github.com/raystack/compass/core/tag" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/tag_template_test.go b/handler/tag_template_test.go index 586b945b..bab572b1 100644 --- a/handler/tag_template_test.go +++ b/handler/tag_template_test.go @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/tag_test.go b/handler/tag_test.go index 63d226c4..9519c631 100644 --- a/handler/tag_test.go +++ b/handler/tag_test.go @@ -16,7 +16,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/type.go b/handler/type.go index 1f8d9a15..1af606ce 100644 --- a/handler/type.go +++ b/handler/type.go @@ -6,7 +6,7 @@ import ( "connectrpc.com/connect" "github.com/raystack/compass/core/asset" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" ) func (server *APIServer) GetAllTypes(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { diff --git a/handler/type_test.go b/handler/type_test.go index f55edeb2..98f23471 100644 --- a/handler/type_test.go +++ b/handler/type_test.go @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" diff --git a/handler/user.go b/handler/user.go index 64ee5870..f4fd4661 100644 --- a/handler/user.go +++ b/handler/user.go @@ -14,7 +14,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/core/validator" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/handler/user_test.go b/handler/user_test.go index a3811ef8..c98d2dcb 100644 --- a/handler/user_test.go +++ b/handler/user_test.go @@ -18,7 +18,7 @@ import ( "github.com/raystack/compass/core/user" "github.com/raystack/compass/handler/mocks" "github.com/raystack/compass/internal/middleware" - compassv1beta1 "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1" + compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" log "github.com/raystack/salt/observability/logger" "google.golang.org/protobuf/testing/protocmp" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/internal/client/client.go b/internal/client/client.go index 5bc0397b..2b01da6d 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -6,7 +6,7 @@ import ( "time" "connectrpc.com/connect" - "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1/compassv1beta1connect" + "github.com/raystack/compass/gen/raystack/compass/v1beta1/compassv1beta1connect" ) // NamespaceHeaderKey specify what namespace request is targeted for diff --git a/internal/server/server.go b/internal/server/server.go index 37967192..a8df4b1a 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -16,7 +16,7 @@ import ( "github.com/rs/cors" "github.com/raystack/compass/handler" "github.com/raystack/compass/internal/middleware" - "github.com/raystack/compass/proto/gen/raystack/compass/v1beta1/compassv1beta1connect" + "github.com/raystack/compass/gen/raystack/compass/v1beta1/compassv1beta1connect" log "github.com/raystack/salt/observability/logger" "golang.org/x/net/http2" "golang.org/x/net/http2/h2c" From 8fa40311dc228bb2a535202b0265d5e732f7e3b1 Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Sat, 28 Mar 2026 00:30:57 -0500 Subject: [PATCH 4/5] refactor: rename handler server.go to handler.go, update references --- handler/asset.go | 28 ++++++++++++++-------------- handler/asset_test.go | 18 +++++++++--------- handler/comment.go | 14 +++++++------- handler/comment_test.go | 10 +++++----- handler/discussion.go | 10 +++++----- handler/discussion_test.go | 8 ++++---- handler/{server.go => handler.go} | 10 +++++----- handler/lineage.go | 2 +- handler/lineage_test.go | 2 +- handler/namespace.go | 8 ++++---- handler/namespace_test.go | 16 ++++++++-------- handler/option.go | 2 +- handler/search.go | 6 +++--- handler/search_test.go | 4 ++-- handler/tag.go | 10 +++++----- handler/tag_template.go | 10 +++++----- handler/tag_template_test.go | 10 +++++----- handler/tag_test.go | 10 +++++----- handler/type.go | 2 +- handler/type_test.go | 2 +- handler/user.go | 14 +++++++------- handler/user_test.go | 12 ++++++------ internal/server/server.go | 6 +++--- 23 files changed, 107 insertions(+), 107 deletions(-) rename handler/{server.go => handler.go} (91%) diff --git a/handler/asset.go b/handler/asset.go index 8f4b1c14..750e41c6 100644 --- a/handler/asset.go +++ b/handler/asset.go @@ -39,7 +39,7 @@ type AssetService interface { GroupAssets(ctx context.Context, cfg asset.GroupConfig) ([]asset.GroupResult, error) } -func (server *APIServer) GetAllAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) { +func (server *Handler) GetAllAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetAllAssetsRequest]) (*connect.Response[compassv1beta1.GetAllAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -89,7 +89,7 @@ func (server *APIServer) GetAllAssets(ctx context.Context, req *connect.Request[ return connect.NewResponse(response), nil } -func (server *APIServer) GetAssetByID(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) { +func (server *Handler) GetAssetByID(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByIDRequest]) (*connect.Response[compassv1beta1.GetAssetByIDResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -117,7 +117,7 @@ func (server *APIServer) GetAssetByID(ctx context.Context, req *connect.Request[ }), nil } -func (server *APIServer) GetAssetStargazers(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) { +func (server *Handler) GetAssetStargazers(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetStargazersRequest]) (*connect.Response[compassv1beta1.GetAssetStargazersResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -148,7 +148,7 @@ func (server *APIServer) GetAssetStargazers(ctx context.Context, req *connect.Re }), nil } -func (server *APIServer) GetAssetVersionHistory(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) { +func (server *Handler) GetAssetVersionHistory(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetVersionHistoryRequest]) (*connect.Response[compassv1beta1.GetAssetVersionHistoryResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -183,7 +183,7 @@ func (server *APIServer) GetAssetVersionHistory(ctx context.Context, req *connec }), nil } -func (server *APIServer) GetAssetByVersion(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) { +func (server *Handler) GetAssetByVersion(ctx context.Context, req *connect.Request[compassv1beta1.GetAssetByVersionRequest]) (*connect.Response[compassv1beta1.GetAssetByVersionResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -215,7 +215,7 @@ func (server *APIServer) GetAssetByVersion(ctx context.Context, req *connect.Req }), nil } -func (server *APIServer) UpsertAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) { +func (server *Handler) UpsertAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertAssetRequest]) (*connect.Response[compassv1beta1.UpsertAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) @@ -251,7 +251,7 @@ func (server *APIServer) UpsertAsset(ctx context.Context, req *connect.Request[c }), nil } -func (server *APIServer) UpsertPatchAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) { +func (server *Handler) UpsertPatchAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpsertPatchAssetRequest]) (*connect.Response[compassv1beta1.UpsertPatchAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) @@ -301,7 +301,7 @@ func (server *APIServer) UpsertPatchAsset(ctx context.Context, req *connect.Requ }), nil } -func (server *APIServer) DeleteAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) { +func (server *Handler) DeleteAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteAssetRequest]) (*connect.Response[compassv1beta1.DeleteAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { @@ -321,7 +321,7 @@ func (server *APIServer) DeleteAsset(ctx context.Context, req *connect.Request[c return connect.NewResponse(&compassv1beta1.DeleteAssetResponse{}), nil } -func (server *APIServer) CreateAssetProbe(ctx context.Context, req *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) { +func (server *Handler) CreateAssetProbe(ctx context.Context, req *connect.Request[compassv1beta1.CreateAssetProbeRequest]) (*connect.Response[compassv1beta1.CreateAssetProbeResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -353,7 +353,7 @@ func (server *APIServer) CreateAssetProbe(ctx context.Context, req *connect.Requ }), nil } -func (server *APIServer) upsertAsset( +func (server *Handler) upsertAsset( ctx context.Context, ns *namespace.Namespace, ast asset.Asset, @@ -384,7 +384,7 @@ func (server *APIServer) upsertAsset( return } -func (server *APIServer) upsertAssetWithoutLineage(ctx context.Context, ns *namespace.Namespace, ast asset.Asset) (string, error) { +func (server *Handler) upsertAssetWithoutLineage(ctx context.Context, ns *namespace.Namespace, ast asset.Asset) (string, error) { if err := server.validateAsset(ast); err != nil { return "", connect.NewError(connect.CodeInvalidArgument, err) } @@ -400,7 +400,7 @@ func (server *APIServer) upsertAssetWithoutLineage(ctx context.Context, ns *name return assetID, nil } -func (server *APIServer) buildAsset(baseAsset *compassv1beta1.UpsertAssetRequest_Asset) asset.Asset { +func (server *Handler) buildAsset(baseAsset *compassv1beta1.UpsertAssetRequest_Asset) asset.Asset { ast := asset.Asset{ URN: baseAsset.GetUrn(), Service: baseAsset.GetService(), @@ -426,7 +426,7 @@ func (server *APIServer) buildAsset(baseAsset *compassv1beta1.UpsertAssetRequest return ast } -func (server *APIServer) validateAsset(ast asset.Asset) error { +func (server *Handler) validateAsset(ast asset.Asset) error { if ast.URN == "" { return fmt.Errorf("urn is required") } @@ -449,7 +449,7 @@ func (server *APIServer) validateAsset(ast asset.Asset) error { return nil } -func (server *APIServer) validatePatchAsset(ast *compassv1beta1.UpsertPatchAssetRequest_Asset) (urn string, err error) { +func (server *Handler) validatePatchAsset(ast *compassv1beta1.UpsertPatchAssetRequest_Asset) (urn string, err error) { if urn = ast.GetUrn(); urn == "" { return "", fmt.Errorf("urn is required and can't be empty") } diff --git a/handler/asset_test.go b/handler/asset_test.go index fea33e78..def79d3b 100644 --- a/handler/asset_test.go +++ b/handler/asset_test.go @@ -186,7 +186,7 @@ func TestGetAllAssets(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetAllAssets(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -333,7 +333,7 @@ func TestGetAssetByID(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetAssetByID(ctx, connect.NewRequest(&compassv1beta1.GetAssetByIDRequest{ Id: assetID, @@ -554,7 +554,7 @@ func TestUpsertAsset(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.UpsertAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -882,7 +882,7 @@ func TestUpsertPatchAsset(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.UpsertPatchAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -977,7 +977,7 @@ func TestDeleteAsset(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) _, err := handler.DeleteAsset(ctx, connect.NewRequest(&compassv1beta1.DeleteAssetRequest{ Id: tc.AssetID, @@ -1076,7 +1076,7 @@ func TestGetAssetStargazers(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) got, err := handler.GetAssetStargazers(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -1205,7 +1205,7 @@ func TestGetAssetVersionHistory(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetAssetVersionHistory(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -1334,7 +1334,7 @@ func TestGetAssetByVersion(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetAssetByVersion(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -1494,7 +1494,7 @@ func TestCreateAssetProbe(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockAssetSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.CreateAssetProbe(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/comment.go b/handler/comment.go index 54f2bec6..791d2f87 100644 --- a/handler/comment.go +++ b/handler/comment.go @@ -16,7 +16,7 @@ import ( // CreateComment will create a new comment of a discussion // field body is mandatory -func (server *APIServer) CreateComment(ctx context.Context, req *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) { +func (server *Handler) CreateComment(ctx context.Context, req *connect.Request[compassv1beta1.CreateCommentRequest]) (*connect.Response[compassv1beta1.CreateCommentResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -50,7 +50,7 @@ func (server *APIServer) CreateComment(ctx context.Context, req *connect.Request } // GetAllComments returns all comments of a discussion -func (server *APIServer) GetAllComments(ctx context.Context, req *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) { +func (server *Handler) GetAllComments(ctx context.Context, req *connect.Request[compassv1beta1.GetAllCommentsRequest]) (*connect.Response[compassv1beta1.GetAllCommentsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -78,7 +78,7 @@ func (server *APIServer) GetAllComments(ctx context.Context, req *connect.Reques } // GetComment returns a comment discussion by id from path -func (server *APIServer) GetComment(ctx context.Context, req *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) { +func (server *Handler) GetComment(ctx context.Context, req *connect.Request[compassv1beta1.GetCommentRequest]) (*connect.Response[compassv1beta1.GetCommentResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -103,7 +103,7 @@ func (server *APIServer) GetComment(ctx context.Context, req *connect.Request[co } // UpdateComment is an api to update a comment by discussion id -func (server *APIServer) UpdateComment(ctx context.Context, req *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) { +func (server *Handler) UpdateComment(ctx context.Context, req *connect.Request[compassv1beta1.UpdateCommentRequest]) (*connect.Response[compassv1beta1.UpdateCommentResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -141,7 +141,7 @@ func (server *APIServer) UpdateComment(ctx context.Context, req *connect.Request } // DeleteComment is an api to delete a comment by discussion id -func (server *APIServer) DeleteComment(ctx context.Context, req *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) { +func (server *Handler) DeleteComment(ctx context.Context, req *connect.Request[compassv1beta1.DeleteCommentRequest]) (*connect.Response[compassv1beta1.DeleteCommentResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -165,7 +165,7 @@ func (server *APIServer) DeleteComment(ctx context.Context, req *connect.Request return connect.NewResponse(&compassv1beta1.DeleteCommentResponse{}), nil } -func (server *APIServer) buildGetAllDiscussionsFilter(req *compassv1beta1.GetAllDiscussionsRequest) (discussion.Filter, error) { +func (server *Handler) buildGetAllDiscussionsFilter(req *compassv1beta1.GetAllDiscussionsRequest) (discussion.Filter, error) { fl := discussion.Filter{ Type: req.GetType(), @@ -202,7 +202,7 @@ func (server *APIServer) buildGetAllDiscussionsFilter(req *compassv1beta1.GetAll return fl, nil } -func (server *APIServer) buildGetAllCommentsFilter(req *compassv1beta1.GetAllCommentsRequest) (discussion.Filter, error) { +func (server *Handler) buildGetAllCommentsFilter(req *compassv1beta1.GetAllCommentsRequest) (discussion.Filter, error) { fl := discussion.Filter{ SortBy: req.GetSort(), diff --git a/handler/comment_test.go b/handler/comment_test.go index b69e1078..aaf6e29c 100644 --- a/handler/comment_test.go +++ b/handler/comment_test.go @@ -121,7 +121,7 @@ func TestCreateComment(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) got, err := handler.CreateComment(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -267,7 +267,7 @@ func TestGetAllComments(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) got, err := handler.GetAllComments(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -417,7 +417,7 @@ func TestGetComment(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) got, err := handler.GetComment(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -579,7 +579,7 @@ func TestUpdateComment(t *testing.T) { defer mockSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) _, err := handler.UpdateComment(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -703,7 +703,7 @@ func TestDeleteComment(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) _, err := handler.DeleteComment(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/discussion.go b/handler/discussion.go index 6e641297..e449f071 100644 --- a/handler/discussion.go +++ b/handler/discussion.go @@ -32,7 +32,7 @@ type DiscussionService interface { // supported query params are type,state,owner,assignee,asset,labels (supporterd array separated by comma) // query params sort,direction to sort asc or desc // query params size,offset for pagination -func (server *APIServer) GetAllDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) { +func (server *Handler) GetAllDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetAllDiscussionsRequest]) (*connect.Response[compassv1beta1.GetAllDiscussionsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -57,7 +57,7 @@ func (server *APIServer) GetAllDiscussions(ctx context.Context, req *connect.Req // CreateDiscussion will create a new discussion // field title, body, and type are mandatory -func (server *APIServer) CreateDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) { +func (server *Handler) CreateDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.CreateDiscussionRequest]) (*connect.Response[compassv1beta1.CreateDiscussionResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -87,7 +87,7 @@ func (server *APIServer) CreateDiscussion(ctx context.Context, req *connect.Requ return connect.NewResponse(&compassv1beta1.CreateDiscussionResponse{Id: id}), nil } -func (server *APIServer) GetDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) { +func (server *Handler) GetDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.GetDiscussionRequest]) (*connect.Response[compassv1beta1.GetDiscussionResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -110,7 +110,7 @@ func (server *APIServer) GetDiscussion(ctx context.Context, req *connect.Request // PatchDiscussion updates a specific field in discussion // empty array in assets,labels,assignees will be considered // and clear all assets,labels,assignees from the discussion -func (server *APIServer) PatchDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) { +func (server *Handler) PatchDiscussion(ctx context.Context, req *connect.Request[compassv1beta1.PatchDiscussionRequest]) (*connect.Response[compassv1beta1.PatchDiscussionResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -153,7 +153,7 @@ func (server *APIServer) PatchDiscussion(ctx context.Context, req *connect.Reque return connect.NewResponse(&compassv1beta1.PatchDiscussionResponse{}), nil } -func (server *APIServer) validateIDInteger(id string) error { +func (server *Handler) validateIDInteger(id string) error { idInt, err := strconv.ParseInt(id, 10, 32) if err != nil { return err diff --git a/handler/discussion_test.go b/handler/discussion_test.go index 7ba3d8d4..e2e25ff1 100644 --- a/handler/discussion_test.go +++ b/handler/discussion_test.go @@ -135,7 +135,7 @@ func TestGetAllDiscussions(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) got, err := handler.GetAllDiscussions(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -279,7 +279,7 @@ func TestCreateDiscussion(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) _, err := handler.CreateDiscussion(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { if err != nil { @@ -392,7 +392,7 @@ func TestGetDiscussion(t *testing.T) { defer mockSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) got, err := handler.GetDiscussion(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -545,7 +545,7 @@ func TestPatchDiscussion(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockSvc, nil, nil, mockUserSvc) _, err := handler.PatchDiscussion(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { if err != nil { diff --git a/handler/server.go b/handler/handler.go similarity index 91% rename from handler/server.go rename to handler/handler.go index 62bde4f4..bf32076d 100644 --- a/handler/server.go +++ b/handler/handler.go @@ -13,7 +13,7 @@ import ( log "github.com/raystack/salt/observability/logger" ) -type APIServer struct { +type Handler struct { namespaceService NamespaceService assetService AssetService starService StarService @@ -28,7 +28,7 @@ var ( errMissingUserInfo = errors.New("missing user information") ) -func NewAPIServer( +func New( logger log.Logger, namespaceService NamespaceService, assetService AssetService, @@ -37,8 +37,8 @@ func NewAPIServer( tagService TagService, tagTemplateService TagTemplateService, userService UserService, -) *APIServer { - return &APIServer{ +) *Handler { + return &Handler{ namespaceService: namespaceService, assetService: assetService, starService: starService, @@ -50,7 +50,7 @@ func NewAPIServer( } } -func (server *APIServer) validateUserInCtx(ctx context.Context, ns *namespace.Namespace) (string, error) { +func (server *Handler) validateUserInCtx(ctx context.Context, ns *namespace.Namespace) (string, error) { usr := user.FromContext(ctx) userID, err := server.userService.ValidateUser(ctx, ns, usr.UUID, usr.Email) if err != nil { diff --git a/handler/lineage.go b/handler/lineage.go index f875aaf4..ba905de2 100644 --- a/handler/lineage.go +++ b/handler/lineage.go @@ -12,7 +12,7 @@ import ( "google.golang.org/protobuf/types/known/structpb" ) -func (server *APIServer) GetGraph(ctx context.Context, req *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) { +func (server *Handler) GetGraph(ctx context.Context, req *connect.Request[compassv1beta1.GetGraphRequest]) (*connect.Response[compassv1beta1.GetGraphResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err diff --git a/handler/lineage_test.go b/handler/lineage_test.go index 9fdd18e4..c0c4bb03 100644 --- a/handler/lineage_test.go +++ b/handler/lineage_test.go @@ -73,7 +73,7 @@ func TestGetLineageGraph(t *testing.T) { mockSvc.EXPECT().GetLineage(ctx, nodeURN, asset.LineageQuery{Level: level, Direction: direction, WithAttributes: true}).Return(lineage, nil) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetGraph(ctx, connect.NewRequest(&compassv1beta1.GetGraphRequest{ Urn: nodeURN, diff --git a/handler/namespace.go b/handler/namespace.go index b5de4960..c2cf984d 100644 --- a/handler/namespace.go +++ b/handler/namespace.go @@ -21,7 +21,7 @@ type NamespaceService interface { List(ctx context.Context) ([]*namespace.Namespace, error) } -func (server *APIServer) ListNamespaces(ctx context.Context, req *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) { +func (server *Handler) ListNamespaces(ctx context.Context, req *connect.Request[compassv1beta1.ListNamespacesRequest]) (*connect.Response[compassv1beta1.ListNamespacesResponse], error) { namespaces, err := server.namespaceService.List(ctx) if err != nil { return nil, connect.NewError(connect.CodeInternal, err) @@ -39,7 +39,7 @@ func (server *APIServer) ListNamespaces(ctx context.Context, req *connect.Reques }), nil } -func (server *APIServer) GetNamespace(ctx context.Context, req *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) { +func (server *Handler) GetNamespace(ctx context.Context, req *connect.Request[compassv1beta1.GetNamespaceRequest]) (*connect.Response[compassv1beta1.GetNamespaceResponse], error) { if req.Msg.GetUrn() == "" { return nil, connect.NewError(connect.CodeInvalidArgument, errors.New("urn is required")) } @@ -72,7 +72,7 @@ func (server *APIServer) GetNamespace(ctx context.Context, req *connect.Request[ }), nil } -func (server *APIServer) CreateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) { +func (server *Handler) CreateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.CreateNamespaceRequest]) (*connect.Response[compassv1beta1.CreateNamespaceResponse], error) { var metadata map[string]interface{} if req.Msg.GetMetadata() != nil { metadata = req.Msg.GetMetadata().AsMap() @@ -96,7 +96,7 @@ func (server *APIServer) CreateNamespace(ctx context.Context, req *connect.Reque }), nil } -func (server *APIServer) UpdateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) { +func (server *Handler) UpdateNamespace(ctx context.Context, req *connect.Request[compassv1beta1.UpdateNamespaceRequest]) (*connect.Response[compassv1beta1.UpdateNamespaceResponse], error) { if req.Msg.GetUrn() == "" { return nil, connect.NewError(connect.CodeInvalidArgument, errors.New("urn is required")) } diff --git a/handler/namespace_test.go b/handler/namespace_test.go index b024de18..54d56193 100644 --- a/handler/namespace_test.go +++ b/handler/namespace_test.go @@ -19,7 +19,7 @@ import ( "google.golang.org/protobuf/types/known/structpb" ) -func TestAPIServer_ListNamespaces(t *testing.T) { +func TestHandler_ListNamespaces(t *testing.T) { var ( userUUID = uuid.NewString() mockedNamespaces = []*namespace.Namespace{ @@ -71,7 +71,7 @@ func TestAPIServer_ListNamespaces(t *testing.T) { defer mockUserSvc.AssertExpectations(t) defer mockNamespaceSvc.AssertExpectations(t) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) got, err := handler.ListNamespaces(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -96,7 +96,7 @@ func TestAPIServer_ListNamespaces(t *testing.T) { } } -func TestAPIServer_GetNamespaces(t *testing.T) { +func TestHandler_GetNamespaces(t *testing.T) { var ( userUUID = uuid.NewString() mockedNamespaces = []*namespace.Namespace{ @@ -160,7 +160,7 @@ func TestAPIServer_GetNamespaces(t *testing.T) { defer mockUserSvc.AssertExpectations(t) defer mockNamespaceSvc.AssertExpectations(t) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) got, err := handler.GetNamespace(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -185,7 +185,7 @@ func TestAPIServer_GetNamespaces(t *testing.T) { } } -func TestAPIServer_CreateNamespaces(t *testing.T) { +func TestHandler_CreateNamespaces(t *testing.T) { var ( userUUID = uuid.NewString() mockedNamespaces = []*namespace.Namespace{ @@ -252,7 +252,7 @@ func TestAPIServer_CreateNamespaces(t *testing.T) { defer mockUserSvc.AssertExpectations(t) defer mockNamespaceSvc.AssertExpectations(t) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) got, err := handler.CreateNamespace(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -277,7 +277,7 @@ func TestAPIServer_CreateNamespaces(t *testing.T) { } } -func TestAPIServer_UpdateNamespaces(t *testing.T) { +func TestHandler_UpdateNamespaces(t *testing.T) { var ( userUUID = uuid.NewString() mockedNamespaces = []*namespace.Namespace{ @@ -328,7 +328,7 @@ func TestAPIServer_UpdateNamespaces(t *testing.T) { defer mockUserSvc.AssertExpectations(t) defer mockNamespaceSvc.AssertExpectations(t) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, nil, nil, mockUserSvc) got, err := handler.UpdateNamespace(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/option.go b/handler/option.go index fcfee97a..ec7789ad 100644 --- a/handler/option.go +++ b/handler/option.go @@ -1,3 +1,3 @@ package handler -type Option func(*APIServer) +type Option func(*Handler) diff --git a/handler/search.go b/handler/search.go index c0e5475e..352a193e 100644 --- a/handler/search.go +++ b/handler/search.go @@ -11,7 +11,7 @@ import ( compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" ) -func (server *APIServer) SearchAssets(ctx context.Context, req *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { +func (server *Handler) SearchAssets(ctx context.Context, req *connect.Request[compassv1beta1.SearchAssetsRequest]) (*connect.Response[compassv1beta1.SearchAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -48,7 +48,7 @@ func (server *APIServer) SearchAssets(ctx context.Context, req *connect.Request[ }), nil } -func (server *APIServer) SuggestAssets(ctx context.Context, req *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) { +func (server *Handler) SuggestAssets(ctx context.Context, req *connect.Request[compassv1beta1.SuggestAssetsRequest]) (*connect.Response[compassv1beta1.SuggestAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -73,7 +73,7 @@ func (server *APIServer) SuggestAssets(ctx context.Context, req *connect.Request }), nil } -func (server *APIServer) GroupAssets(ctx context.Context, req *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) { +func (server *Handler) GroupAssets(ctx context.Context, req *connect.Request[compassv1beta1.GroupAssetsRequest]) (*connect.Response[compassv1beta1.GroupAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err diff --git a/handler/search_test.go b/handler/search_test.go index b4d67d5e..73fd9bcf 100644 --- a/handler/search_test.go +++ b/handler/search_test.go @@ -232,7 +232,7 @@ func TestSearch(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.SearchAssets(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -350,7 +350,7 @@ func TestSuggest(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, mockSvc, nil, nil, nil, nil, mockUserSvc) got, err := handler.SuggestAssets(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/tag.go b/handler/tag.go index 3b5d968c..127ce544 100644 --- a/handler/tag.go +++ b/handler/tag.go @@ -32,7 +32,7 @@ type TagService interface { } // GetTagByAssetAndTemplate handles get tag by asset requests -func (server *APIServer) GetTagByAssetAndTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) { +func (server *Handler) GetTagByAssetAndTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagByAssetAndTemplateRequest]) (*connect.Response[compassv1beta1.GetTagByAssetAndTemplateResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -68,7 +68,7 @@ func (server *APIServer) GetTagByAssetAndTemplate(ctx context.Context, req *conn } // CreateTagAsset handles tag creation requests -func (server *APIServer) CreateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) { +func (server *Handler) CreateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagAssetRequest]) (*connect.Response[compassv1beta1.CreateTagAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -126,7 +126,7 @@ func (server *APIServer) CreateTagAsset(ctx context.Context, req *connect.Reques } // UpdateTagAsset handles tag update requests -func (server *APIServer) UpdateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) { +func (server *Handler) UpdateTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagAssetRequest]) (*connect.Response[compassv1beta1.UpdateTagAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -182,7 +182,7 @@ func (server *APIServer) UpdateTagAsset(ctx context.Context, req *connect.Reques } // DeleteTagAsset handles delete tag by asset and template requests -func (server *APIServer) DeleteTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) { +func (server *Handler) DeleteTagAsset(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagAssetRequest]) (*connect.Response[compassv1beta1.DeleteTagAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -211,7 +211,7 @@ func (server *APIServer) DeleteTagAsset(ctx context.Context, req *connect.Reques } // GetAllTagsByAsset handles get all tags by asset requests -func (server *APIServer) GetAllTagsByAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) { +func (server *Handler) GetAllTagsByAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagsByAssetRequest]) (*connect.Response[compassv1beta1.GetAllTagsByAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err diff --git a/handler/tag_template.go b/handler/tag_template.go index 7f39ac9b..9c1f4fdf 100644 --- a/handler/tag_template.go +++ b/handler/tag_template.go @@ -25,7 +25,7 @@ type TagTemplateService interface { } // GetAllTagTemplates handles template read requests -func (server *APIServer) GetAllTagTemplates(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) { +func (server *Handler) GetAllTagTemplates(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTagTemplatesRequest]) (*connect.Response[compassv1beta1.GetAllTagTemplatesResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -47,7 +47,7 @@ func (server *APIServer) GetAllTagTemplates(ctx context.Context, req *connect.Re } // CreateTagTemplate handles template creation requests -func (server *APIServer) CreateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) { +func (server *Handler) CreateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.CreateTagTemplateRequest]) (*connect.Response[compassv1beta1.CreateTagTemplateResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -91,7 +91,7 @@ func (server *APIServer) CreateTagTemplate(ctx context.Context, req *connect.Req } // GetTagTemplate handles template read requests based on URN -func (server *APIServer) GetTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) { +func (server *Handler) GetTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.GetTagTemplateRequest]) (*connect.Response[compassv1beta1.GetTagTemplateResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -110,7 +110,7 @@ func (server *APIServer) GetTagTemplate(ctx context.Context, req *connect.Reques }), nil } -func (server *APIServer) UpdateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) { +func (server *Handler) UpdateTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.UpdateTagTemplateRequest]) (*connect.Response[compassv1beta1.UpdateTagTemplateResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -153,7 +153,7 @@ func (server *APIServer) UpdateTagTemplate(ctx context.Context, req *connect.Req } // DeleteTagTemplate handles template delete request based on URN -func (server *APIServer) DeleteTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) { +func (server *Handler) DeleteTagTemplate(ctx context.Context, req *connect.Request[compassv1beta1.DeleteTagTemplateRequest]) (*connect.Response[compassv1beta1.DeleteTagTemplateResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err diff --git a/handler/tag_template_test.go b/handler/tag_template_test.go index bab572b1..062e1116 100644 --- a/handler/tag_template_test.go +++ b/handler/tag_template_test.go @@ -165,7 +165,7 @@ func TestGetAllTagTemplates(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.GetAllTagTemplates(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -269,7 +269,7 @@ func TestCreateTagTemplate(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.CreateTagTemplate(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -363,7 +363,7 @@ func TestGetTagTemplate(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.GetTagTemplate(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { if err != nil { @@ -479,7 +479,7 @@ func TestUpdateTagTemplate(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.UpdateTagTemplate(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { if err != nil { @@ -560,7 +560,7 @@ func TestDeleteTagTemplate(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) _, err := handler.DeleteTagTemplate(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/tag_test.go b/handler/tag_test.go index 9519c631..ae42e379 100644 --- a/handler/tag_test.go +++ b/handler/tag_test.go @@ -211,7 +211,7 @@ func TestGetTagByAssetAndTemplate(t *testing.T) { mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.GetTagByAssetAndTemplate(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -359,7 +359,7 @@ func TestCreateTagAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.CreateTagAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -491,7 +491,7 @@ func TestUpdateTagAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.UpdateTagAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -604,7 +604,7 @@ func TestDeleteTagAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) _, err := handler.DeleteTagAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { @@ -699,7 +699,7 @@ func TestGetAllTagsByAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, nil, mockTagSvc, mockTemplateSvc, mockUserSvc) got, err := handler.GetAllTagsByAsset(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/handler/type.go b/handler/type.go index 1af606ce..baac16ba 100644 --- a/handler/type.go +++ b/handler/type.go @@ -9,7 +9,7 @@ import ( compassv1beta1 "github.com/raystack/compass/gen/raystack/compass/v1beta1" ) -func (server *APIServer) GetAllTypes(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { +func (server *Handler) GetAllTypes(ctx context.Context, req *connect.Request[compassv1beta1.GetAllTypesRequest]) (*connect.Response[compassv1beta1.GetAllTypesResponse], error) { flt, err := asset.NewFilterBuilder(). Types(req.Msg.GetTypes()). diff --git a/handler/type_test.go b/handler/type_test.go index 98f23471..036be664 100644 --- a/handler/type_test.go +++ b/handler/type_test.go @@ -128,7 +128,7 @@ func TestGetTypes(t *testing.T) { defer mockSvc.AssertExpectations(t) - handler := NewAPIServer(logger, nil, mockSvc, nil, nil, nil, nil, nil) + handler := New(logger, nil, mockSvc, nil, nil, nil, nil, nil) got, err := handler.GetAllTypes(ctx, connect.NewRequest(&compassv1beta1.GetAllTypesRequest{})) if tc.ExpectStatus == 0 { diff --git a/handler/user.go b/handler/user.go index f4fd4661..477b8627 100644 --- a/handler/user.go +++ b/handler/user.go @@ -22,7 +22,7 @@ type UserService interface { ValidateUser(ctx context.Context, ns *namespace.Namespace, uuid, email string) (string, error) } -func (server *APIServer) GetUserStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) { +func (server *Handler) GetUserStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetUserStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetUserStarredAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) if _, err := server.validateUserInCtx(ctx, ns); err != nil { return nil, err @@ -59,7 +59,7 @@ func (server *APIServer) GetUserStarredAssets(ctx context.Context, req *connect. }), nil } -func (server *APIServer) GetMyStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) { +func (server *Handler) GetMyStarredAssets(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetsRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -97,7 +97,7 @@ func (server *APIServer) GetMyStarredAssets(ctx context.Context, req *connect.Re }), nil } -func (server *APIServer) GetMyStarredAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) { +func (server *Handler) GetMyStarredAsset(ctx context.Context, req *connect.Request[compassv1beta1.GetMyStarredAssetRequest]) (*connect.Response[compassv1beta1.GetMyStarredAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -125,7 +125,7 @@ func (server *APIServer) GetMyStarredAsset(ctx context.Context, req *connect.Req }), nil } -func (server *APIServer) StarAsset(ctx context.Context, req *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) { +func (server *Handler) StarAsset(ctx context.Context, req *connect.Request[compassv1beta1.StarAssetRequest]) (*connect.Response[compassv1beta1.StarAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -154,7 +154,7 @@ func (server *APIServer) StarAsset(ctx context.Context, req *connect.Request[com }), nil } -func (server *APIServer) UnstarAsset(ctx context.Context, req *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) { +func (server *Handler) UnstarAsset(ctx context.Context, req *connect.Request[compassv1beta1.UnstarAssetRequest]) (*connect.Response[compassv1beta1.UnstarAssetResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -175,7 +175,7 @@ func (server *APIServer) UnstarAsset(ctx context.Context, req *connect.Request[c return connect.NewResponse(&compassv1beta1.UnstarAssetResponse{}), nil } -func (server *APIServer) GetMyDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) { +func (server *Handler) GetMyDiscussions(ctx context.Context, req *connect.Request[compassv1beta1.GetMyDiscussionsRequest]) (*connect.Response[compassv1beta1.GetMyDiscussionsResponse], error) { ns := middleware.FetchNamespaceFromContext(ctx) userID, err := server.validateUserInCtx(ctx, ns) if err != nil { @@ -202,7 +202,7 @@ func (server *APIServer) GetMyDiscussions(ctx context.Context, req *connect.Requ }), nil } -func (server *APIServer) buildGetDiscussionsFilter(req *compassv1beta1.GetMyDiscussionsRequest, userID string) (discussion.Filter, error) { +func (server *Handler) buildGetDiscussionsFilter(req *compassv1beta1.GetMyDiscussionsRequest, userID string) (discussion.Filter, error) { fl := discussion.Filter{ Type: req.GetType(), State: req.GetState(), diff --git a/handler/user_test.go b/handler/user_test.go index c98d2dcb..52d9fc8a 100644 --- a/handler/user_test.go +++ b/handler/user_test.go @@ -123,7 +123,7 @@ func TestGetUserStarredAssets(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) got, err := handler.GetUserStarredAssets(ctx, connect.NewRequest(&compassv1beta1.GetUserStarredAssetsRequest{ UserId: userID, @@ -251,7 +251,7 @@ func TestGetMyStarredAssets(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) got, err := handler.GetMyStarredAssets(ctx, connect.NewRequest(&compassv1beta1.GetMyStarredAssetsRequest{ Offset: uint32(offset), @@ -369,7 +369,7 @@ func TestGetMyStarredAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) got, err := handler.GetMyStarredAsset(ctx, connect.NewRequest(&compassv1beta1.GetMyStarredAssetRequest{ AssetId: assetID, @@ -477,7 +477,7 @@ func TestStarAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) _, err := handler.StarAsset(ctx, connect.NewRequest(&compassv1beta1.StarAssetRequest{ AssetId: assetID, @@ -565,7 +565,7 @@ func TestUnstarAsset(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, mockStarSvc, nil, nil, nil, mockUserSvc) _, err := handler.UnstarAsset(ctx, connect.NewRequest(&compassv1beta1.UnstarAssetRequest{ AssetId: assetID, @@ -734,7 +734,7 @@ func TestGetMyDiscussions(t *testing.T) { defer mockNamespaceSvc.AssertExpectations(t) mockUserSvc.EXPECT().ValidateUser(ctx, ns, userUUID, "").Return(userID, nil) - handler := NewAPIServer(logger, mockNamespaceSvc, nil, nil, mockDiscussionSvc, nil, nil, mockUserSvc) + handler := New(logger, mockNamespaceSvc, nil, nil, mockDiscussionSvc, nil, nil, mockUserSvc) got, err := handler.GetMyDiscussions(ctx, connect.NewRequest(tc.Request)) if tc.ExpectStatus == 0 { diff --git a/internal/server/server.go b/internal/server/server.go index a8df4b1a..6f94365d 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -34,7 +34,7 @@ func Serve( tagTemplateService handler.TagTemplateService, userService handler.UserService, ) error { - v1beta1Handler := handler.NewAPIServer( + v1beta1Handler := handler.New( logger, namespaceService, assetService, @@ -67,13 +67,13 @@ func Serve( mux := http.NewServeMux() // Register Connect service handler - path, handler := compassv1beta1connect.NewCompassServiceHandler( + path, svcHandler := compassv1beta1connect.NewCompassServiceHandler( v1beta1Handler, interceptors, connect.WithReadMaxBytes(cfg.MaxRecvMsgSize), connect.WithSendMaxBytes(cfg.MaxSendMsgSize), ) - mux.Handle(path, handler) + mux.Handle(path, svcHandler) // Register gRPC reflection for tooling compatibility (grpcurl, etc.) reflector := grpcreflect.NewStaticReflector( From 5d3a2d0f4c4293f23a69a7af1d0621acba5289ac Mon Sep 17 00:00:00 2001 From: Ravi Suhag Date: Sat, 28 Mar 2026 00:36:23 -0500 Subject: [PATCH 5/5] refactor: move config example and flatten test directory - Move config.yaml to internal/config/config.example.yaml - Flatten test/e2e_test/ to test/ - Update Makefile reference --- Makefile | 2 +- config/config.yaml => internal/config/config.example.yaml | 0 test/{e2e_test => }/asset_test.go | 2 +- test/{e2e_test => }/helper_test.go | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) rename config/config.yaml => internal/config/config.example.yaml (100%) rename test/{e2e_test => }/asset_test.go (99%) rename test/{e2e_test => }/helper_test.go (99%) diff --git a/Makefile b/Makefile index 56aa3c59..7e6c3b87 100644 --- a/Makefile +++ b/Makefile @@ -49,7 +49,7 @@ generate: ## Run go generate @go generate ./... config: ## Generate sample config file - @cp config/config.yaml config.yaml + @cp internal/config/config.example.yaml config.yaml proto: ## Generate protobuf files @rm -rf proto/ diff --git a/config/config.yaml b/internal/config/config.example.yaml similarity index 100% rename from config/config.yaml rename to internal/config/config.example.yaml diff --git a/test/e2e_test/asset_test.go b/test/asset_test.go similarity index 99% rename from test/e2e_test/asset_test.go rename to test/asset_test.go index ecc7915b..e1ab1771 100644 --- a/test/e2e_test/asset_test.go +++ b/test/asset_test.go @@ -1,7 +1,7 @@ //go:build e2e // +build e2e -package endtoend_test +package test import ( "context" diff --git a/test/e2e_test/helper_test.go b/test/helper_test.go similarity index 99% rename from test/e2e_test/helper_test.go rename to test/helper_test.go index fb546ce3..178996a9 100644 --- a/test/e2e_test/helper_test.go +++ b/test/helper_test.go @@ -1,7 +1,7 @@ //go:build e2e // +build e2e -package endtoend_test +package test import ( "bytes"